mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Fix formatting
This commit is contained in:
parent
9415f72ec0
commit
54a4e6efee
@ -13,11 +13,11 @@ import cats.implicits._
|
||||
import docspell.common.AccountId
|
||||
import docspell.common._
|
||||
import docspell.store.Store
|
||||
import docspell.store.records.RClientSettingsCollective
|
||||
import docspell.store.records.RClientSettingsUser
|
||||
import docspell.store.records.RUser
|
||||
|
||||
import io.circe.Json
|
||||
import docspell.store.records.RClientSettingsCollective
|
||||
|
||||
trait OClientSettings[F[_]] {
|
||||
|
||||
|
@ -1,13 +1,20 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.backend.ops
|
||||
|
||||
import cats.effect._
|
||||
import cats.implicits._
|
||||
|
||||
import docspell.common._
|
||||
import docspell.query.ItemQuery
|
||||
import cats.effect._
|
||||
import docspell.store.Store
|
||||
import docspell.store.records.RQueryBookmark
|
||||
import cats.implicits._
|
||||
import docspell.store.UpdateResult
|
||||
import docspell.store.AddResult
|
||||
import docspell.store.Store
|
||||
import docspell.store.UpdateResult
|
||||
import docspell.store.records.RQueryBookmark
|
||||
|
||||
trait OQueryBookmarks[F[_]] {
|
||||
|
||||
|
@ -1,17 +1,25 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.restserver.routes
|
||||
|
||||
import cats.effect.Async
|
||||
import cats.implicits._
|
||||
|
||||
import docspell.backend.BackendApp
|
||||
import docspell.backend.auth.AuthToken
|
||||
import docspell.backend.ops.OQueryBookmarks
|
||||
import docspell.common.Ident
|
||||
import docspell.restapi.model.BookmarkedQuery
|
||||
import docspell.restserver.conv.Conversions
|
||||
|
||||
import org.http4s.HttpRoutes
|
||||
import org.http4s.circe.CirceEntityDecoder._
|
||||
import org.http4s.circe.CirceEntityEncoder._
|
||||
import org.http4s.dsl.Http4sDsl
|
||||
import cats.effect.Async
|
||||
import docspell.backend.ops.OQueryBookmarks
|
||||
import docspell.restapi.model.BookmarkedQuery
|
||||
import docspell.backend.BackendApp
|
||||
import cats.implicits._
|
||||
import docspell.restserver.conv.Conversions
|
||||
import docspell.common.Ident
|
||||
|
||||
object BookmarkRoutes {
|
||||
|
||||
|
@ -8,6 +8,7 @@ package docspell.restserver.routes
|
||||
|
||||
import cats.effect._
|
||||
import cats.implicits._
|
||||
import cats.kernel.Semigroup
|
||||
|
||||
import docspell.backend.BackendApp
|
||||
import docspell.backend.auth.AuthToken
|
||||
@ -19,7 +20,6 @@ import org.http4s.HttpRoutes
|
||||
import org.http4s.circe.CirceEntityDecoder._
|
||||
import org.http4s.circe.CirceEntityEncoder._
|
||||
import org.http4s.dsl.Http4sDsl
|
||||
import cats.kernel.Semigroup
|
||||
|
||||
object ClientSettingsRoutes {
|
||||
|
||||
|
@ -1,5 +1,14 @@
|
||||
/*
|
||||
* Copyright 2020 Eike K. & Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package docspell.store.records
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
import cats.syntax.option._
|
||||
|
||||
import docspell.common._
|
||||
import docspell.query.ItemQuery
|
||||
import docspell.store.qb.DSL._
|
||||
@ -7,8 +16,6 @@ import docspell.store.qb._
|
||||
|
||||
import doobie._
|
||||
import doobie.implicits._
|
||||
import cats.data.NonEmptyList
|
||||
import cats.syntax.option._
|
||||
|
||||
final case class RQueryBookmark(
|
||||
id: Ident,
|
||||
@ -52,8 +59,8 @@ object RQueryBookmark {
|
||||
account: AccountId,
|
||||
name: String,
|
||||
label: Option[String],
|
||||
query: ItemQuery,
|
||||
personal: Boolean
|
||||
query: ItemQuery,
|
||||
personal: Boolean
|
||||
): ConnectionIO[RQueryBookmark] =
|
||||
for {
|
||||
userId <- RUser.getIdByAccount(account)
|
||||
|
@ -7,6 +7,8 @@
|
||||
package docspell.store.records
|
||||
|
||||
import cats.data.NonEmptyList
|
||||
import cats.data.OptionT
|
||||
import cats.effect.Sync
|
||||
|
||||
import docspell.common._
|
||||
import docspell.store.qb.DSL._
|
||||
@ -14,8 +16,6 @@ import docspell.store.qb._
|
||||
|
||||
import doobie._
|
||||
import doobie.implicits._
|
||||
import cats.data.OptionT
|
||||
import cats.effect.Sync
|
||||
|
||||
case class RUser(
|
||||
uid: Ident,
|
||||
|
@ -1,3 +1,10 @@
|
||||
{-
|
||||
Copyright 2020 Eike K. & Contributors
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
-}
|
||||
|
||||
|
||||
module Comp.BookmarkChooser exposing
|
||||
( Model
|
||||
, Msg
|
||||
|
@ -1,3 +1,10 @@
|
||||
{-
|
||||
Copyright 2020 Eike K. & Contributors
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
-}
|
||||
|
||||
|
||||
module Comp.BookmarkQueryManage exposing (..)
|
||||
|
||||
import Api
|
||||
|
@ -1,3 +1,10 @@
|
||||
{-
|
||||
Copyright 2020 Eike K. & Contributors
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
-}
|
||||
|
||||
|
||||
module Data.Bookmarks exposing
|
||||
( AllBookmarks
|
||||
, Bookmarks
|
||||
|
Loading…
x
Reference in New Issue
Block a user