feat(gui): GUI add support to connect to config server (#1596)

This commit is contained in:
Mg Pig
2025-12-04 23:05:36 +08:00
committed by GitHub
parent 53f279f5ff
commit 0a718163fd
15 changed files with 458 additions and 105 deletions
@@ -9,7 +9,7 @@ import {
NetworkingMethod,
removeRow
} from '../types/network'
import { defineProps, defineEmits, ref, onMounted } from 'vue'
import { defineProps, defineEmits, ref, onMounted, onUnmounted } from 'vue'
import { useI18n } from 'vue-i18n'
const props = defineProps<{
@@ -209,11 +209,11 @@ onMounted(() => {
});
resizeObserver.observe(portForwardContainer.value);
return () => {
onUnmounted(() => {
if (resizeObserver && portForwardContainer.value) {
resizeObserver.unobserve(portForwardContainer.value);
}
}
});
}
});
</script>
@@ -367,6 +367,22 @@ mode:
remote_rpc_address_empty: 远程RPC地址不能为空
service_config_empty: 服务配置不能为空
config-server:
title: 配置服务器
address: 配置服务器地址
address_placeholder: 例如:udp://127.0.0.1:22020/admin 或 admin
description: |
配置服务器地址,支持以下格式:
完整URLudp://127.0.0.1:22020/admin
仅用户名:admin(使用官方服务器)
留空:不连接配置服务器
connection_status: 连接状态
connected: ": 已连接"
disconnected: ": 未连接"
connecting: ": 连接中..."
unknown: ""
update_service_confirm: 将重启服务以应用更改,是否继续?
client:
not_running: 无法连接至远程客户端
retry: 重试
@@ -367,6 +367,22 @@ mode:
remote_rpc_address_empty: Remote RPC Address cannot be empty
service_config_empty: Service Config cannot be empty
config-server:
title: Config Server
address: Config Server Address
address_placeholder: "e.g.: udp://127.0.0.1:22020/admin or admin"
description: |
Config server address, allowed formats:
Full URL: udp://127.0.0.1:22020/admin
Username only: admin (uses official server)
Leave blank: Don't connect to a config server
connection_status: Connection Status
connected: ": Connected"
disconnected: ": Disconnected"
connecting: ": Connecting..."
unknown: ""
update_service_confirm: The service will be restarted to apply changes, do you want to continue?
client:
not_running: Unable to connect to remote client.
retry: Retry