Render pretty event with nice looking transition.

This commit is contained in:
Ryan Breen
2023-02-14 23:43:24 -05:00
parent bed3c121e7
commit ad0b657cd5
2 changed files with 17 additions and 2 deletions

View File

@@ -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() {