fix build
This commit is contained in:
@ -7,7 +7,6 @@ import { FormattedMessage, useIntl } from "react-intl";
|
|||||||
import CloseButton from "@/Components/Button/CloseButton";
|
import CloseButton from "@/Components/Button/CloseButton";
|
||||||
import Icon from "@/Components/Icons/Icon";
|
import Icon from "@/Components/Icons/Icon";
|
||||||
import Modal from "@/Components/Modal/Modal";
|
import Modal from "@/Components/Modal/Modal";
|
||||||
import { Tab } from "@/Components/Tabs/Tabs";
|
|
||||||
import Tabs from "@/Components/Tabs/Tabs";
|
import Tabs from "@/Components/Tabs/Tabs";
|
||||||
import ProfileImage from "@/Components/User/ProfileImage";
|
import ProfileImage from "@/Components/User/ProfileImage";
|
||||||
import { formatShort } from "@/Utils/Number";
|
import { formatShort } from "@/Utils/Number";
|
||||||
|
@ -100,7 +100,7 @@ class IndexedDB extends Dexie {
|
|||||||
if (!this.isProcessingQueue && this.readQueue.size > 0) {
|
if (!this.isProcessingQueue && this.readQueue.size > 0) {
|
||||||
this.isProcessingQueue = true;
|
this.isProcessingQueue = true;
|
||||||
for (const [key, task] of this.readQueue.entries()) {
|
for (const [key, task] of this.readQueue.entries()) {
|
||||||
console.log('starting idb task', key);
|
console.log("starting idb task", key);
|
||||||
console.time(key);
|
console.time(key);
|
||||||
await task();
|
await task();
|
||||||
this.readQueue.delete(key);
|
this.readQueue.delete(key);
|
||||||
@ -116,7 +116,7 @@ class IndexedDB extends Dexie {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getByAuthors = async (callback: (event: TaggedNostrEvent) => void, limit?: number) => {
|
getByAuthors = async (callback: (event: TaggedNostrEvent) => void, limit?: number) => {
|
||||||
this.enqueueRead('getByAuthors', async () => {
|
this.enqueueRead("getByAuthors", async () => {
|
||||||
const authors = [...this.subscribedAuthors];
|
const authors = [...this.subscribedAuthors];
|
||||||
this.subscribedAuthors.clear();
|
this.subscribedAuthors.clear();
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ class IndexedDB extends Dexie {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getByEventIds = async (callback: (event: TaggedNostrEvent) => void) => {
|
getByEventIds = async (callback: (event: TaggedNostrEvent) => void) => {
|
||||||
this.enqueueRead('getByEventIds', async () => {
|
this.enqueueRead("getByEventIds", async () => {
|
||||||
const ids = [...this.subscribedEventIds];
|
const ids = [...this.subscribedEventIds];
|
||||||
this.subscribedEventIds.clear();
|
this.subscribedEventIds.clear();
|
||||||
await this.events.where("id").anyOf(ids).each(callback);
|
await this.events.where("id").anyOf(ids).each(callback);
|
||||||
@ -137,7 +137,7 @@ class IndexedDB extends Dexie {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getByTags = async (callback: (event: TaggedNostrEvent) => void) => {
|
getByTags = async (callback: (event: TaggedNostrEvent) => void) => {
|
||||||
this.enqueueRead('getByTags', async () => {
|
this.enqueueRead("getByTags", async () => {
|
||||||
const tagPairs = [...this.subscribedTags].map(tag => tag.split("|"));
|
const tagPairs = [...this.subscribedTags].map(tag => tag.split("|"));
|
||||||
this.subscribedTags.clear();
|
this.subscribedTags.clear();
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ class IndexedDB extends Dexie {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getByAuthorsAndKinds = async (callback: (event: TaggedNostrEvent) => void) => {
|
getByAuthorsAndKinds = async (callback: (event: TaggedNostrEvent) => void) => {
|
||||||
this.enqueueRead('authorsAndKinds', async () => {
|
this.enqueueRead("authorsAndKinds", async () => {
|
||||||
const authorsAndKinds = [...this.subscribedAuthorsAndKinds];
|
const authorsAndKinds = [...this.subscribedAuthorsAndKinds];
|
||||||
this.subscribedAuthorsAndKinds.clear();
|
this.subscribedAuthorsAndKinds.clear();
|
||||||
const pairs = authorsAndKinds.map(pair => {
|
const pairs = authorsAndKinds.map(pair => {
|
||||||
|
Reference in New Issue
Block a user