Download all events.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Alpine from 'alpinejs';
|
||||
import jsonFormatHighlight from 'json-format-highlight';
|
||||
import { getPublicKey } from 'nostr-tools';
|
||||
import { getHosts, sortByIndex } from './db';
|
||||
import { downloadAllContents, getHosts, sortByIndex } from './db';
|
||||
import { getProfiles, KINDS } from './utils';
|
||||
|
||||
const TOMORROW = new Date();
|
||||
@@ -50,6 +50,14 @@ Alpine.data('eventLog', () => ({
|
||||
}));
|
||||
},
|
||||
|
||||
async saveAll() {
|
||||
const file = await downloadAllContents();
|
||||
browser.tabs.create({
|
||||
url: URL.createObjectURL(file),
|
||||
active: true,
|
||||
});
|
||||
},
|
||||
|
||||
quickKindSelect() {
|
||||
if (this.quickKind === '') return;
|
||||
const i = parseInt(this.quickKind);
|
||||
|
||||
Reference in New Issue
Block a user