mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-06 17:59:11 +00:00
feat(gui): GUI add support to connect to config server (#1596)
This commit is contained in:
@@ -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: |
|
||||
配置服务器地址,支持以下格式:
|
||||
完整URL:udp://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
|
||||
|
||||
@@ -311,6 +311,7 @@ mod tests {
|
||||
"test",
|
||||
"test",
|
||||
Arc::new(NetworkInstanceManager::new()),
|
||||
None,
|
||||
);
|
||||
|
||||
wait_for_condition(
|
||||
|
||||
Reference in New Issue
Block a user