Giter Site home page Giter Site logo

web-atoms / core Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 1.0 3.66 MB

Light weight feature rich UI Framework for JavaScript for Browser with Dependency Injection, Mocking and Unit Testing

Home Page: https://www.webatoms.in/

TypeScript 99.89% JavaScript 0.10% Batchfile 0.01%
typescript mvvm javascript framework mvvm-framework web-atoms jsx tsx

core's Introduction

Action Status npm version codecov

Web-Atoms Core

Lightweight JavaScript framework with MVU Pattern with Data Binding in JSX.

Note, MVVM is now deprecated, we have realized that MVVM often adds more code then the benefits. Since JavaScript allows mixin, its easy to incorporate reusable logic with mixin rather than MVVM. MVU pattern is better suitable for faster development.

Web Features

  1. Data Binding, simple arrow functions to bind the UI elements
  2. Styled Support
  3. AtomRepeater - Lightweight List Control to manage list of items
  4. Chips control
  5. Dual View support (Mobile and Desktop)
  6. Smallest syntax
  7. Faster rendering
  8. Simple Data Validations
  9. RetroFit inspired REST API Support
  10. No additional build configurations
  11. Event re routing, it helps in reducing number of event listeners on page.
  12. UMD and SystemJS Module Loader
  13. Packer, to pack all JavaScript in single module along with dynamic module loader support
  14. FetchBuilder, fetch builder allows you to build REST request in fluent way and execute them with single await.

Web Controls

  1. ComboBox (wrapper for SELECT element)
  2. AtomControl (base class for all other controls)
  3. AtomRepeater
  4. PopupWindow, PopupWindowPage

Services

  1. WindowService - to host AtomWindow and retrieve result
  2. RestService - RetroFit kind of service for simple ajax
  3. BrowserService - An abstract navigation service for Web and Xamarin

Development guidelines

  1. Use TypeScript module pattern
  2. Do not use namespace
  3. Organize single module in single TypeScript file
  4. Import only required module and retain naming convention
  5. Use default export for UI component
  6. No Atom.get and Atom.set
  7. Do not use underscore _ anywhere, not in field name not in get/set
  8. Do not use set_name method name, instead use get name() and set name(v: T) syntax for properties.

How to run unit tests?

  1. Import test class src\test.ts
  2. Run node .\dist\test.js

How to get code coverage?

  1. Install istanbul, npm install istanbul --save-dev
  2. Install remap-istanbul, npm install remap-istanbul
  3. Cover Run, .\node_modules\.bin\istanbul.cmd cover .\dist\test.js
  4. Report Run, .\node_modules\.bin\remap-istanbul -i .\coverage\coverage.json -t html -o html-report
  5. Open generated html-report on browser

core's People

Contributors

ackava avatar ajaysingh11 avatar dependabot[bot] avatar patilhitesh avatar sanikakadam avatar shrutijadhav-neurospeech 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

Forkers

smooth80

core's Issues

List Of Controls

  • AtomApplication Use WebApp
  • AtomDockPanel Use AtomGridView
  • AtomItemsControl
  • AtomPageView
  • AtomPhoneControl Deprecated
  • AtomToggleButtonBar
  • AtomWindow
  • AtomVideo Deprecated
  • AtomComboBox
  • AtomDateField Use dateValue field on input type
  • AtomCKEditor Move to other project
  • AtomListBox
  • AtomCheckBoxList Use AtomItemsControl with custom template
  • AtomRadioButtonList Use AtomItemsControl with custom template
  • AtomButton
  • AtomFrameView Use AtomPageView

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.