Skip to content

重构并优化管理员后台,增加下载统计,增加新的前端主题 - #443

Open
kasuganosoras wants to merge 6 commits into
px-org:mainfrom
kasuganosoras:main
Open

kasuganosoras wants to merge 6 commits into
px-org:mainfrom
kasuganosoras:main

Conversation

@kasuganosoras

@kasuganosoras kasuganosoras commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
  • 修复了天翼云的登录接口,改用 PC 端的接口
  • 模板引擎中新增对全新 Oxygen (Vue) 主题的支持。
  • 重构后台路由,统一采用单页应用(AdminSPA)处理器以提升代码可维护性。
  • 引入缓存列表接口(Endpoint),用于后台缓存管理。
  • 实现每日下载量的统计追踪与数据报告功能。
  • 更新配置,在目录列表中隐藏 README.mdHEAD.md 文件。
  • 改用新的 Markdown-it 库,替代老的解析库
  • 移除废弃的后台 HTML 模板及 JavaScript 文件,简化并清理代码库。
  • 更新 .gitignore 文件,排除构建产物(Build Artifacts)及运行时数据。

新的效果图

image image image

- Added support for a new Vue theme in the template engine.
- Refactored admin routes to use a single AdminSPA handler for better maintainability.
- Introduced caching list endpoint for admin cache management.
- Implemented daily download statistics tracking and reporting.
- Updated configuration to hide README.md and HEAD.md files from directory listings.
- Removed deprecated admin HTML templates and JavaScript files to streamline the codebase.
- Updated .gitignore to exclude build artifacts and runtime data.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kasuganosoras

Copy link
Copy Markdown
Contributor Author

@libsgh 抱歉打扰,因为很久没看到大佬更新了(
很惭愧,就做了一点微小的 Vibe coding 工作
主要是自己还需要用到这个项目,所以就顺手更新了一下

- Added CSS styles for a responsive admin sidebar with open/closed states.
- Updated JavaScript to manage sidebar visibility based on screen size and route changes.
- Refactored drawer toggle logic for improved user experience on mobile devices.
- Added github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 as an indirect dependency.
- Included github.com/tklauser/go-sysconf v0.3.10 and github.com/tklauser/numcpus v0.4.0 as indirect dependencies.
- Changed theme names from "vue" to "oxygen" in multiple files to reflect the new theme structure.
- Improved the IndexData function to set default sorting parameters based on user cookies.
- Removed deprecated Vue theme files and templates to streamline the codebase.
- Updated HTML templates to ensure proper favicon handling and improved structure for better maintainability.
@libsgh

libsgh commented Sep 10, 2026

Copy link
Copy Markdown
Member

@libsgh 抱歉打扰,因为很久没看到大佬更新了( 很惭愧,就做了一点微小的 Vibe coding 工作 主要是自己还需要用到这个项目,所以就顺手更新了一下

感谢pr,但是我最近也在重构本项目,后面计划将前端主题拆出来,方便以后可以三方主题扩展,未来合适的话可以作为主题模板引入。

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.

2 participants