feat(don): add top donor widget

This commit is contained in:
2026-06-10 01:36:54 +07:00 Unverified
parent 652b83c801
commit 85aaf6487c
28 changed files with 222 additions and 42 deletions
+3
View File
@@ -108,6 +108,7 @@ export default function IccProvider({
(l) => l !== listener,
);
},
// oxlint-disable-next-line typescript/no-useless-default-assignment
emit(k, value = undefined) {
(listeners.current[k] || []).map((l) =>
l(...([value] as Parameters<typeof l>)),
@@ -188,6 +189,7 @@ export const shared = {
const { [k]: _, ...rest } = comms.get("inspect") || {};
comms.set("inspect", rest);
},
// oxlint-disable-next-line react-hooks/exhaustive-deps
[],
);
// value updater
@@ -197,6 +199,7 @@ export const shared = {
...obj,
[k]: typeof v === "string" ? v : JSON.stringify(v),
});
// oxlint-disable-next-line react-hooks/exhaustive-deps
}, [v]);
},
emit<K extends keyof SharedSignals>(