From ad0f252dfd1c841012062318b82bca6e184238fd Mon Sep 17 00:00:00 2001 From: heixiansen Date: Fri, 25 Jul 2025 12:08:01 +0800 Subject: [PATCH] =?UTF-8?q?#Feature=20=E8=87=AA=E5=BB=BA=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E5=8B=BE=E9=80=89=E7=A7=81=E6=9C=89=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20=E5=BC=B9=E5=87=BA=E6=88=BF=E9=97=B4=E5=90=8D=E5=92=8C?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E8=AE=BE=E7=BD=AE=E7=AA=97=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E5=8C=85=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/server.ts | 9 + package.json | 14 +- pages/server.vue | 94 ++- pnpm-lock.yaml | 1307 +++++++++++++++++++++-------------------- src-tauri/Cargo.lock | 246 ++++---- src-tauri/Cargo.toml | 12 +- stores/index.ts | 4 + 7 files changed, 914 insertions(+), 772 deletions(-) diff --git a/composables/server.ts b/composables/server.ts index afdc8f0..d651d9a 100644 --- a/composables/server.ts +++ b/composables/server.ts @@ -23,5 +23,14 @@ export const getServerArgs = () => { if (mainStore.serverConfig.privateMode) { args.push("--private-mode", "true"); } + const networkName = mainStore.serverConfig.privateNetworkName.trim(); + if (networkName) { + args.push("--network-name", networkName); + } + const networkSecret = mainStore.serverConfig.privateNetworkPassword.trim(); + if (networkSecret) { + args.push("--network-secret", networkSecret); + } + return args; }; diff --git a/package.json b/package.json index d2ee8db..0a6cecc 100644 --- a/package.json +++ b/package.json @@ -15,23 +15,23 @@ "@element-plus/nuxt": "1.1.3", "@nuxtjs/tailwindcss": "6.13.2", "@pinia/nuxt": "0.11.1", - "@tauri-apps/api": "2.6.0", - "@tauri-apps/cli": "2.6.2", + "@tauri-apps/api": "2.7.0", + "@tauri-apps/cli": "2.7.1", "@tauri-apps/plugin-cli": "2.4.0", "@tauri-apps/plugin-clipboard-manager": "2.3.0", - "@tauri-apps/plugin-dialog": "2.3.0", - "@tauri-apps/plugin-fs": "2.4.0", + "@tauri-apps/plugin-dialog": "2.3.1", + "@tauri-apps/plugin-fs": "2.4.1", "@tauri-apps/plugin-log": "2.6.0", "@tauri-apps/plugin-shell": "2.3.0", - "@tauri-apps/plugin-window-state": "2.3.0", + "@tauri-apps/plugin-window-state": "2.4.0", "@types/lodash-es": "^4.17.12", "@vitejs/plugin-vue-jsx": "4.1.2", "@vueuse/core": "12.7.0", "archiver": "^7.0.1", - "element-plus": "2.10.3", + "element-plus": "2.10.4", "less": "4.2.1", "lodash-es": "^4.17.21", - "nuxt": "3.17.6", + "nuxt": "3.17.7", "pinia": "3.0.3", "pinia-plugin-persistedstate": "4.4.1", "postcss": "^8.4.38", diff --git a/pages/server.vue b/pages/server.vue index d4d1bde..41f9883 100644 --- a/pages/server.vue +++ b/pages/server.vue @@ -1,5 +1,5 @@