This commit is contained in:
Benjamin Toby 2024-12-06 14:24:26 +01:00
parent 767c3e3a82
commit 8b7ea057d0
480 changed files with 9605 additions and 1539 deletions

View File

@ -1 +1 @@
PRCDbGdaw6I-rby7sNmCZ HPdh-C46rQ6wKSVcYzsHO

View File

@ -5,8 +5,8 @@
"devFiles": [], "devFiles": [],
"ampDevFiles": [], "ampDevFiles": [],
"lowPriorityFiles": [ "lowPriorityFiles": [
"static/PRCDbGdaw6I-rby7sNmCZ/_buildManifest.js", "static/HPdh-C46rQ6wKSVcYzsHO/_buildManifest.js",
"static/PRCDbGdaw6I-rby7sNmCZ/_ssgManifest.js" "static/HPdh-C46rQ6wKSVcYzsHO/_ssgManifest.js"
], ],
"rootMainFiles": [], "rootMainFiles": [],
"rootMainFilesTree": {}, "rootMainFilesTree": {},
@ -126,7 +126,7 @@
"static/chunks/9799-f2854771cb0bce5c.js", "static/chunks/9799-f2854771cb0bce5c.js",
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/3293-731fa0758fa0e0aa.js", "static/chunks/3293-731fa0758fa0e0aa.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-ff76b5ff2ba45d36.js" "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-ff76b5ff2ba45d36.js"
], ],
@ -142,7 +142,7 @@
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/3293-731fa0758fa0e0aa.js", "static/chunks/3293-731fa0758fa0e0aa.js",
"static/chunks/1950-50556c64bfd6a337.js", "static/chunks/1950-50556c64bfd6a337.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/schema-4662715012e5fbec.js" "static/chunks/pages/admin/[user_id]/databases/[single]/schema-4662715012e5fbec.js"
@ -182,11 +182,11 @@
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/6156-05a27ce6a6fd29e7.js", "static/chunks/6156-9c7fc34b2aca4790.js",
"static/chunks/8012-d8811518e02e800f.js", "static/chunks/8012-d8811518e02e800f.js",
"static/chunks/6460-4b0051e1ff7a0e1a.js", "static/chunks/6460-44a9fb82157e2b3e.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-af1b385f3aca5922.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-657f7fcc145a16bf.js"
], ],
"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": [ "/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -200,9 +200,9 @@
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/6156-05a27ce6a6fd29e7.js", "static/chunks/6156-9c7fc34b2aca4790.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-208bed39283e9dc2.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-b417a5b3091f1023.js"
], ],
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries": [ "/admin/[user_id]/databases/[single]/tables/[single_table]/entries": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -218,8 +218,8 @@
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/8012-d8811518e02e800f.js", "static/chunks/8012-d8811518e02e800f.js",
"static/chunks/6460-4b0051e1ff7a0e1a.js", "static/chunks/6460-44a9fb82157e2b3e.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-27bbdc1d677f8cb1.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-7c31c6c40e4b372e.js"
], ],
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [ "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -235,8 +235,8 @@
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/8012-d8811518e02e800f.js", "static/chunks/8012-d8811518e02e800f.js",
"static/chunks/6460-4b0051e1ff7a0e1a.js", "static/chunks/6460-44a9fb82157e2b3e.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-d7fa8978def2325e.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-a7815a5469469d05.js"
], ],
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": [ "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -249,7 +249,7 @@
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/8012-d8811518e02e800f.js", "static/chunks/8012-d8811518e02e800f.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-03d47072a48fb2bd.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-db414d9d089cf2f8.js"
], ],
"/admin/[user_id]/databases/[single]/tables/[single_table]/fields": [ "/admin/[user_id]/databases/[single]/tables/[single_table]/fields": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -263,9 +263,9 @@
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/6836-dd09a62c09c3ff54.js", "static/chunks/6836-dd09a62c09c3ff54.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/6156-05a27ce6a6fd29e7.js", "static/chunks/6156-9c7fc34b2aca4790.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-45a4105fe834745e.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-475695cb5696bcc3.js"
], ],
"/admin/[user_id]/databases/[single]/tables/add-table": [ "/admin/[user_id]/databases/[single]/tables/add-table": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -278,9 +278,9 @@
"static/chunks/9799-f2854771cb0bce5c.js", "static/chunks/9799-f2854771cb0bce5c.js",
"static/chunks/304-44c7b2ac8964083c.js", "static/chunks/304-44c7b2ac8964083c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/6156-05a27ce6a6fd29e7.js", "static/chunks/6156-9c7fc34b2aca4790.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-4cda86686f4c8cb1.js" "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-3d47573073c23cb1.js"
], ],
"/admin/[user_id]/databases/[single]/users": [ "/admin/[user_id]/databases/[single]/users": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",
@ -341,7 +341,7 @@
"static/chunks/29107295-a5c0cca9b8761d61.js", "static/chunks/29107295-a5c0cca9b8761d61.js",
"static/chunks/9799-f2854771cb0bce5c.js", "static/chunks/9799-f2854771cb0bce5c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/3293-731fa0758fa0e0aa.js", "static/chunks/3293-731fa0758fa0e0aa.js",
"static/chunks/pages/admin/[user_id]/databases/add-database-2e2159e3727905b1.js" "static/chunks/pages/admin/[user_id]/databases/add-database-2e2159e3727905b1.js"
], ],
@ -380,7 +380,7 @@
"static/chunks/29107295-a5c0cca9b8761d61.js", "static/chunks/29107295-a5c0cca9b8761d61.js",
"static/chunks/9799-f2854771cb0bce5c.js", "static/chunks/9799-f2854771cb0bce5c.js",
"static/chunks/5414-7768ca31c29a305e.js", "static/chunks/5414-7768ca31c29a305e.js",
"static/chunks/5160-e9f06aec35447872.js", "static/chunks/5160-241d407bfc67c2fb.js",
"static/chunks/8866-9b36026d12284c11.js", "static/chunks/8866-9b36026d12284c11.js",
"static/chunks/7538-4d24663ed2f4cf5c.js", "static/chunks/7538-4d24663ed2f4cf5c.js",
"static/chunks/9907-8d988ae445ccee04.js", "static/chunks/9907-8d988ae445ccee04.js",
@ -445,7 +445,7 @@
"static/chunks/main-02c55c0c38989d0c.js", "static/chunks/main-02c55c0c38989d0c.js",
"static/chunks/9907-8d988ae445ccee04.js", "static/chunks/9907-8d988ae445ccee04.js",
"static/chunks/4147-1eea8c52da913e77.js", "static/chunks/4147-1eea8c52da913e77.js",
"static/chunks/pages/create-account-7b359cd1beeea50d.js" "static/chunks/pages/create-account-a60477ecac7d84f9.js"
], ],
"/docs": [ "/docs": [
"static/chunks/webpack-e67b0ff03d96edf5.js", "static/chunks/webpack-e67b0ff03d96edf5.js",

View File

@ -1,7 +1,7 @@
{ {
"telemetry": { "telemetry": {
"notifiedAt": "1733382765904", "notifiedAt": "1733491293292",
"anonymousId": "4fc4939f6557679366420f4afe4b10f01906af048330489e86f34428a274a1ab", "anonymousId": "e81e2a6cc86fa4cc2933b9350b8f3ac960c2d62985c49cc830a69ca6da64b3e4",
"salt": "aad9e245d6769e55cbc39343966c9d0d" "salt": "9d55b99f50f3c0bbc7cd676d15790939"
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":4,"routes":{"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/quick-start.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/gui-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/api-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/database-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/gui-reference/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/gui-reference/upload-media.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/api-reference/get.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/api-reference/post.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/database-reference/data-types.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/database-reference/querying-data.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/PRCDbGdaw6I\\-rby7sNmCZ/docs/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/PRCDbGdaw6I-rby7sNmCZ/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/PRCDbGdaw6I\\-rby7sNmCZ/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"6b5c414f94078180eae807935dc10642","previewModeSigningKey":"159e3e53f5b61c99d865f1e7bb09bd3e2a5a1c61f20a81a80bc11c647bc58d99","previewModeEncryptionKey":"503c96e78158610432bda855eb4b8c9fcbf063468f2d9d8e4001037a08d2b3a9"}} {"version":4,"routes":{"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/quick-start.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/gui-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/api-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/database-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/gui-reference/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/gui-reference/upload-media.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/api-reference/get.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/api-reference/post.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/database-reference/data-types.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/database-reference/querying-data.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/HPdh\\-C46rQ6wKSVcYzsHO/docs/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/HPdh-C46rQ6wKSVcYzsHO/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/HPdh\\-C46rQ6wKSVcYzsHO/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"3e7fbe2cdb21a4c95b5355bf1427306a","previewModeSigningKey":"b6d38370d6362a2fbc138281b2379a27d5d944f8cabd05dc3db200b0423a7efc","previewModeEncryptionKey":"39db2dfe4bc5ec5c79672e5a627d2fb6f43fef0b801a258cfa39e00d94acb3b9"}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,16 @@
"use strict";exports.id=5674,exports.ids=[5674],exports.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}}})},91479:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({pages:e}){if(!e||!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,n){return s.map((s,a)=>{let l=`${n}/${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)})]},a)})}(t,"/docs")})]})}s(82015)},84895:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({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)},6845:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(63715);function n({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)})}},69436:(e,t,s)=>{let r=s(29021),n=s(22373),a=s(9973),l=s(31976),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,charset:"utf8mb4",ssl:l()}});e.exports=async function(...e){let t;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e[0]+"\n"+Date()+"\n\n\n","utf8");try{t=await new Promise((t,s)=>{o.query(...e,(e,s,r)=>{e?t({error:e.message}):t(s)})}),await o.end()}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null,n({component:"dbHandler",message:e.message})}return t?JSON.parse(JSON.stringify(t)):null}},22373:(e,t,s)=>{let r=s(29021);e.exports=async function({user:e,message:t,component:s,noMail:n}){let a=`🚀 SERVER ERROR =========================== "use strict";exports.id=5674,exports.ids=[5674],exports.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}}})},91479:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({pages:e}){if(!e||!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,n){return s.map((s,l)=>{let a=`${n}/${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:a,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,a)})]},l)})}(t,"/docs")})]})}s(82015)},84895:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({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)},6845:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(63715);function n({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)})}},69436:(e,t,s)=>{let r=s(29021),n=s(22373),l=s(9973),a=s(31976),o=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,charset:"utf8mb4",ssl:a()}});e.exports=async function(...e){let t;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e[0]+"\n"+Date()+"\n\n\n","utf8");try{t=await new Promise((t,s)=>{o.query(...e,(e,s,r)=>{e?t({error:e.message}):t(s)})}),await o.end()}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null,n({component:"dbHandler",message:e.message})}return t?JSON.parse(JSON.stringify(t)):null}},22373:(e,t,s)=>{let r=s(29021),{IncomingMessage:n}=s(81630);e.exports=async function({user:e,message:t,component:s,noMail:n,req:l}){let a=new Date,o=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],s=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],n=s||r||t||l.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR ===========================
Error Message: ${t}
Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=`
User Id: ${e?.id} User Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name} User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email} User Email: ${e?.email}`),l?.url&&(n+=`
Error Message: ${t} URL: ${l.url}`),l?.body&&(n+=`
Component: ${s} Request Body: ${JSON.stringify(l.body,null,4)}`),o&&(n+=`
Date: ${Date()} IP: ${o}`),n+=`
========================================`;r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let l=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",a),r.appendFileSync("./.tmp/error.log",` Date: ${a.toDateString()}
========================================`,r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let i=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",n),r.appendFileSync("./.tmp/error.log",`
${l}`)}},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}}; ${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>l});var r=s(8732);s(82015);var n=s(20883);function l(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,16 @@
"use strict";exports.id=8540,exports.ids=[8540],exports.modules={77619:(e,t,r)=>{let a=r(29021),l=r(72835);e.exports=({key:e,database:t,table:r,user_id:n})=>{if(!e||!n)return null;try{let s=process.env.DSQL_API_KEYS_PATH;if(!s)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=l({encryptedString:e}),o=JSON.parse(i||""),u=a.existsSync(`${s}/${o.sign}`);if(String(o.user_id)!==String(n)||!u)return null;if(!o.target_database)return o;if(!t&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(t));if(c&&!o.target_table)return o;if(c&&!r&&o.target_table)return null;if(o.target_table?.split(",").includes(String(r)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,t,r)=>{let a=r(51348),l=r(21339),n=r(44900);async function s({dbContext:e,paradigm:t,dbFullName:r,tableName:s,identifierColumnName:i,identifierValue:o,useLocal:u}){try{let c=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),d=u?n:c?a:l,p=`DELETE FROM ${s} WHERE \`${i}\`=?`;return c?await d(p,[o]):await d({paradigm:t,queryString:p,database:r,queryValues:[o]})}catch(e){return null}}e.exports=s},8238:(e,t,r)=>{r(29021);let a=r(44900),l=r(94709),n=r(96064),s=r(48225),i=r(47670),o=r(33364),u=r(64122),c=r(6061),d=r(33872);async function p({dbFullName:e,query:t,readOnly:r,dbSchema:p,queryValuesArray:m,tableName:g,local:f}){let y,b,_;if(p)try{let e=g||("string"==typeof t?null:t?t?.table:null);if(!e)throw Error("No table name provided");_=p.tables.filter(t=>t?.tableName===e)[0]}catch(e){}try{if("string"==typeof t){let s=d(t);if(r&&s.match(/^alter|^delete|information_schema|databases|^create/i))throw Error("Wrong Input!");if(f){console.log("Using Local ...");let e=await a(s,m);y=_?c({unparsedResults:e,tableSchema:_}):e}else y=r?await n({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_}):await l({queryString:s,queryValuesArray:m?.map(e=>String(e)),database:e,tableSchema:_})}else if("object"==typeof t){let{data:r,action:a,table:l,identifierColumnName:n,identifierValue:s,update:c,duplicateColumnName:d,duplicateColumnValue:p}=t;switch(a.toLowerCase()){case"insert":y=await i({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,update:c,duplicateColumnName:d,duplicateColumnValue:p,tableSchema:_}),y?.insertId||(b=Error("Couldn't insert data"));break;case"update":y=await o({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,data:r,identifierColumnName:n,identifierValue:s,tableSchema:_});break;case"delete":y=await u({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:l,identifierColumnName:n,identifierValue:s,tableSchema:_});break;default:y=null}}}catch(e){s({component:"functions/backend/runQuery",message:e.message}),y=null,e=e.message}return{result:y,error:b}}e.exports=p},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},94709:(e,t,r)=>{let a=r(21339),l=r(6061),n=r(48225);e.exports=async function({queryString:e,database:t,tableSchema:r,queryValuesArray:s,local:i}){let o;try{o=await a({paradigm:"Full Access",database:t,queryString:e,queryValues:s})}catch(e){return n({component:"fullAccessDbHandler",message:e.message}),e.message}if(o&&r){let e=o;return await l({unparsedResults:e,tableSchema:r})}return o||null}},6061:(e,t,r)=>{let a=r(72835),l=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n<e.length;n++){let s=e[n],i=Object.keys(s);for(let e=0;e<i.length;e++){let r=i[e],n=t?.fields[e];if(r?.match(l))continue;let o=s[r];("number"==typeof o||o)&&n?.encrypted&&o?.match(/./)&&(s[r]=a({encryptedString:o}))}r.push(s)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},48225:(e,t,r)=>{let a=r(29021),{IncomingMessage:l}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:l,req:n}){let s=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],l=r||a||t||n.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR ===========================
Error Message: ${t}
Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=`
User Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),n?.url&&(l+=`
URL: ${n.url}`),n?.body&&(l+=`
Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(l+=`
IP: ${i}`),l+=`
Date: ${s.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",l),a.appendFileSync("./.tmp/error.log",`
${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},96064:(e,t,r)=>{r(29021);let a=r(48225),l=r(6061),n=r(21339);e.exports=async function({queryString:e,database:t,queryValuesArray:r,tableSchema:s}){let i;try{i=await n({paradigm:"Read Only",database:t,queryString:e,queryValues:r})}catch(e){return a({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!i)return null;{let e=i;return await l({unparsedResults:e,tableSchema:s})}}},72835:(e,t,r)=>{let{scryptSync:a,createDecipheriv:l}=r(55511),{Buffer:n}=r(79428);e.exports=({encryptedString:e,encryptionKey:t,encryptionSalt:r})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let s=t||process.env.DSQL_ENCRYPTION_PASSWORD,i=r||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!s?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!i?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=l("aes-192-cbc",a(s,i,o),n.alloc(16,0));try{let t=u.update(e,"hex","utf8");return t+=u.final("utf8")}catch(t){return console.log("Error in decrypting =>",t.message),e}}},33872:(e,t,r)=>{r(55591),r(81630),e.exports=function(e){return e.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim()}}};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/404-ea399aa435cfea80.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_buildManifest.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"PRCDbGdaw6I-rby7sNmCZ","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/404-ea399aa435cfea80.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_buildManifest.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"HPdh-C46rQ6wKSVcYzsHO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/500-7ba9270f0440a8d8.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_buildManifest.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"PRCDbGdaw6I-rby7sNmCZ","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/500-7ba9270f0440a8d8.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_buildManifest.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"HPdh-C46rQ6wKSVcYzsHO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>

File diff suppressed because one or more lines are too long

View File

@ -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.js","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} {"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.js","../../package.json","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2451.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4312.js","../chunks/4385.js","../chunks/45.js","../chunks/5134.js","../chunks/5212.js","../chunks/5264.js","../chunks/5421.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/7070.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/8540.js","../chunks/8613.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/9654-126cc84864d517d8.js" defer=""></script><script src="/_next/static/chunks/pages/about-4d0a17a30a0500d1.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_buildManifest.js" defer=""></script><script src="/_next/static/PRCDbGdaw6I-rby7sNmCZ/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"PRCDbGdaw6I-rby7sNmCZ","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/9654-126cc84864d517d8.js" defer=""></script><script src="/_next/static/chunks/pages/about-4d0a17a30a0500d1.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_buildManifest.js" defer=""></script><script src="/_next/static/HPdh-C46rQ6wKSVcYzsHO/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"HPdh-C46rQ6wKSVcYzsHO","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
"use strict";(()=>{var e={};e.id=6930,e.ids=[636,6930],e.modules={26364:(e,t,r)=>{r.a(e,async(e,i)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>T,unstable_getStaticProps:()=>q});var s=r(63865),a=r(9455),u=r(30671),o=r(49407),l=r(68268),n=r(98842),p=e([n]);n=(p.then?(await p)():p)[0];let m=(0,u.M)(n,"default"),d=(0,u.M)(n,"getStaticProps"),c=(0,u.M)(n,"getStaticPaths"),x=(0,u.M)(n,"getServerSideProps"),g=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),T=(0,u.M)(n,"unstable_getStaticPaths"),y=(0,u.M)(n,"unstable_getStaticParams"),I=(0,u.M)(n,"unstable_getServerProps"),f=(0,u.M)(n,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:a.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:l.default,Document:o.default},userland:n});i()}catch(e){i(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let a="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),o=t.fields;function u(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let l=[],n=[];l.push(`type ${s} = {`),n.push(`/** "use strict";(()=>{var e={};e.id=6930,e.ids=[636,6930],e.modules={26364:(e,t,r)=>{r.a(e,async(e,i)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>T,unstable_getStaticProps:()=>q});var s=r(63865),a=r(9455),u=r(30671),o=r(49407),l=r(68268),n=r(98842),p=e([n]);n=(p.then?(await p)():p)[0];let m=(0,u.M)(n,"default"),d=(0,u.M)(n,"getStaticProps"),c=(0,u.M)(n,"getStaticPaths"),x=(0,u.M)(n,"getServerSideProps"),g=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),T=(0,u.M)(n,"unstable_getStaticPaths"),y=(0,u.M)(n,"unstable_getStaticParams"),I=(0,u.M)(n,"unstable_getServerProps"),f=(0,u.M)(n,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:a.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:l.default,Document:o.default},userland:n});i()}catch(e){i(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let a="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),o=t.fields;function u(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let l=[],n=[];l.push(`type ${s} = {`),n.push(`/**
* @typedef {object} ${s}`),o.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(i.A)?"?":"";l.push(` ${e.fieldName}${t}: ${u(e.dataType||"")};`),n.push(` * @property {${u(e.dataType||"")}${t}} ${e.fieldName}`)}),l.push("}"),n.push(" */"),e?.match(/javascript/i)&&(a=n.join("\n")),e?.match(/typescript/i)&&(a=l.join("\n"))}catch(e){console.log(e.message),a=null}return a}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({collapse:e,setCollapse:t}){return(0,i.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,i.jsx)("span",{children:e?"Expand":"Collapse"}),(0,i.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,i.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:a}){return(0,i.jsx)(i.Fragment,{})}r(82015),r(1976),r(58150)},68942:(e,t,r)=>{let i=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:a}){let u=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||i||t||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== * @typedef {object} ${s}`),o.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(i.A)?"?":"";l.push(` ${e.fieldName}${t}: ${u(e.dataType||"")};`),n.push(` * @property {${u(e.dataType||"")}${t}} ${e.fieldName}`)}),l.push("}"),n.push(" */"),e?.match(/javascript/i)&&(a=n.join("\n")),e?.match(/typescript/i)&&(a=l.join("\n"))}catch(e){console.log(e.message),a=null}return a}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({collapse:e,setCollapse:t}){return(0,i.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,i.jsx)("span",{children:e?"Expand":"Collapse"}),(0,i.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,i.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:a}){return(0,i.jsx)(i.Fragment,{})}r(82015),r(1976),r(58150)},64030:(e,t,r)=>{r.d(t,{A:()=>i});let i=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},22373:(e,t,r)=>{let i=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:a}){let u=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||i||t||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR ===========================
Error Message: ${t} 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&&(s+=`
User Id: ${e?.id} User Id: ${e?.id}
@ -14,4 +14,4 @@ Date: ${u.toDateString()}
${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},64030:(e,t,r)=>{r.d(t,{A:()=>i});let i=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},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")},29825:e=>{e.exports=require("prop-types")},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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},43431: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),i=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,9216,8842],()=>r(26364));module.exports=i})(); ${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},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")},29825:e=>{e.exports=require("prop-types")},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")},81630:e=>{e.exports=require("http")},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),i=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,9216,8842],()=>r(26364));module.exports=i})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},27118:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>v,routeModule:()=>h});var i={};r.r(i),r.d(i,{default:()=>E});var a=r(89947),s=r(2706),n=r(96762),l=r(6420),u=r.n(l),o=r(77538),d=r.n(o),c=r(27825),_=r.n(c),m=r(51348),p=r.n(m),f=r(47670),g=r.n(f);async function E(e,t){if("POST"!==e.method)return t.json({user:null,msg:"Registration Failed!"});let r=await u()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let i=_().cloneDeep(e.body),a=i.inviting_user_id,s=i.invited_user_email,n=i.database_access,l=i.priviledge;try{let e=await p()("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[a,r.id,r.email]);if(e&&e[0])return t.json({success:!1});let i=await g()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:a,invited_user_id:r.id,database_access:n,user_priviledge:l,user_type:"admin",first_name:r.first_name,last_name:r.last_name,email:r.email,username:r.first_name,image:r.image,image_thumbnail:r.image_thumbnail}});await p()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[a,s]);let u=await p()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[a]);if(await p()(`DELETE FROM delegated_user_tables WHERE root_user_id='${a}' AND delegated_user_id='${r.id}'`),u&&u[0]){let e=u[0].db_tables_data.split("|");for(let t=0;t<e.length;t++){let[i,s]=e[t].split("-");await g()({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:a,database:i,table:s,priviledge:l}})}}t.json({success:!!i?.insertId})}catch(i){d()({component:"/api/acceptUserInvitation/catch-error",message:i.message,user:r,req:e}),t.json({success:!1})}}r(29021);let v=(0,n.M)(i,"default"),S=(0,n.M)(i,"config"),h=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/acceptUserInvitation",pathname:"/api/acceptUserInvitation",bundlePath:"",filename:""},userland:i})},77538:(e,t,r)=>{let i=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({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"],i=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||i||t||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== "use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},27118:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>v,routeModule:()=>y});var i={};t.r(i),t.d(i,{default:()=>g});var s=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),u=t(48225),d=t.n(u),c=t(27825),_=t.n(c),p=t(51348),m=t.n(p),f=t(47670),E=t.n(f);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=_().cloneDeep(e.body),s=i.inviting_user_id,a=i.invited_user_email,n=i.database_access,l=i.priviledge;try{let e=await m()("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[s,t.id,t.email]);if(e&&e[0])return r.json({success:!1});let i=await E()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:s,invited_user_id:t.id,database_access:n,user_priviledge:l,user_type:"admin",first_name:t.first_name,last_name:t.last_name,email:t.email,username:t.first_name,image:t.image,image_thumbnail:t.image_thumbnail}});await m()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[s,a]);let o=await m()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[s]);if(await m()(`DELETE FROM delegated_user_tables WHERE root_user_id='${s}' AND delegated_user_id='${t.id}'`),o&&o[0]){let e=o[0].db_tables_data.split("|");for(let r=0;r<e.length;r++){let[i,a]=e[r].split("-");await E()({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:t.id,root_user_id:s,database:i,table:a,priviledge:l}})}}r.json({success:!!i?.insertId})}catch(i){d()({component:"/api/acceptUserInvitation/catch-error",message:i.message,user:t,req:e}),r.json({success:!1})}}t(29021);let v=(0,n.M)(i,"default"),S=(0,n.M)(i,"config"),y=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/acceptUserInvitation",pathname:"/api/acceptUserInvitation",bundlePath:"",filename:""},userland:i})},6420:(e,r,t)=>{t(81630);let i=t(51348),s=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:u}=n();if(!e.cookies?.[o]?.match(/./))return null;let d=s({encryptedString:e.cookies[o]});if(!d)return null;let c=JSON.parse(d);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let _=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!_)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${_}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},31341:e=>{e.exports=function(){let e=process.env.DSQL_COOKIES_PREFIX||"dsql_";return{keyCookieName:e+(process.env.DSQL_COOKIES_KEY_NAME||"key"),csrfCookieName:e+(process.env.DSQL_COOKIES_CSRF_NAME||"csrf")}}},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR ===========================
Error Message: ${t} Error Message: ${r}
Component: ${r}`;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 Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name} User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),s?.url&&(a+=` User Email: ${e?.email}`),a?.url&&(s+=`
URL: ${s.url}`),s?.body&&(a+=` URL: ${a.url}`),a?.body&&(s+=`
Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(s+=`
IP: ${l}`),a+=` IP: ${l}`),s+=`
Date: ${n.toDateString()} Date: ${n.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",a),i.appendFileSync("./.tmp/error.log",` ========================================`,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",s),i.appendFileSync("./.tmp/error.log",`
${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let i=r(51348),a=r(72907),s=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let u=JSON.parse(l);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!s.existsSync(`${o}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await i(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},72907:(e,t,r)=>{let{scryptSync:i,createDecipheriv:a}=r(55511),{Buffer:s}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",i(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[4050],()=>r(27118));module.exports=i})(); ${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,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 u=s("aes-192-cbc",i(n,l,o),a.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[4050],()=>t(27118));module.exports=i})();

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,16 @@
"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},81764:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>c,routeModule:()=>p});var i={};t.r(i),t.d(i,{default:()=>_});var a=t(89947),s=t(2706),n=t(96762),l=t(6420),u=t.n(l),d=t(98968),o=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await o()({query:e.body.query,user:t});r.json({success:!0,result:i})}let c=(0,n.M)(i,"default"),m=(0,n.M)(i,"config"),p=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},98968:(e,r,t)=>{t(29021),t(28187);let i=t(77538),a=t(51348),s=t(47670);e.exports=async function({query:e,user:r}){try{let{invite:t,database_access:i,priviledge:n,email:l}=e,u=await a("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(!u||!u[0])throw Error("No Invitation Found");let d=await a("SELECT first_name,last_name,email FROM users WHERE id=?",[t]);if(d?.[0]){let e=await a("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[t,r.id,l]);if(e?.[0])console.log("User already added");else{s({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t,invited_user_id:r.id,database_access:i,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:n,image:r.image,image_thumbnail:r.image_thumbnail}});let e=await a("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(await a("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e<i.length;e++){let[a,l]=i[e].split("-");await s({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:t,database:a,table:l,priviledge:n}})}}}await a("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t,l])}}catch(e){i({component:"addAdminUserOnLogin",message:e.message,user:r})}}},77538:(e,r,t)=>{let i=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,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 a=`🚀 SERVER ERROR =========================== "use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},81764:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>c,routeModule:()=>p});var i={};t.r(i),t.d(i,{default:()=>_});var s=t(89947),a=t(2706),n=t(96762),l=t(6420),o=t.n(l),d=t(44767),u=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await u()({query:e.body.query,user:t});r.json({success:!0,result:i})}let c=(0,n.M)(i,"default"),m=(0,n.M)(i,"config"),p=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},6420:(e,r,t)=>{t(81630);let i=t(51348),s=t(72835),a=t(29021),n=t(31341);async function l(e,r,t,l){let{keyCookieName:o,csrfCookieName:d}=n();if(!e.cookies?.[o]?.match(/./))return null;let u=s({encryptedString:e.cookies[o]});if(!u)return null;let _=JSON.parse(u);if(!_.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${_.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${_.csrf_k}`))return null;if(0==_.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${_.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return _?.date&&Date.now()-_.date>6048e5?null:_}e.exports=l},44767:(e,r,t)=>{let i=t(48225),s=t(51348),a=t(47670);e.exports=async function({query:e,user:r}){try{let{invite:t,database_access:i,priviledge:n,email:l}=e,o=await s("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(!o||!o[0])throw Error("No Invitation Found");let d=await s("SELECT first_name,last_name,email FROM users WHERE id=?",[t]);if(d?.[0]){let e=await s("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[t,r.id,l]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t,invited_user_id:r.id,database_access:i,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:n,image:r.image,image_thumbnail:r.image_thumbnail}});let e=await s("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(await s("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e<i.length;e++){let[s,l]=i[e].split("-");await a({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:t,database:s,table:l,priviledge:n}})}}}await s("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t,l])}}catch(e){i({component:"addAdminUserOnLogin",message:e.message,user:r})}}},31341:e=>{e.exports=function(){let e=process.env.DSQL_COOKIES_PREFIX||"dsql_";return{keyCookieName:e+(process.env.DSQL_COOKIES_KEY_NAME||"key"),csrfCookieName:e+(process.env.DSQL_COOKIES_CSRF_NAME||"csrf")}}},48225:(e,r,t)=>{let i=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let n=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||i||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR ===========================
Error Message: ${r} 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 Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name} User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),s?.url&&(a+=` User Email: ${e?.email}`),a?.url&&(s+=`
URL: ${s.url}`),s?.body&&(a+=` URL: ${a.url}`),a?.body&&(s+=`
Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(s+=`
IP: ${l}`),a+=` IP: ${l}`),s+=`
Date: ${n.toDateString()} Date: ${n.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",a),i.appendFileSync("./.tmp/error.log",` ========================================`,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",s),i.appendFileSync("./.tmp/error.log",`
${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let i=t(51348),a=t(72907),s=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let u=JSON.parse(l);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${d}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},72907:(e,r,t)=>{let{scryptSync:i,createDecipheriv:a}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",i(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[4050],()=>t(81764));module.exports=i})(); ${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:i,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,l=t||process.env.DSQL_ENCRYPTION_SALT,o=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!l?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let d=s("aes-192-cbc",i(n,l,o),a.alloc(16,0));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,[4050],()=>t(81764));module.exports=i})();

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,16 @@
"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},87256:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>h,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>g});var a=t(89947),i=t(2706),n=t(96762),o=t(82703),l=t.n(o),u=t(77538),c=t.n(u),d=t(6420),p=t.n(d),f=t(47670),m=t.n(f);let y=t(29021);t(33873);let{execSync:S}=t(79646),_=t(47795);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:a,api_key_scope:i,target_database:n,target_table:o}=e.body;if(!s?.match(/./)||!a?.match(/./)||!i?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");y.existsSync(e)||y.mkdirSync(e,{recursive:!0});let u=_.generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),c={user_id:t.id,date_code:Date.now(),sign:u,target_database:n,target_table:o};"fullAccess"==i&&(c={...c,full_access:!0});let d=l()(JSON.stringify(c));if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()(d),f={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:a,key:p,scope:i}};if(u&&(f.data.csrf=u),!(await m()(f)).insertId)throw Error("Api Key Couldn't be added");y.writeFileSync(`${e}/${u}`,JSON.stringify(c),"utf-8"),r.json({success:!0})}catch(e){c()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,n.M)(s,"default"),x=(0,n.M)(s,"config"),A=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:i}){let n=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== "use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},87256:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>E,routeModule:()=>v});var s={};t.r(s),t.d(s,{default:()=>y});var n=t(89947),i=t(2706),a=t(96762),o=t(20503),l=t.n(o),c=t(48225),u=t.n(c),d=t(6420),p=t.n(d),f=t(47670),m=t.n(f);let _=t(29021);t(33873);let{execSync:S}=t(79646),g=t(47795);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:n,api_key_scope:i,target_database:a,target_table:o}=e.body;if(!s?.match(/./)||!n?.match(/./)||!i?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");_.existsSync(e)||_.mkdirSync(e,{recursive:!0});let c=g.generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),u={user_id:t.id,date_code:Date.now(),sign:c,target_database:a,target_table:o};"fullAccess"==i&&(u={...u,full_access:!0});let d=l()({data:JSON.stringify(u)});if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()({data:d}),f={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:n,key:p,scope:i}};if(c&&(f.data.csrf=c),!(await m()(f)).insertId)throw Error("Api Key Couldn't be added");_.writeFileSync(`${e}/${c}`,JSON.stringify(u),"utf-8"),r.json({success:!0})}catch(e){u()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,a.M)(s,"default"),h=(0,a.M)(s,"config"),v=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72835),i=t(29021),a=t(31341);async function o(e,r,t,o){let{keyCookieName:l,csrfCookieName:c}=a();if(!e.cookies?.[l]?.match(/./))return null;let u=n({encryptedString:e.cookies[l]});if(!u)return null;let d=JSON.parse(u);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(){let e=process.env.DSQL_COOKIES_PREFIX||"dsql_";return{keyCookieName:e+(process.env.DSQL_COOKIES_KEY_NAME||"key"),csrfCookieName:e+(process.env.DSQL_COOKIES_CSRF_NAME||"csrf")}}},48225:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR ===========================
Error Message: ${r} Error Message: ${r}
Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=`
User Id: ${e?.id} User Id: ${e?.id}
User Name: ${e?.first_name} ${e?.last_name} User Name: ${e?.first_name} ${e?.last_name}
User Email: ${e?.email}`),i?.url&&(a+=` User Email: ${e?.email}`),i?.url&&(n+=`
URL: ${i.url}`),i?.body&&(a+=` URL: ${i.url}`),i?.body&&(n+=`
Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(a+=` Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=`
IP: ${o}`),a+=` IP: ${o}`),n+=`
Date: ${n.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",a),s.appendFileSync("./.tmp/error.log",` ========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",`
${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),i=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(87256));module.exports=s})(); ${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},72835:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:t})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let a=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=t||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!a?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let c=n("aes-192-cbc",s(a,o,l),i.alloc(16,0));try{let r=c.update(e,"hex","utf8");return r+=c.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(87256));module.exports=s})();

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>m,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),n=s(96762),u=s(43499),l=s.n(u),o=s(6420),d=s.n(o),c=s(47670),p=s.n(c);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await d()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await p()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=l()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let m=(0,n.M)(t,"default"),_=(0,n.M)(t,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72907),i=s(29021);async function n(e,r,s,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let u=a(e.cookies.datasquirelAuthKey);if(!u)return null;let l=JSON.parse(u);if(!l.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${o}/${l.csrf_k}`))return null;if(0==l.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},72907:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=e=>{let r=a("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let s=r.update(e,"hex","utf8");return s+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(49915));module.exports=t})(); "use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>m,default:()=>_,routeModule:()=>S});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),n=s(96762),o=s(43499),l=s.n(o),u=s(6420),c=s.n(u),d=s(47670),p=s.n(d);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await c()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await p()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=l()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let _=(0,n.M)(t,"default"),m=(0,n.M)(t,"config"),S=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72835),i=s(29021),n=s(31341);async function o(e,r,s,o){let{keyCookieName:l,csrfCookieName:u}=n();if(!e.cookies?.[l]?.match(/./))return null;let c=a({encryptedString:e.cookies[l]});if(!c)return null;let d=JSON.parse(c);if(!d.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let p=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!p)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${p}/${d.csrf_k}`))return null;if(0==d.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=o},31341:e=>{e.exports=function(){let e=process.env.DSQL_COOKIES_PREFIX||"dsql_";return{keyCookieName:e+(process.env.DSQL_COOKIES_KEY_NAME||"key"),csrfCookieName:e+(process.env.DSQL_COOKIES_CSRF_NAME||"csrf")}}},72835:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=({encryptedString:e,encryptionKey:r,encryptionSalt:s})=>{if(!e?.match(/./))return console.log("Encrypted string is invalid"),e;let n=r||process.env.DSQL_ENCRYPTION_PASSWORD,o=s||process.env.DSQL_ENCRYPTION_SALT,l=process.env.DSQL_ENCRYPTION_KEY_LENGTH?Number(process.env.DSQL_ENCRYPTION_KEY_LENGTH):24;if(!n?.match(/.{8,}/))return console.log("Decrption key is invalid"),e;if(!o?.match(/.{8,}/))return console.log("Decrption salt is invalid"),e;let u=a("aes-192-cbc",t(n,o,l),i.alloc(16,0));try{let r=u.update(e,"hex","utf8");return r+=u.final("utf8")}catch(r){return console.log("Error in decrypting =>",r.message),e}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(49915));module.exports=t})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More