feat(website): drop hash-based router
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import BetaNotice from '@/components/BetaNotice'
|
||||
import { Heading } from '@/components/Heading'
|
||||
import { useLanguage } from '@/i18n/context'
|
||||
|
||||
export default function SecurityPermissions() {
|
||||
@@ -18,9 +19,13 @@ export default function SecurityPermissions() {
|
||||
|
||||
<div className="space-y-6">
|
||||
<section>
|
||||
<h2 className="text-2xl font-bold mb-3">
|
||||
<Heading
|
||||
id="element-interaction-allowlist-blocklist"
|
||||
level={2}
|
||||
className="text-2xl font-bold mb-3"
|
||||
>
|
||||
{isZh ? '元素操作黑白名单' : 'Element Interaction Allowlist/Blocklist'}
|
||||
</h2>
|
||||
</Heading>
|
||||
<div className="space-y-3">
|
||||
<div className="p-4 bg-red-50 dark:bg-red-900/20 rounded-lg">
|
||||
<h3 className="text-lg font-semibold text-red-900 dark:text-red-300">
|
||||
@@ -46,9 +51,13 @@ export default function SecurityPermissions() {
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 className="text-2xl font-bold mb-3">
|
||||
<Heading
|
||||
id="instruction-safety-constraints"
|
||||
level={2}
|
||||
className="text-2xl font-bold mb-3"
|
||||
>
|
||||
{isZh ? 'Instruction 安全约束' : 'Instruction Safety Constraints'}
|
||||
</h2>
|
||||
</Heading>
|
||||
<div className="p-4 bg-yellow-50 dark:bg-yellow-900/20 rounded-lg">
|
||||
<h3 className="text-lg font-semibold mb-2 text-yellow-900 dark:text-yellow-300">
|
||||
⚠️ {isZh ? '高危操作控制' : 'High-Risk Operation Control'}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import CodeEditor from '@/components/CodeEditor'
|
||||
import { Heading } from '@/components/Heading'
|
||||
import { useLanguage } from '@/i18n/context'
|
||||
|
||||
export default function ThirdPartyAgentPage() {
|
||||
@@ -26,7 +27,9 @@ export default function ThirdPartyAgentPage() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<h2 className="text-2xl font-bold mb-4">{isZh ? '集成方式' : 'Integration Method'}</h2>
|
||||
<Heading id="integration-method" level={2} className="text-2xl font-bold mb-4">
|
||||
{isZh ? '集成方式' : 'Integration Method'}
|
||||
</Heading>
|
||||
|
||||
<div className="space-y-4 mb-6">
|
||||
<div className="p-4 bg-green-50 dark:bg-green-900/20 rounded-lg">
|
||||
@@ -57,7 +60,9 @@ const pageAgentTool = {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 className="text-2xl font-bold mb-4">{isZh ? '应用场景' : 'Use Cases'}</h2>
|
||||
<Heading id="use-cases" level={2} className="text-2xl font-bold mb-4">
|
||||
{isZh ? '应用场景' : 'Use Cases'}
|
||||
</Heading>
|
||||
<div className="grid md:grid-cols-2 gap-4 mb-6">
|
||||
<div className="bg-linear-to-br from-blue-50 to-purple-50 dark:from-gray-800 dark:to-gray-700 p-4 rounded-lg">
|
||||
<h4 className="font-semibold mb-2 text-gray-900 dark:text-white">
|
||||
|
||||
Reference in New Issue
Block a user