mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Initial project setup
This commit is contained in:
3
modules/query/src/main/scala/docspell/query/Query.scala
Normal file
3
modules/query/src/main/scala/docspell/query/Query.scala
Normal file
@ -0,0 +1,3 @@
|
||||
package docspell.query
|
||||
|
||||
case class Query(raw: String)
|
@ -0,0 +1,13 @@
|
||||
package docspell.query
|
||||
|
||||
import scala.scalajs.js.annotation._
|
||||
|
||||
@JSExportTopLevel("DsQueryParser")
|
||||
object QueryParser {
|
||||
|
||||
@JSExport
|
||||
def parse(input: String): Either[String, Query] = {
|
||||
Right(Query("parsed: " + input))
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user