Organized Imports

This commit is contained in:
Rohan Sircar 2020-12-27 20:40:02 +05:30
parent 2e142be178
commit 4b7c3e633b
8 changed files with 37 additions and 43 deletions

View File

@ -1,15 +1,15 @@
package outwatch.router package outwatch.router
import org.scalajs.dom.window
import colibri.Observable
import outwatch.util.Store
import outwatch.util.Reducer
import cats.effect.Sync import cats.effect.Sync
import colibri.Observable
import org.scalajs.dom.window
import outwatch._ import outwatch._
import outwatch.dsl._ import outwatch.dsl._
import outwatch.router.dsl.Path
import outwatch.router.dsl.HashPath import outwatch.router.dsl.HashPath
import outwatch.router.dsl.Path
import outwatch.router.dsl.Root import outwatch.router.dsl.Root
import outwatch.util.Reducer
import outwatch.util.Store
sealed trait Action sealed trait Action
final case class Replace(path: Path) extends Action final case class Replace(path: Path) extends Action

View File

@ -2,11 +2,13 @@
package outwatch.router.dsl package outwatch.router.dsl
import cats.implicits._ import java.nio.ByteBuffer
import java.nio.{ByteBuffer, CharBuffer} import java.nio.CharBuffer
import java.nio.charset.Charset import java.nio.charset.Charset
import java.nio.charset.StandardCharsets.UTF_8 import java.nio.charset.StandardCharsets.UTF_8
import cats.implicits._
/** Base class for path extractors. */ /** Base class for path extractors. */
trait Path { trait Path {
def /(child: String): Path = new /(this, child) def /(child: String): Path = new /(this, child)

View File

@ -1,7 +1,7 @@
package outwatch package outwatch
import outwatch._
import colibri.ProSubject import colibri.ProSubject
import outwatch._
package object router { package object router {
type RouterStore[P] = ProSubject[Action, (Action, RouterState[P])] type RouterStore[P] = ProSubject[Action, (Action, RouterState[P])]

View File

@ -1,16 +1,17 @@
package outwatch.util package outwatch.util
import outwatch.helpers._ import scala.concurrent.Future
// import colibri._
import org.scalajs.dom.{Event, MessageEvent} import cats.Show
import cats.effect.Sync import cats.effect.Sync
import monix.execution.Ack
import monix.execution.Cancelable
import monix.reactive.Observable import monix.reactive.Observable
import monix.reactive.Observer import monix.reactive.Observer
import monix.execution.Cancelable
import monix.reactive.OverflowStrategy import monix.reactive.OverflowStrategy
import scala.concurrent.Future import org.scalajs.dom.Event
import monix.execution.Ack import org.scalajs.dom.MessageEvent
import cats.Show import outwatch.helpers._
object MonixWS { object MonixWS {
// implicit def toObserver[F[_]: Sync, S: Show]( // implicit def toObserver[F[_]: Sync, S: Show](

View File

@ -1,9 +1,10 @@
package outwatch.util package outwatch.util
import outwatch.helpers._
import colibri._
import org.scalajs.dom.{Event, MessageEvent}
import cats.effect.Sync import cats.effect.Sync
import colibri._
import org.scalajs.dom.Event
import org.scalajs.dom.MessageEvent
import outwatch.helpers._
object WebSocketF { object WebSocketF {
implicit def toObserver[F[_]: Sync]( implicit def toObserver[F[_]: Sync](

View File

@ -1,24 +1,24 @@
package outwatchapp package outwatchapp
import outwatch._ import scala.concurrent.duration._
import outwatch.dsl._
import cats.effect.ExitCode import cats.effect.ExitCode
import monix.bio._
import colibri.ext.monix._
import monix.reactive.Observable
import scala.concurrent.duration._
import cats.implicits._ import cats.implicits._
import colibri.ext.monix._
import monix.bio._
import monix.eval.Coeval
import monix.reactive.Observable
import monix.{eval => me}
import nova.monadic_sfx.ui.components.todo.Todo
import nova.monadic_sfx.ui.components.todo.TodoListStore
import outwatch._
import outwatch.dsl._
import outwatch.reactive.handlers.monix._
import outwatch.router.AppRouter import outwatch.router.AppRouter
import outwatch.router.dsl._ import outwatch.router.dsl._
import sttp.client.impl.monix.FetchMonixBackend
import outwatch.reactive.handlers.monix._
import sttp.client._
import monix.{eval => me}
import nova.monadic_sfx.ui.components.todo.TodoListStore
import outwatchapp.implicits._ import outwatchapp.implicits._
import monix.eval.Coeval import sttp.client._
import nova.monadic_sfx.ui.components.todo.Todo import sttp.client.impl.monix.FetchMonixBackend
object OutwatchApp extends BIOApp { object OutwatchApp extends BIOApp {
val counter2 = Observable.interval(1.second) val counter2 = Observable.interval(1.second)

View File

@ -1,17 +1,11 @@
package outwatchapp package outwatchapp
import colibri.Sink
import nova.monadic_sfx.util.reactive.store.MonixProSubject
import cats.effect.Sync
import colibri.CreateProSubject
import colibri.Source
import colibri.LiftSink import colibri.LiftSink
import monix.reactive.Observer
import colibri.LiftSource import colibri.LiftSource
import monix.reactive.Observable
import colibri.ext.monix._ import colibri.ext.monix._
import monix.execution.Scheduler import monix.execution.Scheduler
import monix.execution.Ack import monix.reactive.Observable
import monix.reactive.Observer
package object implicits { package object implicits {
// implicit def sinkForMyMonixProSub[A, M] = // implicit def sinkForMyMonixProSub[A, M] =

View File

@ -2,12 +2,8 @@ package nova.monadic_sfx.util.reactive.store
import java.time.LocalDateTime import java.time.LocalDateTime
import io.circe.Encoder
import io.circe.Printer import io.circe.Printer
import io.circe.generic.JsonCodec import io.circe.generic.JsonCodec
import io.circe.syntax._
import monix.bio.Task
import monix.reactive.Observable
// object Middleware { // object Middleware {
// def apply[A,M,T](ob: Observable[(A,M)], cb: (A,M) => T): Observable[(A,M)] = ob // def apply[A,M,T](ob: Observable[(A,M)], cb: (A,M) => T): Observable[(A,M)] = ob
// } // }