chore: commit pending gateway changes

This commit is contained in:
2026-05-10 22:34:15 +08:00
parent 53f8edfb67
commit d59756a27c
71 changed files with 15106 additions and 656 deletions
+10 -2
View File
@@ -1,7 +1,8 @@
import type { ReactNode } from 'react';
import { Activity, Boxes, Image, Layers, Route, ServerCog, ShieldCheck, Video, Workflow } from 'lucide-react';
import { Badge, Button, Card, CardContent } from '../components/ui';
import type { PageKey } from '../types';
import type { PageKey, PlaygroundMode } from '../types';
import { PlaygroundEntry, PublicWorksGallery } from './PlaygroundPage';
const coverage = [
{ icon: <Activity size={18} />, label: '大模型对话', value: 'Chat / Responses', detail: '兼容 OpenAI 对话接口与 EasyAI 站内调用' },
@@ -17,7 +18,10 @@ const advantages = [
{ icon: <ServerCog size={18} />, title: 'Hybrid 接入', body: '既可独立闭环运行,也可以对接 server-main 的认证、上传和业务前端。' },
];
export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
export function HomePage(props: {
onNavigate: (page: PageKey) => void;
onPlaygroundMode: (mode: PlaygroundMode) => void;
}) {
return (
<div className="landingPage">
<section className="releaseNotice">
@@ -32,6 +36,7 @@ export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
<h1> AI </h1>
<p> server-main </p>
<div className="landingActions">
<Button type="button" onClick={() => props.onNavigate('playground')}>线</Button>
<Button type="button" onClick={() => props.onNavigate('models')}></Button>
<Button type="button" variant="outline" onClick={() => props.onNavigate('docs')}> API </Button>
</div>
@@ -39,6 +44,9 @@ export function HomePage(props: { onNavigate: (page: PageKey) => void }) {
<GatewayPreview />
</section>
<PlaygroundEntry onModeChange={props.onPlaygroundMode} />
<PublicWorksGallery />
<section className="landingSection">
<div className="landingSectionHeader">
<p className="eyebrow">Model Coverage</p>