From 60a6b5e5b6a869b9fcd7183bbc252867bf661c69 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 26 Nov 2025 19:56:47 +0800 Subject: [PATCH] chore: wording; tailwind lint --- pages/components/CodeEditor.tsx | 2 +- .../integration/third-party-agent/page.tsx | 8 +-- pages/i18n/locales/en-US/home.ts | 8 +-- pages/i18n/locales/zh-CN/home.ts | 8 +-- pages/page.tsx | 70 +++++++++---------- pages/test-pages/index.tsx | 29 ++++---- 6 files changed, 62 insertions(+), 63 deletions(-) diff --git a/pages/components/CodeEditor.tsx b/pages/components/CodeEditor.tsx index 2ac29bb..70013d9 100644 --- a/pages/components/CodeEditor.tsx +++ b/pages/components/CodeEditor.tsx @@ -28,7 +28,7 @@ const CodeEditor: React.FC = ({ // 使用 Tailwind 的 dark: 前缀实现自动主题切换 const containerClasses = - 'bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 border-gray-300 dark:border-gray-700' + 'bg-linear-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800 border-gray-300 dark:border-gray-700' const headerClasses = 'bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-700' const headerTextClasses = 'text-gray-700 dark:text-gray-300' const languageTextClasses = 'text-gray-600 dark:text-gray-400' diff --git a/pages/docs/integration/third-party-agent/page.tsx b/pages/docs/integration/third-party-agent/page.tsx index cf96b9d..23243a4 100644 --- a/pages/docs/integration/third-party-agent/page.tsx +++ b/pages/docs/integration/third-party-agent/page.tsx @@ -48,25 +48,25 @@ const pageAgentTool = {

应用场景

-
+

🤖 智能客服系统

客服机器人帮用户直接操作系统,如"帮我提交工单"

-
+

📋 业务流程助手

引导新员工完成复杂流程,如"完成客户入职"

-
+

🎯 个人效率助手

跨网站帮你完成任务,如"预订会议室"

-
+

🔧 运维自动化

通过自然语言操作管理后台,如"重启服务器" diff --git a/pages/i18n/locales/en-US/home.ts b/pages/i18n/locales/en-US/home.ts index f3d74b9..4d9f084 100644 --- a/pages/i18n/locales/en-US/home.ts +++ b/pages/i18n/locales/en-US/home.ts @@ -39,9 +39,9 @@ export default { }, features: { section_title: 'Why PageAgent', - dom_understanding: { - title: 'Smart DOM Analysis', - desc: 'Analyzes page structure without screenshots or vision models. Pure text understanding for fast, accurate automation.', + in_page: { + title: 'In-page Solution', + desc: 'Runs entirely within your page. No browser extensions, no headless browsers, and no backend required.', }, secure_integration: { title: 'Secure by Design', @@ -49,7 +49,7 @@ export default { }, zero_backend: { title: 'Zero Backend Setup', - desc: 'Just drop in a script tag. Works with any LLM provider—OpenAI, Anthropic, or your own models.', + desc: 'Just drop in a script. Works with any LLM provider—OpenAI, Anthropic, or your own models.', }, accessible: { title: 'Natural Language UI', diff --git a/pages/i18n/locales/zh-CN/home.ts b/pages/i18n/locales/zh-CN/home.ts index c35c342..7bd075c 100644 --- a/pages/i18n/locales/zh-CN/home.ts +++ b/pages/i18n/locales/zh-CN/home.ts @@ -38,9 +38,9 @@ export default { }, features: { section_title: '核心特性', - dom_understanding: { - title: '智能 DOM 理解', - desc: '基于 DOM 分析,高强度脱水。无需视觉识别,纯文本实现精准操作。', + in_page: { + title: '纯页面内方案', + desc: '完全运行在你的页面内。不需要浏览器插件、不需要无头浏览器,不需要后端。', }, secure_integration: { title: '安全可控集成', @@ -48,7 +48,7 @@ export default { }, zero_backend: { title: '零后端部署', - desc: 'CDN 直接引入,自定义 LLM 接入点。从 OpenAI 到 qwen3,完全由你掌控。', + desc: '前端脚本引入,自定义 LLM 接入点。从 OpenAI 到 qwen3,完全由你掌控。', }, accessible: { title: '普惠智能交互', diff --git a/pages/page.tsx b/pages/page.tsx index c2a4aa8..2dd4249 100644 --- a/pages/page.tsx +++ b/pages/page.tsx @@ -70,7 +70,7 @@ export default function HomePage() { } return ( -

+
{/* Hero Section */} @@ -302,49 +302,30 @@ export default function HomePage() {
{/* Feature 1 */}

- {t('home:features.dom_understanding.title')} + {t('home:features.in_page.title')}

- {t('home:features.dom_understanding.desc')} + {t('home:features.in_page.desc')}

{/* Feature 2 */}
-

- {t('home:features.secure_integration.title')} -

-

- {t('home:features.secure_integration.desc')} -

-
- - {/* Feature 3 */} -
-
- {/* Feature 4 */} + {/* Feature 3 */}

{t('home:features.accessible.title')} @@ -375,6 +356,25 @@ export default function HomePage() { {t('home:features.accessible.desc')}

+ + {/* Feature 4 */} +
+ +

+ {t('home:features.secure_integration.title')} +

+

+ {t('home:features.secure_integration.desc')} +

+
@@ -396,7 +396,7 @@ export default function HomePage() {
{/* Use Case 1 */} -
+
1 @@ -414,7 +414,7 @@ export default function HomePage() {
{/* Use Case 2 */} -
+
2 @@ -431,7 +431,7 @@ export default function HomePage() {
{/* Use Case 3 */} -
+
3 @@ -448,7 +448,7 @@ export default function HomePage() {
{/* Use Case 4 */} -
+
4 diff --git a/pages/test-pages/index.tsx b/pages/test-pages/index.tsx index 8ff51a1..21a8f45 100644 --- a/pages/test-pages/index.tsx +++ b/pages/test-pages/index.tsx @@ -2,7 +2,7 @@ import { Link } from 'wouter' export default function IndexPage() { return ( -
+

@@ -59,7 +59,10 @@ export default function IndexPage() {

- + ← 回到 Page Use 首页
@@ -78,28 +81,24 @@ interface TestPageCardProps { function TestPageCard({ title, description, path, icon, difficulty }: TestPageCardProps) { const difficultyColors = { - '简单': 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', - '中等': 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', - '困难': 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200' + 简单: 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', + 中等: 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', + 困难: 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', } return (
{icon}
-

- {title} -

-

- {description} -

+

{title}

+

{description}

- + {difficulty} - - 开始测试 → - + 开始测试 →