zx55 / 21duck Goto Github PK
View Code? Open in Web Editor NEWA web forum based on react and django-rest-framework
License: MIT License
A web forum based on react and django-rest-framework
License: MIT License
登录后选择回个人中心,3秒后仍会跳回到首页
主贴和回帖的卡片叠在一起了
现在点击同意后并没有更新服务器和本地状态
需要写saga和action
这个项目一开始后端的定位只是能用就行
但是真要上线的话 还有很多事要做 比如缓存、鉴权、验证
当前设计的rest api还是存在许多问题的 在api这方面也需要重新设计
判断一下是否禁言了再发帖
因为redux状态的更新需要时间,所以现在是简单的设置了一个timeout 300ms后跳转
正确的做法应该是在监听ActionTypes.LOGIN动作的saga中进行跳转
但是现在的路由history获取比较麻烦 等待路由使用hook重构后考虑(#12 )
把setTimeout清除
暂时使用的是absolute定位
因为左边的list会多一块margin 导致float:right不正常工作
服务器上生成的时间差了八小时
现在每次要使用history或者match都要使用withRouter的HOC
参考remix-run/react-router#6430
写一个useRoute
你们怎么做的这么好啊,
nbnb!
现在是瞬移的 需要加一下css/js动画来平滑滚动
具体的位置在frontend/src/components/IndexTemplate/index.tsx中
比如登录或者注册完成后自动跳转到首页 但是此时Menu上的首页选项没有被选中
后端的登录login注册register方法直接使用了@csrf_exemp装饰器来避开csrf验证
有时间要加一下前端axios请求时的验证
highlight.js
latex.js
使用redux来管理状态对这个项目来说有点大材小用了
而且多了许多不必要的样板代码
因此迁移到unstated-next的状态管理方案
37 38行
detail={true}
thumb={false}
记得修改
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.