Skip to content

Commit

Permalink
Fix builder table
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r committed Nov 16, 2024
1 parent a1383f1 commit 1b4f967
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/package-table.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ type Package = {
version: string;
category: string;
description: string;
installed_size: string;
upstream_url: string;
createdAt: string;
updatedAt: string;
publishedAt: string;
Expand Down Expand Up @@ -66,6 +68,16 @@ let totalPackages = apiResponse.meta.pagination.total;
class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-100"
>Description</th
>
<th
scope="col"
class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-100"
>Installed Size</th
>
<th
scope="col"
class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900 dark:text-gray-100"
>URL</th
>
</tr>
</thead>
<tbody class="" id="dataRows">
Expand All @@ -84,6 +96,12 @@ let totalPackages = apiResponse.meta.pagination.total;
<td class="whitespace-wrap px-3 py-4 text-sm text-gray-500 dark:text-gray-300">
{p.description}
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-gray-400">
{p.installed_size}
</td>
<td class="whitespace-wrap px-3 py-4 text-sm text-gray-500 dark:text-gray-300">
{p.upstream_url}
</td>
</tr>
))
}
Expand Down Expand Up @@ -144,6 +162,12 @@ let totalPackages = apiResponse.meta.pagination.total;
<td class="whitespace-wrap px-3 py-4 text-sm text-gray-500 dark:text-gray-300">
${p.description}
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 dark:text-gray-400">
${p.installed_size}
</td>
<td class="whitespace-wrap px-3 py-4 text-sm text-gray-500 dark:text-gray-300">
${p.upstream_url}
</td>
`;
dataRows.appendChild(tr);
});
Expand Down

0 comments on commit 1b4f967

Please sign in to comment.