Render pretty event with nice looking transition.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Alpine from 'alpinejs';
|
||||
import jsonFormatHighlight from 'json-format-highlight';
|
||||
import { getPublicKey } from 'nostr-tools';
|
||||
import { getHosts, sortByIndex } from './db';
|
||||
import { getProfiles, KINDS } from './utils';
|
||||
@@ -14,6 +15,7 @@ Alpine.data('eventLog', () => ({
|
||||
allProfiles: [],
|
||||
profile: '',
|
||||
pubkey: '',
|
||||
selected: null,
|
||||
|
||||
// date view
|
||||
fromCreatedAt: '2008-10-31',
|
||||
@@ -60,6 +62,10 @@ Alpine.data('eventLog', () => ({
|
||||
this.reload();
|
||||
},
|
||||
|
||||
highlight(event) {
|
||||
return jsonFormatHighlight(event);
|
||||
},
|
||||
|
||||
// Properties
|
||||
|
||||
get fromTime() {
|
||||
|
||||
Reference in New Issue
Block a user