Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const implementations = defineCollection({
description: z.string().describe('HTML allowed'),
license: z.string(),
type: z.union([z.literal('official'), z.literal('community')]),
subtype: z.union([z.literal('client'), z.literal('server')]).optional(),
subtype: z.union([z.literal('client'), z.literal('server'), z.literal('both')]).optional(),
}),
})

Expand Down
14 changes: 14 additions & 0 deletions src/content/implementations/resumable-upload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"href": "https://github.com/sts07142/resumable-upload",
"authors": [
{
"name": "sts07142",
"href": "https://github.com/sts07142"
}
],
"name": "sts07142/resumable-upload",
"description": "A <strong>Python</strong> implementation of the <code>tus v1.0.0</code> for <strong>server and client</strong>, <strong>with zero runtime dependencies</strong>.",
"license": "MIT",
"type": "community",
"subtype": "both"
}
30 changes: 30 additions & 0 deletions src/pages/implementations.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { getCollection } from 'astro:content'

const description = 'Explore real-life tus protocol implementations in various languages and platforms, showcasing its versatility and efficiency in file uploads.'

const officialBoth = await getCollection(
'implementations',
(d) => d.data.type === 'official' && d.data.subtype === 'both'
)

const officialServers = await getCollection(
'implementations',
(d) => d.data.type === 'official' && d.data.subtype === 'server'
Expand All @@ -16,6 +21,11 @@ const officialClients = await getCollection(
(d) => d.data.type === 'official' && d.data.subtype === 'client'
)

const communityBothImplementations = await getCollection(
'implementations',
(d) => d.data.type === 'community' && d.data.subtype === 'both'
)

const communityClientImplementations = await getCollection(
'implementations',
(d) => d.data.type === 'community' && d.data.subtype === 'client'
Expand Down Expand Up @@ -69,6 +79,16 @@ const communityServerImplementations = await getCollection(
developers.
</p>

<h3>Servers/Clients</h3>

<ul class="implementations">
{
officialBoth.map((implementation) => (
<ListItem implementation={implementation} />
))
}
</ul>

<h3>Servers</h3>

<ul class="implementations">
Expand Down Expand Up @@ -108,6 +128,16 @@ const communityServerImplementations = await getCollection(
what protocol version you're targeting.
</p>

<h3>Servers/Clients</h3>

<ul class="implementations">
{
communityBothImplementations.map((implementation) => (
<ListItem implementation={implementation} />
))
}
</ul>

<h3>Client</h3>

<ul class="implementations">
Expand Down