mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
feat: cleaner api rendering
This commit is contained in:
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"),
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user