From 519f815786ee652e3d161a07d9ea444c51f05baf Mon Sep 17 00:00:00 2001 From: xuans Date: Fri, 2 Oct 2026 02:01:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=89=8D=E7=AB=AF=E7=A7=81?= =?UTF-8?q?=E9=92=A5=E5=BD=95=E5=85=A5=E4=B8=8E=E5=91=BD=E4=BB=A4=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 收紧服务器管理页面安全边界,移除私钥导航、私钥录入、私钥命令和相关展示,保留后端兼容能力。 --- frontend/src/views/Dashboard/Dashboard.vue | 36 ---- .../views/Dashboard/DashboardNavigation.js | 1 - .../views/Dashboard/DashboardNavigation.vue | 4 - frontend/src/views/Dashboard/ServerModal.vue | 191 +----------------- 4 files changed, 1 insertion(+), 231 deletions(-) diff --git a/frontend/src/views/Dashboard/Dashboard.vue b/frontend/src/views/Dashboard/Dashboard.vue index ff7a018..bc339fe 100644 --- a/frontend/src/views/Dashboard/Dashboard.vue +++ b/frontend/src/views/Dashboard/Dashboard.vue @@ -6,7 +6,6 @@ import SettingsModal from "./SettingsModal.vue"; import DomainModal from "./DomainModal.vue"; import ServerModal from "./ServerModal.vue"; import RuntimeOverview from "./RuntimeOverview.vue"; -import SSHKeyModal from "./SSHKeyModal.vue"; import DashboardNavigation from "./DashboardNavigation.vue"; import { useDashboardNavigation } from "./DashboardNavigation.js"; import { useDashboard } from "./Dashboard.js"; @@ -18,7 +17,6 @@ const { currentUser, domains, servers, - sshKeys, certificates, tasks, auditLogs, @@ -46,9 +44,6 @@ const { serverEditingId, serverSaving, serverFormError, - showSSHKeyForm, - sshKeySaving, - sshKeyFormError, certificateTypeLabels, domainStatusLabels, taskStatusLabels, @@ -60,24 +55,10 @@ const { dnsProviders, environmentLabels, webServerLabels, - serverSSHKey, - serverSSHKeyStatusLabel, - serverSSHKeyStatusClass, - serverSSHCommand, - serverSSHKeyHint, isEditing, formTitle, form, serverForm, - sshKeyForm, - sshKeyPlatform, - sshKeyPassphraseVisible, - sshKeyCommandUsername, - sshKeyCommandHost, - sshKeyFileName, - sshKeyPath, - sshKeyPrivatePath, - sshKeyPublicPath, showSettings, showCertificateImport, importDomain, @@ -100,8 +81,6 @@ const { handleDNSProviderChange, clearDNSCredentials, testDNS, - sshKeyCommands, - sshPublicKeyCommands, defaultCertificatePath, defaultCertificateChainPath, defaultPrivateKeyPath, @@ -111,12 +90,6 @@ const { openServerCreate, openServerEdit, closeServerForm, - openSSHKeyCreate, - closeSSHKeyForm, - importSSHKeyFile, - copySSHKeyCommand, - saveSSHKey, - deleteSSHKey, saveServer, deleteServer, saveDomain, @@ -162,14 +135,6 @@ const { activeSection, activeLabel, sections, selectSection } = useDashboardNavi - - - - - 还没有私钥?点击“新建或导入”,按照引导生成、粘贴或读取私钥文件。 - -