All front-end files are here.
Please NOTE that you should make changes in your own branch.You can pull your branch with commands:
git clone .......
git checkout XXX-feature
git pullYou can see all branches with:
git branch -agit checkout develop
git pull
git checkout XXX-feature
git merge developFor example:
# Update your branch first and resolve conflicts
git add .
git commit -m 'feat: all functions done'
git pushPlease wait for another member to merge your pull request !
Thes src directory has several directories:
CSS: includes CSS files.
Pic: includes pictures.
Source: Main codes here.This folder includes 5 folders.
Components : The minimum parts of a page,like a search bar、a user cell.
Containers : Containers of Components,like a collection of user cells.
View : Pages thar can interact with users,like a homepage.
Model : Core functions here.Don't put thoes functions that would be used in several places in a sigle class.
Services : Functions that interact with backend.
Please code in right folder for the convenience of maintenance.
You should comment where you create a function like:
/*
作者: 张三
描述:包括代码段功能以及需要完善的地方
(修改人:修改者需要加上这条注释)
(修改内容:修改者需要加上这条注释)
最后修改时间:2022年1月1日
*/
Please add simple notes wherever you can!