armanbilge / fs2-dom Goto Github PK
View Code? Open in Web Editor NEWIdiomatic Cats Effect + FS2 integrations for Web APIs
License: Apache License 2.0
Idiomatic Cats Effect + FS2 integrations for Web APIs
License: Apache License 2.0
https://developer.mozilla.org/en-US/docs/Web/API/Window
You can make one at the beginning of your application with Async
, and then pass it down.
MouseEvent does not declare any public members (except what it inherits from UIEvent and Event) so it is not possible to extract important details like the coordinates of a click.
https://systemfw.org/dynosaur/#/motivation
I have a sketch at a6ac0b8 but it needs more work.
It is currently used here, to automatically derive a Serializer
when a circe Encoder
/Decoder
are in scope. I added this for convenience.
fs2-dom/dom/src/main/scala/fs2/dom/Serializer.scala
Lines 52 to 59 in 443ca6b
While this is convenient, it is not a good long term solution. Namely:
Json
represents only a subset of serializable data structures. For example JS ArrayBuffer
is serializable, but there is no way to express this in Json
.Json
also models stuff we can't serialize. For example, a JsonNumber
maybe be arbitrarily large; however JavaScript-native numbers must be representable as Double
.It's annoying, but what we need is our own infrastructure for deriving Serializer
s from data classes. We can use shapeless 3, and maybe take inspiration from Dynosaur.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.