mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-12 18:44:25 +08:00
refactor(rustdesk): 移除密钥对状态展示
This commit is contained in:
@@ -63,7 +63,6 @@ pub struct RustDeskConfigResponse {
|
|||||||
pub relay_server: Option<String>,
|
pub relay_server: Option<String>,
|
||||||
pub device_id: String,
|
pub device_id: String,
|
||||||
pub has_password: bool,
|
pub has_password: bool,
|
||||||
pub has_keypair: bool,
|
|
||||||
pub relay_key: Option<String>,
|
pub relay_key: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +77,6 @@ impl From<&RustDeskConfig> for RustDeskConfigResponse {
|
|||||||
relay_server: config.relay_server.clone(),
|
relay_server: config.relay_server.clone(),
|
||||||
device_id: config.device_id.clone(),
|
device_id: config.device_id.clone(),
|
||||||
has_password: !config.device_password.is_empty(),
|
has_password: !config.device_password.is_empty(),
|
||||||
has_keypair: config.public_key.is_some() && config.private_key.is_some(),
|
|
||||||
relay_key: config.relay_key.clone(),
|
relay_key: config.relay_key.clone(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ export interface RustDeskConfigResponse {
|
|||||||
relay_server: string | null
|
relay_server: string | null
|
||||||
device_id: string
|
device_id: string
|
||||||
has_password: boolean
|
has_password: boolean
|
||||||
has_keypair: boolean
|
|
||||||
relay_key: string | null
|
relay_key: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1101,7 +1101,6 @@ export default {
|
|||||||
notInitialized: 'Not Initialized',
|
notInitialized: 'Not Initialized',
|
||||||
copyId: 'Copy ID',
|
copyId: 'Copy ID',
|
||||||
copyPassword: 'Copy Password',
|
copyPassword: 'Copy Password',
|
||||||
keypairGenerated: 'Keypair Generated',
|
|
||||||
},
|
},
|
||||||
rtsp: {
|
rtsp: {
|
||||||
title: 'RTSP Streaming',
|
title: 'RTSP Streaming',
|
||||||
|
|||||||
@@ -1100,7 +1100,6 @@ export default {
|
|||||||
notInitialized: '未初始化',
|
notInitialized: '未初始化',
|
||||||
copyId: '复制 ID',
|
copyId: '复制 ID',
|
||||||
copyPassword: '复制密码',
|
copyPassword: '复制密码',
|
||||||
keypairGenerated: '密钥对已生成',
|
|
||||||
},
|
},
|
||||||
rtsp: {
|
rtsp: {
|
||||||
title: 'RTSP 视频流',
|
title: 'RTSP 视频流',
|
||||||
|
|||||||
@@ -5217,15 +5217,6 @@ watch(isWindows, () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Keypair Status -->
|
|
||||||
<div v-if="rustdeskLocalConfig.mode === 'id'" class="grid gap-2 sm:grid-cols-4 sm:items-center">
|
|
||||||
<Label class="sm:text-right">{{ t('extensions.rustdesk.keypairGenerated') }}</Label>
|
|
||||||
<div class="sm:col-span-3">
|
|
||||||
<Badge :variant="rustdeskConfig?.has_keypair ? 'default' : 'secondary'">
|
|
||||||
{{ rustdeskConfig?.has_keypair ? t('common.yes') : t('common.no') }}
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter class="border-t pt-4 justify-end">
|
<CardFooter class="border-t pt-4 justify-end">
|
||||||
|
|||||||
Reference in New Issue
Block a user