Optimize imports

This commit is contained in:
Eike Kettner 2021-02-25 22:42:47 +01:00
parent e9ed998e3a
commit a80d73d5d2
12 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,7 @@
package docspell.query
import cats.data.{NonEmptyList => Nel}
import docspell.query.ItemQuery.Attr.{DateAttr, StringAttr}
/** A query evaluates to `true` or `false` given enough details about

View File

@ -1,9 +1,9 @@
package docspell.query
import docspell.query.internal.ExprParser
import scala.scalajs.js.annotation._
import docspell.query.internal.ExprParser
@JSExportTopLevel("DsItemQueryParser")
object ItemQueryParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery.Attr
object AttrParser {

View File

@ -1,7 +1,7 @@
package docspell.query.internal
import cats.data.{NonEmptyList => Nel}
import cats.parse.{Parser0, Parser => P}
import cats.parse.{Parser => P, Parser0}
object BasicParser {
private[this] val whitespace: P[Unit] = P.charIn(" \t\r\n").void

View File

@ -2,6 +2,7 @@ package docspell.query.internal
import cats.implicits._
import cats.parse.{Numbers, Parser => P}
import docspell.query.Date
object DateParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery._
object ExprParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery._
object OperatorParser {

View File

@ -1,6 +1,7 @@
package docspell.query.internal
import cats.parse.{Parser => P}
import docspell.query.ItemQuery.Expr.CustomFieldMatch
import docspell.query.ItemQuery._

View File

@ -22,7 +22,7 @@ package docspell.query.internal
// modified, from
// https://github.com/typelevel/cats-parse/blob/e7a58ef15925358fbe7a4c0c1a204296e366a06c/bench/src/main/scala/cats/parse/bench/self.scala
import cats.parse.{Parser0 => P0, Parser => P}
import cats.parse.{Parser => P, Parser0 => P0}
object StringUtil {

View File

@ -4,6 +4,7 @@ import cats.Monoid
import cats.data.NonEmptyList
import cats.effect._
import cats.implicits._
import docspell.backend.BackendApp
import docspell.backend.auth.AuthToken
import docspell.backend.ops.OCustomFields.{RemoveValue, SetValue}
@ -18,6 +19,7 @@ import docspell.restserver.conv.Conversions
import docspell.restserver.http4s.BinaryUtil
import docspell.restserver.http4s.Responses
import docspell.restserver.http4s.{QueryParam => QP}
import org.http4s.HttpRoutes
import org.http4s.circe.CirceEntityDecoder._
import org.http4s.circe.CirceEntityEncoder._

View File

@ -3,12 +3,14 @@ package docspell.store.qb.generator
import java.time.{Instant, LocalDate}
import cats.data.NonEmptyList
import docspell.common._
import docspell.query.{Date, ItemQuery}
import docspell.query.ItemQuery._
import docspell.store.qb.{Operator => QOp, _}
import docspell.query.{Date, ItemQuery}
import docspell.store.qb.DSL._
import docspell.store.qb.{Operator => QOp, _}
import docspell.store.records.{RCustomField, RCustomFieldValue, TagItemName}
import doobie.util.Put
object ItemQueryGenerator {

View File

@ -5,6 +5,7 @@ import cats.effect.Sync
import cats.effect.concurrent.Ref
import cats.implicits._
import fs2.Stream
import docspell.common.syntax.all._
import docspell.common.{IdRef, _}
import docspell.query.ItemQuery
@ -13,6 +14,7 @@ import docspell.store.qb.DSL._
import docspell.store.qb._
import docspell.store.qb.generator.{ItemQueryGenerator, Tables}
import docspell.store.records._
import doobie.implicits._
import doobie.{Query => _, _}
import org.log4s.getLogger