diff --git a/config/permissions/pending_requests.json b/config/permissions/pending_requests.json index cf3e0e2..a49ebe8 100644 --- a/config/permissions/pending_requests.json +++ b/config/permissions/pending_requests.json @@ -614,5 +614,27 @@ "framework.command.execute" ], "timestamp": 36827.042118711 + }, + "321ef881": { + "plugin_name": "example_plugin", + "permissions": [ + "plugin.example.read", + "plugin.example.write", + "plugin.example.execute", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 36952.123118871 + }, + "7c96931c": { + "plugin_name": "sentinel", + "permissions": [ + "plugin.sentinel.read", + "plugin.sentinel.write", + "plugin.network.access", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 36952.125723559 } } \ No newline at end of file diff --git a/config/plugins/commands.yaml b/config/plugins/commands.yaml index 510a50f..7b69b43 100644 --- a/config/plugins/commands.yaml +++ b/config/plugins/commands.yaml @@ -101,7 +101,7 @@ commands: permissions: - framework.command.test source: internal -last_updated: 36827.020697669 +last_updated: 36952.108646684 plugin_commands: example_plugin: echo: *id001 diff --git a/config/services/network_routes.yaml b/config/services/network_routes.yaml index 5cf5c09..5bd39ff 100644 --- a/config/services/network_routes.yaml +++ b/config/services/network_routes.yaml @@ -1,5 +1,5 @@ http_port: 4200 -last_updated: 36827.037929596 +last_updated: 36952.124032725 plugin_routes: example_plugin: - methods: diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 5b527c3..b9710f3 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -180,18 +180,18 @@ body.innerHTML = '
'+ '
CPU
0%
'+ - '
MEM
0%
'+ + '
MEM
0%
'+ '
'+ '
'+ '
NET ↓
'+ '
NET ↑
'+ - '
'+ - '
'; + ''; } - // 更新 NET + // 更新 NET + MEM 详情 body.querySelector('.net-down').textContent = fmtSpeed(net.rx_bytes_sec||0); body.querySelector('.net-up').textContent = fmtSpeed(net.tx_bytes_sec||0); - body.querySelector('.mem-detail').innerHTML = '
内存 '+(mem.used_gb||0).toFixed(1)+'/'+(mem.total_gb||0).toFixed(1)+' GB
'; + var md = body.querySelector('.mem-detail-val'); + if (md) md.textContent = (mem.used_gb||0).toFixed(1) + '/' + (mem.total_gb||0).toFixed(1) + ' GB'; // 进度条: 先设旧值 → force reflow → 设新值 var barCpu = body.querySelectorAll('.metric-bar-fill')[0]; var barMem = body.querySelectorAll('.metric-bar-fill')[1];