fix(pve): Fix connection issues and add more error handlings (#1081)

* feat(PVE): Added display of PVE connection loading steps

Added a detailed display of loading steps during the PVE connection process, including stages such as establishing an SSH tunnel, authentication, and data retrieval

Also optimized the sorting of PVE storage content and the logic for handling connection errors

* feat(pve): Added error handling and prompts for PVE two-factor authentication

Added error handling for PVE servers when two-factor authentication is enabled, along with relevant error types and localized prompts

* feat(PVE): Added support for PVE passwords during key-based authentication

- Added the `pvePwd` field to the `ServerCustom` model
- Added a PVE password input field to the edit page (displayed only during key-based authentication)
- Updated multilingual files to support PVE-related loading states and password prompts
- Optimized PVE connection logic to support password verification during key-based authentication
This commit is contained in:
GT610
2026-03-22 16:25:48 +08:00
committed by GitHub
parent 2f67938b09
commit 09431a0b08
37 changed files with 641 additions and 139 deletions

View File

@@ -506,9 +506,30 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get pveLoginFailed => '登录失败。无法使用服务器配置中的用户名或密码通过 Linux PAM 方式认证。';
@override
String get pveOtpRequired => '此 PVE 服务器已启用双因素认证,请输入 OTP 验证码。';
@override
String get pveVersionLow => '当前该功能处于测试阶段,仅在 PVE 8+ 上测试过,请谨慎使用';
@override
String get pveLoadingForwarding => '正在建立 SSH 隧道...';
@override
String get pveLoadingLogin => '正在认证 PVE...';
@override
String get pveLoadingData => '正在获取集群数据...';
@override
String get pveLoadingConnect => '正在连接...';
@override
String get pvePassword => 'PVE 密码';
@override
String get pvePasswordHint => '使用密钥认证时需要填写';
@override
String get read => '';
@@ -1315,9 +1336,30 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
@override
String get pveLoginFailed => '登入失敗。無法使用伺服器設定中的使用者名稱或密碼透過 Linux PAM 方式認證。';
@override
String get pveOtpRequired => '此 PVE 伺服器已啟用雙因素認證,請輸入 OTP 驗證碼。';
@override
String get pveVersionLow => '此功能目前處於測試階段,僅在 PVE 8+ 上進行過測試。請謹慎使用。';
@override
String get pveLoadingForwarding => '正在建立 SSH 隧道...';
@override
String get pveLoadingLogin => '正在認證 PVE...';
@override
String get pveLoadingData => '正在獲取集群數據...';
@override
String get pveLoadingConnect => '正在連接...';
@override
String get pvePassword => 'PVE 密碼';
@override
String get pvePasswordHint => '使用密鑰認證時需要填寫';
@override
String get read => '讀取';