feat: cleaner api rendering

This commit is contained in:
TrèsAbhi committed 2026-03-15 23:29:33 -05:00
1 parent 8b01b7c192
commit 0e57943d33
5 files changed
+28 -9

No files matched your search

@@ -28,17 +28,24 @@ paths.sort((a, b) => a.path.localeCompare(b.path));
<Section>
<Heading>{strings.api.json}</Heading>
<ApiGroup apis={collection.filter((api) => api.id.endsWith(".json"))} />
<ApiGroup
{locale}
apis={collection.filter((api) => api.id.endsWith(".json"))}
/>
</Section>
<Section>
<Heading>{strings.api.pb}</Heading>
<ApiGroup apis={collection.filter((api) => api.id.endsWith(".pb"))} />
<ApiGroup
{locale}
apis={collection.filter((api) => api.id.endsWith(".pb"))}
/>
</Section>
<Section>
<Heading>{strings.api.media}</Heading>
<ApiGroup
{locale}
apis={collection.filter(
(api) => !api.id.endsWith(".json") && !api.id.endsWith(".pb"),
)}