3 Star 0 Fork 0

Gitee 极速下载 / nx-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/RisingStack/nx-framework/
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

The NX framework

Home page, Docs

NX is a modular front-end framework - built with ES6 and Web Components. The building blocks of NX are the core, the middlewares, the components and the utilities. These are all hosted in separate GitHub repos and npm packages.

The NX core is a tiny library, responsible for one thing only. It allows you to create dumb components and to augment them with middlewares. A component executes its middlewares when it is attached to the DOM and it gains all the extra functionalities from them. NX comes with some core middlewares out of the box, which you can find listed below.

  • Text interpolation: Interpolate values from the code into the view dynamically or one-time. Includes optional filters.
  • Dynamic and custom attributes: Use one-time or dynamically evaluated native attributes or define some custom ones.
  • Event handling: Add inline event handlers to listen on any event. Includes optional rate limiters.
  • Visual flow: Use conditional blocks and loops inside the HTML view.
  • Data binding: One-way, one-time or two-way data binding on any event and with no edge cases.
  • Rendering: Modularize your HTML and CSS code by moving them into separate files for each component.
  • Routing: Simple, but powerful routing with automatic parameter synchronization and router events.
  • Metadata and analytics: Handle your SPA's metadata and analytics declaratively with ease.
  • Dynamic styling: Simplify styling by passing objects to the style and class attributes.
  • Animations: Create powerful animations by using only a few HTML attributes.
  • Some other low level middlewares, mentioned in the Docs.
  • Anything else you define with the simple function middleware (elem, state, next) {} syntax.

These can be combined to create components with the desired functionality. Alternatively ready made core components can be extended and used, to avoid boilerplate code.

Resources

Installation

You can get NX from npm with the npm install @nx-js/framework command. See the installation page for other options.

Local development

You can bundle the framework locally with the npm run build command and minify it with the npm run minify command. The bundled and minified files are placed in the lib folder.

Contributing

A list of contributors

NX is very modular and every module is hosted in its own GitHub repository. Please open the issues and PRs in the relevant repositories. For example: if you have a feature request for routing, open a new issue in the route-middleware repo.

Sponsored by

The MIT License (MIT) Copyright (c) 2016 RisingStack Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/mirrors/nx-framework.git
git@gitee.com:mirrors/nx-framework.git
mirrors
nx-framework
nx-framework
master

搜索帮助