mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-21 00:29:38 +01:00
Added a standalone page for library
This commit is contained in:
@@ -23,12 +23,15 @@ object QueryBinders {
|
||||
}
|
||||
|
||||
implicit val hashedBindable = QueryStringBindable.bindableString.transform[Hashes](
|
||||
str => str.split('-') match {
|
||||
case Array(sha1, md5) => Hashes(sha1 = sha1, md5 = md5)
|
||||
},
|
||||
str => Hashes.unserialize(str),
|
||||
hashes => hashes.serialized
|
||||
)
|
||||
|
||||
implicit val hashesPathBinder = new PathBindable[Hashes] {
|
||||
override def bind(key: String, value: String): Either[String, Hashes] = Right(Hashes.unserialize(value))
|
||||
override def unbind(key: String, value: Hashes): String = value.serialized
|
||||
}
|
||||
|
||||
implicit object MapStringIntJavascriptLiteral extends JavascriptLiteral[Map[String, Int]] {
|
||||
override def to(value: Map[String, Int]): String = formats.writes(value).toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user