import CodeEditor from '@/components/CodeEditor' import { Heading } from '@/components/Heading' import { CDN_DEMO_CN_URL, CDN_DEMO_URL } from '@/constants' import { useLanguage } from '@/i18n/context' export default function QuickStart() { const { isZh } = useLanguage() return (

Quick Start

{isZh ? '几分钟内完成 page-agent 的集成。' : 'Integrate page-agent in minutes.'}

{isZh ? '安装步骤' : 'Installation Steps'}
{/* Demo CDN - One Line */}

{isZh ? '🚀 快速体验(Demo CDN)' : '🚀 Quick Try (Demo CDN)'}

⚠️{' '} {isZh ? ( <> 该 Demo CDN 使用了免费的测试 LLM API,使用即表示您同意其 使用条款 ) : ( <> This demo CDN uses our free testing LLM API. By using it you agree to the{' '} Terms of Use )}
`} language="html" />

{isZh ? '在 URL 后添加 ?autoInit=false 可只加载脚本,不自动创建 Demo Agent;之后可通过 new window.PageAgent(...) 手动初始化。' : 'Add ?autoInit=false to load the script without creating the demo agent automatically. You can then instantiate it with new window.PageAgent(...).'}

{isZh ? '镜像' : 'Mirrors'} URL
{isZh ? '全球' : 'Global'} {CDN_DEMO_URL}
{isZh ? '中国' : 'China'} {CDN_DEMO_CN_URL}
{/* NPM - Recommended */}

{isZh ? '📦 NPM 安装(推荐)' : '📦 NPM Install (Recommended)'}

{isZh ? '2. 初始化配置' : '2. Initialize Configuration'}

{isZh ? '3. 开始使用' : '3. Start Using'}

) }