This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object HelloWoutWatch { | |
def main(args: Array[String]): Unit = { | |
val txtRFC = Handler.create[String]("").unsafeRunSync() | |
val txtDescripcion = Handler.create[String]("").unsafeRunSync() | |
val txtRepresentante = Handler.create[String]("").unsafeRunSync() | |
val txtCalle = Handler.create[String]("").unsafeRunSync() | |
val txtColonia = Handler.create[String]("").unsafeRunSync() | |
val txtDelegacion = Handler.create[String]("").unsafeRunSync() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spatutorial.client.modules | |
import outwatch.util.Store | |
import spatutorial.shared.Articulo | |
import monix.execution.Scheduler.Implicits.global | |
object StoreProv { | |
sealed trait ActionArticulo | |
case object Search extends ActionArticulo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spatutorial.client.modules | |
import outwatch.util.Store | |
import spatutorial.shared.Proveedor | |
import monix.execution.Scheduler.Implicits.global | |
object StoreProv { | |
sealed trait ActionpProveedor | |
case object Search extends ActionpProveedor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spatutorial.client | |
import boopickle.Default._ | |
import autowire._ | |
import cats.effect.IO | |
import monix.execution.Ack | |
import monix.execution.Ack.Continue | |
import monix.execution.schedulers.TestScheduler.Task | |
import scala.concurrent.Future |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object WSChat { | |
var wsChat = WebSocket ("ws://192.168.0.5:9000/wschat") | |
wsChat.ws.onopen = { v => | |
println("Al abrir la conexion") | |
val bytes = Pickle.intoBytes[ChatEvent](ChatMessage("Hola")).arrayBuffer() | |
wsChat.ws.send(bytes) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundling the application with its NPM dependencies | |
[error] ModuleNotFoundError: Module not found: Error: Can't resolve './snabbdom-custom-props' in '/home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main' | |
[error] at factoryCallback (/home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/Compilation.js:269:40) | |
[error] at factory (/home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:235:20) | |
[error] at resolver (/home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:60:20) | |
[error] at asyncLib.parallel (/home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:127:20) | |
[error] at /home/elyphas/bundlerTest/manikTest/client/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/asy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package myceliumHandler | |
import java.io.{File, FileInputStream, FileOutputStream} | |
import postg.{CDatosGralesPedido, CReportePedido, CTipoDocumento} | |
import spatutorial.shared.WebSocketEvent.{GetPedido, GetReporte, IncomingFile} | |
import scala.collection.mutable | |
import scala.concurrent.Future | |
/** for Mycelium**/ | |
import mycelium.server._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sendFileReader(f: dom.Blob, typeFile: String, idPedido: IdPedido, eof: Boolean) = { //Original para enviar el archivo completo | |
val fileReader = new dom.FileReader() | |
fileReader.onload = { e: dom.UIEvent => | |
val buffer = fileReader.result.asInstanceOf[ArrayBuffer] | |
val bb = TypedArrayBuffer.wrap(buffer) | |
val arraybuf: Array[Byte] = new Array[Byte](bb.remaining()) | |
bb.get(arraybuf) | |
val msgFile = IncomingFile( idPedido = idPedido, file = arraybuf, typeFile = typeFile, eof = eof) | |
//val bytesFile = Pickle.intoBytes[WebSocketEvent](msgFile).arrayBuffer() | |
//wsMain.ws.send(bytesFile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9. Waiting for source changes in project server... (press enter to interrupt) | |
[info] Fast optimizing /home/elyphas/PrjsScalaWS/manik/client/target/scala-2.12/scalajs-bundler/main/client-fastopt.js | |
[error] Referring to non-existent class shapeless.record$ | |
[error] called from manik1.modules.FrmReportes.transfData(spatutorial.shared.DatosGralesReporte)scala.Unit | |
[error] called from manik1.modules.FrmReportes.$$anonfun$grid$1(spatutorial.shared.DatosGralesReporte)scala.Unit | |
[error] called from manik1.modules.FrmReportes.<init>(java.lang.String,java.lang.String) | |
[error] called from manik1.manik1.Menu$$anonfun$$nestedInanonfun$pageContainer$1$1.applyOrElse(manik1.manik1.Page,scala.Function1)java.lang.Object | |
[error] called from manik1.manik1.Menu$$anonfun$$nestedInanonfun$pageContainer$1$1.applyOrElse(java.lang.Object,scala.Function1)java.lang.Object | |
[error] called from scala.PartialFunction$OrElse.apply(java.lang.Object)java.lang.Object | |
[error] called from outwatch.util.Store$.$$anonfun$create$6(java. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbtcrossproject.{CrossType, crossProject} | |
import com.typesafe.sbt.less.Import.LessKeys | |
/**Resolving a snapshot version. It's going to be slow unless you use `updateOptions := updateOptions.value.withLatestSnapshots(false)` options* */ | |
updateOptions := updateOptions.value.withLatestSnapshots(false) | |
lazy val server = (project in file("server")) | |
.settings(commonSettings) | |
.settings( | |
scalacOptions ++= Seq("-Ypartial-unification"), |