Bug Fixes

This commit is contained in:
Benjamin Toby
2024-11-05 15:18:40 +01:00
parent 3cdf78e58d
commit 748ff55092
507 changed files with 3719 additions and 1231 deletions
@@ -1021,7 +1021,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,7946,4105], () => (__webpack_exec__(3406)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,4105], () => (__webpack_exec__(3406)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -1553,7 +1553,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472], () => (__webpack_exec__(5782)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472], () => (__webpack_exec__(5782)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -201,7 +201,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,7946,1500,75,9282], () => (__webpack_exec__(2109)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,1500,75,9282], () => (__webpack_exec__(2109)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -758,7 +758,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,75,1674], () => (__webpack_exec__(366)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,75,1674], () => (__webpack_exec__(366)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -857,7 +857,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,1781,4941,7023,7901,4114,8682,2317,1206,3314,2348], () => (__webpack_exec__(2279)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,7023,7901,4114,8682,2317,1206,3314,2348], () => (__webpack_exec__(2279)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -630,7 +630,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,7901,4986,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(8538)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,4986,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(8538)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 3293;
exports.ids = [3293,2657,8105,133,3316,4135,4105,3314,2434];
exports.ids = [3293,2657,8105,3316,133,4135,4105,3314,2434];
exports.modules = {
/***/ 4417:
@@ -415,10 +415,10 @@ const path = __webpack_require__(1017);
* ==============================================================================
* @param {Object} params
* @param {string | number} params.userId
* @returns {DSQL_DatabaseSchemaType[] | null}
* @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null}
*/ function grabUserSchemaData({ userId }) {
try {
const userSchemaFilePath = path.resolve(process.cwd(), `./jsonData/dbSchemas/users/user-${userId}/main.json`);
const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`);
const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8"));
return userSchemaData;
} catch (/** @type {any} */ error) {
@@ -1789,7 +1789,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,7901,4114,8682,2317,1206,8345,4986,6718,9594,8264,9471,9486,7037,9967,3974], () => (__webpack_exec__(3104)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,4114,8682,2317,1206,8345,4986,6718,9594,8264,9471,9486,7037,9967,3974], () => (__webpack_exec__(3104)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -876,7 +876,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,1781,4941,7023,8682,2317,1206,3314], () => (__webpack_exec__(2495)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,7023,8682,2317,1206,3314], () => (__webpack_exec__(2495)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -669,7 +669,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,1674], () => (__webpack_exec__(6522)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,1674], () => (__webpack_exec__(6522)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
(() => {
var exports = {};
exports.id = 8848;
exports.ids = [8848,372,8105,133,4135,464,3314,1674];
exports.ids = [8848,372,8105,133,4135,8515,3314,1674];
exports.modules = {
/***/ 1674:
@@ -120,76 +120,18 @@ exports.modules = {
/***/ }),
/***/ 5753:
/***/ 8515:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (/* binding */ generateTypeDefinition)
/* harmony export */ });
/* harmony import */ var _functions_frontend_defaultFieldsRegexp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3907);
// @ts-check
/**
* Generate a type definition for a query
* ==============================================================================
* @param {object} param0
* @param {"JavaScript" | "TypeScript" | undefined} param0.paradigm
* @param {import("@/package-shared/types").DSQL_TableSchemaType} param0.table
* @param {any} param0.query
* @param {import("@/package-shared/types").UserType} [param0.user]
* @returns {string | null}
*/ function generateTypeDefinition({ paradigm , table , query , user , }) {
/** @type {string | null} */ let typeDefinition = ``;
try {
const tdName = `DSQL_${query.single}_${query.single_table}`.toUpperCase();
const fields = table.fields;
function typeMap(/** @type {string} */ type) {
if (type?.match(/int/i)) {
return "number";
}
if (type?.match(/text|varchar|timestamp/i)) {
return "string";
}
return "string";
}
const typesArrayTypeScript = [];
const typesArrayJavascript = [];
typesArrayTypeScript.push(`type ${tdName} = {`);
typesArrayJavascript.push(`/**\n * @typedef {object} ${tdName}`);
fields.forEach((field)=>{
const nullValue = field.nullValue ? "?" : field.fieldName?.match(_functions_frontend_defaultFieldsRegexp__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z) ? "?" : "";
typesArrayTypeScript.push(` ${field.fieldName}${nullValue}: ${typeMap(field.dataType || "")};`);
typesArrayJavascript.push(` * @property {${typeMap(field.dataType || "")}${nullValue}} ${field.fieldName}`);
});
typesArrayTypeScript.push(`}`);
typesArrayJavascript.push(` */`);
if (paradigm?.match(/javascript/i)) {
typeDefinition = typesArrayJavascript.join("\n");
}
if (paradigm?.match(/typescript/i)) {
typeDefinition = typesArrayTypeScript.join("\n");
}
} catch (/** @type {any} */ error) {
console.log(error.message);
typeDefinition = null;
}
return typeDefinition;
}
/***/ }),
/***/ 6169:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (/* binding */ ExpandBlock)
/* harmony export */ "Z": () => (/* binding */ ActiveCloneTableBanner)
/* 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 _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557);
/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__);
// @ts-check
/**
* ==============================================================================
@@ -197,14 +139,17 @@ exports.modules = {
* ==============================================================================
*/
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* ==============================================================================
* Main Component { Functional }
* ==============================================================================
* @param {Object} props - Server props
* @param {boolean} props.collapse
* @param {React.Dispatch<React.SetStateAction<boolean>>} props.setCollapse
*/ function ExpandBlock({ collapse , setCollapse }) {
* @param {Object} props
* @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table
* @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database
* @param {number} [props.activeDbClone]
* @param {import("@/package-shared/types").UserType} props.user
*/ function ActiveCloneTableBanner({ table , database , user , activeDbClone , }) {
/**
* Get Contexts
*
@@ -216,7 +161,9 @@ exports.modules = {
* Javascript Variables
*
* @abstract Non hook variables and functions
*/ ////////////////////////////////////////
*/ const cloneParentDb = table?.childTableDbFullName ? table.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/), "") : null;
const isCurrentDb = table.childTableDbFullName === database.db_full_name;
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
@@ -230,37 +177,67 @@ exports.modules = {
* Function Return
*
* @abstract Main Function Return
*/ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
className: "collapse-block" + (collapse ? " -mt-16 -mb-6 pt-10" : " mt-0 mb-0 p-0"),
onClick: (e)=>{
if (collapse) {
setCollapse(false);
} else {
setCollapse(true);
}
*/ if (!cloneParentDb) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {});
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
className: "info small green gap-1" + (database?.active_clone ? " -mt-6" : ""),
style: {
fontWeight: "500"
},
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
children: collapse ? "Expand" : "Collapse"
"This Table is an active clone of",
" ",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}/tables/${table.childTableName}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: table.childTableName
})
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", {
src: "/images/down-arrow-dark.svg",
alt: "Down Arrow",
width: 16,
className: "dark:hidden opacity-30 " + (collapse ? "" : "rotate-180")
" ",
"in",
" ",
isCurrentDb ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
children: [
"this current database(",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: database.db_name
}),
")."
]
}) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: cloneParentDb
})
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
children: "database."
})
]
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", {
src: "/images/down-arrow-white.svg",
alt: "Down Arrow",
width: 16,
className: "opacity-30 hidden dark:flex " + (collapse ? "" : "rotate-180")
})
" ",
database?.active_clone ? "" : "Only Foreign keys and Entries can be updated."
]
});
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */
}
/***/ }),
@@ -427,10 +404,10 @@ const path = __webpack_require__(1017);
* ==============================================================================
* @param {Object} params
* @param {string | number} params.userId
* @returns {DSQL_DatabaseSchemaType[] | null}
* @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null}
*/ function grabUserSchemaData({ userId }) {
try {
const userSchemaFilePath = path.resolve(process.cwd(), `./jsonData/dbSchemas/users/user-${userId}/main.json`);
const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`);
const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8"));
return userSchemaData;
} catch (/** @type {any} */ error) {
@@ -443,26 +420,6 @@ const path = __webpack_require__(1017);
} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */
/***/ }),
/***/ 3907:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
// @ts-check
/**
* Check for user in local storage
*
* @description Preventdefault, declare variables
*/ const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaultFieldsRegexp);
/***/ }),
/***/ 8382:
@@ -2452,7 +2409,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,4893,9788,9035], () => (__webpack_exec__(4769)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,464,4893,4559,9035], () => (__webpack_exec__(4769)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -2,131 +2,9 @@
(() => {
var exports = {};
exports.id = 4504;
exports.ids = [4504,8105,133,3316,4135];
exports.ids = [4504,8105,3316,133,4135];
exports.modules = {
/***/ 8515:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (/* binding */ ActiveCloneTableBanner)
/* 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 _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557);
/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__);
// @ts-check
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* ==============================================================================
* Main Component { Functional }
* ==============================================================================
* @param {Object} props
* @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table
* @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database
* @param {number} [props.activeDbClone]
* @param {import("@/package-shared/types").UserType} props.user
*/ function ActiveCloneTableBanner({ table , database , user , activeDbClone , }) {
/**
* Get Contexts
*
* @abstract { React.useContext }
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Javascript Variables
*
* @abstract Non hook variables and functions
*/ const cloneParentDb = table?.childTableDbFullName ? table.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/), "") : null;
const isCurrentDb = table.childTableDbFullName === database.db_full_name;
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* React Hooks
*
* @abstract { useState, useEffect, useRef, etc ... }
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Function Return
*
* @abstract Main Function Return
*/ if (!cloneParentDb) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {});
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
className: "info small green gap-1" + (database?.active_clone ? " -mt-6" : ""),
style: {
fontWeight: "500"
},
children: [
"This Table is an active clone of",
" ",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}/tables/${table.childTableName}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: table.childTableName
})
}),
" ",
"in",
" ",
isCurrentDb ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
children: [
"this current database(",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: database.db_name
}),
")."
]
}) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: cloneParentDb
})
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
children: "database."
})
]
}),
" ",
database?.active_clone ? "" : "Only Foreign keys and Entries can be updated."
]
});
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
}
/***/ }),
/***/ 8382:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
@@ -1132,7 +1010,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7901,2317,5116,8345,4986,9594,8264,9471,7037,9967,464,4105,3314,4893], () => (__webpack_exec__(8239)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,2317,5116,8345,4986,9594,8264,9471,7037,9967,464,8515,4105,3314,4893], () => (__webpack_exec__(8239)));
module.exports = __webpack_exports__;
})();
@@ -320,7 +320,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,9788,9035], () => (__webpack_exec__(7722)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,8515,4559,9035], () => (__webpack_exec__(7722)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -542,7 +542,7 @@ const SingleEntryContext = /*#__PURE__*/ external_react_default().createContext(
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`./jsonData/dbSchemas/users/user-${dbUserId}/main.json`, "utf-8"));
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8"));
const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables;
const targetTable = tables.filter((table)=>table.tableName === query.single_table)[0];
////////////////////////////////////////
@@ -932,7 +932,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,9788,9035], () => (__webpack_exec__(3285)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,8515,4559,9035], () => (__webpack_exec__(3285)));
module.exports = __webpack_exports__;
})();
@@ -589,7 +589,7 @@ const AddTableEntryContext = /*#__PURE__*/ external_react_default().createContex
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`./jsonData/dbSchemas/users/user-${dbUserId}/main.json`, "utf-8"));
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8"));
const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables;
const targetTable = tables.filter((table)=>table.tableName === query.single_table)[0];
////////////////////////////////////////
@@ -926,7 +926,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,8682,2317,1206,5116,8345,4986,9594,8264,9788], () => (__webpack_exec__(7535)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,2317,1206,5116,8345,4986,9594,8264,8515,4559], () => (__webpack_exec__(7535)));
module.exports = __webpack_exports__;
})();
@@ -118,128 +118,6 @@ exports.modules = {
} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */
/***/ }),
/***/ 8515:
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "Z": () => (/* binding */ ActiveCloneTableBanner)
/* 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 _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557);
/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__);
// @ts-check
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**
* ==============================================================================
* Main Component { Functional }
* ==============================================================================
* @param {Object} props
* @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table
* @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database
* @param {number} [props.activeDbClone]
* @param {import("@/package-shared/types").UserType} props.user
*/ function ActiveCloneTableBanner({ table , database , user , activeDbClone , }) {
/**
* Get Contexts
*
* @abstract { React.useContext }
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Javascript Variables
*
* @abstract Non hook variables and functions
*/ const cloneParentDb = table?.childTableDbFullName ? table.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/), "") : null;
const isCurrentDb = table.childTableDbFullName === database.db_full_name;
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* React Hooks
*
* @abstract { useState, useEffect, useRef, etc ... }
*/ ////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
/**
* Function Return
*
* @abstract Main Function Return
*/ if (!cloneParentDb) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {});
return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
className: "info small green gap-1" + (database?.active_clone ? " -mt-6" : ""),
style: {
fontWeight: "500"
},
children: [
"This Table is an active clone of",
" ",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}/tables/${table.childTableName}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: table.childTableName
})
}),
" ",
"in",
" ",
isCurrentDb ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", {
children: [
"this current database(",
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: database.db_name
}),
")."
]
}) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {
children: [
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", {
href: `/admin/${user?.id}/databases/${cloneParentDb}`,
target: "_blank",
className: "button gray outlined small-text",
style: {
display: "inline-block",
fontSize: "12px",
padding: "3px 7px"
},
children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", {
children: cloneParentDb
})
}),
/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", {
children: "database."
})
]
}),
" ",
database?.active_clone ? "" : "Only Foreign keys and Entries can be updated."
]
});
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
}
/***/ }),
/***/ 7809:
@@ -1170,7 +1048,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,7901,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,464,3314,4893], () => (__webpack_exec__(325)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,464,8515,3314,4893], () => (__webpack_exec__(325)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -1304,7 +1304,7 @@ module.exports = JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValu
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7901,2317,9594,9471,7037,9967,464,4105,3314,4893], () => (__webpack_exec__(3532)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,2317,9594,9471,7037,9967,464,4105,3314,4893], () => (__webpack_exec__(3532)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -501,7 +501,7 @@ const UsersContext = /*#__PURE__*/ external_react_default().createContext(init);
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`./jsonData/dbSchemas/users/user-${dbUserId}/main.json`, "utf-8"));
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8"));
const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables;
const targetTable = tables.filter((table)=>table.tableName === "users")[0];
const users = await varDatabaseDbHandler_default()({
@@ -792,7 +792,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,4114,8682,1206,5116,8345,4986,8264,9486,9417,3863], () => (__webpack_exec__(4726)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,4114,8682,1206,5116,8345,4986,8264,9486,9417,3863], () => (__webpack_exec__(4726)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -208,7 +208,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(7531)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(7531)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -496,7 +496,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(9494)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(9494)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -490,12 +490,12 @@ const AddSocialLoginsContext = /*#__PURE__*/ external_react_default().createCont
}
};
}
const dbSchemaData = JSON.parse(fs.readFileSync(`./jsonData/dbSchemas/users/user-${user.id}/main.json`, "utf-8"));
const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`, "utf-8"));
/**
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ const userEnvFilePath = `./jsonData/dbSchemas/users/user-${user.id}/env.json`;
*/ const userEnvFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/env.json`;
if (!fs.existsSync(userEnvFilePath)) {
// const envPreset = fs.readFileSync(`./jsonData/dbSchemas/presets/env.json`, "utf-8");
fs.writeFileSync(userEnvFilePath, "{}", "utf-8");
@@ -736,7 +736,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7901,6718,9486,7037,2733,1926,2348], () => (__webpack_exec__(9053)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,6718,9486,7037,2733,1926,2348], () => (__webpack_exec__(9053)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -387,7 +387,7 @@ const AddNewDbUserContext = /*#__PURE__*/ external_react_default().createContext
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`./jsonData/dbSchemas/users/user-${dbUserId}/main.json`, "utf-8"));
*/ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8"));
const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables;
const targetTable = tables.filter((table)=>table.tableName === "users")[0];
/**
@@ -633,7 +633,7 @@ module.exports = JSON.parse('["Edit Tables","Update Entries","Create Table","Del
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4941,7023,7901,8682,1206,5116,6718,7037,2733,1926], () => (__webpack_exec__(4437)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,8682,1206,5116,6718,7037,2733,1926], () => (__webpack_exec__(4437)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -201,7 +201,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,7023,7901,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(6706)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,7023,7901,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(6706)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -610,7 +610,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,8345,6718,7946,6390], () => (__webpack_exec__(8333)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,8345,6718,7946,6390], () => (__webpack_exec__(8333)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -43,7 +43,7 @@ const path = __webpack_require__(1017);
return null;
}
const relativePath = isPrivate ? `@/${video ? "videos" : "media"}/${folder ? folder + "/" : ""}` : video ? `/videos/user-videos/user-${userId}/${folder ? folder + "/" : ""}` : `/images/user-images/user-${userId}/${folder ? folder + "/" : ""}`;
const fileRootPath = isPrivate ? `./jsonData/dbSchemas/users/user-${userId}/media/${folder ? folder + "/" : ""}` : path.join(STATIC_ROOT, relativePath);
const fileRootPath = isPrivate ? `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/media/${folder ? folder + "/" : ""}` : path.join(STATIC_ROOT, relativePath);
if (!fs.existsSync(fileRootPath) && !pathOnly) {
fs.mkdirSync(fileRootPath, {
recursive: true
@@ -718,7 +718,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,8345,6718,7946,6390], () => (__webpack_exec__(3947)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,8345,6718,7946,6390], () => (__webpack_exec__(3947)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -683,7 +683,7 @@ const UserSchemaContext = /*#__PURE__*/ external_react_default().createContext(i
* Page/Site Data Data Fetching
*
* @description Fetch data on the server before returning
*/ const folderPath = `./jsonData/dbSchemas/users/user-${user.id}/main.json`;
*/ const folderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`;
if (!fs.existsSync(folderPath)) {
return {
redirect: {
@@ -932,7 +932,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,1781,4941,4114,7946,2434], () => (__webpack_exec__(4458)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,4114,7946,2434], () => (__webpack_exec__(4458)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -849,7 +849,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,7023,7901,6718,9594,9471,7037,9967,7946,1500,75,9282,8374,7926,5114], () => (__webpack_exec__(1481)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7023,7901,6718,9594,9471,7037,9967,7946,1500,75,9282,8374,7926,5114], () => (__webpack_exec__(1481)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -748,7 +748,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,4114,9486,9417,3863], () => (__webpack_exec__(3931)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,4114,9486,9417,3863], () => (__webpack_exec__(3931)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -740,7 +740,7 @@ module.exports = JSON.parse('["Edit Tables","Update Entries","Create Table","Del
var __webpack_require__ = require("../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,1781,4114,9486], () => (__webpack_exec__(421)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4114,9486], () => (__webpack_exec__(421)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -514,7 +514,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4114,9486,9417], () => (__webpack_exec__(3666)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,9486,9417], () => (__webpack_exec__(3666)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -492,7 +492,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4114,9486,9417,3863], () => (__webpack_exec__(7650)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,9486,9417,3863], () => (__webpack_exec__(7650)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long
@@ -641,7 +641,7 @@ module.exports = require("path");
var __webpack_require__ = require("../../../../../../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,5304,913,9395,370,424,4858,5472,1781,4114,6718,9486,2733,3863], () => (__webpack_exec__(5342)));
var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,6718,9486,2733,3863], () => (__webpack_exec__(5342)));
module.exports = __webpack_exports__;
})();
File diff suppressed because one or more lines are too long