From 2caaf20f69a9f8fa89d510ac1cba30ff4dc88bf2 Mon Sep 17 00:00:00 2001 From: Starrah Date: Fri, 9 Oct 2026 15:19:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#74=20:=20=E4=BD=BF=E5=BE=97OOBE=E5=B1=8F?= =?UTF-8?q?=E5=B9=95=E5=8F=AF=E4=BB=A5=E6=9C=80=E5=A4=A7=E5=8C=96=E3=80=81?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Front/src/views/Oobe/GameDirPage.tsx | 64 ++++++----- .../Front/src/views/Oobe/ModeSelectPage.tsx | 107 +++++++++--------- .../src/views/Oobe/ServerRunningPage.tsx | 24 ++-- .../Front/src/views/Oobe/WelcomePage.tsx | 24 ++-- MaiChartManager/OobeBrowser.cs | 5 +- 5 files changed, 117 insertions(+), 107 deletions(-) diff --git a/MaiChartManager/Front/src/views/Oobe/GameDirPage.tsx b/MaiChartManager/Front/src/views/Oobe/GameDirPage.tsx index ba91ef13..c25a99d4 100644 --- a/MaiChartManager/Front/src/views/Oobe/GameDirPage.tsx +++ b/MaiChartManager/Front/src/views/Oobe/GameDirPage.tsx @@ -30,39 +30,41 @@ export default defineComponent({ }; return () => ( -
-
-
{t('oobe.selectGameDir')}
-
{t('oobe.selectGameDirDesc')}
- -
- - {props.gamePath && ( -
-
- {props.pathValid ? t('oobe.selectedPath') : pathError.value}: {props.gamePath} +
+
+
+
{t('oobe.selectGameDir')}
+
{t('oobe.selectGameDirDesc')}
+ +
+ + {props.gamePath && ( +
+
+ {props.pathValid ? t('oobe.selectedPath') : pathError.value}: {props.gamePath} +
-
- )} - + )} + +
+ + {props.initializing &&
+
{t('oobe.initializingData')}
+
} +
- - {props.initializing &&
-
{t('oobe.initializingData')}
-
} -
); }, diff --git a/MaiChartManager/Front/src/views/Oobe/ModeSelectPage.tsx b/MaiChartManager/Front/src/views/Oobe/ModeSelectPage.tsx index f8922d93..325d32b3 100644 --- a/MaiChartManager/Front/src/views/Oobe/ModeSelectPage.tsx +++ b/MaiChartManager/Front/src/views/Oobe/ModeSelectPage.tsx @@ -28,61 +28,64 @@ export default defineComponent({ }; return () => ( -
-
{t('oobe.selectMode')}
-
-
isRemote.value = false} - > -
-
{t('oobe.localMode')}
-
{t('oobe.localModeDesc')}
+ // Issue #74: OOBE屏幕的内容允许滚动,这样用户可以自己想办法滚动,避免点不到确认按钮之类 +
+
+
{t('oobe.selectMode')}
+
+
isRemote.value = false} + > +
+
{t('oobe.localMode')}
+
{t('oobe.localModeDesc')}
+
+
isRemote.value = true} + > +
+
{t('oobe.remoteMode')}
+
{t('oobe.remoteModeDesc')}
+
-
isRemote.value = true} + + {isRemote.value && ( +
+ + {t('oobe.enableAuth')} + + + {useAuth.value && ( +
+ + +
+ )} +
+ + {t('oobe.startupOnBoot')} + +
+ )} +
+
- - {isRemote.value && ( -
- - {t('oobe.enableAuth')} - - - {useAuth.value && ( -
- - -
- )} -
- - {t('oobe.startupOnBoot')} - -
- )} -
-
); }, diff --git a/MaiChartManager/Front/src/views/Oobe/ServerRunningPage.tsx b/MaiChartManager/Front/src/views/Oobe/ServerRunningPage.tsx index 13e1795e..0a549d32 100644 --- a/MaiChartManager/Front/src/views/Oobe/ServerRunningPage.tsx +++ b/MaiChartManager/Front/src/views/Oobe/ServerRunningPage.tsx @@ -10,18 +10,20 @@ export default defineComponent({ const { t } = useI18n(); return () => ( -
-
-
{t('oobe.remoteReady')}
-
{t('oobe.lanAddresses')}
-
- {props.lanAddresses.map(addr => ( -
https://{addr}:5001
- ))} +
+
+
+
{t('oobe.remoteReady')}
+
{t('oobe.lanAddresses')}
+
+ {props.lanAddresses.map(addr => ( +
https://{addr}:5001
+ ))} +
+
-
); }, diff --git a/MaiChartManager/Front/src/views/Oobe/WelcomePage.tsx b/MaiChartManager/Front/src/views/Oobe/WelcomePage.tsx index 0da304a3..a1e22d61 100644 --- a/MaiChartManager/Front/src/views/Oobe/WelcomePage.tsx +++ b/MaiChartManager/Front/src/views/Oobe/WelcomePage.tsx @@ -20,17 +20,19 @@ export default defineComponent({ })); return () => ( -
- MaiChartManager -
MaiChartManager
-
{t('oobe.welcomeMessage')}
-
-
- setLocale(v as Locale)} + /> +
); diff --git a/MaiChartManager/OobeBrowser.cs b/MaiChartManager/OobeBrowser.cs index fb9d5366..7a23494d 100644 --- a/MaiChartManager/OobeBrowser.cs +++ b/MaiChartManager/OobeBrowser.cs @@ -17,8 +17,9 @@ public OobeBrowser(string? loopbackUrl = null, string hash = "/oobe") Text = "MaiChartManager"; ClientSize = new Size(1200, 1000); - FormBorderStyle = FormBorderStyle.FixedSingle; - MaximizeBox = false; + FormBorderStyle = FormBorderStyle.Sizable; + MaximizeBox = true; + MinimumSize = new Size(480, 480); var rm = new ComponentResourceManager(typeof(Launcher)); Icon = (Icon?)rm.GetObject("notifyIcon1.Icon");