feat: 插件使用说明(usage)+ 页面缓存命中统计

- plugin.json 新增 usage 字段(多行文本),后台插件卡片折叠展示;四个内置插件补齐使用说明
- PageCacheMiddleware 记录命中/未命中计数(按日滚动),仪表盘新增「页面缓存」统计卡(条目数 + 命中率),用于判断前台缓存效果、是否需额外加速
- 文档与测试同步
This commit is contained in:
ak
2026-08-12 03:57:22 +08:00
parent 22df17f02a
commit 01861f8809
10 changed files with 60 additions and 5 deletions
@@ -17,6 +17,13 @@
<p class="mt-1 flex-1 text-sm text-gray-500 dark:text-gray-400">{{ $plugin['description'] }}</p>
<p class="mt-2 text-xs text-gray-400">v{{ $plugin['version'] }} · {{ $plugin['vendor'] }}.{{ $plugin['name'] }}</p>
@if(! empty($plugin['usage']))
<details class="mt-2">
<summary class="cursor-pointer text-xs text-primary-600">使用说明</summary>
<div class="mt-1 whitespace-pre-wrap text-xs text-gray-500 dark:text-gray-400">{{ $plugin['usage'] }}</div>
</details>
@endif
@if(! empty($plugin['dependencies']))
<div class="mt-2 flex flex-wrap items-center gap-1">
<span class="text-xs text-gray-400">依赖:</span>