- BaseList 组件类
- DetailBase 组件类
- FormModal(Form、Step Form、CodeForm)
- ...
Make sure the following software is installed and added to the $PATH variable:
- Node.js 8+ (installation with nvm)
- Yarn 1.19.1+
Install yarn with npm:
npm install -g yarn
Fork the repository, then clone your repository and install the dependencies:
yarn
Note: If you are in China Mainland, execute the following command before running the command above for faster installation.
yarn config set registry https://registry.npm.taobao.org
yarn start
Now, you can access http://localhost:8080 to view the app.
yarn test
- Mark the text to be translated。examples:
t('Name')
- Scanner by run the command:
grunt
- Add translates in translation.json
{
"Age": "年龄",
"Name": "名称",
}
- The parameter passed in the t function is a variable, which cannot be scanned automatically and needs to be manually added to
/zh/translation.json
The project can be built for production by using the following task:
yarn build
To build and serve from dist, using the following task:
yarn serve
To build App to an image, run the following task after yarn build
:
docker build -t console .
Test App image by run:
./docker-run