diff --git a/composables/tray.ts b/composables/tray.ts index a5e1213..14a1d45 100644 --- a/composables/tray.ts +++ b/composables/tray.ts @@ -25,11 +25,11 @@ export async function useTray(init: boolean = false, beforExit: Function) { id: DEFAULT_TRAY_NAME, menu: await Menu.new({ id: "main", - items: await generateMenuItem(beforExit) + items: await generateMenuItem(beforExit), }), - action: async e => { + action: async (e) => { toggleVisibility(); - } + }, }); } } catch (error) { @@ -43,7 +43,7 @@ export async function useTray(init: boolean = false, beforExit: Function) { tray.setMenu( await Menu.new({ id: "main", - items: await generateMenuItem(beforExit) + items: await generateMenuItem(beforExit), }) ); } @@ -52,7 +52,7 @@ export async function useTray(init: boolean = false, beforExit: Function) { } export async function generateMenuItem(beforExit: Function) { - return [await MenuItemExit("退出", beforExit), await PredefinedMenuItem.new({ item: "Separator" }), await MenuItemShow("显示 / 隐藏")]; + return [await MenuItemShow("显示 / 隐藏"), await PredefinedMenuItem.new({ item: "Separator" }), await MenuItemExit("退出", beforExit)]; } export async function MenuItemExit(text: string, beforExit: Function) { @@ -64,7 +64,7 @@ export async function MenuItemExit(text: string, beforExit: Function) { await beforExit(); } await getCurrentWindow().close(); - } + }, }); } @@ -74,7 +74,7 @@ export async function MenuItemShow(text: string) { text, action: async () => { await toggleVisibility(); - } + }, }); } diff --git a/package.json b/package.json index 7b46d05..863fb98 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "author": "leizi97", "description": "A simple network initiator based on Easytier", - "version": "1.1.0", + "version": "1.1.1", "scripts": { "dev": "nuxt dev --dotenv env/.env.dev --host 0.0.0.0", "build": "nuxt generate --dotenv env/.env.prod" diff --git a/pages/advance.vue b/pages/advance.vue index b6bb1a0..e217bd0 100644 --- a/pages/advance.vue +++ b/pages/advance.vue @@ -13,7 +13,7 @@
转发所有对等节点的RPC数据包,即使对等节点不在转发网络白名单内
-
+
输出日志到本地
{ // console.log(appWindow.label); if (!is_close) { - console.log(1); + // console.log(1); event.preventDefault(); appWindow.hide(); } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 701975c..757f272 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1109,7 +1109,7 @@ checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "easytier-game" -version = "1.1.0" +version = "1.1.1" dependencies = [ "log", "planif", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 1a7423f..9a9572e 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "easytier-game" -version = "1.1.0" +version = "1.1.1" homepage = "https://github.com/EasyTier/EasyTier" repository = "https://github.com/EasyTier/EasytierGame" description = "A simple network initiator based on Easytier" diff --git a/src-tauri/easytier/config/test.toml b/src-tauri/easytier/config/test.toml index 04c76a1..25c0f60 100644 --- a/src-tauri/easytier/config/test.toml +++ b/src-tauri/easytier/config/test.toml @@ -20,7 +20,4 @@ network_secret = "" uri = "tcp://public.easytier.top:11010" [[peer]] -uri = "udp://public.easytier.top:11010" - -[[proxy_network]] -cidr = "192.168.1.0/24" \ No newline at end of file +uri = "udp://public.easytier.top:11010" \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1a30227..5fc8203 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -13,7 +13,7 @@ "app": { "windows": [ { - "title": "easytier-game", + "title": "easytier-game 1.1.1", "width": 335, "height": 305, "resizable": false,