decord/beta/source/modules/collectibles/CollectiblesDebugStore.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 7803
// Function ID: 7804
// Name: CollectiblesDebugStore
// Dependencies: [562, 2]
// Exports: addDebugLog
// Module 7803 (CollectiblesDebugStore)
import module_562 from "module_562" /* 562 */;
import size from "module_2" /* 2 */;
const useCollectiblesDebugStore = module_562.create((arg0) => {
closure_0 = arg0;
return {
logs: [],
addLog(arg0) {
closure_0 = arg0;
return closure_0((logs) => {
const obj = { logs: null };
const items = [...logs.logs];
const date = new Date();
items[tmp] = "[" + new Date().toISOString().split("T")[0] + "] " + closure_0;
obj.logs = items;
return obj;
});
},
clearLogs() {
return closure_0({ logs: [] });
}
};
});
const result = size.fileFinishedImporting("modules/collectibles/CollectiblesDebugStore.tsx");
export { useCollectiblesDebugStore };
export const addDebugLog = function addDebugLog(arg0) {
const date = new Date();
state = obj.getState();
state.addLog("[" + new Date().toLocaleTimeString("en-US", { hour12: false }) + "] " + arg0);
};