From f3fc37957ca1b1e043228267c98f8ae37ebbe839 Mon Sep 17 00:00:00 2001 From: leizi97 Date: Wed, 23 Oct 2024 21:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=90=E7=BD=91=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=92=8C=E9=83=A8=E5=88=86=E9=AB=98=E7=BA=A7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=9F=E8=83=BD=20=E5=8D=87=E7=BA=A7tauri=E5=88=B02?= =?UTF-8?q?.0.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pages/advance.vue | 28 +++++ pages/cidr.vue | 25 +++- pages/index.vue | 184 ++++++++++++++++++---------- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/WinIPBroadcast.exe | Bin 0 -> 107008 bytes src-tauri/capabilities/default.json | 2 +- src-tauri/tauri.conf.json | 2 +- stores/index.ts | 20 +++ 10 files changed, 192 insertions(+), 75 deletions(-) create mode 100644 pages/advance.vue create mode 100644 src-tauri/WinIPBroadcast.exe diff --git a/package.json b/package.json index 58256b4..aac47f2 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.0.6", + "version": "1.0.7", "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 new file mode 100644 index 0000000..1a52c25 --- /dev/null +++ b/pages/advance.vue @@ -0,0 +1,28 @@ + + diff --git a/pages/cidr.vue b/pages/cidr.vue index 14a60e8..508c350 100644 --- a/pages/cidr.vue +++ b/pages/cidr.vue @@ -1,6 +1,25 @@ \ No newline at end of file + import useMainStore from "@/stores/index"; + import { getCurrentWindow } from "@tauri-apps/api/window"; + const mainStore = useMainStore(); + const appWindow = getCurrentWindow(); + mainStore.$subscribe((...a) => { + appWindow.emitTo("main", "config", { cidrEnable: mainStore.cidrEnable, config: { ...mainStore.config } }); + }); + diff --git a/pages/index.vue b/pages/index.vue index 9b5329a..d52eb30 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -2,32 +2,27 @@ + :model="config"> + prop="serverUrl">