interactive event filling of missing properties.

This commit is contained in:
fiatjaf
2023-03-24 23:20:24 -03:00
parent 4d23a4c6af
commit 58517711b6
5 changed files with 88 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ object Main extends IOWebApp {
Event(
kind = 1,
content = "hello world"
).sign(PrivateKey(randomBytes32()))
).sign(keyOne)
.asJson
.printWith(jsonPrinter)
)
@@ -90,9 +90,8 @@ object Main extends IOWebApp {
div(
cls := "w-full flex my-5",
store.result.map {
case Left(msg) => div(msg)
case Right(event: Event) =>
renderEvent(event)
case Left(msg) => div(msg)
case Right(event: Event) => renderEvent(event, store)
case Right(pp: ProfilePointer) => renderProfilePointer(pp)
case Right(evp: EventPointer) => renderEventPointer(evp)
case Right(sk: PrivateKey) =>