From 58475c63da68c734d43015d080257d91040e4c43 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 22 Oct 2025 22:58:52 +0800 Subject: [PATCH] feat: enhance mobile navigation and update i18n labels --- pages/components/DocsLayout.tsx | 4 +- pages/components/Header.tsx | 77 ++++++++++++++++++++++++++---- pages/i18n/locales/en-US/common.ts | 2 +- pages/i18n/locales/zh-CN/common.ts | 2 +- pages/i18n/locales/zh-CN/home.ts | 2 +- 5 files changed, 74 insertions(+), 13 deletions(-) diff --git a/pages/components/DocsLayout.tsx b/pages/components/DocsLayout.tsx index 5f7458a..d75a7f5 100644 --- a/pages/components/DocsLayout.tsx +++ b/pages/components/DocsLayout.tsx @@ -51,8 +51,8 @@ export default function DocsLayout({ children }: DocsLayoutProps) { ] return ( -
-
+
+
{/* Sidebar */}
diff --git a/pages/i18n/locales/en-US/common.ts b/pages/i18n/locales/en-US/common.ts index 7eab18d..a483f00 100644 --- a/pages/i18n/locales/en-US/common.ts +++ b/pages/i18n/locales/en-US/common.ts @@ -4,7 +4,7 @@ export default { slogan: 'GUI Agent in your webpage', nav_docs: 'Docs', nav_source: 'GitHub', - mobile_menu: 'Open mobile menu', + mobile_menu: 'Open navigation', }, footer: { copyright: '© 2025 page-agent. All rights reserved.', diff --git a/pages/i18n/locales/zh-CN/common.ts b/pages/i18n/locales/zh-CN/common.ts index 203bd1d..cc1e272 100644 --- a/pages/i18n/locales/zh-CN/common.ts +++ b/pages/i18n/locales/zh-CN/common.ts @@ -4,7 +4,7 @@ export default { slogan: 'GUI Agent in your webpage', nav_docs: '文档', nav_source: 'GitHub', - mobile_menu: '打开移动端菜单', + mobile_menu: '打开导航', }, footer: { copyright: '© 2025 page-agent. All rights reserved.', diff --git a/pages/i18n/locales/zh-CN/home.ts b/pages/i18n/locales/zh-CN/home.ts index b569122..c9e181d 100644 --- a/pages/i18n/locales/zh-CN/home.ts +++ b/pages/i18n/locales/zh-CN/home.ts @@ -10,7 +10,7 @@ export default { tab_other: '🌐 其他网页尝试', input_placeholder: '输入您想要 AI 执行的任务...', execute_button: '执行', - default_task: '进入文档页,打开数据脱敏相关的文档,帮我总结成 markdown', + default_task: '导航栏中进入文档页,打开数据脱敏相关的文档,帮我总结成 markdown', }, try_other: { step1_title: '步骤 1:',