Commit 36b40e1c by gaoju

first

0 parents
Showing 282 changed files with 136 additions and 0 deletions
# 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
{
"extends": "umi",
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}
\ No newline at end of file
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
# production
/dist
# misc
.DS_Store
npm-debug.log*
export default {
};
{
"extraBabelPlugins": [
["import", { "libraryName": "antd", "style": "css" }],
["import", { "libraryName": "antd-mobile", "style": true },"mobile"]
],
"proxy": {
"/o2o":{
"target": "https://iwpuat.ihxlife.com/",
"changeOrigin": true
}
},
"hash": true,
"html": {
"template": "./src/index.ejs"
},
"publicPath": "/"
}
# react-dva
#### 介绍
#### 软件架构
react + react-dva
#### 项目流程
- npm install 下载相关的包
- npm start 启动项目
- npm run build 把项目进行打包
#### 项目结构
project
- public 项目index.html入口
- src
- assete 静态的资源文件
- components 组件
- models 存储数据的容器redux
- services 数据容器异步请求操作
- utils 公共类封装
- index.js 入口文件
- router.js 路由配置
- node_modules 下载的所需的包
- package.json 项目所需的包
This diff could not be displayed because it is too large.
{
"private": true,
"scripts": {
"start": "roadhog server",
"build": "roadhog build",
"lint": "eslint --ext .js src test",
"precommit": "npm run lint"
},
"dependencies": {
"animate.css": "^3.7.0",
"antd": "^3.12.3",
"antd-mobile": "^2.2.9",
"babel-helpers": "^6.24.1",
"babel-plugin-import": "^1.11.0",
"chinese-to-pinyin": "^0.1.8",
"dva": "^2.1.0",
"echarts": "^4.2.1",
"html2canvas": "^1.0.0-alpha.12",
"iscroll": "^5.2.0",
"jquery": "^3.3.1",
"moment": "^2.24.0",
"react": "^16.2.0",
"react-addons-css-transition-group": "^15.6.2",
"react-bmap": "^1.0.98",
"react-dom": "^16.2.0",
"react-qmap": "^0.1.5",
"react-sticky": "^6.0.3",
"swiper": "^4.4.6"
},
"devDependencies": {
"babel-plugin-dva-hmr": "^0.3.2",
"eslint": "^4.14.0",
"eslint-config-umi": "^1.4.0",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.1.0",
"redbox-react": "^1.4.3",
"roadhog": "^2.0.0"
}
}
No preview for this file type
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!