1
0

Update ApiDocs and HistoryCharts components; enhance PollutionMap with heat layer and toggle Voronoi visibility

This commit is contained in:
Jose
2025-05-31 14:00:39 +02:00
parent 1e5a8f7ee7
commit 2e4fc9db41
4 changed files with 17 additions and 17 deletions

View File

@@ -6,12 +6,12 @@ const ApiDocs = ({ json }) => {
if (!json) return <p className="text-muted">No hay documentación disponible.</p>;
const renderEndpoints = (endpoints) => (
<Accordion>
<Accordion className='overflow-auto'>
{endpoints.map((ep, index) => (
<Accordion.Item eventKey={index.toString()} key={index}>
<Accordion.Header>
<Accordion.Header className='d-flex align-items-center flex-wrap'>
<span className={`badge bg-${getMethodColor(ep.method)} me-2 text-uppercase`}>{ep.method}</span>
<code>{ep.path}</code>
<code className='text-break flex-grow-1'>{ep.path}</code>
</Accordion.Header>
<Accordion.Body>
{ep.description && <p className="mb-2">{ep.description}</p>}