mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-08 22:02:54 +00:00
Add view event bindings for default nostr client
This commit is contained in:
1 parent
083750f0f2
commit
6c730704d0
6 files changed
+198
-26
No files matched your search
+4
-4
@@ -22,18 +22,18 @@ import {
|
||||
countVideoViewEvents,
|
||||
listVideoViewEvents,
|
||||
subscribeVideoViewEvents,
|
||||
} from "./nostr/index.js";
|
||||
} from "./nostr/viewEventBindings.js";
|
||||
|
||||
const VIEW_COUNTER_STORAGE_KEY = "bitvid:view-counter:v1";
|
||||
const STORAGE_DEBOUNCE_MS = 500;
|
||||
const SECONDS_PER_DAY = 86_400;
|
||||
|
||||
const listVideoViewEventsApi = (pointer, options) =>
|
||||
listVideoViewEvents(nostrClient, pointer, options);
|
||||
listVideoViewEvents(pointer, options);
|
||||
const subscribeVideoViewEventsApi = (pointer, options) =>
|
||||
subscribeVideoViewEvents(nostrClient, pointer, options);
|
||||
subscribeVideoViewEvents(pointer, options);
|
||||
const countVideoViewEventsApi = (pointer, options) =>
|
||||
countVideoViewEvents(nostrClient, pointer, options);
|
||||
countVideoViewEvents(pointer, options);
|
||||
|
||||
/** @type {Map<string, ViewCounterState>} */
|
||||
const pointerStates = new Map();
|
||||
|
||||
Reference in new issue
Block a user