Skip to content

Commit

Permalink
formily
Browse files Browse the repository at this point in the history
  • Loading branch information
02020 committed Jul 1, 2020
1 parent 4c36bfa commit dd7522c
Show file tree
Hide file tree
Showing 560 changed files with 102,360 additions and 12,155 deletions.
11 changes: 11 additions & 0 deletions .favorites.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"type": "Directory",
"name": "d:\\Fr\\__\\vite-app\\Package\\rollup-starter-esri\\src",
"parent_id": null,
"fsPath": "d:\\Fr\\__\\vite-app\\Package\\rollup-starter-esri\\src",
"workspaceRoot": null,
"workspacePath": null,
"id": "yWsVNxd3aSEO4gAf"
}
]
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"vite"
]
}
97 changes: 97 additions & 0 deletions Package/formily/.all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"projectName": "formily",
"projectOwner": "alibaba",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "janryWang",
"name": "Janry",
"avatar_url": "https://avatars0.githubusercontent.com/u/4060976?v=4",
"profile": "https://github.com/janryWang",
"contributions": [
"design"
]
},
{
"login": "cnt1992",
"name": "SkyCai",
"avatar_url": "https://avatars1.githubusercontent.com/u/3118988?v=4",
"profile": "http://cnt1992.github.io",
"contributions": [
"design"
]
},
{
"login": "yujiangshui",
"name": "Harry Yu",
"avatar_url": "https://avatars3.githubusercontent.com/u/2942913?v=4",
"profile": "https://www.linkedin.com/in/harry-yu-0a931a69/",
"contributions": [
"doc",
"code"
]
},
{
"login": "zsirfs",
"name": "zsir",
"avatar_url": "https://avatars2.githubusercontent.com/u/22249411?v=4",
"profile": "https://www.luoyangfu.com",
"contributions": [
"code"
]
},
{
"login": "monkindey",
"name": "Kiho · Cham",
"avatar_url": "https://avatars0.githubusercontent.com/u/6913898?v=4",
"profile": "http://www.monkindey.xyz/",
"contributions": [
"code",
"doc"
]
},
{
"login": "whj1995",
"name": "Hongjiang Wu",
"avatar_url": "https://avatars2.githubusercontent.com/u/22634735?v=4",
"profile": "http://whj1995.xyz",
"contributions": [
"doc"
]
},
{
"login": "anyuxuan",
"name": "合木",
"avatar_url": "https://avatars3.githubusercontent.com/u/24931869?v=4",
"profile": "https://github.com/anyuxuan",
"contributions": [
"code"
]
},
{
"login": "Azath0th",
"name": "Chen YuBen",
"avatar_url": "https://avatars2.githubusercontent.com/u/18497361?v=4",
"profile": "https://github.com/Azath0th",
"contributions": [
"code"
]
},
{
"login": "HarrisFeng",
"name": "Harris Feng",
"avatar_url": "https://avatars1.githubusercontent.com/u/7928957?v=4",
"profile": "https://github.com/HarrisFeng",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7
}
10 changes: 10 additions & 0 deletions Package/formily/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [["@babel/preset-env", { "loose": true }], "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-decorators", { "legacy": true }],
"babel-plugin-dynamic-import-node"
]
}
14 changes: 14 additions & 0 deletions Package/formily/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[*.gradle]
indent_size = 4
10 changes: 10 additions & 0 deletions Package/formily/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
lib
dist
build
coverage
expected
website
gh-pages
weex
build.ts
16 changes: 16 additions & 0 deletions Package/formily/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"env": {
"node": true
},
"globals": {
"sleep": true,
"prettyFormat": true
},
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
}
22 changes: 22 additions & 0 deletions Package/formily/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
*~
*.swp
.DS_Store
.tea
npm-debug.log
lerna-debug.log
npm-debug.log*
package-lock.json
lib/
esm/
temp_esm/
dist/
build/
coverage/
node_modules/
examples/test
.idea/
.vscode/
TODO.md
tsconfig.tsbuildinfo
package/
package.zip
1 change: 1 addition & 0 deletions Package/formily/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions Package/formily/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
semi: false,
tabWidth: 2,
singleQuote: true,
}
21 changes: 21 additions & 0 deletions Package/formily/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required

language: node_js

before_install:
- npm i -g npm@6

node_js:
- "8"
- "11"

before_script:
- rm -rf node_modules
- npm install
- lerna clean --yes
- lerna bootstrap --no-ci

script:
- npm run lint
- npm run build
- npm run test:prod
20 changes: 20 additions & 0 deletions Package/formily/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2015-present, Alibaba Group Holding Limited. All rights reserved.

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.
90 changes: 90 additions & 0 deletions Package/formily/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
English | [简体中文](./README.zh-cn.md)

<p align="center">
<img src="https://img.alicdn.com/tfs/TB1fHhZu4D1gK0jSZFyXXciOVXa-2500-1200.png">
<a href="https://www.npmjs.com/package/@formily/core"><img src="https://img.shields.io/npm/v/@formily/core.svg"></a>
<a href="https://www.npmjs.com/package/@formily/react"><img src="https://img.shields.io/npm/v/@formily/react.svg"></a>
<a href="https://travis-ci.com/alibaba/formily"><img src="https://travis-ci.com/alibaba/formily.svg?branch=master"></a>
<a href="https://standardjs.com"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg"></a>
<a href="https://app.netlify.com/sites/formily/deploys"><img src="https://api.netlify.com/api/v1/badges/7145918b-9cb5-47f8-8a42-111969e232ef/deploy-status"/></a>
</p>

---

## Background

In React, the whole tree rendering performance problem of the form is very obvious in the controlled mode. Especially for the scene of data linkage, it is easy to cause the page to be stuck. To solve this problem, we have distributed the management of the state of each form field, which significantly improves the performance of the form operations. At the same time, we deeply integrate the JSON Schema protocol to help you solve the problem of back-end driven form rendering quickly.

## Features

- 🚀 High performance, fields managed independently, rather rerender the whole tree.
- 💡 Integrated Alibaba Fusion and Ant Design components are guaranteed to work out of the box.
- 🎨 JSON Schema applied for BackEnd. JSchema applied for FrontEnd. Two paradigms can be converted to each other.
- 🏅 Side effects are managed independently, making form data linkages easier than ever before.
- 🌯 Override most complicated form layout use cases.

## Install

Use Ant Design:

```bash
npm install --save antd @formily/antd @formily/antd-components
```

Use Fusion Design:

```bash
npm install --save @alifd/next @formily/next @formily/next-components
```

Use formily react render engine pacakge:

```bash
npm install --save @formily/react-schema-renderer
```

Use formily react package:

```bash
npm install --save @formily/react
```

Use formily core package:

```bash
npm install --save @formily/core
```

## Architecture

![](https://img.alicdn.com/tfs/TB1BvlRu4D1gK0jSZFsXXbldVXa-1882-1144.png)

## WebSite

https://formilyjs.org

## Documents

- [@formily/antd](./packages/antd/README.md)
- [@formily/next](./packages/next/README.md)
- [@formily/react-schema-renderer](./packages/react-schema-renderer/README.md)
- [@formily/react](./packages/react/README.md)
- [@formily/core](./packages/core/README.md)

## Demo

[codesandbox](https://codesandbox.io/s/o5up7)

## Community

- [icejs](https://github.com/alibaba/ice)

## Contributors

This project exists thanks to all the people who contribute.
<a href="https://github.com/alibaba/formily/graphs/contributors"><img src="https://opencollective.com/formily/contributors.svg?width=890" /></a>

## LICENSE

Formily is open source software licensed as
[MIT](https://github.com/alibaba/formily/blob/master/LICENSE.md).
Loading

0 comments on commit dd7522c

Please sign in to comment.