Files
TaskPool/docs/guide/api.md
T
admin e6956aa001 Initial commit: TaskPool React panel
- React frontend with route-level code splitting
- Backend rebranded from Baihu to TaskPool
- DB brand migration script and local compatibility
2026-07-26 08:43:52 +08:00

52 lines
1.0 KiB
Markdown

---
layout: false
---
<script setup>
import { ApiReference } from '@scalar/api-reference'
import '@scalar/api-reference/style.css'
</script>
<div class="scalar-container">
<ClientOnly>
<ApiReference
:configuration="{
spec: {
url: '/taskpool/swagger.json'
},
theme: 'alternate',
showSidebar: true,
servers: [
{
url: '{protocol}://{host}:{port}/open2api/v1',
description: '可编辑的服务器地址',
variables: {
protocol: { default: 'http', enum: ['http', 'https'] },
host: { default: 'localhost' },
port: { default: '8052' }
}
}
]
}"
/>
</ClientOnly>
</div>
<style>
:root, body, #app {
margin: 0;
padding: 0;
height: 100%;
}
.scalar-container {
height: 100vh;
width: 100vw;
}
/* 覆盖 VitePress 可能存在的样式干扰 */
.scalar-container :deep(.scalar-api-reference) {
min-height: 100vh;
}
</style>