Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

后台优化(批量上传/适配移动端/样式优化) #201

Open
wants to merge 95 commits into
base: main
Choose a base branch
from

Conversation

DJChanahCJD
Copy link

@DJChanahCJD DJChanahCJD commented Oct 21, 2024

只修改了admin-imgtc.html,具体更新内容:

批量上传

  • 将批量上传功能整合至stats组件,调用/upload API,支持一次上传多个文件,最大并发数为3。目前测试上传11张图片成功。
  • 上传成功后自动通过GET请求更新卡片列表,用户无需再手动访问图片链接即可更新后台数据。
  • 上传前会检查文件类型和大小(不超过5MB的图片或视频),上传失败时将弹出提示框显示失败的文件

移动端适配

  • 屏幕宽度小于768px时改为单列显示,隐藏搜索栏
  • 每页显示15张图片(设置的单页最少图片数)
  • 改进分页逻辑,用户可通过缩放改变单页图片数,以快速浏览更多图片

样式改进

  • 调整组件大小和位置,新增带GitHub仓库链接的页脚

另外,想请教一下增加收藏夹功能是否可行。

list.js请忽略,commit较多是由于频繁部署调试)

示例图:
image

@DJChanahCJD DJChanahCJD changed the title 后台增加批量上传功能、适配不同缩放比例(含移动端)、优化部分样式 后台优化(批量上传/适配移动端/样式优化) Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant