mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add websockets and notify frontend when an item is processed
This commit is contained in:
@ -12,9 +12,7 @@ import io.circe.Decoder
|
||||
import io.circe.parser._
|
||||
|
||||
trait StringSyntax {
|
||||
|
||||
implicit class EvenMoreStringOps(s: String) {
|
||||
|
||||
def asNonBlank: Option[String] =
|
||||
Option(s).filter(_.trim.nonEmpty)
|
||||
|
||||
@ -24,5 +22,6 @@ trait StringSyntax {
|
||||
value <- json.as[A]
|
||||
} yield value
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
object StringSyntax extends StringSyntax
|
||||
|
Reference in New Issue
Block a user