mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-10 09:28:51 +00:00
first Handler component: Nothing.
This commit is contained in:
34
src/main/scala/app/handlers/Nothing.scala
Normal file
34
src/main/scala/app/handlers/Nothing.scala
Normal file
@@ -0,0 +1,34 @@
|
||||
package app.handlers
|
||||
|
||||
import scala.scalajs.js
|
||||
import slinky.core.FunctionalComponent
|
||||
import slinky.web.html._
|
||||
import slinky.core.facade.Hooks._
|
||||
import slinky.core.facade.Fragment
|
||||
|
||||
import app.handlers.{Handler}
|
||||
|
||||
object Nothing extends Handler {
|
||||
override def handles(value: String): Boolean = true
|
||||
|
||||
override val component = FunctionalComponent[String] { props =>
|
||||
Fragment(
|
||||
p("you can paste here"),
|
||||
ul(
|
||||
li("an unsigned event to be hashed and signed"),
|
||||
li("a signed event to have its signature checked"),
|
||||
li("a nostr relay URL to be inspected"),
|
||||
li("a nostr event id we'll try to fetch"),
|
||||
li("a nip05 identifier to be checked"),
|
||||
li(
|
||||
span("contribute a new function: "),
|
||||
a(
|
||||
target := "_blank",
|
||||
href := "https://github.com/fiatjaf/nostr-army-knife",
|
||||
style := js.Dynamic.literal(color = "inherit")
|
||||
)("_______")
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user