An open API service indexing awesome lists of open source software.

https://github.com/jsjzh/react-ts-tpl

react-ts-tpl
https://github.com/jsjzh/react-ts-tpl

Last synced: about 2 months ago
JSON representation

react-ts-tpl

Awesome Lists containing this project

README

          

# react-ts-tpl

## 说明

1. build
1. vite
2. webpack
2. framework
1. react
2. react-dom
3. react-router-dom
4. styled-components
3. UI
1. antd
2. @ant-design/icons
3. @ant-design/plots
4. @ant-design/cssinjs
4. store
1. localforage
2. immer
3. use-immer
4. zustand
5. network
1. axios
2. jsonp
3. query-string
6. tools
1. ahooks
2. dayjs
3. decimal.js
4. ramda
5. js-base64

## 前后端共识

1. 请求 url
1. 尽量使用 restful 的 url 格式
2. 除了 get 之外,其他的请求参数都放在 body 里
1. get xxx.com/post/1?pageNo=1&pageSize=20
2. post xxx.com/post/1 body title:xxx name:xxx
3. delete xxx.com/post/1 body type:xxx
2. 表格等数据渲染的时候,如果有中文,尽量由后端直接给予

## TODO

- [x] components 里面有一些需要检查并完善的功能
- [x] database 看看有没有更好的写法
- [x] createProTree 是不是可以转换成 treeUtils 工具类
- downloadFile 函数需要放到 createAPI 里面
- 页面需要添加侧边栏、面包屑还有 keep-alive? 的解析
- 使用文档需要补充
- 和后端的上传协议该怎么拟定
- 有些组件可以包装成 npm 包
- sc-sso 可以包装成组件