feewee v1.3.9
feewee-erp-frame
feewee 科技-前端ERP集成框架。
authors:
TODO
- 路由404/405/500匹配
- 菜单匹配并自动展开
- ES6 => ES5
- styled-components
- 隔离当前模块的 CSS module
How to update this package?
首先,更新下面的ChangeLog,新增版本修改记录和修改内容。
其次,发布这个包。在发布时候,确保你的 npm registry 指向的源是 https://registry.npmjs.org/。
获取 npm 源的 npm command:
npm config get registry发布这个包
npm run publish如果你使用cnpm且需要立即使用的话(使用cnpm立即同步npm服务器):
cnpm sync feeweeChangeLog
v1.1.3: @author vuchan
- 集成
axios,dva,antd-pro,antd - 集成
http, - 集成
utils
v1.1.4: @author vuchan
- 增加
feewee/assets文件 - 修复
antd组件引入的样式问题 - 增加
container组件 - 增加
RouteContainer组件 - 增加
utils中isPlainObject,isUrl,isPhoneNumber@type checker 方法 - 增强
utils中getQueryString方法
v1.1.5: @author vuchan
- 修复路由无法被
react-router识别的问题 - 暂停
react-loadable的懒加载支持
v1.2.0: @author vuchan
- 修复路由跳转、切换和匹配错误
- 增加
outerRoutes功能 - 增强
Cookie功能 - 增强
Axios功能,支持axios.postForm&axios.postJSON - 增加
403,404,500路由 - 增加
ShopList组件 - 修复
localMenuson works underdevelopmentenv. - 增加
babel本地build``lib功能
^v1.3.3: @author vuchan
- 修复
CSS在dva->roadhog->af-webpack中不工作 af-webpack/getConfig的设置 中,/node_modules/**/*.less在/node_modules/文件下的内容默认cssModules是false,虽然开源通过webpack.config.js文件自定义配置,但是如果你在配置中依赖了其他文件的.less,或者你使用内置.less文件,依然会出问题。非常奇怪!!!! 所以不得不用非常不优雅,非常鸡肋和麻烦的做法,先将LESS文件用less+CSS+namespace的方式写出,然后编译成.CSS文件给*.js中component使用。。。 因此,长个记性。难道是因为通用规则是将npm中lib下的less都用原生CSS。???antd是这样做的。 而如果不放进node_modules准确说是npm则不会出问题!!!
v1.3.4: @author vuchan
- 修复不同系统间跳转错误,以及登出界面时候跳转错误
- 修复
getQueryString返回null
v1.3.5: @author vuchan
- 修复输入
HOST时,路径被拼了几层的redirect,通过新增components/RefreshRoutes解决 - 修复
http中axios的挂载方法postForm/postJSONrequest header头中Content-Type错误
v1.3.6: @author suchu
deprecated version
v1.3.7: @author suchu
idem 😂
v1.3.8: @author suchu
修正response拦截器的逻辑,(
success===true && code !===0)
feewee/http
提供基于框架层和后端接口的框架层处理。
- 提供http状态码异常处理
- 提供业务逻辑错误处理
TODO:
- 设计
http token,MAC + TimeStamp + Math.random()
feewee/components
- components
- 提供
Container组件,它提供基础布局内容,包括Drawer -> SiderMenu,Header。 - 集成
antd-pro基本布局 export default BasicLayout
feewee/global
global提供公用逻辑的脚本和常量。
feewee/global/router
- 存放公共
global的router - 基于
dva的app.router
feewee/global/const
- 存放公共
global的constants
feewee/global/model
- 存放公共
global的model
feewee/global/services
- 存放公共
global的services
feewee/utils
- 实现诸多
utils的方法 - 参加
utils文件内的README.md
TODO:
- 实现类似
rollbar的错误监控系统,监听错误和bug的发生。
NOTE
英语不好。语法错误,还请见谅。
For next maintainer
有什么问题,欢迎联系我。Good luck.
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago