diff --git a/.vitepress/sidebar/zh_CN.ts b/.vitepress/sidebar/zh_CN.ts index 3b90582..2e20cee 100644 --- a/.vitepress/sidebar/zh_CN.ts +++ b/.vitepress/sidebar/zh_CN.ts @@ -3,6 +3,7 @@ export const zhSidebar: DefaultTheme.Sidebar = { '/zh_CN/': [ { text: '主页', link: '/zh_CN' }, { text: '下载', link: '/zh_CN/download' }, + { text: '捐赠', link: '/zh_CN/donate' }, { text: '使用文档', items: [ { text: '快速开始', link: '/zh_CN/docs/manual/quick-start' }, diff --git a/.vitepress/theme/components/AfdianCard.vue b/.vitepress/theme/components/AfdianCard.vue new file mode 100644 index 0000000..adfbc77 --- /dev/null +++ b/.vitepress/theme/components/AfdianCard.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/.vitepress/theme/components/DownloadLink.vue b/.vitepress/theme/components/DownloadLink.vue index 9723b46..f739f79 100644 --- a/.vitepress/theme/components/DownloadLink.vue +++ b/.vitepress/theme/components/DownloadLink.vue @@ -13,11 +13,14 @@
{{ texts.githubRelease }} - {{ texts.quarkDownload }} + {{ + texts.quarkDownload }} {{ texts.mirrorChyanDownload - }} + }} {{ texts.blockhaityapi }} + {{ texts.cnbDownload + }}
@@ -63,8 +66,9 @@ export default { currentVersion: '当前最新版本:', releaseContent: '发布内容', quarkDownload: '夸克网盘下载', + quarkExtractionCode: '提取码:W3dc', mirrorChyanDownload: 'Mirror酱下载(需要CDK)', - githubDirectDownload: 'GitHub直链下载', + cnbDownload: 'Cloud Native Build', githubRelease: 'GitHub Release', viewSourceTutorial: '查看源码部署教程', dockerDeploy: 'Docker部署', @@ -80,8 +84,9 @@ export default { currentVersion: 'Current Latest Version: ', releaseContent: 'Release Content', quarkDownload: 'Quark Cloud Download', + quarkExtractionCode: 'Extraction Code: W3dc', mirrorChyanDownload: 'MirrorChyan Download (CDK Required)', - githubDirectDownload: 'GitHub Direct Download', + cnbDownload: 'Cloud Native Build', githubRelease: 'GitHub Release', viewSourceTutorial: 'View Source Deployment Tutorial', linuxDeployMessage: 'Your OS is Linux, you can use the following deployment methods', diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 798c8da..eb0e32a 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -12,6 +12,7 @@ export default { enhanceApp({ app }) { app.component('DownloadLink', defineAsyncComponent(() => import('./components/DownloadLink.vue'))); app.component('LanguageWarn', defineAsyncComponent(() => import('./components/LanguageWarn.vue'))); + app.component('AfdianCard',defineAsyncComponent(() => import('./components/AfdianCard.vue'))); enhanceAppWithTabs(app) app.component('LiteTree', LiteTree) }, diff --git a/edge-functions/index.js b/edge-functions/index.js index faedb19..e266bfc 100644 --- a/edge-functions/index.js +++ b/edge-functions/index.js @@ -1,7 +1,7 @@ const supportedLanguages = [ - { code: 'en', name: 'English', path: '/en_US/' }, - { code: 'zh', name: '中文', path: '/zh_CN/' }, + { code: 'en', name: 'English', path: '/en_US' }, + { code: 'zh', name: '中文', path: '/zh_CN' }, ] // 获取浏览器语言偏好 @@ -35,11 +35,19 @@ export default async function onRequest(context) { try { const acceptLanguage = context.request.headers.get('accept-language') || '' const browserLanguage = getBrowserLanguage(acceptLanguage) + + // 解析URL获取target参数 + const url = new URL(context.request.url) + const target = url.searchParams.get('target') || '/' + + // 构建重定向路径 + const redirectPath = target ? `${browserLanguage.path}${target}` : browserLanguage.path // 返回重定向响应 - return Response.redirect(browserLanguage.path, 302) + return Response.redirect(redirectPath, 302) } catch (error) { // 错误处理:重定向到默认语言(中文) return Response.redirect(supportedLanguages[1].path, 302) } } + diff --git a/src/en_US/docs/manual/quick-start.md b/src/en_US/docs/manual/quick-start.md index f470b54..3b079e7 100644 --- a/src/en_US/docs/manual/quick-start.md +++ b/src/en_US/docs/manual/quick-start.md @@ -20,7 +20,9 @@ description: Complete BlueArchive Aris Helper deployment in 3 steps! MuMu emulat - **Games** -> **EX Skill Effects** -> **Off** - **Graphics** -> **Battle Screen Vertical Letterbox** -> **Off** - Manually raise the camera view in the cafe to the highest position, preferably stacking all furniture on the far right side of the screen. -3. Additional Game Settings for Steam Global Version +3. Additional Game Settings for PC Version + - **Graphics** -> **Display Mode** -> **Windowsed** + - **Graphics** -> **Aspect Ratio** -> **16:9** - **Control** -> **Display Shortcut Icon** -> **Off** - Close software that displays frame rate and usage in the game window, as they may block the UI. ## Deployment @@ -42,7 +44,11 @@ Double-click BAAH.exe to open the interface. In Server Configuration, select your BA server. -In Emulator Configuration, modify the port number to your emulator's ADB debugging port. (If you are using an emulator) +If you are using an emulator, modify the port number to your emulator's ADB debugging port in the Emulator Configuration. + +If you're using an emulator and want to auto-start it, enter the emulator path in the Emulator Configuration. + +If you're using the Japanese Server PC version and want to auto-start the game, enter the game path (typically at ...\YostarGames\BlueArchive_JP\BlueArchive.exe) in the Emulator Configuration. In Task Execution Order, enable the task flow or click the Quick Call Task button to run tasks. diff --git a/src/en_US/donate.md b/src/en_US/donate.md new file mode 100644 index 0000000..0f899be --- /dev/null +++ b/src/en_US/donate.md @@ -0,0 +1,25 @@ +# Donate + +If you really like BAAH and want to buy the developer a milk tea (or something else), please read on. + +## Paid Donation + +You can purchase Mirror-chan CDK and use it for downloads and updates. This not only allows the developer to receive a commission, but also enables high-speed downloads/updates. + +## Free Donation + +Here are the payment codes or Afdian links for the developers. + +::: warning +This is a donation, and there is no obligation for the developers to refund it, either legally or morally. + +

Please pay with caution

+ +

Please pay with caution

+ +

Please pay with caution

+::: + +::: details sanmusen214 + +::: \ No newline at end of file diff --git a/src/en_US/download.md b/src/en_US/download.md index 68cc073..d34b47c 100644 --- a/src/en_US/download.md +++ b/src/en_US/download.md @@ -35,7 +35,7 @@ You can join one of the following QQ groups for usage help == Windows -Quark Cloud Download +Quark Cloud Download MirrorChyan Download (CDK Required) GitHub Release BlockHaity's API diff --git a/src/public/img/sweep-level/area_2.webp b/src/public/img/sweep-level/area_2.webp index e69de29..9ec3fd4 100644 Binary files a/src/public/img/sweep-level/area_2.webp and b/src/public/img/sweep-level/area_2.webp differ diff --git a/src/zh_CN/docs/manual/introduction/assault.md b/src/zh_CN/docs/manual/introduction/assault.md index 0da8e53..0ed9296 100644 --- a/src/zh_CN/docs/manual/introduction/assault.md +++ b/src/zh_CN/docs/manual/introduction/assault.md @@ -39,10 +39,10 @@ 该功能可以使用总力战1号队使用助战学生,请提前在队伍中空出一个学生位置。 1. 来到游戏配队界面,进入借用学生的界面。 -2. 选择点击`总力战助战学生`按钮。 +2. 选择点击 `总力战助战学生` 按钮。 ![助战学生](/img/assault/assault_helper_1.webp) 3. 在弹出的窗口中,使用鼠标左键框起需要借用的学生。 ![选择学生](/img/assault/assault_helper_2.webp) -> :memo: **注:** 如果需要借用的是后排学生,请勾选`总力战助战学生是否是后排角色` 启用此功能。仅需在后排空出一个学生位置,并且圈起的学生为需要借用的后排学生即可。 +> :memo: **注:** 如果需要借用的是后排学生,请勾选 `总力战助战学生是否是后排角色` 启用此功能。仅需在后排空出一个学生位置,并且圈起的学生为需要借用的后排学生即可。 diff --git a/src/zh_CN/docs/manual/quick-start.md b/src/zh_CN/docs/manual/quick-start.md index f4ec26e..c27125d 100644 --- a/src/zh_CN/docs/manual/quick-start.md +++ b/src/zh_CN/docs/manual/quick-start.md @@ -18,7 +18,9 @@ description: 3 步完成 BlueArchive Aris Helper 部署!MuMu 模拟器设置 - **游戏** -> **技能动画** -> **关** - **画面** -> **战斗时上下黑边** -> **关** - 咖啡厅的摄像机视角手动拉到了最高,最好将家具全堆在屏幕最右侧。 -3. 国际服 Steam 版游戏本体附加设置 +3. PC 版游戏本体附加设置 + - **画面** -> **画面模式** -> **视窗模式** + - **画面** -> **画面比例** -> **16:9** - **操作** -> **快捷键图示显示** -> **关** - 关闭在游戏窗口显示帧率占用等功能的软件,它们很可能会挡住UI。 @@ -39,10 +41,14 @@ description: 3 步完成 BlueArchive Aris Helper 部署!MuMu 模拟器设置 双击 BAAH.exe 打开界面。 -在服务器设置中,选择你游玩的ba服务器。 +在服务器设置中,选择你游玩的 BA 服务器。 如果使用的是模拟器,请在模拟器设置中,修改端口号为你的模拟器adb调试端口。 +如果使用的是模拟器,并且希望自动打开模拟器,请在模拟器设置中填写模拟器路径。 + +如果使用的是日服 PC 版,并且希望能自动打开游戏,请在模拟器设置中填写游戏路径(通常为…\YostarGames\BlueArchive_JP\BlueArchive.exe)。 + 在任务执行顺序设置中,启用任务流或点击快速执行按钮运行任务。 @@ -159,9 +165,9 @@ docker run -d --name BAAH -p 8000:8000 ghcr.io/BlueArchiveArisHelper/baah:latest 随后打开浏览器,打开 `http://:8000` -在服务器设置中,选择你游玩的ba服务器。 +在服务器设置中,选择你游玩的 BA 服务器。 -如果使用的是模拟器,请在模拟器设置中,修改端口号为你的模拟器adb调试端口 +如果使用的是模拟器,请在模拟器设置中,修改端口号为你的模拟器adb调试端口。 在任务执行顺序设置中,启用任务流或点击快速执行按钮运行任务。 diff --git a/src/zh_CN/donate.md b/src/zh_CN/donate.md new file mode 100644 index 0000000..0f885b3 --- /dev/null +++ b/src/zh_CN/donate.md @@ -0,0 +1,25 @@ +# 捐赠 + +如果你真的很喜欢BAAH,且想要请开发者一杯奶茶(或其他)的话,请往下看。 + +## 有偿捐赠 + +你可以购买Mirror酱CDK,并在下载和更新中使用它,这不仅可以让开发者获得分成,而且还可以实现高速下载/更新。 + +## 无偿捐赠 + +这里列出了开发者们的收款码或爱发电, + +::: warning +这属于捐赠,无论是从法律上还是道德上都没有让开发者退还的义务。 + +

请谨慎付款

+ +

请谨慎付款

+ +

请谨慎付款

+::: + +::: details sanmusen214 + +::: \ No newline at end of file diff --git a/src/zh_CN/download.md b/src/zh_CN/download.md index 9bff6e1..d4acfdd 100644 --- a/src/zh_CN/download.md +++ b/src/zh_CN/download.md @@ -35,10 +35,11 @@ description: 免费获取 BlueArchive Aris Helper 自动化脚本!Windows 推 == Windows -夸克网盘下载 +夸克网盘下载 Mirror酱下载(需要CDK) GitHub Release BlockHaity's API +Cloud Native Build == macOS