mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-17 04:18:50 +00:00
interactive event filling of missing properties.
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user