Giter VIP home page Giter VIP logo

flight-toolbox's Introduction

Flight Toolbox

What is this?

A jumping off point for Flight mixins, where we'll manage official mixin development and provide resources on how to use them to the full.

What's the current state of the toolbox?

Currently we have four official mixins, all hosted under the FlightJS org on GitHub. Please submit an issue if you think you have one to be added.

  • with-child-components for nesting components, making sure that a component and its children are torn down together.
  • with-state for storing and reacting to change in a component's internal state.
  • with-batch for efficiently batching function calls into animation frames, particularly useful for coalescing DOM updates.
  • with-resources for sharing named resources between components.
  • with-observable-state for exposing the state created by with-state as an observable sequence (using RxJS)
  • with-observe helps manage subscribe/dispose of observables (using RxJS) within the context of component lifecycle.

What's in development?

We have mixins at various stages of development. Please see individual repository issues to contribute code or documentation.

flight-toolbox's People

Contributors

ahume avatar tgvashworth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flight-toolbox's Issues

New Base components

With Component.mixin and the mixins in the toolbox, we have the opportunity to create 'official' base components for others to use.

My suggestions are:

  • UI โ€” with-child-components, with-state, with-batch.
  • Data โ€” with-state, ... more data-ish stuff.

Create withProxy mixin

Flight v2 will remove event proxying from core, so this functionality needs to be replaced by a mixin.

There are a couple of possible APIs:

  • this.(un)proxy which would entirely separate proxying from the normal event-binding flow. This is preferential in my opinion but isn't backward compatible.
  • wrap this.on (and this.off) to intercept proxy-looking arguments. This isn't a good solution because of the complexity in getting the Flight registry to behave correctly in teardown situations.

Create withJQuery mixin

In v2, jQuery will no longer be a dependency of Flight, so we need a mixin to add this.$node etc back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.