Coder Social home page Coder Social logo

vertical's Introduction

Vertical

Goals

  1. Declerative Ui description (full-stack planned)
  2. Auto parent child relationship - parent aggregates children data, children auto-pass parent data.
  3. Audo bindings of nodes by key.
  4. Cross concern auto deps - for example disabled when loading
  5. Statically typed API.
  6. Statically typed data.
  7. 100% cusomizable - prefer composability over inheritence and/or big config.
  8. Dependecy Injection
  9. Future: Dynamic children (for editors and similar)
  10. Future: Auto Normalization/Denormalization of API response
  11. Backend' data driven UI

vertical's People

Contributors

danielyogel avatar danielstoa avatar

Stargazers

 avatar

Watchers

 avatar

vertical's Issues

Non 'logical' children (?)

Allow specifying children that are not related to the parent's value.
Like a child for some button...
Should be marked as "non-logical", so type safety does not break, and non-logical children are explicitly marked (typos for logical children should still not compile).

Simplify Code

  1. Move one time used types from BaseVM
  2. Removed one time used mixins (views)
  3. Make things optional

all code should be inside mixins

withArrayParent.ts
withArrayChildParent.tsx
withDynamicChildParent.ts
withRecordParent.ts
withSkalarParent.ts

  • maybe some of them can be unified as well...
  • where should they be placed?

Context

  1. allow any node to change the context bottom-down

Refactor Node Kinds

Important: A nodeKind should be wrappale (like extended in classes)

  1. NodeSkalar
  2. NodeOneOf
  3. NodeObject
    -- children are (Record<string, node>)
    -- binds value and onChange by key
  4. NodeLogical
    -- children are (Record<string , node> | Array)
    -- pass value and onchange as is (partial onChange)

Consider Changing The Type Infer Direction

  1. May simplify code?
  2. Any problem?
  3. Just make a branch?
  4. Write down "plus VS minus"

minuses

  1. makes the form less generic, you can not initiate forms un related to specific data, the only solution would be mapping the data in input/output

Ways To Extend

  1. Existing mixin's options
  2. create a new node class using existing mixins and/or wrapping existing classes
  3. add an 'option/sub-types/etc' type variable
  4. goes all the way to the view

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.