This commit is contained in:
Benjamin Toby 2024-11-06 07:52:57 +01:00
parent 0a32750faa
commit 319af16fff
318 changed files with 389 additions and 25460 deletions

View File

@ -1 +1 @@
k34rMMh1evxcy7pjy45cz
cC0StXKLPIdb6q0KzhiP2

View File

@ -5,8 +5,8 @@
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/k34rMMh1evxcy7pjy45cz/_buildManifest.js",
"static/k34rMMh1evxcy7pjy45cz/_ssgManifest.js"
"static/cC0StXKLPIdb6q0KzhiP2/_buildManifest.js",
"static/cC0StXKLPIdb6q0KzhiP2/_ssgManifest.js"
],
"rootMainFiles": [],
"pages": {
@ -34,7 +34,7 @@
"static/chunks/webpack-309fbebe2073f18c.js",
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/css/6e07698ca37913b7.css",
"static/css/38c6a6484b610a50.css",
"static/chunks/pages/_app-881c4f419bb13dab.js"
],
"/_error": [
@ -55,7 +55,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/3181-e628e642754b0f35.js",
"static/chunks/3181-1097b37499196dce.js",
"static/chunks/5667-9e7b94f8ce529764.js",
"static/chunks/pages/admin-81e2733c0d783481.js"
],
@ -64,7 +64,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/3181-e628e642754b0f35.js",
"static/chunks/3181-1097b37499196dce.js",
"static/chunks/5667-9e7b94f8ce529764.js",
"static/chunks/pages/admin/[user_id]-e36cc5d13c2aa929.js"
],
@ -87,7 +87,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/3181-e628e642754b0f35.js",
"static/chunks/3181-1097b37499196dce.js",
"static/chunks/pages/admin/[user_id]/databases-2ede91ae9bfe108a.js"
],
"/admin/[user_id]/databases/[single]": [
@ -95,16 +95,16 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/pages/admin/[user_id]/databases/[single]-35266a148b439139.js"
"static/chunks/pages/admin/[user_id]/databases/[single]-91b6e8d432bef987.js"
],
"/admin/[user_id]/databases/[single]/connect": [
"static/chunks/webpack-309fbebe2073f18c.js",
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/connect-6fe32fdcf255139c.js"
],
@ -114,7 +114,7 @@
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/29107295-4a69275373f23f88.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/9967-c027b915261dae19.js",
"static/chunks/8887-5917115e54cd417b.js",
@ -128,7 +128,7 @@
"static/chunks/4185-b4c9a571bd713be6.js",
"static/chunks/8473-1a1faf3d4d34beef.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9967-c027b915261dae19.js",
@ -142,7 +142,7 @@
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/3795-b7a314b891092ea4.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/shell-cb2910aa3bd12a22.js"
],
"/admin/[user_id]/databases/[single]/tables": [
@ -150,7 +150,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables-512e452212994e35.js"
],
@ -165,7 +165,7 @@
"static/chunks/1502-965711da5f99a5c8.js",
"static/chunks/8446-a36a685092b53a06.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9967-c027b915261dae19.js",
@ -182,7 +182,7 @@
"static/chunks/94726e6d-f5320de901b4c44f.js",
"static/chunks/9572-f67b1194a0e6ae72.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9967-c027b915261dae19.js",
@ -198,7 +198,7 @@
"static/chunks/1502-965711da5f99a5c8.js",
"static/chunks/8446-a36a685092b53a06.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9788-84477f8e20625988.js",
@ -214,7 +214,7 @@
"static/chunks/1502-965711da5f99a5c8.js",
"static/chunks/8446-a36a685092b53a06.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9788-84477f8e20625988.js",
@ -228,7 +228,7 @@
"static/chunks/1179-5a248a7a76a74928.js",
"static/chunks/1502-965711da5f99a5c8.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9788-84477f8e20625988.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-0ecd226005afec57.js"
@ -241,7 +241,7 @@
"static/chunks/94726e6d-f5320de901b4c44f.js",
"static/chunks/9572-f67b1194a0e6ae72.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/9967-c027b915261dae19.js",
@ -256,7 +256,7 @@
"static/chunks/94726e6d-f5320de901b4c44f.js",
"static/chunks/9572-f67b1194a0e6ae72.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/9967-c027b915261dae19.js",
"static/chunks/4893-e30c16360c86c67d.js",
@ -267,7 +267,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/8264-5901ddfeb3cb03ce.js",
"static/chunks/5949-b1c68b62cd5dbfee.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/users-c33e649f1474fb77.js"
@ -277,7 +277,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/2870-4390329ae1d5a1f2.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f7cdffc0b0c094c6.js"
],
@ -286,7 +286,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-21db218c89054e75.js"
],
"/admin/[user_id]/databases/[single]/users/add-social-logins": [
@ -294,7 +294,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/2870-4390329ae1d5a1f2.js",
"static/chunks/9719-14cc8b76a1deed3c.js",
@ -305,7 +305,7 @@
"static/chunks/framework-4ed89e9640adfb9e.js",
"static/chunks/main-fd9fe2eccf11c307.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/2870-4390329ae1d5a1f2.js",
"static/chunks/9719-14cc8b76a1deed3c.js",
@ -345,7 +345,7 @@
"static/chunks/4185-b4c9a571bd713be6.js",
"static/chunks/8473-1a1faf3d4d34beef.js",
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/194-da10d06ed5c55a8f.js",
"static/chunks/194-6fbe0e1d9cd931e6.js",
"static/chunks/7200-4c384098300f07db.js",
"static/chunks/pages/admin/[user_id]/schema-d264203c84a34e72.js"
],
@ -357,7 +357,7 @@
"static/chunks/9365-101d5c9d637cef9a.js",
"static/chunks/7901-841b99c96481dd31.js",
"static/chunks/9967-c027b915261dae19.js",
"static/chunks/3181-e628e642754b0f35.js",
"static/chunks/3181-1097b37499196dce.js",
"static/chunks/8374-f28680e628b18bd5.js",
"static/chunks/5667-9e7b94f8ce529764.js",
"static/chunks/5114-a70f18877cc7f8bc.js",

View File

@ -1 +1 @@
{"version":3,"routes":{"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/quick-start.json"},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/gui-reference.json"},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/api-reference.json"},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/getting-started.json"},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/database-reference.json"},"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/gui-reference/getting-started.json"},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/gui-reference/upload-media.json"},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/api-reference/get.json"},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/api-reference/post.json"},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/database-reference/data-types.json"},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/database-reference/querying-data.json"}},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/k34rMMh1evxcy7pjy45cz/docs/([^/]+?)\\.json$"},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/k34rMMh1evxcy7pjy45cz/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/k34rMMh1evxcy7pjy45cz/docs/([^/]+?)/([^/]+?)\\.json$"}},"notFoundRoutes":[],"preview":{"previewModeId":"bed34721b56ce00bacdc57cba44727ec","previewModeSigningKey":"ddcc753e41de6512d27ccdf91822e8f6733ea854edf5145996f8f96ee23146cb","previewModeEncryptionKey":"f7cfb6c5d9fb0a6921d41dcb27966f2ffc003205edab88b66a5f70d024c42a81"}}
{"version":3,"routes":{"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/gui-reference/getting-started.json"},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/gui-reference/upload-media.json"},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/api-reference/get.json"},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/api-reference/post.json"},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/database-reference/data-types.json"},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/database-reference/querying-data.json"},"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/quick-start.json"},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/gui-reference.json"},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/api-reference.json"},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/getting-started.json"},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/database-reference.json"}},"dynamicRoutes":{"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/([^/]+?)/([^/]+?)\\.json$"},"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/cC0StXKLPIdb6q0KzhiP2/docs/([^/]+?)\\.json$"}},"notFoundRoutes":[],"preview":{"previewModeId":"562b28bde30ee1a2986b8cab1c9cccbf","previewModeSigningKey":"57a1025e43f8669592b19672b5493d648baf7a36fbc4838fa0bbd52a4e83e273","previewModeEncryptionKey":"c57bc85212ba65a9f2efc4c0b2eb5593ba00da9fca1624e283ca3892d83d154c"}}

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ exports.id = 3314;
exports.ids = [3314];
exports.modules = {
/***/ 2527:
/***/ 3314:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {

View File

@ -237,7 +237,14 @@ exports.modules = {
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CopySlug__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
slugText: database.db_slug,
title: `Copy Database Slug`
title: `Db Slug`
}),
true && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
className: "-mt-1 gap-1",
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CopySlug__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
slugText: database.db_full_name,
title: "Full DB Name"
})
}),
!isDelegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {
children: [

View File

@ -1,46 +0,0 @@
"use strict";
exports.id = 5304;
exports.ids = [5304];
exports.modules = {
/***/ 5304:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
const { scryptSync , createDecipheriv } = __webpack_require__(6113);
const { Buffer } = __webpack_require__(4300);
// const serverError = require("./serverError");
/**
* @param {string} encryptedString
* @returns {string | null}
*/ const decrypt = (encryptedString)=>{
// /** @type {import("crypto").CipherCCMTypes} */
const algorithm = "aes-192-cbc";
const password = process.env.DSQL_ENCRYPTION_PASSWORD || "";
const salt = process.env.DSQL_ENCRYPTION_SALT || "";
// /** @type {import("crypto").CipherKey} */
let key = scryptSync(password, salt, 24);
let iv = Buffer.alloc(16, 0);
// @ts-ignore
const decipher = createDecipheriv(algorithm, key, iv);
/** ********************* Decrypt String */ try {
let decrypted = decipher.update(encryptedString, "hex", "utf8");
decrypted += decipher.final("utf8");
return decrypted;
} catch (error) {
// serverError({
// component: "decrypt",
// message: error.message,
// user: {},
// });
return null;
}
};
module.exports = decrypt;
/***/ })
};
;

View File

@ -1,46 +0,0 @@
"use strict";
exports.id = 5425;
exports.ids = [5425];
exports.modules = {
/***/ 5425:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
const { scryptSync , createDecipheriv } = __webpack_require__(6113);
const { Buffer } = __webpack_require__(4300);
// const serverError = require("./serverError");
/**
* @param {string} encryptedString
* @returns {string | null}
*/ const decrypt = (encryptedString)=>{
// /** @type {import("crypto").CipherCCMTypes} */
const algorithm = "aes-192-cbc";
const password = process.env.DSQL_ENCRYPTION_PASSWORD || "";
const salt = process.env.DSQL_ENCRYPTION_SALT || "";
// /** @type {import("crypto").CipherKey} */
let key = scryptSync(password, salt, 24);
let iv = Buffer.alloc(16, 0);
// @ts-ignore
const decipher = createDecipheriv(algorithm, key, iv);
/** ********************* Decrypt String */ try {
let decrypted = decipher.update(encryptedString, "hex", "utf8");
decrypted += decipher.final("utf8");
return decrypted;
} catch (error) {
// serverError({
// component: "decrypt",
// message: error.message,
// user: {},
// });
return null;
}
};
module.exports = decrypt;
/***/ })
};
;

View File

@ -1,142 +0,0 @@
"use strict";
exports.id = 6251;
exports.ids = [6251];
exports.modules = {
/***/ 6251:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (/* binding */ SuErrorLogsContent)
/* harmony export */ });
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6729);
/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264);
// @ts-check
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* ==============================================================================
* Main Component { Functional }
* ==============================================================================
* @param {Object} props - Server props
*/ function SuErrorLogsContent(props) {
/**
* Get Contexts
*
* @abstract { React.useContext }
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Javascript Variables
*
* @abstract Non hook variables and functions
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* React Hooks
*
* @abstract { useState, useEffect, useRef, etc ... }
*/ /** @type {[ errorLog: string | null, setErrorLog: React.Dispatch<React.SetStateAction<string | null>> ]} */ // @ts-ignore
const [errorLog, setErrorLog] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null);
const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false);
const [refresh, setRefresh] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0);
function fetchErrorLogs() {
(0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/grabErrorLogs").then((res)=>{
if (typeof res.log === "string" && !res.log?.match(/./)) {
setErrorLog("No Logs Yet");
return;
} else {
setErrorLog("");
}
setErrorLog(res.log.replace(/\n|\r|\n\r|\\n/gm, "<br/>"));
});
}
react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{
fetchErrorLogs();
if (refresh === 0) {
setInterval(()=>{
fetchErrorLogs();
}, 10000);
}
}, [
refresh
]);
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Function Return
*
* @abstract Main Function Return
*/ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {
children: [
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
className: "w-full justify-between",
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", {
className: "text-xl m-0",
children: "Error Logs"
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", {
onClick: (e)=>{
if (window.confirm("Clear Error Logs?")) {
setLoading(true);
(0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/clearErrorLogs", "post").then((res)=>{
console.log(res);
setRefresh((prev)=>prev + 1);
});
setTimeout(()=>{
setLoading(false);
}, 2000);
}
},
className: "outlined gray relative",
children: [
loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
width: "20px"
}),
"Clear Error Log"
]
})
})
]
}),
/*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", {
className: "paper",
children: [
errorLog && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", {
dangerouslySetInnerHTML: {
__html: errorLog ? errorLog : "No Log"
}
}),
!errorLog && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
position: "relative",
width: "25px"
})
]
})
]
});
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */
/***/ })
};
;

View File

@ -1927,7 +1927,7 @@ var AssignmentTwoTone_default = /*#__PURE__*/__webpack_require__.n(AssignmentTwo
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3314);
/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8345);
// @ts-check
/**
* ==============================================================================
@ -2125,7 +2125,7 @@ var AssignmentTwoTone_default = /*#__PURE__*/__webpack_require__.n(AssignmentTwo
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3314);
/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8345);
// @ts-check
/**
* ==============================================================================

View File

@ -1,73 +0,0 @@
"use strict";
exports.id = 7192;
exports.ids = [7192];
exports.modules = {
/***/ 7192:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
const generator = __webpack_require__(3785);
const DB_HANDLER = __webpack_require__(2224);
const NO_DB_HANDLER = __webpack_require__(7487);
const encrypt = __webpack_require__(7547);
const addDbEntry = __webpack_require__(5338);
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* Add Mariadb User
* ==============================================================================
*
* @description this function adds a Mariadb user to the database server
*
* @param {object} params - parameters object *
* @param {number | string} params.userId - invited user object
*
* @returns {Promise<any>} new user auth object payload
*/ module.exports = async function addMariadbUser({ userId }) {
try {
const defaultMariadbUserHost = process.env.DSQL_DB_HOST || "127.0.0.1";
const username = `dsql_user_${userId}`;
const password = generator.generate({
length: 16,
numbers: true,
symbols: true,
uppercase: true,
exclude: "*#.'`\""
});
const encryptedPassword = encrypt(password);
await NO_DB_HANDLER(`CREATE USER IF NOT EXISTS '${username}'@'127.0.0.1' IDENTIFIED BY '${password}' REQUIRE SSL`);
const updateUser = await DB_HANDLER(`UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?`, [
username,
encryptedPassword,
userId
]);
const addMariadbUser1 = await addDbEntry({
tableName: "mariadb_users",
data: {
user_id: userId,
username,
host: defaultMariadbUserHost,
password: encryptedPassword,
primary: "1",
grants: '[{"database":"*","table":"*","privileges":["ALL"]}]'
},
dbContext: "Master"
});
console.log("addMariadbUser =>", addMariadbUser1);
console.log(`User ${userId} SQL credentials successfully added.`);
} catch (/** @type {any} */ error) {
console.log(`Error in adding SQL user in 'addMariadbUser' function =>`, error.message);
}
}; ////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
/***/ })
};
;

View File

@ -30,15 +30,20 @@ exports.modules = {
* slugText: string,
* smaller?: boolean,
* outlined?: boolean,
* full?:boolean
* }} props - React component props including { children }
*/ function DatabaseSlugCopy({ slugText , smaller , outlined }) {
*/ function DatabaseSlugCopy({ slugText , smaller , outlined , full , }) {
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
className: "button " + (outlined ? " outlined gray" : "light-gray") + (smaller ? " small-text" : ""),
className: "button break-words text-wrap cancel-link " + (outlined ? " outlined gray" : "light-gray") + (smaller ? " small-text" : ""),
onClick: (e)=>{
navigator.clipboard.writeText(slugText).then(()=>{
alert(`Database Slug "${slugText}" Copied to Clipboard. Use this as the database name when querying data`);
alert(`${full ? "Database Full name" : "Database Slug"} "${slugText}" Copied to Clipboard. Use this as the database name when querying data`);
});
},
style: {
wordWrap: "break-word",
wordBreak: "break-all"
},
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2___default()), {
color: "action",

View File

@ -1,350 +0,0 @@
"use strict";
exports.id = 7839;
exports.ids = [7839];
exports.modules = {
/***/ 7839:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
const fs = __webpack_require__(7147);
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
const addAdminUserOnLogin = __webpack_require__(613);
const handleNodemailer = __webpack_require__(6926);
const { ServerResponse } = __webpack_require__(3685);
const path = __webpack_require__(1017);
const addMariadbUser = __webpack_require__(4294);
const varDatabaseDbHandler = __webpack_require__(1311);
const encrypt = __webpack_require__(7547);
const addDbEntry = __webpack_require__(5338);
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
/**
* @typedef {object} FunctionReturn
* @property {boolean} success - Did the operation complete successfully or not?
* @property {{
* id: number,
* first_name: string,
* last_name: string,
* }|null} user - User payload object: or "null"
*/ /**
* Handle Social User Auth on Datasquirel Database
* ==============================================================================
*
* @description This function handles all social login logic after the social user
* has been authenticated and userpayload is present. The payload MUST contain the
* specified fields because this funciton will create a new user if the authenticated
* user does not exist.
*
* @param {{
* database?: string,
* social_id: string|number,
* email: string,
* social_platform: string,
* payload: any,
* res?: ServerResponse,
* invitation?: any,
* supEmail?: string,
* additionalFields?: object,
* }} params - function parameters inside an object
*
* @returns {Promise<any>} - Response object
*/ module.exports = async function handleSocialDb({ database , social_id , email , social_platform , payload , res , invitation , supEmail , additionalFields , }) {
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
try {
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
let existingSocialIdUser = await varDatabaseDbHandler({
database: database ? database : "datasquirel",
queryString: `SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? `,
queryValuesArray: [
social_id.toString(),
social_platform
]
});
if (existingSocialIdUser && existingSocialIdUser[0]) {
return await loginSocialUser({
user: existingSocialIdUser[0],
social_platform,
res,
invitation,
database,
additionalFields
});
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
const finalEmail = email ? email : supEmail ? supEmail : null;
if (!finalEmail) {
return {
success: false,
user: null,
msg: "No Email Present",
social_id,
social_platform,
payload
};
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
let existingEmailOnly = await varDatabaseDbHandler({
database: database ? database : "datasquirel",
queryString: `SELECT * FROM users WHERE email='${finalEmail}'`
});
if (existingEmailOnly && existingEmailOnly[0]) {
return {
user: null,
msg: "This Email is already taken",
alert: true
};
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
const foundUser = await varDatabaseDbHandler({
database: database ? database : "datasquirel",
queryString: `SELECT * FROM users WHERE email='${finalEmail}' AND social_login='1' AND social_platform='${social_platform}' AND social_id='${social_id}'`
});
if (foundUser && foundUser[0]) {
return await loginSocialUser({
user: payload,
social_platform,
res,
invitation,
database,
additionalFields
});
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
const socialHashedPassword = encrypt(social_id.toString());
/** @type {any} */ const data = {
social_login: "1",
verification_status: supEmail ? "0" : "1",
password: socialHashedPassword
};
Object.keys(payload).forEach((key)=>{
data[key] = payload[key];
});
/** @type {any} */ const newUser = await addDbEntry({
dbContext: database ? "Dsql User" : undefined,
paradigm: database ? "Full Access" : undefined,
dbFullName: database ? database : "datasquirel",
tableName: "users",
duplicateColumnName: "email",
duplicateColumnValue: finalEmail,
data: {
...data,
email: finalEmail
}
});
if (newUser?.insertId) {
if (!database) {
/**
* Add a Mariadb User for this User
*/ await addMariadbUser({
userId: newUser.insertId
});
}
const newUserQueried = await varDatabaseDbHandler({
database: database ? database : "datasquirel",
queryString: `SELECT * FROM users WHERE id='${newUser.insertId}'`
});
if (!newUserQueried || !newUserQueried[0]) return {
user: null,
msg: "User Insertion Failed!"
};
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
if (supEmail && database?.match(/^datasquirel$/)) {
/**
* Send email Verification
*
* @description Send verification email to newly created agent
*/ let generatedToken = encrypt(JSON.stringify({
id: newUser.insertId,
email: supEmail,
dateCode: Date.now()
}));
handleNodemailer({
to: supEmail,
subject: "Verify Email Address",
text: "Please click the link to verify your email address",
html: fs.readFileSync("./email/send-email-verification-link.html", "utf8").replace(/{{host}}/, process.env.DSQL_HOST || "").replace(/{{token}}/, generatedToken || "")
}).then((mail)=>{});
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR;
if (!STATIC_ROOT) {
console.log("Static File ENV not Found!");
return null;
}
/**
* Create new user folder and file
*
* @description Create new user folder and file
*/ if (!database || database?.match(/^datasquirel$/)) {
let newUserSchemaFolderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${newUser.insertId}`;
let newUserMediaFolderPath = path.join(STATIC_ROOT, `images/user-images/user-${newUser.insertId}`);
fs.mkdirSync(newUserSchemaFolderPath);
fs.mkdirSync(newUserMediaFolderPath);
fs.writeFileSync(`${newUserSchemaFolderPath}/main.json`, JSON.stringify([]), "utf8");
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
return await loginSocialUser({
user: newUserQueried[0],
social_platform,
res,
invitation,
database,
additionalFields
});
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
} else {
console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>", newUser);
return {
success: false,
user: null,
msg: "Social User Failed to insert in 'handleSocialDb.js' backend function => ",
newUser: newUser
};
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
} catch (/** @type {any} */ error) {
console.log("ERROR in 'handleSocialDb.js' backend function =>", error.message);
return {
success: false,
user: null,
error: error.message
};
// serverError({
// component: "/functions/backend/social-login/handleSocialDb.js - main-catch-error",
// message: error.message,
// user: { first_name, last_name },
// });
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
return {
user: null,
msg: "User Login Failed!"
};
};
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
/**
* Function to login social user
* ==============================================================================
* @description This function logs in the user after 'handleSocialDb' function finishes
* the user creation or confirmation process
*
* @async
*
* @param {object} params - function parameters inside an object
* @param {{
* first_name: string,
* last_name: string,
* email: string,
* social_id: string|number,
* }} params.user - user object
* @param {string} params.social_platform - Whether its "google" or "facebook" or "github"
* @param {ServerResponse} [params.res] - Https response object
* @param {any} [params.invitation] - A query object if user was invited
* @param {string} [params.database] - Target Database
* @param {object} [params.additionalFields] - Additional fields to be added to the user payload
*
* @returns {Promise<any>}
*/ async function loginSocialUser({ user , social_platform , res , invitation , database , additionalFields , }) {
const foundUser = await varDatabaseDbHandler({
database: database ? database : "datasquirel",
queryString: `SELECT * FROM users WHERE email='${user.email}' AND social_id='${user.social_id}' AND social_platform='${social_platform}'`
});
if (!foundUser?.[0]) return {
success: false,
user: null
};
let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2);
/** @type {any} */ let userPayload = {
id: foundUser[0].id,
type: foundUser[0].type || "",
stripe_id: foundUser[0].stripe_id || "",
first_name: foundUser[0].first_name,
last_name: foundUser[0].last_name,
username: foundUser[0].username,
email: foundUser[0].email,
social_id: foundUser[0].social_id,
image: foundUser[0].image,
image_thumbnail: foundUser[0].image_thumbnail,
verification_status: foundUser[0].verification_status,
social_login: foundUser[0].social_login,
social_platform: foundUser[0].social_platform,
csrf_k: csrfKey,
logged_in_status: true,
date: Date.now()
};
if (additionalFields && Object.keys(additionalFields).length > 0) {
Object.keys(additionalFields).forEach((key)=>{
userPayload[key] = foundUser[0][key];
});
}
let encryptedPayload = encrypt(JSON.stringify(userPayload));
if (res?.setHeader) {
res.setHeader("Set-Cookie", [
`datasquirelAuthKey=${encryptedPayload};samesite=strict;path=/;HttpOnly=true;Secure=true`,
`csrf=${csrfKey};samesite=strict;path=/;HttpOnly=true`,
]);
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
if (invitation && (!database || database?.match(/^datasquirel$/))) {
addAdminUserOnLogin({
query: invitation,
user: userPayload
});
}
////////////////////////////////////////////////
////////////////////////////////////////////////
////////////////////////////////////////////////
return {
success: true,
user: userPayload
};
}
/***/ })
};
;

View File

@ -347,7 +347,7 @@ var TableViewTwoTone_default = /*#__PURE__*/__webpack_require__.n(TableViewTwoTo
// EXTERNAL MODULE: ./functions/frontend/fetchApi.js
var fetchApi = __webpack_require__(6729);
// EXTERNAL MODULE: ./functions/frontend/inputFileToBase64.js
var inputFileToBase64 = __webpack_require__(3314);
var inputFileToBase64 = __webpack_require__(8345);
// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx
var LoadingBlock = __webpack_require__(5264);
;// CONCATENATED MODULE: ./components/admin/databases/ImportDbComponent.jsx

View File

@ -3,7 +3,7 @@ exports.id = 8345;
exports.ids = [8345];
exports.modules = {
/***/ 3314:
/***/ 8345:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {

View File

@ -1,284 +0,0 @@
"use strict";
exports.id = 8499;
exports.ids = [8499];
exports.modules = {
/***/ 8499:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
/** # MODULE TRACE
======================================================================
* Detected 3 files that call this module. The files are listed below:
======================================================================
* `import` Statement Found in [get.js] => file:///d:\GitHub\datasquirel\pages\api\query\get.js
* `import` Statement Found in [post.js] => file:///d:\GitHub\datasquirel\pages\api\query\post.js
* `import` Statement Found in [add-user.js] => file:///d:\GitHub\datasquirel\pages\api\user\add-user.js
==== MODULE TRACE END ==== */ // @ts-check
const fs = __webpack_require__(7147);
const fullAccessDbHandler = __webpack_require__(8539);
const varReadOnlyDatabaseDbHandler = __webpack_require__(3118);
const serverError = __webpack_require__(3017);
const addDbEntry = __webpack_require__(5338);
const updateDbEntry = __webpack_require__(5886);
const deleteDbEntry = __webpack_require__(6147);
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* Run DSQL users queries
* ==============================================================================
* @param {object} params - An object containing the function parameters.
* @param {string} params.dbFullName - Database full name. Eg. "datasquire_user_2_test"
* @param {string|any} params.query - Query string or object
* @param {boolean} [params.readOnly] - Is this operation read only?
* @param {import("../../../types").DSQL_DatabaseSchemaType} [params.dbSchema] - Database schema
* @param {string[]} [params.queryValuesArray] - An optional array of query values if "?" is used in the query string
* @param {string} [params.tableName] - Table Name
*
* @return {Promise<any>}
*/ async function runQuery({ dbFullName , query , readOnly , dbSchema , queryValuesArray , tableName , }) {
/**
* Declare variables
*
* @description Declare "results" variable
*/ /** @type {any} */ let result;
/** @type {any} */ let error;
/** @type {import("../../../types").DSQL_TableSchemaType | undefined} */ let tableSchema;
if (dbSchema) {
try {
const table = tableName ? tableName : typeof query == "string" ? null : query ? query?.table : null;
if (!table) throw new Error("No table name provided");
tableSchema = dbSchema.tables.filter((tb)=>tb?.tableName === table)[0];
} catch (_err) {
// console.log("ERROR getting tableSchema: ", _err.message);
}
}
/**
* Declare variables
*
* @description Declare "results" variable
*/ try {
if (typeof query === "string") {
if (readOnly) {
result = await varReadOnlyDatabaseDbHandler({
queryString: query,
queryValuesArray,
database: dbFullName,
tableSchema
});
} else {
result = await fullAccessDbHandler({
queryString: query,
queryValuesArray,
database: dbFullName,
tableSchema
});
}
} else if (typeof query === "object") {
/**
* Declare variables
*
* @description Declare "results" variable
*/ const { data , action , table: table1 , identifierColumnName , identifierValue , update , duplicateColumnName , duplicateColumnValue , } = query;
switch(action.toLowerCase()){
case "insert":
result = await addDbEntry({
dbContext: "Dsql User",
paradigm: "Full Access",
dbFullName: dbFullName,
tableName: table1,
data: data,
update,
duplicateColumnName,
duplicateColumnValue,
tableSchema
});
if (!result?.insertId) {
error = new Error("Couldn't insert data");
}
break;
case "update":
result = await updateDbEntry({
dbContext: "Dsql User",
paradigm: "Full Access",
dbFullName: dbFullName,
tableName: table1,
data: data,
identifierColumnName,
identifierValue,
tableSchema
});
break;
case "delete":
result = await deleteDbEntry({
dbContext: "Dsql User",
paradigm: "Full Access",
dbFullName: dbFullName,
tableName: table1,
identifierColumnName,
identifierValue,
tableSchema
});
break;
default:
result = null;
break;
}
}
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
} catch (/** @type {any} */ error1) {
serverError({
component: "functions/backend/runQuery",
message: error1.message
});
result = null;
error1 = error1.message;
}
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
return {
result,
error
};
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
}
module.exports = runQuery;
/***/ }),
/***/ 8539:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
const DSQL_USER_DB_HANDLER = __webpack_require__(3403);
const parseDbResults = __webpack_require__(8326);
const serverError = __webpack_require__(3017);
/**
*
* @param {object} param0
* @param {string} param0.queryString
* @param {string} param0.database
* @param {import("../../types").DSQL_TableSchemaType | null} [param0.tableSchema]
* @param {string[]} [param0.queryValuesArray]
* @returns
*/ module.exports = async function fullAccessDbHandler({ queryString , database , tableSchema , queryValuesArray , }) {
/**
* Declare variables
*
* @description Declare "results" variable
*/ let results;
/**
* Fetch from db
*
* @description Fetch data from db if no cache
*/ try {
/** ********************* Run Query */ results = await DSQL_USER_DB_HANDLER({
paradigm: "Full Access",
database,
queryString,
queryValues: queryValuesArray
});
////////////////////////////////////////
} catch (/** @type {any} */ error) {
////////////////////////////////////////
serverError({
component: "fullAccessDbHandler",
message: error.message
});
/**
* Return error
*/ return error.message;
}
/**
* Return results
*
* @description Return results add to cache if "req" param is passed
*/ if (results && tableSchema) {
const unparsedResults = results;
const parsedResults = await parseDbResults({
unparsedResults: unparsedResults,
tableSchema: tableSchema
});
return parsedResults;
} else if (results) {
return results;
} else {
return null;
}
};
/***/ }),
/***/ 3118:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
const fs = __webpack_require__(7147);
const serverError = __webpack_require__(3017);
const parseDbResults = __webpack_require__(8326);
const DSQL_USER_DB_HANDLER = __webpack_require__(3403);
/**
*
* @param {object} param0
* @param {string} param0.queryString
* @param {string} param0.database
* @param {string[]} [param0.queryValuesArray]
* @param {import("../../types").DSQL_TableSchemaType} [param0.tableSchema]
* @returns
*/ module.exports = async function varReadOnlyDatabaseDbHandler({ queryString , database , queryValuesArray , tableSchema , }) {
/**
* Declare variables
*
* @description Declare "results" variable
*/ let results;
/**
* Fetch from db
*
* @description Fetch data from db if no cache
*/ try {
results = await DSQL_USER_DB_HANDLER({
paradigm: "Read Only",
database,
queryString,
queryValues: queryValuesArray
});
////////////////////////////////////////
} catch (/** @type {any} */ error) {
////////////////////////////////////////
serverError({
component: "varReadOnlyDatabaseDbHandler",
message: error.message,
noMail: true
});
/**
* Return error
*/ return error.message;
}
/**
* Return results
*
* @description Return results add to cache if "req" param is passed
*/ if (results) {
const unparsedResults = results;
const parsedResults = await parseDbResults({
unparsedResults: unparsedResults,
tableSchema: tableSchema
});
return parsedResults;
} else {
return null;
}
};
/***/ })
};
;

View File

@ -20,7 +20,7 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx
var LoadingBlock = __webpack_require__(5264);
// EXTERNAL MODULE: ./functions/frontend/inputFileToBase64.js
var inputFileToBase64 = __webpack_require__(3314);
var inputFileToBase64 = __webpack_require__(8345);
// EXTERNAL MODULE: ./functions/frontend/fetchApi.js
var fetchApi = __webpack_require__(6729);
;// CONCATENATED MODULE: ./components/admin/databases/functions/import-export-handler.js

View File

@ -76,8 +76,9 @@ exports.modules = {
href: url,
className: "card",
onClick: (e)=>{
// @ts-ignore
if (e.target.closest(".db-list-item-actions-block")) {
if (// @ts-ignore
e.target.closest(".db-list-item-actions-block") || // @ts-ignore
e.target.closest(".cancel-link")) {
e.preventDefault();
}
if (delegated) {
@ -133,6 +134,14 @@ exports.modules = {
slugText: database.db_slug,
smaller: true
})
}),
true && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", {
className: "-mt-1 gap-1",
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_DatabaseSlugCopy__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
slugText: database.db_full_name,
smaller: true,
full: true
})
}),
!delegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
className: "text-sm text-slate-400",

View File

@ -1,55 +0,0 @@
"use strict";
exports.id = 9395;
exports.ids = [9395];
exports.modules = {
/***/ 9395:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
// @ts-check
const fs = __webpack_require__(7147);
const path = __webpack_require__(1017);
const mysql = __webpack_require__(2261);
const SSL_DIR = "/app/ssl";
const MASTER = mysql({
config: {
host: process.env.DSQL_DB_HOST,
user: process.env.DSQL_DB_USERNAME,
password: process.env.DSQL_DB_PASSWORD,
database: process.env.DSQL_DB_NAME,
port: process.env.DB_PORT ? Number(process.env.DB_PORT) : undefined,
charset: "utf8mb4",
ssl: {
ca: fs.readFileSync(`${SSL_DIR}/ca-cert.pem`)
}
}
});
/**
* DSQL user read-only DB handler
* @param {object} params
* @param {string} params.paradigm
* @param {string} params.database
* @param {string} params.queryString
* @param {string[]} [params.queryValues]
*/ // @ts-ignore
async function DB_HANDLER(...args) {
try {
const results = await MASTER.query(...args);
/** ********************* Clean up */ await MASTER.end();
return JSON.parse(JSON.stringify(results));
} catch (/** @type {any} */ error) {
console.log("DB Error =>", error);
return {
success: false,
error: error.message
};
}
}
module.exports = DB_HANDLER;
/***/ })
};
;

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1,192 +1,192 @@
{
"/_app": "pages/_app.js",
"/_document": "pages/_document.js",
"/_error": "pages/_error.js",
"/404": "pages/404.html",
"/_document": "pages/_document.js",
"/500": "pages/500.html",
"/api/addAdminUserUser": "pages/api/addAdminUserUser.js",
"/_app": "pages/_app.js",
"/api/acceptUserInvitation": "pages/api/acceptUserInvitation.js",
"/api/addApiKey": "pages/api/addApiKey.js",
"/api/addDbUser": "pages/api/addDbUser.js",
"/api/addSocialLogin": "pages/api/addSocialLogin.js",
"/api/addAdminUserUser": "pages/api/addAdminUserUser.js",
"/api/addApiKey": "pages/api/addApiKey.js",
"/api/addNewMediaFolder": "pages/api/addNewMediaFolder.js",
"/api/addSocialLogin": "pages/api/addSocialLogin.js",
"/api/addTableEntry": "pages/api/addTableEntry.js",
"/api/addUserTable": "pages/api/addUserTable.js",
"/api/admin/clearErrorLogs": "pages/api/admin/clearErrorLogs.js",
"/api/admin/createNewBackup": "pages/api/admin/createNewBackup.js",
"/api/admin/docs/[action]": "pages/api/admin/docs/[action].js",
"/api/admin/getTablesForUserDatabase": "pages/api/admin/getTablesForUserDatabase.js",
"/api/admin/clientError": "pages/api/admin/clientError.js",
"/api/admin/getUserData": "pages/api/admin/getUserData.js",
"/api/admin/getUserBackups": "pages/api/admin/getUserBackups.js",
"/api/admin/grabBackups": "pages/api/admin/grabBackups.js",
"/api/admin/grabFile": "pages/api/admin/grabFile.js",
"/api/admin/grabErrorLogs": "pages/api/admin/grabErrorLogs.js",
"/api/admin/loginSuUser": "pages/api/admin/loginSuUser.js",
"/api/admin/runUserDbQuery": "pages/api/admin/runUserDbQuery.js",
"/api/changeDbUserPassword": "pages/api/changeDbUserPassword.js",
"/api/admin/updateEnv": "pages/api/admin/updateEnv.js",
"/api/addUserUser": "pages/api/addUserUser.js",
"/api/admin/addUserBackup": "pages/api/admin/addUserBackup.js",
"/api/checkDuplicateData": "pages/api/checkDuplicateData.js",
"/api/checkExistingFolder": "pages/api/checkExistingFolder.js",
"/api/connect/handshake": "pages/api/connect/handshake.js",
"/api/connect/disconnect": "pages/api/connect/disconnect.js",
"/api/addUsersTableToDatabase": "pages/api/addUsersTableToDatabase.js",
"/api/admin/addUserBackup": "pages/api/admin/addUserBackup.js",
"/api/admin/createNewBackup": "pages/api/admin/createNewBackup.js",
"/api/admin/clearErrorLogs": "pages/api/admin/clearErrorLogs.js",
"/api/admin/clientError": "pages/api/admin/clientError.js",
"/api/admin/getTablesForUserDatabase": "pages/api/admin/getTablesForUserDatabase.js",
"/api/admin/docs/[action]": "pages/api/admin/docs/[action].js",
"/api/admin/grabBackups": "pages/api/admin/grabBackups.js",
"/api/admin/getUserData": "pages/api/admin/getUserData.js",
"/api/admin/grabErrorLogs": "pages/api/admin/grabErrorLogs.js",
"/api/admin/grabFile": "pages/api/admin/grabFile.js",
"/api/admin/getUserBackups": "pages/api/admin/getUserBackups.js",
"/api/admin/runUserDbQuery": "pages/api/admin/runUserDbQuery.js",
"/api/admin/loginSuUser": "pages/api/admin/loginSuUser.js",
"/api/changeDbUserPassword": "pages/api/changeDbUserPassword.js",
"/api/checkDuplicateData": "pages/api/checkDuplicateData.js",
"/api/admin/updateEnv": "pages/api/admin/updateEnv.js",
"/api/checkExistingFolder": "pages/api/checkExistingFolder.js",
"/api/connect/disconnect": "pages/api/connect/disconnect.js",
"/api/clientSideAuth": "pages/api/clientSideAuth.js",
"/api/connect/handshake": "pages/api/connect/handshake.js",
"/api/connect/verify": "pages/api/connect/verify.js",
"/api/connect": "pages/api/connect.js",
"/api/contact": "pages/api/contact.js",
"/api/clientSideAuth": "pages/api/clientSideAuth.js",
"/api/connect/verify": "pages/api/connect/verify.js",
"/api/createUserDatabase": "pages/api/createUserDatabase.js",
"/api/deleteApiKey": "pages/api/deleteApiKey.js",
"/api/deleteDbUser": "pages/api/deleteDbUser.js",
"/api/deleteMediaFolder": "pages/api/deleteMediaFolder.js",
"/api/deleteInvitation": "pages/api/deleteInvitation.js",
"/api/deleteMediaFolder": "pages/api/deleteMediaFolder.js",
"/api/deleteTableEntry": "pages/api/deleteTableEntry.js",
"/api/deleteUser": "pages/api/deleteUser.js",
"/api/deleteUserDatabase": "pages/api/deleteUserDatabase.js",
"/api/deleteUserTable": "pages/api/deleteUserTable.js",
"/api/deleteUserUser": "pages/api/deleteUserUser.js",
"/api/downloadDatabaseSchema": "pages/api/downloadDatabaseSchema.js",
"/api/deleteUserDatabase": "pages/api/deleteUserDatabase.js",
"/api/deleteUserMedia": "pages/api/deleteUserMedia.js",
"/api/downloadDatabaseSchema": "pages/api/downloadDatabaseSchema.js",
"/api/deleteUserUser": "pages/api/deleteUserUser.js",
"/api/exportDatabase": "pages/api/exportDatabase.js",
"/api/fetch-entries-basic": "pages/api/fetch-entries-basic.js",
"/api/get-authorized-databases": "pages/api/get-authorized-databases.js",
"/api/getDelegatedDatabaseToken": "pages/api/getDelegatedDatabaseToken.js",
"/api/getDatabaseTables": "pages/api/getDatabaseTables.js",
"/api/getDiskUsage": "pages/api/getDiskUsage.js",
"/api/getUserDatabaseTables": "pages/api/getUserDatabaseTables.js",
"/api/getDelegatedDatabases": "pages/api/getDelegatedDatabases.js",
"/api/getUserDatabaseTables": "pages/api/getUserDatabaseTables.js",
"/api/getDiskUsage": "pages/api/getDiskUsage.js",
"/api/getUserDatabases": "pages/api/getUserDatabases.js",
"/api/getUserMedia": "pages/api/getUserMedia.js",
"/api/getUserSchemaData": "pages/api/getUserSchemaData.js",
"/api/healthcheck": "pages/api/healthcheck.js",
"/api/importDatabase": "pages/api/importDatabase.js",
"/api/importDatabaseSchema": "pages/api/importDatabaseSchema.js",
"/api/importDatabase": "pages/api/importDatabase.js",
"/api/infiniteScroll": "pages/api/infiniteScroll.js",
"/api/logoutUser": "pages/api/logoutUser.js",
"/api/loginUser": "pages/api/loginUser.js",
"/api/media/addPrivateMedia": "pages/api/media/addPrivateMedia.js",
"/api/media/getPrivateMedia": "pages/api/media/getPrivateMedia.js",
"/api/loginUser": "pages/api/loginUser.js",
"/api/purgeDb": "pages/api/purgeDb.js",
"/api/query/get-schema": "pages/api/query/get-schema.js",
"/api/query/get": "pages/api/query/get.js",
"/api/query/update-schema-from-single-database": "pages/api/query/update-schema-from-single-database.js",
"/api/queryEntriesSearchTerm": "pages/api/queryEntriesSearchTerm.js",
"/api/reAuthenticateUser": "pages/api/reAuthenticateUser.js",
"/api/refreshEntry": "pages/api/refreshEntry.js",
"/api/queryEntriesSearchTerm": "pages/api/queryEntriesSearchTerm.js",
"/api/registerUser": "pages/api/registerUser.js",
"/api/resetDelegatedDatabaseToken": "pages/api/resetDelegatedDatabaseToken.js",
"/api/refreshEntry": "pages/api/refreshEntry.js",
"/api/renameMedia": "pages/api/renameMedia.js",
"/api/resetPassword": "pages/api/resetPassword.js",
"/api/resetDelegatedDatabaseToken": "pages/api/resetDelegatedDatabaseToken.js",
"/api/runUserDbQuery": "pages/api/runUserDbQuery.js",
"/api/sendPasswordResetLink": "pages/api/sendPasswordResetLink.js",
"/api/resetPassword": "pages/api/resetPassword.js",
"/api/sendEmailVerificationLink": "pages/api/sendEmailVerificationLink.js",
"/api/sendPasswordResetLink": "pages/api/sendPasswordResetLink.js",
"/api/social-login/google-auth": "pages/api/social-login/google-auth.js",
"/api/social-login/facebook-auth": "pages/api/social-login/facebook-auth.js",
"/api/social-login/github-auth": "pages/api/social-login/github-auth.js",
"/api/social-login/facebook-auth": "pages/api/social-login/facebook-auth.js",
"/api/social-login/utils/checkEmail": "pages/api/social-login/utils/checkEmail.js",
"/api/social-login/utils/checkSocialId": "pages/api/social-login/utils/checkSocialId.js",
"/api/social-login/utils/getEmailFromSocialId": "pages/api/social-login/utils/getEmailFromSocialId.js",
"/api/sync-table-data": "pages/api/sync-table-data.js",
"/api/social-login/utils/checkSocialId": "pages/api/social-login/utils/checkSocialId.js",
"/api/sql-users/create": "pages/api/sql-users/create.js",
"/api/sql-users/update": "pages/api/sql-users/update.js",
"/api/sql-users/delete": "pages/api/sql-users/delete.js",
"/api/stream/[path]": "pages/api/stream/[path].js",
"/api/sync-table-data": "pages/api/sync-table-data.js",
"/api/test/cors": "pages/api/test/cors.js",
"/api/stream/[path]": "pages/api/stream/[path].js",
"/api/test/mail": "pages/api/test/mail.js",
"/api/unsubscribe": "pages/api/unsubscribe.js",
"/api/updateAdminUserAccess": "pages/api/updateAdminUserAccess.js",
"/api/updateClonedTableForeignKeys": "pages/api/updateClonedTableForeignKeys.js",
"/api/updateAdminUserAccess": "pages/api/updateAdminUserAccess.js",
"/api/unsubscribe": "pages/api/unsubscribe.js",
"/api/updateDbUser": "pages/api/updateDbUser.js",
"/api/updateDbSchemaDataForUser": "pages/api/updateDbSchemaDataForUser.js",
"/api/updateUser": "pages/api/updateUser.js",
"/api/updateDbUser": "pages/api/updateDbUser.js",
"/api/updateTableEntry": "pages/api/updateTableEntry.js",
"/api/updateUserDatabase": "pages/api/updateUserDatabase.js",
"/api/updateUserTable": "pages/api/updateUserTable.js",
"/api/updateUserUser": "pages/api/updateUserUser.js",
"/api/updateUserDatabase": "pages/api/updateUserDatabase.js",
"/api/user-schema/replace-database-schema": "pages/api/user-schema/replace-database-schema.js",
"/api/user/add-user": "pages/api/user/add-user.js",
"/api/user-schema/replace-database-schema": "pages/api/user-schema/replace-database-schema.js",
"/api/user/delete-user": "pages/api/user/delete-user.js",
"/api/user/github-login": "pages/api/user/github-login.js",
"/api/user/get-user": "pages/api/user/get-user.js",
"/api/user/github-login": "pages/api/user/github-login.js",
"/api/user/google-login": "pages/api/user/google-login.js",
"/api/user/send-email-code": "pages/api/user/send-email-code.js",
"/api/user/grab-google-user-from-token": "pages/api/user/grab-google-user-from-token.js",
"/api/user/login-user": "pages/api/user/login-user.js",
"/api/user/send-email-code": "pages/api/user/send-email-code.js",
"/api/user/reauth-user": "pages/api/user/reauth-user.js",
"/api/user/update-user": "pages/api/user/update-user.js",
"/api/webhooks/github-push": "pages/api/webhooks/github-push.js",
"/api/user/update-user": "pages/api/user/update-user.js",
"/": "pages/index.html",
"/api/user/reauth-user": "pages/api/user/reauth-user.js",
"/redirect": "pages/redirect.html",
"/privacy": "pages/privacy.html",
"/terms": "pages/terms.html",
"/about": "pages/about.html",
"/admin/[user_id]/connect": "pages/admin/[user_id]/connect.js",
"/admin/[user_id]/api-keys": "pages/admin/[user_id]/api-keys.js",
"/admin/[user_id]/databases/[single]/schema": "pages/admin/[user_id]/databases/[single]/schema.js",
"/admin/[user_id]/databases/[single]/shell": "pages/admin/[user_id]/databases/[single]/shell.js",
"/admin/[user_id]/databases/[single]/edit-database": "pages/admin/[user_id]/databases/[single]/edit-database.js",
"/admin/[user_id]/databases/[single]/connect": "pages/admin/[user_id]/databases/[single]/connect.js",
"/admin/[user_id]/databases/[single]": "pages/admin/[user_id]/databases/[single].js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/fields": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]": "pages/admin/[user_id]/databases/[single]/tables/[single_table].js",
"/admin/[user_id]/connect": "pages/admin/[user_id]/connect.js",
"/admin/[user_id]/databases/[single]/shell": "pages/admin/[user_id]/databases/[single]/shell.js",
"/admin/[user_id]/databases/[single]/schema": "pages/admin/[user_id]/databases/[single]/schema.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js",
"/admin/[user_id]/databases/[single]/edit-database": "pages/admin/[user_id]/databases/[single]/edit-database.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/fields": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]": "pages/admin/[user_id]/databases/[single]/tables/[single_table].js",
"/admin/[user_id]/databases/[single]/tables/add-table": "pages/admin/[user_id]/databases/[single]/tables/add-table.js",
"/admin/[user_id]/databases/[single]/tables/[single_table]/entries": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js",
"/admin/[user_id]/databases/[single]/users/[user]/change-password": "pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js",
"/admin/[user_id]/databases/[single]/users/[user]": "pages/admin/[user_id]/databases/[single]/users/[user].js",
"/admin/[user_id]/databases/[single]/users/add-social-logins": "pages/admin/[user_id]/databases/[single]/users/add-social-logins.js",
"/admin/[user_id]/databases/[single]/users/add-user": "pages/admin/[user_id]/databases/[single]/users/add-user.js",
"/admin/[user_id]/databases/[single]/tables": "pages/admin/[user_id]/databases/[single]/tables.js",
"/admin/[user_id]/databases/[single]/users/[user]": "pages/admin/[user_id]/databases/[single]/users/[user].js",
"/admin/[user_id]/databases/add-database": "pages/admin/[user_id]/databases/add-database.js",
"/admin/[user_id]": "pages/admin/[user_id].js",
"/admin/[user_id]/databases/[single]/users": "pages/admin/[user_id]/databases/[single]/users.js",
"/admin/[user_id]/databases": "pages/admin/[user_id]/databases.js",
"/admin/[user_id]": "pages/admin/[user_id].js",
"/admin/[user_id]/schema": "pages/admin/[user_id]/schema.js",
"/admin/[user_id]/media": "pages/admin/[user_id]/media.js",
"/admin/[user_id]/settings": "pages/admin/[user_id]/settings.js",
"/admin/[user_id]/media/[...folder]": "pages/admin/[user_id]/media/[...folder].js",
"/admin/[user_id]/media": "pages/admin/[user_id]/media.js",
"/admin/[user_id]/users/add-user": "pages/admin/[user_id]/users/add-user.js",
"/admin/[user_id]/users/databases/[database]/[user]": "pages/admin/[user_id]/users/databases/[database]/[user].js",
"/admin/[user_id]/users/databases/[database]": "pages/admin/[user_id]/users/databases/[database].js",
"/admin/[user_id]/users/databases": "pages/admin/[user_id]/users/databases.js",
"/admin/[user_id]/databases": "pages/admin/[user_id]/databases.js",
"/_error": "pages/_error.js",
"/admin/[user_id]/users": "pages/admin/[user_id]/users.js",
"/admin/[user_id]/users/databases/[database]": "pages/admin/[user_id]/users/databases/[database].js",
"/admin": "pages/admin.js",
"/api/addUserMedia": "pages/api/addUserMedia.js",
"/admin/[user_id]/users": "pages/admin/[user_id]/users.js",
"/api/exportTableData": "pages/api/exportTableData.js",
"/api/query/delete-file": "pages/api/query/delete-file.js",
"/api/query/add-file": "pages/api/query/add-file.js",
"/api/query/add-image": "pages/api/query/add-image.js",
"/api/addUserMedia": "pages/api/addUserMedia.js",
"/api/query/get-private-file": "pages/api/query/get-private-file.js",
"/api/query/delete-file": "pages/api/query/delete-file.js",
"/api/query/post": "pages/api/query/post.js",
"/blog": "pages/blog.html",
"/contact": "pages/contact.html",
"/docs/[page]": "pages/docs/[page].js",
"/blog": "pages/blog.html",
"/docs": "pages/docs.js",
"/create-account": "pages/create-account.js",
"/docs/[page]/[sub-page]": "pages/docs/[page]/[sub-page].js",
"/docs/[page]": "pages/docs/[page].js",
"/login": "pages/login.js",
"/email-verification": "pages/email-verification.js",
"/pricing": "pages/pricing.html",
"/su/console": "pages/su/console.js",
"/logout": "pages/logout.js",
"/su/backups": "pages/su/backups.js",
"/send-password-reset-link": "pages/send-password-reset-link.js",
"/su/console": "pages/su/console.js",
"/su/docs/create-page": "pages/su/docs/create-page.js",
"/logout": "pages/logout.js",
"/su/docs/edit-page": "pages/su/docs/edit-page.js",
"/su/docs": "pages/su/docs.js",
"/su/docs/pages/[id]": "pages/su/docs/pages/[id].js",
"/reset-password": "pages/reset-password.js",
"/su/envar": "pages/su/envar.js",
"/su": "pages/su.js",
"/su/error-logs": "pages/su/error-logs.js",
"/su/docs/pages": "pages/su/docs/pages.js",
"/su/users/new": "pages/su/users/new.js",
"/su": "pages/su.js",
"/su/envar": "pages/su/envar.js",
"/su/docs/pages/[id]": "pages/su/docs/pages/[id].js",
"/su/error-logs": "pages/su/error-logs.js",
"/reset-password": "pages/reset-password.js",
"/su/login": "pages/su/login.js",
"/su/users": "pages/su/users.js",
"/su/users/new": "pages/su/users/new.js",
"/su/docs": "pages/su/docs.js",
"/su/users/[single]": "pages/su/users/[single].js",
"/unsubscribe": "pages/unsubscribe.js"
}

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 @@
{"version":1,"files":["../webpack-runtime.js","../chunks/6859.js","../../package.json","../../../node_modules/next/package.json","../../../node_modules/next/dist/shared/lib/constants.js","../../../node_modules/next/dist/shared/lib/html-context.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/react/package.json","../../../node_modules/react/jsx-runtime.js","../../../node_modules/next/dist/server/get-page-files.js","../../../node_modules/next/dist/server/htmlescape.js","../../../node_modules/next/dist/server/utils.js","../../../node_modules/react/index.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.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../package.json"]}
{"version":1,"files":["../webpack-runtime.js","../chunks/6859.js","../../package.json","../../../node_modules/next/package.json","../../../node_modules/next/dist/shared/lib/constants.js","../../../node_modules/next/dist/shared/lib/html-context.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/react/package.json","../../../node_modules/react/jsx-runtime.js","../../../node_modules/next/dist/server/get-page-files.js","../../../node_modules/next/dist/server/htmlescape.js","../../../node_modules/next/dist/server/utils.js","../../../node_modules/react/index.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../package.json"]}

View File

@ -1 +1 @@
{"version":1,"files":["../webpack-runtime.js","../../package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/package.json","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../package.json"]}
{"version":1,"files":["../webpack-runtime.js","../../package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/package.json","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../package.json"]}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6964;
exports.ids = [6964,4135,133];
exports.ids = [6964,133,4135];
exports.modules = {
/***/ 1174:

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

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6930;
exports.ids = [6930,8105,4135,133];
exports.ids = [6930,8105,133,4135];
exports.modules = {
/***/ 366:

File diff suppressed because one or more lines are too long

View File

@ -456,7 +456,7 @@ var FormSelect = __webpack_require__(4114);
} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */
// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js
var grabUserSchemaData = __webpack_require__(2527);
var grabUserSchemaData = __webpack_require__(3314);
// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js
var DB_HANDLER = __webpack_require__(9395);
var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER);

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 3293;
exports.ids = [3293,2657,8105,3316,4135,133,4105,3314,2434];
exports.ids = [3293,2657,8105,3316,133,4135,4105,3314,2434];
exports.modules = {
/***/ 4417:
@ -401,7 +401,7 @@ exports.modules = {
/***/ }),
/***/ 2527:
/***/ 3314:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
@ -1318,7 +1318,7 @@ var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabas
var DB_HANDLER = __webpack_require__(9395);
var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER);
// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js
var grabUserSchemaData = __webpack_require__(2527);
var grabUserSchemaData = __webpack_require__(3314);
;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/schema.jsx
// @ts-check
/**

File diff suppressed because one or more lines are too long

View File

@ -430,7 +430,7 @@ var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
var DB_HANDLER = __webpack_require__(9395);
var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER);
// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js
var grabUserSchemaData = __webpack_require__(2527);
var grabUserSchemaData = __webpack_require__(3314);
;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/shell.jsx
// @ts-check
/**

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6618;
exports.ids = [6618,8105,4135,133];
exports.ids = [6618,8105,133,4135];
exports.modules = {
/***/ 6522:

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 8848;
exports.ids = [8848,372,8105,4135,133,8515,3314,1674];
exports.ids = [8848,372,8105,133,4135,8515,3314,1674];
exports.modules = {
/***/ 1674:
@ -256,7 +256,7 @@ exports.modules = {
/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5116);
/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2527);
/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3314);
/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1206);
/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__);
// @ts-check
@ -390,7 +390,7 @@ exports.modules = {
/***/ }),
/***/ 2527:
/***/ 3314:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 4504;
exports.ids = [4504,8105,3316,4135,133];
exports.ids = [4504,8105,3316,133,4135];
exports.modules = {
/***/ 8382:
@ -510,7 +510,7 @@ var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(gra
var DB_HANDLER = __webpack_require__(9395);
var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER);
// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js
var grabUserSchemaData = __webpack_require__(2527);
var grabUserSchemaData = __webpack_require__(3314);
;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx
// @ts-check
/**

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 372;
exports.ids = [372,8105,4135,133];
exports.ids = [372,8105,133,4135];
exports.modules = {
/***/ 2587:

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6306;
exports.ids = [6306,372,8105,4135,133];
exports.ids = [6306,372,8105,133,4135];
exports.modules = {
/***/ 3285:

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 4565;
exports.ids = [4565,8105,4135,133];
exports.ids = [4565,8105,133,4135];
exports.modules = {
/***/ 3907:

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6941;
exports.ids = [6941,8105,4135,133,1674];
exports.ids = [6941,8105,133,4135,1674];
exports.modules = {
/***/ 1674:
@ -134,7 +134,7 @@ exports.modules = {
/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5116);
/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2527);
/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3314);
/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1206);
/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__);
// @ts-check

View File

@ -859,7 +859,7 @@ var ExtraContentDatabase = __webpack_require__(4941);
var DB_HANDLER = __webpack_require__(9395);
var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER);
// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js
var grabUserSchemaData = __webpack_require__(2527);
var grabUserSchemaData = __webpack_require__(3314);
;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/add-table.jsx
// @ts-check
/**

View File

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 6153;
exports.ids = [6153,8105,4135,133];
exports.ids = [6153,8105,133,4135];
exports.modules = {
/***/ 4726:

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

@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 2417;
exports.ids = [2417,4135,133];
exports.ids = [2417,133,4135];
exports.modules = {
/***/ 9310:

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

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