slurmulon / gooey Goto Github PK
View Code? Open in Web Editor NEW:cactus: Hierarchical PubSub data synchronization solution for ES6
License: MIT License
:cactus: Hierarchical PubSub data synchronization solution for ES6
License: MIT License
We need to support transparent two-way data binding between the JS model service layer and the DOM.
Creating a DOM data binding syntax not only brings familiarity to developers (at least users of Angular, React, Ember, etc.) but also greatly improves data transparency.
{scopeVar}
or
|scopeVar|
I personally like |scopeVar|
because it's easier to distinguish from many server-side template languages such as Moustache.
Assuming we are using |
, I'm proposing that |-
can be used to explicitly reference Gooey components. The following example is a basic usage of gooey.components.core.model
where foo
is a value present on the scope
:
<input type="text" |-model="foo" />
http://www.2ality.com/2014/12/es6-proxies.html
Ensure data
is a Proxy object that integrates proxy event handlers into gooey.Service.publish
This will be useful as it is a native abstraction for intercepting property requests on objects. This will allow us to more easily support model/view two-way data synchronization.
data
is a proxy, concurrent Service
subscription handlers will be able to more easily synchronize data mutation events (order specification, conflict resolution fn, etc.), especially those between sibling Services
that are mutating identical data points.It's been a while since I worked on this, but ran into some issues on personal projects that could benefit from fancy PubSub.
One of the main annoyances I find is only being able to match with json-where
. It would be nice if we also supported the following matching mechanisms:
String
This will require refactoring the matching functionality a bit (obviously), most likely involves adding a new layer of abstraction so that we can disambiguate what sort of matching pattern is applied (JSON Schema, json-where
, exact string, etc.)
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.