decord/beta/source/modules/collectibles/CollectiblesDebugStore.tsx
github-actions 30c0bb2ec3 chore: update source for beta 347.10
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
2026-09-24 16:03:38 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 7835
// Function ID: 7836
// Name: CollectiblesDebugStore
// Dependencies: [562, 2]
// Exports: addDebugLog
// Module 7835 (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);
};