decord/source/modules/collectibles/CollectiblesDebugStore.tsx

39 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 5328
// Function ID: 5329
2026-07-20 16:05:17 +00:00
// Name: useCollectiblesDebugStore
2026-07-29 08:29:29 +00:00
// Dependencies: [644, 2]
2026-07-20 16:05:17 +00:00
// Exports: addDebugLog
2026-08-24 06:08:38 +00:00
// Module 5328 (useCollectiblesDebugStore)
import set from "set" /* 2 */;
import keys from "keys" /* 644 */;
2026-07-23 10:11:24 +00:00
let obj = keys.create((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-23 10:11:24 +00:00
return {
2026-07-20 16:05:17 +00:00
logs: [],
addLog(arg0) {
2026-07-23 10:11:24 +00:00
const callback = arg0;
return callback((logs) => {
2026-08-24 06:08:38 +00:00
obj = { logs: null };
2026-07-20 16:05:17 +00:00
const items = [...logs.logs];
const date = new Date();
2026-07-23 10:11:24 +00:00
items[tmp] = "[" + new Date().toISOString().split("T")[0] + "] " + closure_0;
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
return obj;
});
},
clearLogs() {
2026-07-23 10:11:24 +00:00
return callback({ logs: [] });
2026-07-20 16:05:17 +00:00
}
};
});
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/collectibles/CollectiblesDebugStore.tsx");
2026-07-20 16:05:17 +00:00
export const useCollectiblesDebugStore = obj;
export const addDebugLog = function addDebugLog(arg0) {
const date = new Date();
const state = obj.getState();
state.addLog("[" + new Date().toLocaleTimeString("en-US", { hour12: false }) + "] " + arg0);
};