feat: implement AI gateway phase one runtime

This commit is contained in:
2026-05-09 21:18:32 +08:00
parent a5e66e79cd
commit fdcdcd477b
46 changed files with 5678 additions and 768 deletions
+188
View File
@@ -0,0 +1,188 @@
.apiDocsShell {
display: grid;
min-height: calc(100vh - 120px);
grid-template-columns: 280px minmax(420px, 1fr) 360px;
gap: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 12px;
background: #fff;
}
.docsSidebar,
.docsArticle,
.docsRunner {
min-height: 0;
overflow: auto;
}
.docsSidebar {
padding: 18px;
border-right: 1px solid var(--border);
}
.docsBrand,
.docsSearch {
display: flex;
align-items: center;
gap: 10px;
}
.docsBrand {
margin-bottom: 18px;
font-size: 17px;
}
.docsSearch {
min-height: 40px;
padding: 0 12px;
border: 1px solid var(--border);
border-radius: 8px;
color: var(--muted-foreground);
}
.docsSearch input {
width: 100%;
border: 0;
outline: 0;
}
.docsGroup {
display: grid;
gap: 6px;
margin-top: 22px;
}
.docsGroup h3 {
margin-bottom: 4px;
color: var(--muted-foreground);
font-size: 13px;
}
.docsGroup button {
display: flex;
min-height: 34px;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 0 10px;
border: 0;
border-radius: 7px;
background: transparent;
color: #344054;
text-align: left;
}
.docsGroup button[data-active="true"] {
background: #f5f6f8;
color: #111827;
}
.docsArticle {
padding: 28px 34px 60px;
background: #fff;
}
.docsArticle h1 {
margin-bottom: 20px;
}
.endpointBar,
.runnerEndpoint {
display: flex;
align-items: center;
gap: 10px;
padding: 10px;
border: 1px solid var(--border);
border-radius: 10px;
background: #fff;
}
.docsLead {
margin: 18px 0 24px;
color: #475467;
line-height: 1.7;
}
.paramCard {
margin-top: 18px;
overflow: hidden;
border: 1px solid var(--border);
border-radius: 12px;
background: #fff;
}
.paramCard header,
.docsRunner header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid var(--border);
}
.paramRow {
display: grid;
grid-template-columns: 150px 110px minmax(0, 1fr) 50px;
gap: 12px;
padding: 13px 16px;
border-bottom: 1px solid #f0f2f5;
color: #475467;
font-size: 13px;
}
.paramRow em {
color: #a16207;
font-style: normal;
}
.docsRunner {
border-left: 1px solid var(--border);
background: #fff;
}
.docsRunner form {
display: grid;
gap: 14px;
padding: 0 16px 16px;
}
.runnerResult {
display: grid;
gap: 12px;
padding: 16px;
border-top: 1px solid var(--border);
}
.runnerResult pre {
overflow: auto;
max-height: 300px;
margin: 0;
padding: 12px;
border-radius: 8px;
background: #f7f8fa;
font-size: 12px;
}
@media (max-width: 1180px) {
.apiDocsShell {
grid-template-columns: 240px minmax(0, 1fr);
}
.docsRunner {
grid-column: 1 / -1;
border-top: 1px solid var(--border);
border-left: 0;
}
}
@media (max-width: 860px) {
.apiDocsShell {
grid-template-columns: 1fr;
}
.paramRow {
grid-template-columns: 1fr;
}
}