GithubHelp home page GithubHelp logo

taijiweb / domcom Goto Github PK

View Code? Open in Web Editor NEW
110.0 110.0 15.0 12.14 MB

the web framework to provide dom component

License: MIT License

CoffeeScript 20.18% HTML 1.56% CSS 0.20% JavaScript 78.07%

domcom's People

Contributors

chaosim avatar dependabot[bot] avatar taijiweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

domcom's Issues

emit 'beforeAttach' and 'afterDetach' for offspring component

emit 'beforeAttach' and 'afterDetach' for component and all it's offspring component

Consider always emit 'beforeAttach' and 'afterDetach' for component and all it's offspring component, if the listeners of the offspring component is not empty.

generalize the new solution for "each" component to all TransformComponent

Now "each" component is not a TransformComponent subclass any more. Instead, it just becomes a List component with some additional field and method. some works are done in 'willRender' and 'didRender' compnent event.

It is possible to generalize the new solution for "each" component to all TransformComponent, and remove TransformComponent class hierarchy. But I does not get the whole solution for now. The difficult exists in multiple level chained transformation and one baseComponent can be used in different places. Expect more ideas about this.

minify the removing and reinsert of node as possible

  • minify the removing and reinsert of node as possible

    A B C D -> B C D A, should only removing and reinsert A, because only A's succ is changed

    A B C D -> D A B C, should only removing reinsert D, because only D's succ is changed.

    method:

    record parent and nextNode, and the status of whether they are lived in dom

    Component.alive field

More English document is wanted, help please :)

Now There is basically enough Chinese document, which has covered many aspects of domcom. But more English document is required. Hope someone can help to add more English documents. Your contribution are very appreciated and welcomed! Thanks!

add getBaseComponent method back

The getBaseComponent method was used some time ago, but it was removed in the latest big refactor. Now I think it may be better to add it back, and only removeNode and attachNode when oldBaseComponent != newBaseComponent

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.