Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ReactAntDesignTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HireTest
ReactAntDesignTemplate
Commits
4fa59042
Commit
4fa59042
authored
6 years ago
by
李静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding
parent
f96eade0
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
95 deletions
+9
-95
.roadhogrc.mock.js
.roadhogrc.mock.js
+5
-0
README.md
README.md
+4
-0
README.zh-CN.md
README.zh-CN.md
+0
-95
No files found.
.roadhogrc.mock.js
View file @
4fa59042
...
@@ -13,6 +13,11 @@ const noProxy = process.env.NO_PROXY === 'true';
...
@@ -13,6 +13,11 @@ const noProxy = process.env.NO_PROXY === 'true';
// 代码中会兼容本地 service mock 以及部署站点的静态数据
// 代码中会兼容本地 service mock 以及部署站点的静态数据
const
proxy
=
{
const
proxy
=
{
// 支持值为 Object 和 Array
// 支持值为 Object 和 Array
// @TODO 使用服务器接口
// 'GET /org/(.*)': 'http://api.haomo-studio.com/org/',
// 'POST /org/(.*)': 'http://api.haomo-studio.com/org/',
// @TODO mock数据
'GET /api/currentUser'
:
{
'GET /api/currentUser'
:
{
$desc
:
'获取当前用户接口'
,
$desc
:
'获取当前用户接口'
,
$params
:
{
$params
:
{
...
...
This diff is collapsed.
Click to expand it.
README.md
View file @
4fa59042
...
@@ -6,3 +6,7 @@ $ cd ant-design-pro
...
@@ -6,3 +6,7 @@ $ cd ant-design-pro
$
npm
install
$
npm
install
$
npm start
# visit http://localhost:8000
$
npm start
# visit http://localhost:8000
```
```
### 2. 更换为服务器数据
文件 .roadhogrc.mock.js,将mock数据关闭,服务器数据打开
This diff is collapsed.
Click to expand it.
README.zh-CN.md
deleted
100644 → 0
View file @
f96eade0
[
English
](
./README.md
)
| 简体中文
# Ant Design Pro
[

](https://travis-ci.org/ant-design/ant-design-pro)
[

](https://ci.appveyor.com/project/afc163/ant-design-pro/branch/master)
[

](https://david-dm.org/ant-design/ant-design-pro)
[

](https://david-dm.org/ant-design/ant-design-pro#info=devDependencies&view=list)
[

](https://gitter.im/ant-design/ant-design-pro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
开箱即用的中台前端/设计解决方案。

-
预览:http://preview.pro.ant.design
-
首页:http://pro.ant.design/index-cn
-
使用文档:http://pro.ant.design/docs/getting-started-cn
-
更新日志: http://pro.ant.design/docs/changelog-cn
-
常见问题:http://pro.ant.design/docs/faq-cn
-
国内镜像:http://ant-design-pro.gitee.io
## 特性
-
:gem:
**优雅美观**
:基于 Ant Design 体系精心设计
-
:triangular_ruler:
**常见设计模式**
:提炼自中后台应用的典型页面和场景
-
:rocket:
**最新技术栈**
:使用 React/dva/antd 等前端前沿技术开发
-
:iphone:
**响应式**
:针对不同屏幕大小设计
-
:art:
**主题**
:可配置的主题满足多样化的品牌诉求
-
:globe_with_meridians:
**国际化**
:内建业界通用的国际化方案
-
:gear:
**最佳实践**
:良好的工程实践助您持续产出高质量代码
-
:1234:
**Mock 数据**
:实用的本地数据调试方案
-
:white_check_mark:
**UI 测试**
:自动化测试保障前端产品质量
## 模板
```
- Dashboard
- 分析页
- 监控页
- 工作台
- 表单页
- 基础表单页
- 分步表单页
- 高级表单页
- 列表页
- 查询表格
- 标准列表
- 卡片列表
- 搜索列表(项目/应用/文章)
- 详情页
- 基础详情页
- 高级详情页
- 结果
- 成功页
- 失败页
- 异常
- 403 无权限
- 404 找不到
- 500 服务器出错
- 帐户
- 登录
- 注册
- 注册成功
```
## 使用
```
bash
$
git clone https://github.com/ant-design/ant-design-pro.git
--depth
=
1
$
cd
ant-design-pro
$
npm
install
$
npm start
# 访问 http://localhost:8000
```
也可以使用集成化的
[
ant-design-pro-cli
](
https://github.com/ant-design/ant-design-pro-cli
)
工具。
```
bash
$
npm
install
ant-design-pro-cli
-g
$
mkdir
pro-demo
&&
cd
pro-demo
$
pro new
```
更多信息请参考
[
使用文档
](
http://pro.ant.design/docs/getting-started
)
。
## 兼容性
现代浏览器及 IE11。
## 参与贡献
我们非常欢迎你的贡献,你可以通过以下方式和我们一起共建 :smiley::
-
在你的公司或个人项目中使用 Ant Design Pro。
-
通过
[
Issue
](
http://github.com/ant-design/ant-design-pro/issues
)
报告 bug 或进行咨询。
-
提交
[
Pull Request
](
http://github.com/ant-design/ant-design-pro/pulls
)
改进 Pro 的代码。
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment