database reading

This commit is contained in:
micialware committed 2026-09-14 14:32:38 +03:00
1 parent 68c24dcec5
commit fc8455e353
418 files changed
+674410 -1561

No files matched your search

+1106
View File
File diff suppressed because it is too large. Load diff
+19
View File
@@ -0,0 +1,19 @@
//#region src/client/env.ts
const context = (() => {
if (typeof globalThis !== "undefined") return globalThis;
else if (typeof self !== "undefined") return self;
else if (typeof window !== "undefined") return window;
else return Function("return this")();
})();
const defines = __DEFINES__;
Object.keys(defines).forEach((key) => {
const segments = key.split(".");
let target = context;
for (let i = 0; i < segments.length; i++) {
const segment = segments[i];
if (i === segments.length - 1) target[segment] = defines[key];
else target = target[segment] || (target[segment] = {});
}
});
//#endregion