Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
feat: 0.0.1-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
dream2023 committed May 21, 2021
0 parents commit 93c2a61
Show file tree
Hide file tree
Showing 212 changed files with 26,212 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
20 changes: 20 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# dependencies
node_modules
# production
dist
docs-dist
/.vscode
lib
es
.umi
.github
scripts
webpack.config.js
tests
replaceLib.js
package.json
.umirc.ts
.eslintrc.js
docs
scripts
jest.config.js
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
rules: {
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
},
};
19 changes: 19 additions & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
cjs: { type: 'babel', lazy: true },
esm: { type: 'babel', importLibToEs: true },
runtimeHelpers: true,
lessInBabelMode: {},
extraBabelPlugins: [
[
'module-resolver',
{
root: ['./'],
alias: {
'@': './src',
},
},
],
['babel-plugin-import', { libraryName: 'antd', libraryDirectory: 'es', style: true }, 'antd'],
[require('./scripts/replaceLib')],
],
};
31 changes: 31 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## Changes
$CHANGES
14 changes: 14 additions & 0 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Drafter

on:
push:
branches:
- main

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: github pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: yarn
# - run: yarn test:coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# files: ./coverage/clover.xml
# directory: ./coverage/lcov-report/
# name: codecov-umbrella
# fail_ci_if_error: true
# verbose: true
- run: yarn docs:build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs-dist
- name: Sync to Gitee
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: git@github.com:dream2023/super-antd.git
destination-repo: git@gitee.com:dream2023/super-antd.git
- name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@main
with:
gitee-username: dream2023
gitee-password: ${{ secrets.GITEE_PASSWORD }}
gitee-repo: dream2023/super-antd
branch: main
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log

# production
/dist
/docs-dist

# misc
.DS_Store

# umi
.umi
.umi-production
.umi-test
.env.local

# ide
/.vscode
/.idea
coverage
.eslintcache

# prodction
lib
es
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**/*.svg
**/*.ejs
**/*.html
.umi
.umi-production
.umi-test
**/dist
**/docs-dist
**/lib
**/es
**\__snapshots__\**
**/node_modules
.eslintcache
replaceLib.js
package.json
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const fabric = require('@umijs/fabric');

module.exports = {
...fabric.prettier,
plugins: ['prettier-plugin-sorted', 'prettier-plugin-jsdoc', 'prettier-plugin-style-order'],
singleQuote: true,
trailingComma: 'all',
printWidth: 120,
overrides: [
{
files: '.prettierrc',
options: { parser: 'json' },
},
],
};
21 changes: 21 additions & 0 deletions .umirc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineConfig } from 'dumi';
export default defineConfig({
title: 'super-antd',
favicon: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
outputPath: 'docs-dist',
mode: 'site',
fastRefresh: {},
dynamicImport: {},
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
'antd',
],
],
});
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# super-antd

`super-antd` 是一个基于 [ant design](https://ant.design/)[pro-components](https://procomponents.ant.design/) 的数据驱动友好、易用且强大的 UI 库。

## 📖 Document

[https://dream2023.github.io/super-antd](https://dream2023.github.io/super-antd)

## ✨ Feature

- 数据驱动友好:通过在组件层级解决动态渲染、通信、联动等难题,极大增加低代码场景的灵活度
- 简单、易用:通过对业务场景的提炼,进行了大量组件的组织易封装,做到了比已知的任何 ant design 封装库简单

## 🎯 Roadmap

- [x] 0.1 alpha 版:完成框架基础(schema 渲染、组件通信、数据请求、数据联动)和表单组件(表单组件、表单项组件、内置表单组件)
- [ ] 0.1 正式版:测试覆盖率 80% 以上、完成 100% 文档、0️⃣ bug
- [ ] 0.2 版:增加各种扩展的表单组件(富文本组件、地图组件、上传组件、代码编辑器组件...),覆盖 95% 表单组件场景
- [ ] 0.3 版:增加各种与表单关联的组件(Dialog 弹窗组件、Tabs 选项卡组件...)
- [ ] 0.4 版:Table 表格组件、Table + Form 组件
- [ ] 0.5 版:Page 组件
- [ ] 0.6 版:图标类组件
- [ ] ...

更详细规划请见 [https://github.com/dream2023/super-antd/projects](https://github.com/dream2023/super-antd/projects)

## 👬 Ecosystem

其实 `super-antd` 仅是一个大系统中的一部分,我个人是希望做一个支 **\*持海量组件的高扩展通用型** 的低代码平台,此平台包括以下组件部分:

| Project | Status | Description |
| --- | --- | --- |
| react-schema-render | ![react-schema-render](https://img.shields.io/npm/v/react-schema-render?style=flat-square) | 通用型 schema 转 React 组件的工具组件 |
| @dream2023/data-mapping | ![@dream2023/data-mapping](https://img.shields.io/npm/v/@dream2023/data-mapping?style=flat-square) | 数据模板映射方案 |
| super-antd | ![super-antd](https://img.shields.io/npm/v/super-antd?style=flat-square) | 数据驱动友好、易用且强大的 UI 库 |

此外至少还有以下系统待开发:

- 基于 `super-antd` 属性面板系统
- 组件库无关的低代码编辑器
- 一个开放性的组件市场

虽然要做的东西很多,但整体思路还是很清晰的,期待都实现的一天。

## Support

如果你觉得项目对自己和公司有用,请跳转到 [gitee](https://gitee.com/dream2023/super-antd#Support) 底部进行打赏,并且可以多留言鼓励作者一下,你的支持就是我更新的动力!

[![reward](./reward.png)](https://gitee.com/dream2023/super-antd#Support)
Loading

0 comments on commit 93c2a61

Please sign in to comment.