HibiKier / zhenxun_bot_webui

绪山真寻Bot的简易Web管理界面
GNU Affero General Public License v3.0
76 stars 26 forks source link

代码更新 #24

Closed HibiKier closed 4 days ago

HibiKier commented 4 days ago

Sourcery的总结

改进用户界面,推出新的仪表板、插件商店和改进的组件设计。引入管理插件和查看详细机器人统计的新功能。通过移除WebSocket连接简化系统状态处理。

新功能:

增强功能:

文档:

Original summary in English ## Summary by Sourcery Revamp the user interface with a new dashboard, plugin store, and improved component designs. Introduce new features for managing plugins and viewing detailed bot statistics. Simplify system status handling by removing WebSocket connections. New Features: - Introduce a new dashboard view with components for displaying bot information, system status, and active group and plugin statistics. - Add a plugin store feature allowing users to search, install, update, and remove plugins directly from the interface. - Implement a new modal component for confirmation dialogs. Enhancements: - Redesign the layout and styling of several components to improve user interface aesthetics and usability. - Enhance the chat and call statistics display with additional time frames and a new chart visualization. - Refactor the system status component to remove WebSocket connections for system status and logs, simplifying the component. Documentation: - Update the README to provide a more concise introduction and remove outdated deployment instructions.
sourcery-ai[bot] commented 4 days ago

审核指南由 Sourcery 提供

此拉取请求对 Web 应用程序的用户界面和功能进行了重大更改,特别是针对仪表板、命令界面和插件管理。更改包括新组件、更新布局以及跨多个文件的附加功能。

更新后的仪表板和插件管理的用户旅程图

journey
    title 更新后的仪表板和插件管理的用户旅程
    section 仪表板
      用户: 点击仪表板 -> 导航到主仪表板
      用户: 查看系统状态 -> 查看 CPU、内存、磁盘使用情况
      用户: 查看聊天和通话统计 -> 查看每日、每周、每月数据
    section 插件管理
      用户: 导航到插件商店 -> 查看插件列表
      用户: 搜索插件 -> 按作者或名称筛选
      用户: 安装插件 -> 插件被添加到系统
      用户: 更新插件 -> 插件更新到最新版本
      用户: 移除插件 -> 插件从系统中移除
    section 命令界面
      用户: 导航到命令界面 -> 查看更新后的布局
      用户: 查看系统日志 -> 查看实时日志更新

文件级更改

更改 详情 文件
重新设计并增强了仪表板界面
  • 为仪表板的左、中、右部分添加了新组件
  • 实现了显示 CPU、内存和磁盘使用情况的系统状态显示
  • 添加了带有图形表示的聊天和通话统计
  • 在仪表板中包含了日志显示部分
src/components/dashboard/MidInfo.vue
src/components/dashboard/RightInfo.vue
src/components/dashboard/LeftInfo.vue
src/views/dashboard/MainDashboard.vue
更新了命令界面的布局和功能
  • 重新设计了命令界面的布局
  • 添加了用于显示机器人信息和统计的新部分
  • 实现了用于可视化数据的新图表
src/components/command/MidInfo.vue
src/components/command/LeftInfo.vue
src/components/command/RightInfo.vue
src/views/command/MainCommand.vue
添加了新的插件商店功能
  • 创建了用于浏览和管理插件的新组件
  • 实现了安装、更新和移除插件的功能
  • 添加了插件搜索功能
src/components/store/StoreTemplate.vue
src/views/store/StoreManage.vue
更新了各种 UI 组件和样式
  • 修改了按钮样式和功能
  • 更新了表格布局和设计
  • 改进了各种组件的响应性和布局
src/components/ui/MyButton.vue
src/components/ui/OneMark.vue
src/components/manage/DataList.vue
src/components/manage/DetailInfo.vue
src/components/plugin/PluginListTemplate.vue
更新了路由和导航
  • 为仪表板和插件商店添加了新路由
  • 修改了现有路由和导航结构
src/router/index.js
src/views/Home.vue
更新了项目配置和依赖项
  • 修改了 README.md 以更新项目信息
  • 更新了全局 CSS 样式
  • 添加了新字体资源
README.md
src/assets/css/global.css

提示和命令 #### 与 Sourcery 互动 - **触发新审核:** 在拉取请求中评论 `@sourcery-ai review`。 - **继续讨论:** 直接回复 Sourcery 的审核评论。 - **从审核评论生成 GitHub 问题:** 通过回复审核评论请求 Sourcery 创建问题。 - **生成拉取请求标题:** 在拉取请求标题中任意位置写 `@sourcery-ai` 以随时生成标题。 - **生成拉取请求摘要:** 在拉取请求正文中任意位置写 `@sourcery-ai summary` 以随时生成 PR 摘要。您也可以使用此命令指定摘要应插入的位置。 #### 自定义您的体验 访问您的 [仪表板](https://app.sourcery.ai) 以: - 启用或禁用审核功能,例如 Sourcery 生成的拉取请求摘要、审核指南等。 - 更改审核语言。 - 添加、删除或编辑自定义审核说明。 - 调整其他审核设置。 #### 获取帮助 - [联系我们的支持团队](mailto:support@sourcery.ai) 以获取问题或反馈。 - 访问我们的 [文档](https://docs.sourcery.ai) 以获取详细指南和信息。 - 通过关注我们在 [X/Twitter](https://x.com/SourceryAI)、[LinkedIn](https://www.linkedin.com/company/sourcery-ai/) 或 [GitHub](https://github.com/sourcery-ai) 上的 Sourcery 团队保持联系。
Original review guide in English ## Reviewer's Guide by Sourcery This pull request implements significant changes to the user interface and functionality of a web application, particularly focusing on the dashboard, command interface, and plugin management. The changes include new components, updated layouts, and additional features across multiple files. #### User journey diagram for updated dashboard and plugin management ```mermaid journey title User journey for updated dashboard and plugin management section Dashboard User: Clicks on Dashboard -> Navigates to MainDashboard User: Views system status -> Sees CPU, Memory, Disk usage User: Views chat and call statistics -> Sees daily, weekly, monthly data section Plugin Management User: Navigates to Plugin Store -> Sees list of plugins User: Searches for a plugin -> Filters by author or name User: Installs a plugin -> Plugin is added to the system User: Updates a plugin -> Plugin is updated to the latest version User: Removes a plugin -> Plugin is removed from the system section Command Interface User: Navigates to Command Interface -> Sees updated layout User: Views system logs -> Sees real-time log updates ``` ### File-Level Changes | Change | Details | Files | | ------ | ------- | ----- | | Redesigned and enhanced the dashboard interface |
  • Added new components for left, middle, and right sections of the dashboard
  • Implemented system status display with CPU, memory, and disk usage
  • Added chat and call statistics with graphical representations
  • Included a log display section in the dashboard
| `src/components/dashboard/MidInfo.vue`
`src/components/dashboard/RightInfo.vue`
`src/components/dashboard/LeftInfo.vue`
`src/views/dashboard/MainDashboard.vue` | | Updated the command interface layout and functionality |
  • Redesigned the layout of the command interface
  • Added new sections for displaying bot information and statistics
  • Implemented new charts for visualizing data
| `src/components/command/MidInfo.vue`
`src/components/command/LeftInfo.vue`
`src/components/command/RightInfo.vue`
`src/views/command/MainCommand.vue` | | Added a new plugin store feature |
  • Created a new component for browsing and managing plugins
  • Implemented functionality to install, update, and remove plugins
  • Added a search feature for plugins
| `src/components/store/StoreTemplate.vue`
`src/views/store/StoreManage.vue` | | Updated various UI components and styles |
  • Modified button styles and functionality
  • Updated table layouts and designs
  • Improved responsiveness and layout of various components
| `src/components/ui/MyButton.vue`
`src/components/ui/OneMark.vue`
`src/components/manage/DataList.vue`
`src/components/manage/DetailInfo.vue`
`src/components/plugin/PluginListTemplate.vue` | | Updated routing and navigation |
  • Added new routes for dashboard and plugin store
  • Modified existing routes and navigation structure
| `src/router/index.js`
`src/views/Home.vue` | | Updated project configuration and dependencies |
  • Modified README.md with updated project information
  • Updated global CSS styles
  • Added new font assets
| `README.md`
`src/assets/css/global.css` | ---
Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).