1
0
Fork 0

Added Statistics calculation

Statistics now show calculated values
This commit is contained in:
Techognito 2025-09-04 17:30:00 +02:00
parent fe87374e47
commit fc0f69dacb
2147 changed files with 141321 additions and 39 deletions

1
node_modules/@mui/x-internals/warning/index.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export { warnOnce, clearWarningsCache } from "./warning.js";

18
node_modules/@mui/x-internals/warning/index.js generated vendored Normal file
View file

@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "clearWarningsCache", {
enumerable: true,
get: function () {
return _warning.clearWarningsCache;
}
});
Object.defineProperty(exports, "warnOnce", {
enumerable: true,
get: function () {
return _warning.warnOnce;
}
});
var _warning = require("./warning");

13
node_modules/@mui/x-internals/warning/warning.d.ts generated vendored Normal file
View file

@ -0,0 +1,13 @@
/**
* Logs a message to the console on development mode. The warning will only be logged once.
*
* The message is the log's cache key. Two identical messages will only be logged once.
*
* This function is a no-op in production.
*
* @param message the message to log
* @param gravity the gravity of the warning. Defaults to `'warning'`.
* @returns
*/
export declare function warnOnce(message: string | string[], gravity?: 'warning' | 'error'): void;
export declare function clearWarningsCache(): void;

37
node_modules/@mui/x-internals/warning/warning.js generated vendored Normal file
View file

@ -0,0 +1,37 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.clearWarningsCache = clearWarningsCache;
exports.warnOnce = warnOnce;
const warnedOnceCache = new Set();
/**
* Logs a message to the console on development mode. The warning will only be logged once.
*
* The message is the log's cache key. Two identical messages will only be logged once.
*
* This function is a no-op in production.
*
* @param message the message to log
* @param gravity the gravity of the warning. Defaults to `'warning'`.
* @returns
*/
function warnOnce(message, gravity = 'warning') {
if (process.env.NODE_ENV === 'production') {
return;
}
const cleanMessage = Array.isArray(message) ? message.join('\n') : message;
if (!warnedOnceCache.has(cleanMessage)) {
warnedOnceCache.add(cleanMessage);
if (gravity === 'error') {
console.error(cleanMessage);
} else {
console.warn(cleanMessage);
}
}
}
function clearWarningsCache() {
warnedOnceCache.clear();
}