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 立即检查续期 - - 添加 SSH 私钥 - - - - - - diff --git a/frontend/src/views/Dashboard/ServerModal.vue b/frontend/src/views/Dashboard/ServerModal.vue index 687fce1..e194392 100644 --- a/frontend/src/views/Dashboard/ServerModal.vue +++ b/frontend/src/views/Dashboard/ServerModal.vue @@ -7,25 +7,6 @@ const { closeServerForm, serverEditingId, serverForm, - sshKeys, - openSSHKeyCreate, - closeSSHKeyForm, - showEmbeddedSSHKeyGuide, - sshKeySaving, - sshKeyFormError, - sshKeyPlatform, - sshKeyFileName, - sshKeyPrivatePath, - sshKeyPublicPath, - sshKeyCommandUsername, - sshKeyCommandHost, - sshKeyCommands, - sshPublicKeyCommands, - sshKeyForm, - importSSHKeyFile, - sshKeyPassphraseVisible, - copySSHKeyCommand, - saveSSHKey, defaultCertificatePath, defaultCertificateChainPath, defaultPrivateKeyPath, @@ -114,14 +95,7 @@ const { SSH 用户 - - 认证方式 - - SSH 密码 - SSH 私钥 - - - + SSH 密码 - - - SSH 私钥 - - 新建或导入 - - - - 请选择已加密保存的私钥 - - {{ key.name }} · {{ key.algorithm }} - - - - 还没有私钥?点击“新建或导入”,按照引导生成、粘贴或读取私钥文件。 - - SSH 主机 SHA256 指纹 @@ -171,144 +120,6 @@ const { - - - - 当前服务器 - 准备 SSH 私钥 - - - - 按顺序执行命令后读取本机私钥,保存后会自动选中到当前服务器配置。 - - - 收起引导 - - - - - - 1 - 本机生成密钥 - - - 2 - 把公钥放到当前服务器 - - - 3 - 读取私钥并保存 - - - - - Windows - - - Linux / macOS - - - - 本次密钥文件名 - {{ sshKeyFileName }} - 每次随机生成 - - - - 本地私钥位置 - {{ sshKeyPrivatePath }} - - - 本地公钥位置 - {{ sshKeyPublicPath }} - - - 远程登录目标 - {{ sshKeyCommandUsername }}@{{ sshKeyCommandHost }} - - - - - 生成命令 - - 复制命令 - - - {{ sshKeyCommands[sshKeyPlatform] }} - - - - 安装公钥命令 - - 复制命令 - - - {{ sshPublicKeyCommands[sshKeyPlatform] }} - - - - 私钥名称 - - - - 读取本机私钥文件 - - - - 私钥内容 - - - - - 私钥口令 - - {{ sshKeyPassphraseVisible ? "隐藏口令" : "显示口令" }} - - - - - - {{ sshKeyFormError }} - - 私钥会加密保存,服务器配置中只保存安全引用。 - - {{ sshKeySaving ? "加密保存中……" : "加密保存并用于当前服务器" }} - - - -
当前服务器
{{ sshKeyFileName }}
{{ sshKeyPrivatePath }}
{{ sshKeyPublicPath }}
{{ sshKeyCommandUsername }}@{{ sshKeyCommandHost }}
{{ sshKeyCommands[sshKeyPlatform] }}
{{ sshPublicKeyCommands[sshKeyPlatform] }}
{{ sshKeyFormError }}