Integrate credentials manager with host authentication system

- Add credential selection tab to Host Manager editor
- Create CredentialSelector component for credential selection
- Update form validation to support credential-based authentication
- Extend SSH host interfaces with credentialId field
- Add internationalization support for credential authentication
- Fix OIDC config endpoint to return 200 with null data instead of 404
- Improve credentials UI spacing and color consistency
- Remove hardcoded colors and use Zinc theme throughout
This commit is contained in:
ZacharyZcR
2025-09-06 17:44:41 +08:00
parent 81fca5b074
commit 199a9f6e52
14 changed files with 429 additions and 158 deletions
@@ -495,7 +495,6 @@ const CredentialsManager: React.FC = () => {
<Key className="h-16 w-16 mx-auto text-zinc-300 dark:text-zinc-600" />
<div className="space-y-2">
<p className="text-lg font-medium">{t('credentials.noCredentialsYet')}</p>
<p className="text-sm text-zinc-400">SSH凭据</p>
</div>
<Button size="lg" onClick={handleCreateCredential}>
<Plus className="h-5 w-5 mr-2" />