初始化提交

This commit is contained in:
王立帮
2024-07-19 10:16:00 +08:00
parent 4c7b571f20
commit 4a2d56dcc4
7084 changed files with 741212 additions and 63 deletions

View File

@@ -0,0 +1,22 @@
goog.loadJs('common', () => {
goog.require('Mixly.Config');
goog.provide('Mixly.Debug');
const { Config, Debug } = Mixly;
const { SOFTWARE } = Config;
for (let key in console) {
if (typeof console[key] !== 'function') {
continue;
}
Debug[key] = (...args) => {
if (!SOFTWARE.debug) {
console.log(`[${key.toUpperCase()}]`, ...args);
} else {
console[key](...args);
}
}
}
});