feat(webui): refactor dashboard and add plugin page#175
Closed
YumemiDream wants to merge 1 commit into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Sorry @YumemiDream, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
19b6f8b to
42ff4b6
Compare
42ff4b6 to
1bb2800
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
改动概览
本次 PR 主要优化 Self Learning Dashboard 的前端体验,并新增 AstrBot Plugin Pages 支持,使用户可以直接从 AstrBot WebUI 的插件详情页进入 Dashboard。
Dashboard 设置页重构
Dashboard 体验优化
AstrBot Plugin Pages 支持
pages/dashboard/index.html,支持在 AstrBot 插件详情页中打开 Dashboard。.astrbot-plugin/i18n/zh-CN.json和.astrbot-plugin/i18n/en-US.json,注册 Dashboard 页面标题。WebUIManager中注册dashboard_urlWeb API,用于返回当前 WebUI Dashboard 地址。回归测试
dashboard_url调用存在。dashboard_urlAPI 会被注册。验证
已执行:
python -m py_compile tests\integration\test_webui_static_assets.py webui\manager.py tests\unit\test_webui_manager.pypages/dashboard/index.html与web_res/static/html/dashboard.htmlgit diff --cached --check未完整执行
pytest:本地环境缺少pytest模块。