diff --git a/admin/dashboard/templates/api_docs.html b/admin/dashboard/templates/api_docs.html index 3af0449..a593b18 100644 --- a/admin/dashboard/templates/api_docs.html +++ b/admin/dashboard/templates/api_docs.html @@ -3,13 +3,29 @@ {% block title %}接口文档 - 机器人管理后台{% endblock %} {% block content %} -
- -
- 接口文档 +
+
+
+
Developer Workspace
+

接口文档

+

把文档入口纳入统一的控制台壳层,让开发工具页也具备一致的使用体验。

-
- +
+ 刷新文档 + 新窗口打开 +
+
+ + +
+
+

API 文档面板

+

在控制台中直接浏览接口说明,方便排查与对接。

+
+
{{ src_url }}
+
+
+
@@ -23,48 +39,47 @@ data() { return { currentView: '13', - showTimeRangeSelector: false + showTimeRangeSelector: false, + frameUrl: '{{ src_url }}' } }, mounted() { this.currentView = '13'; + }, + methods: { + reloadIframe() { + if (this.$refs.docsFrame) { + this.$refs.docsFrame.src = this.frameUrl; + } + }, + openInNewTab() { + window.open(this.frameUrl, '_blank'); + } } }); {% endblock %} diff --git a/admin/dashboard/templates/base.html b/admin/dashboard/templates/base.html index 22ba464..aae91ea 100644 --- a/admin/dashboard/templates/base.html +++ b/admin/dashboard/templates/base.html @@ -4,560 +4,754 @@ {% block title %}机器人管理后台{% endblock %} - - - - {% block styles %}{% endblock %} - {% block head %}{% endblock %} -
+
+
+
+ +
+
机器人控制台
+
更产品化的运营、消息与系统工作台
+
+
- -
-
- -

机器人管理后台

+
-
- +
+
+ + 控制台在线 +
+
+ + 管理员已登录 +
退出
- -
- - - {% endblock %} diff --git a/admin/dashboard/templates/errors.html b/admin/dashboard/templates/errors.html index 60b6b78..a01a50f 100644 --- a/admin/dashboard/templates/errors.html +++ b/admin/dashboard/templates/errors.html @@ -3,144 +3,45 @@ {% block title %}错误日志 - 机器人管理后台{% endblock %} {% block content %} - -
- - - -
- 错误日志 -
- - - - - - - - - - - - - - - -
- - -
-
-
+
+
Error Center

错误日志

统一查看插件异常、用户上下文与错误详情,方便快速定位问题来源。

+ +
错误总数
{% raw %}{{ totalErrors }}{% endraw %}
当前分页查询结果对应总量
+
当前页日志数
{% raw %}{{ errorLogs.length }}{% endraw %}
本页已加载的错误记录
+
分页大小
{% raw %}{{ pageSize }}{% endraw %}
每页可查看的错误条目
- - + +

错误列表

查看插件、命令、错误摘要以及相关用户/群组上下文。

+ + + + + + + + + +
+
-
-

插件名称: {% raw %}{{ errorDetail.plugin_name }}{% endraw %}

-

命令: {% raw %}{{ errorDetail.command }}{% endraw %}

-

用户ID: {% raw %}{{ errorDetail.user_id }}{% endraw %}

-

群组ID: {% raw %}{{ errorDetail.group_id || '无' }}{% endraw %}

-

时间: {% raw %}{{ errorDetail.created_at }}{% endraw %}

-

错误信息: {% raw %}{{ errorDetail.error_message }}{% endraw %}

-
-

堆栈跟踪:

-
{% raw %}{{ errorDetail.stack_trace }}{% endraw %}
-
-
+ + {% raw %}{{ errorDetail.plugin_name }}{% endraw %} + {% raw %}{{ errorDetail.command }}{% endraw %} + {% raw %}{{ errorDetail.user_id }}{% endraw %} + {% raw %}{{ errorDetail.group_id || '无' }}{% endraw %} + {% raw %}{{ errorDetail.created_at }}{% endraw %} + {% raw %}{{ errorDetail.error_message }}{% endraw %} +
{% raw %}{{ errorDetail.stack_trace }}{% endraw %}
+
{% endblock %} {% block scripts %} -{% endblock %} \ No newline at end of file + +{% endblock %} diff --git a/admin/dashboard/templates/file_browser.html b/admin/dashboard/templates/file_browser.html index afab210..ca1f8a7 100644 --- a/admin/dashboard/templates/file_browser.html +++ b/admin/dashboard/templates/file_browser.html @@ -3,82 +3,58 @@ {% block title %}文件浏览 - 机器人管理后台{% endblock %} {% block content %} -
-
-
- -
- 文件浏览 -
- - - - 上级目录 - -
-
- - - - - - - - - - - - - - - - - -
+
+
+
+
Tools Workspace
+

文件浏览

+

将文件查看入口纳入同一套工具工作台,路径、导航和下载动作更清晰。

+
+
+
{% raw %}{{ currentPath || '/' }}{% endraw %}
+ 刷新 + 上级目录
+ + +
+
+

文件列表

+

支持目录切换、文件下载与修改时间查看。

+
+
+ + + + + + + + + + + + + + + + + +
{% endblock %} @@ -113,10 +89,7 @@ loadFiles(path) { this.loading = true; this.currentPath = path || '/'; - - axios.get('/api/list_files', { - params: { path: path } - }) + axios.get('/api/list_files', { params: { path: path } }) .then(response => { if (response.data.success) { this.fileList = response.data.data.items; @@ -137,10 +110,9 @@ this.loadFiles(newPath); }, navigateUp() { - if (!this.currentPath) return; - + if (!this.currentPath || this.currentPath === '/') return; const lastSlashIndex = this.currentPath.lastIndexOf('/'); - if (lastSlashIndex === -1) { + if (lastSlashIndex <= 0) { this.loadFiles(''); } else { this.loadFiles(this.currentPath.substring(0, lastSlashIndex)); @@ -153,4 +125,31 @@ } }); -{% endblock %} \ No newline at end of file + + +{% endblock %} diff --git a/admin/dashboard/templates/groups.html b/admin/dashboard/templates/groups.html index 1932d11..b67e3b9 100644 --- a/admin/dashboard/templates/groups.html +++ b/admin/dashboard/templates/groups.html @@ -3,77 +3,59 @@ {% block title %}群组统计 - 机器人管理后台{% endblock %} {% block content %} - -
- - - -
- 群组活跃度排行 -
- - - - - - - - - - - - - - - - -
-
+
+
+
+
Groups Analytics
+

群组统计

+

聚焦群组活跃度、成功率与用户覆盖,快速识别最重要的互动场景。

+
+
+ + +
群组总数
{% raw %}{{ groupStats.length }}{% endraw %}
当前排行中展示的群组
+
总调用次数
{% raw %}{{ totalCalls }}{% endraw %}
统计周期内所有群组调用总和
+
平均成功率
{% raw %}{{ averageSuccessRate }}{% endraw %}%
群组整体调用成功表现
+ + +

群组活跃度排行

查看调用量、插件覆盖与用户活跃情况。

+ + + + + + + + + + + + + + +
{% endblock %} {% block scripts %} -{% endblock %} \ No newline at end of file + +{% endblock %} diff --git a/admin/dashboard/templates/index.html b/admin/dashboard/templates/index.html index f3f8c65..6ad15d2 100644 --- a/admin/dashboard/templates/index.html +++ b/admin/dashboard/templates/index.html @@ -3,203 +3,230 @@ {% block title %}首页概览 - 机器人管理后台{% endblock %} {% block content %} - -
- - - - -