使用帮助功能替换为悬浮窗形式,新增iso文件、软件和字体下载功能,优化布局,增强镜像源列表功能 #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
任务概述:openeuler-riscv/oerv-team#1577
完成情况:
任务一:优化帮助功能
将”直接跳转到帮助页面“的实现方式改为”在悬浮窗口中显示镜像源的帮助信息“
悬浮窗内的数据信息一开始通过访问 https://help.mirrors.cernet.edu.cn/ 对应页面的请求接口实现,使用nginx配置解决跨域问题,但该方法存在局限性,请求接口中存在一个不定时的变化字符串(猜测是与token类似的和后端约定的有关用户信息验证的字符
串),需要定期手动修改nginx配置文件的信息来匹配请求接口的url。现已上传ref.py爬虫程序,能递归下载所需mdx文件并自动保存覆盖file目录下的文件。运行前请执行pip install PyGithub 以及在py文件内添加自己的github访问令牌。
任务二:获取安装镜像(常用操作系统的iso文件、应用软件以及字体的下载)
iso文件:
应用软件:
字体:
下载过程截图:
任务三:优化布局
首页:
安装镜像:
其他:拓展镜像源列表功能
按更新时间排序功能
可以按时间新旧排序 从上到下依次显示
状态筛选功能
可以筛选同步状态