decord/source/modules/collectibles/CollectiblesDebugStore.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 7630
// Function ID: 7631
// Name: CollectiblesDebugStore
// Dependencies: [560, 2]
// Exports: addDebugLog
// Module 7630 (CollectiblesDebugStore)
import module_560 from "module_560" /* 560 */;
import size from "module_2" /* 2 */;
const useCollectiblesDebugStore = module_560.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();
const state = obj.getState();
state.addLog("[" + new Date().toLocaleTimeString("en-US", { hour12: false }) + "] " + arg0);
};