chore: Update translations
This commit is contained in:
@ -121,9 +121,9 @@ class IndexedDB extends Dexie {
|
|||||||
|
|
||||||
// End timing and log the elapsed time
|
// End timing and log the elapsed time
|
||||||
console.timeEnd("subscribeToAuthors");
|
console.timeEnd("subscribeToAuthors");
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
||||||
subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
||||||
const ids = [...this.subscribedEventIds];
|
const ids = [...this.subscribedEventIds];
|
||||||
this.subscribedEventIds.clear();
|
this.subscribedEventIds.clear();
|
||||||
|
|
||||||
@ -132,9 +132,9 @@ subscribeToEventIds = this._throttle(async function (callback: (event: TaggedNos
|
|||||||
await this.events.where("id").anyOf(ids).each(callback);
|
await this.events.where("id").anyOf(ids).each(callback);
|
||||||
|
|
||||||
console.timeEnd("subscribeToEventIds");
|
console.timeEnd("subscribeToEventIds");
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
||||||
subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
||||||
const tagPairs = [...this.subscribedTags].map(tag => tag.split("|"));
|
const tagPairs = [...this.subscribedTags].map(tag => tag.split("|"));
|
||||||
this.subscribedTags.clear();
|
this.subscribedTags.clear();
|
||||||
|
|
||||||
@ -148,9 +148,9 @@ subscribeToTags = this._throttle(async function (callback: (event: TaggedNostrEv
|
|||||||
await this.subscribeToEventIds(callback);
|
await this.subscribeToEventIds(callback);
|
||||||
|
|
||||||
console.timeEnd("subscribeToTags");
|
console.timeEnd("subscribeToTags");
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
||||||
subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: TaggedNostrEvent) => void) {
|
||||||
const authorsAndKinds = [...this.subscribedAuthorsAndKinds];
|
const authorsAndKinds = [...this.subscribedAuthorsAndKinds];
|
||||||
this.subscribedAuthorsAndKinds.clear();
|
this.subscribedAuthorsAndKinds.clear();
|
||||||
|
|
||||||
@ -164,8 +164,7 @@ subscribeToAuthorsAndKinds = this._throttle(async function (callback: (event: Ta
|
|||||||
await this.events.where("[pubkey+kind]").anyOf(pairs).each(callback);
|
await this.events.where("[pubkey+kind]").anyOf(pairs).each(callback);
|
||||||
|
|
||||||
console.timeEnd("subscribeToAuthorsAndKinds");
|
console.timeEnd("subscribeToAuthorsAndKinds");
|
||||||
}, 200);
|
}, 200);
|
||||||
|
|
||||||
|
|
||||||
async find(filter: Filter, callback: (event: TaggedNostrEvent) => void): Promise<void> {
|
async find(filter: Filter, callback: (event: TaggedNostrEvent) => void): Promise<void> {
|
||||||
if (!filter) return;
|
if (!filter) return;
|
||||||
|
@ -7,7 +7,11 @@ interface ReservedAccountProps {
|
|||||||
declineReserved: () => void;
|
declineReserved: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ReservedAccount({ name = "", enableReserved = () => {}, declineReserved = () => {} }: ReservedAccountProps) {
|
export default function ReservedAccount({
|
||||||
|
name = "",
|
||||||
|
enableReserved = () => {},
|
||||||
|
declineReserved = () => {},
|
||||||
|
}: ReservedAccountProps) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p className="success">
|
<p className="success">
|
||||||
|
Reference in New Issue
Block a user