mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-13 17:35:37 +00:00
feat(gui): add service and remote mode support (#1578)
This PR fundamentally restructures the EasyTier GUI, introducing support for service mode and remote mode, transforming it from a simple desktop application into a powerful network management terminal. This change allows users to persistently run the EasyTier core as a background service or remotely manage multiple EasyTier instances, greatly improving deployment flexibility and manageability.
This commit is contained in:
@@ -12,6 +12,7 @@ const { t } = useI18n()
|
||||
const props = defineProps<{
|
||||
api: Api.RemoteClient;
|
||||
newConfigGenerator?: () => NetworkTypes.NetworkConfig;
|
||||
pauseAutoRefresh?: boolean;
|
||||
}>();
|
||||
|
||||
const instanceId = defineModel('instanceId', {
|
||||
@@ -407,6 +408,9 @@ const actionMenu: Ref<MenuItem[]> = ref([
|
||||
]);
|
||||
|
||||
let periodFunc = new Utils.PeriodicTask(async () => {
|
||||
if (props.pauseAutoRefresh) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
await Promise.all([loadNetworkInstanceIds(), loadCurrentNetworkInfo()]);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user