mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-15 07:26:44 +08:00
refactor: 移除 ttyd 扩展的“用户凭据”功能
This commit is contained in:
@@ -741,7 +741,6 @@ export default {
|
||||
openInNewTab: 'Open in New Tab',
|
||||
port: 'Port',
|
||||
shell: 'Shell',
|
||||
credential: 'Credential',
|
||||
},
|
||||
// gostc
|
||||
gostc: {
|
||||
|
||||
@@ -741,7 +741,6 @@ export default {
|
||||
openInNewTab: '在新标签页打开',
|
||||
port: '端口',
|
||||
shell: 'Shell',
|
||||
credential: '认证凭据',
|
||||
},
|
||||
// gostc
|
||||
gostc: {
|
||||
|
||||
@@ -302,8 +302,6 @@ export interface TtydConfig {
|
||||
port: number;
|
||||
/** Shell to execute */
|
||||
shell: string;
|
||||
/** Credential in format "user:password" (optional) */
|
||||
credential?: string;
|
||||
}
|
||||
|
||||
/** gostc configuration (NAT traversal based on FRP) */
|
||||
@@ -659,7 +657,6 @@ export interface TtydConfigUpdate {
|
||||
enabled?: boolean;
|
||||
port?: number;
|
||||
shell?: string;
|
||||
credential?: string;
|
||||
}
|
||||
|
||||
/** Simple ttyd status for console view */
|
||||
|
||||
@@ -168,7 +168,7 @@ const showTerminalDialog = ref(false)
|
||||
|
||||
// Extension config (local edit state)
|
||||
const extConfig = ref({
|
||||
ttyd: { enabled: false, shell: '/bin/bash', credential: '' },
|
||||
ttyd: { enabled: false, shell: '/bin/bash' },
|
||||
gostc: { enabled: false, addr: 'gostc.mofeng.run', key: '', tls: true },
|
||||
easytier: { enabled: false, network_name: '', network_secret: '', peer_urls: [] as string[], virtual_ip: '' },
|
||||
})
|
||||
@@ -780,7 +780,6 @@ async function loadExtensions() {
|
||||
extConfig.value.ttyd = {
|
||||
enabled: ttyd.enabled,
|
||||
shell: ttyd.shell,
|
||||
credential: ttyd.credential || '',
|
||||
}
|
||||
extConfig.value.gostc = { ...extensions.value.gostc.config }
|
||||
const easytier = extensions.value.easytier.config
|
||||
@@ -2115,10 +2114,6 @@ onMounted(async () => {
|
||||
<Label class="sm:text-right">{{ t('extensions.ttyd.shell') }}</Label>
|
||||
<Input v-model="extConfig.ttyd.shell" class="sm:col-span-3" placeholder="/bin/bash" :disabled="isExtRunning(extensions?.ttyd?.status)" />
|
||||
</div>
|
||||
<div class="grid gap-2 sm:grid-cols-4 sm:items-center">
|
||||
<Label class="sm:text-right">{{ t('extensions.ttyd.credential') }}</Label>
|
||||
<Input v-model="extConfig.ttyd.credential" class="sm:col-span-3" placeholder="user:password" :disabled="isExtRunning(extensions?.ttyd?.status)" />
|
||||
</div>
|
||||
</div>
|
||||
<!-- Logs -->
|
||||
<div class="space-y-2">
|
||||
|
||||
Reference in New Issue
Block a user