Coder Social home page Coder Social logo

willybrauner / compose Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 881 KB

Compose is a small and type-safe library that links your javascript to your DOM.

License: MIT License

TypeScript 100.00%
atomic-design components dom dom-manipulation page-transitions query typescript vanilla-js

compose's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

cher-ami

compose's Issues

Wrap page transitions playIn & playOut

Now we use promiseRef.reject = reject() on each transitions methods. We don't want to write it each time.

  • Create playIn & playOut method template in Component.ts with promise wrapper inside
  • then, remove implement interface...
  • then... need to remove default transition :/ because if Component playIn and playOut are templates, we can't check if it exist.

Cache fetched response

Need to cache fetch html response in object to not request a seconde time on the same URL.

Fixs

  • remove unused onTransitionStart onTransitionComplete method
  • Move prepare currentPage and prepare mountNewPage in their own method
  • exe currentPage playIn on first load
  • Fix Stack currentUrl
  • remove $root param playIn and playOut (because we hav already context and then this.$root
  • remove hide page before playIn ?
  • Update doc

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.