From e16250c7e717150d9dc55d39dab0e8b8dfafd385 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sat, 13 Jun 2026 18:43:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=8F=92=E4=BB=B6=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=8D=A1=E7=89=87=20CSS=20=E2=80=94=20=E7=AD=89=E9=AB=98=20/?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E6=8C=89=E9=92=AE=20/=20=E7=BA=B5?= =?UTF-8?q?=E5=90=91=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/permissions/pending_requests.json | 22 +++++++++++++++ config/plugins/commands.yaml | 2 +- config/services/network_routes.yaml | 2 +- static/web_panel/pages/plugins.html | 35 +++++++++++++++++------- 4 files changed, 49 insertions(+), 12 deletions(-) diff --git a/config/permissions/pending_requests.json b/config/permissions/pending_requests.json index f822c41..d70379c 100644 --- a/config/permissions/pending_requests.json +++ b/config/permissions/pending_requests.json @@ -438,5 +438,27 @@ "framework.command.execute" ], "timestamp": 29119.62760988 + }, + "4a860528": { + "plugin_name": "example_plugin", + "permissions": [ + "plugin.example.read", + "plugin.example.write", + "plugin.example.execute", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 29166.970752102 + }, + "57820181": { + "plugin_name": "sentinel", + "permissions": [ + "plugin.sentinel.read", + "plugin.sentinel.write", + "plugin.network.access", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 29166.973069289 } } \ No newline at end of file diff --git a/config/plugins/commands.yaml b/config/plugins/commands.yaml index c167f7b..fea5425 100644 --- a/config/plugins/commands.yaml +++ b/config/plugins/commands.yaml @@ -101,7 +101,7 @@ commands: permissions: - framework.command.test source: internal -last_updated: 29119.596258526 +last_updated: 29166.959137102 plugin_commands: example_plugin: echo: *id001 diff --git a/config/services/network_routes.yaml b/config/services/network_routes.yaml index 452d9b5..4a0b563 100644 --- a/config/services/network_routes.yaml +++ b/config/services/network_routes.yaml @@ -1,5 +1,5 @@ http_port: 4200 -last_updated: 29119.62443889 +last_updated: 29166.971388508 plugin_routes: example_plugin: - methods: diff --git a/static/web_panel/pages/plugins.html b/static/web_panel/pages/plugins.html index 501b949..564b48e 100644 --- a/static/web_panel/pages/plugins.html +++ b/static/web_panel/pages/plugins.html @@ -11,17 +11,22 @@
-
-
📦 导入 ZIP 包
- - - +
+
📦 导入 ZIP 包
+ + +
+ + +
-
-
📥 Git Clone 安装
- - - +
+
📥 Git Clone 安装
+ +
+ + +
@@ -41,6 +46,16 @@ .plugin-row .info { flex:1;min-width:0 } .plugin-row .name { font-weight:600 } .plugin-row .ver { font-size:.75rem;color:var(--text-dim) } .plugin-row .error-tag { font-size:.75rem;color:var(--error) } + .import-card { flex:1;min-width:280px;padding:14px;background:var(--md-sys-color-surface-container);border-radius:var(--shape-sm);display:flex;flex-direction:column;gap:8px } + .import-card .card-title { font-weight:600 } + .import-card .card-actions { display:flex;align-items:center;gap:8px;margin-top:auto } + .import-card .status-text { font-size:.8rem;white-space:nowrap } + .import-card .text-input { width:100%;padding:6px 8px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:var(--shape-xs);box-sizing:border-box } + .import-card .text-input:focus { outline:1px solid var(--primary) } + .file-input { color:var(--text);font-size:.85rem } + .file-input::file-selector-button { padding:5px 12px;background:var(--md-sys-color-surface-container-lowest);color:var(--text);border:1px solid var(--border);border-radius:var(--shape-xs);cursor:pointer;margin-right:8px } + .file-input::file-selector-button:hover { background:var(--md-sys-color-surface-container-highest) } + .file-label { font-size:.8rem;color:var(--text-dim) }