feat: update pages

This commit is contained in:
Simon
2025-10-21 22:02:51 +08:00
parent e81291f54b
commit 55a3ce16e5
3 changed files with 92 additions and 33 deletions

View File

@@ -6,8 +6,6 @@ export default function CdnSetup() {
<div>
<h1 className="text-4xl font-bold mb-6">CDN </h1>
<BetaNotice />
<p className="text-xl text-gray-600 dark:text-gray-300 mb-6 leading-relaxed">
CDN page-agent
</p>
@@ -16,13 +14,12 @@ export default function CdnSetup() {
<CodeEditor
className="mb-8"
code={`<!-- 在 HTML 中引入 -->
// @todo find a cdn
<script src="https://some-cdn.com/page-agent.umd.js"></script>
code={`
// 仅供测试使用,稳定 CDN 待定
<script src="https://hwcxiuzfylggtcktqgij.supabase.co/storage/v1/object/public/demo-public/v0.0.2/page-agent.js" crossorigin="true" type="text/javascript"></script>
<script>
const pageAgent = new PageAgent()
pageAgent.panel.show()
window.pageAgent.panel.show()
</script>`}
/>