# VR-Device-Manage
**Repository Path**: fugui/VR-Device-Manage
## Basic Information
- **Project Name**: VR-Device-Manage
- **Description**: VR设备管理平台
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2016-10-13
- **Last Updated**: 2023-08-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
项目说明
===
[TOC]
## dva命令
```bash
$ dva g route product-list
$ dva g model products
$ dva g component Editor
$ dva g component Users/UserModal
$ dva g
```
## 注意事项
- 生产环境中,已有数据接口,请将`src/utils/index.js`第四行 `require('./mock.js')`注释
- 开发环境中,如再mock目录新增文件,请在`src/utils/mock.js`第二行的`mockData`数组中添加
- 如需重写异步请求函数,请修改`src/utils/request.js`
- 如需重写antd样式配置,请修改`src/theme.js`
- 项目配置文件在`src/utils/config.js`
## 文件说明
### public目录
> 静态文件
- index.html
```html
```
## 项目结构
```bash
.
├── src # Source directory
├── assets # Store images, icons, ...
├── components # UI components 建议只放通用组件
├── index.css # CSS for entry file
├── index.html # HTML for entry file
├── index.js # Enry file
├── models # Dva models
├── router.js # Router configuration
└── routes # Route components
├──────────# 基础模块 begin--------
├── dashboard # 控制台
├── home # 主页(布局)
├── dashboard # 控制台
├── users # 用户
├── institution # 机构
├── roles # 角色
├── modules # 功能模块
├── dictionaries # 字典模块
├── logs # 日志
├── settings # 设置
├── start # 启动页(布局)
├── login # 用户登录
├──────────# 基础模块 end--------
├── services # Used for communicate with server
└── utils # Utils
└── request.js # A util wrapped dva/fetch
├── .editorconfig #
├── .eslintrc # Eslint config
├── .gitignore #
├── .roadhogrc # Roadhog config
├── .readme.md # 说明文件
└── package.json #
```
package.json 依赖(devDependencies)
```json
{
"antd": "^2.7.0",
"babel-eslint": "^7.1.1",
"babel-plugin-dva-hmr": "^0.3.2",
"babel-plugin-import": "^1.1.0",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-runtime": "^6.9.2",
"dva": "^1.2.1",
"dva-loading": "^0.2.0",
"eslint": "^3.12.2",
"eslint-config-airbnb": "^13.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.8.0",
"expect": "^1.20.2",
"husky": "^0.13.1",
"lodash": "^4.17.4",
"react": "^15.4.0",
"react-dom": "^15.4.0",
"redbox-react": "^1.3.2",
"roadhog": "^0.5.2"
}
```
## 相关资源
[roadhog](https://github.com/sorrycc/roadhog)
[davjs](https://github.com/dvajs)
## 待解决问题
-[X] antd图标本地化问题 [注意](https://github.com/visvadw/dvajs-user-dashboard/pull/2)
参考资料
[用户列表](https://github.com/dvajs/dva/tree/master/examples/user-dashboard)
[dashboard设计稿](https://dribbble.com/shots/3108122-Dashboard-Admin)