│ .dockerignore //打包忽略项目
│ .editorconfig
│ .env //配置变量
│ .gitignore
│ .prettierrc
│ config-overrides.js //扩展webpack
│ Dockerfile
│ LICENSE
│ package.json
│ README.md
│ tsconfig.json
│ yarn.lock
│
├─.vscode
│ launch.json
│ settings.json
│
│
├─public
│ config.js
│ favicon.ico
│ get_env.sh
│ index.html
│ manifest.json
│ robots.txt
│
├─server
│ └─config
│ │ default.conf //默认nginx配置
│ │ http.conf //默认nginx配置,也是作为http访问的配置备份
│ │ https.conf //https配置,需要时可替换default.conf
│ │ mime.types
│ │
│ ├─cert
│ │ readme.md //此处存放证书文件,key和pem
│ │
│ ├─logs
│ │ app.error.log
│ │ app.log
│ │
│ └─rewrite
│ app.rewrite.conf //重定向配置
│
└─src
│ a.module.less
│ App.css
│ App.tsx
│ index.css
│ index.tsx
│ oldApp.tsx
│ react-app-env.d.ts
│ serviceWorker.ts
│ setupProxy.js
│
├─biz //业务文件夹
│ └─todolist //业务组件
│ │ todoControl.tsx
│ │ todoList.tsx
│ │ todoPage.tsx
│ │
│ └─service //某个业务服务,私有属性,尽量避免私有属性复用
│ todoAction.ts
│ todoReducers.ts
│ todoTypes.ts
│
├─page //早期版本可能使用router(.router)命名
│ todo.page.tsx //业务路由 以.page命名
│
├─store //redux服务
│ │ index.ts
│ │
│ ├─actions
│ │ index.ts
│ │
│ ├─reducers
│ │ index.tsx
│ │
│ └─types
│ index.ts
│
└─utils //工具类
handleAuthToken.ts //本地token检查
http.ts //axios拦截
privateRoutes.tsx //私有路由处理