Skip to content

Commit

Permalink
feat(swc/plugins): Do some design work (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Aug 26, 2024
1 parent 63b8bd8 commit c8b6f61
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions swc-plugins/app/compat/range/[compatRangeId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
"use client";

import {
Table,
TableBody,
TableCaption,
TableCell,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { apiClient } from "@/lib/trpc/web-client";

export default function Page({
Expand All @@ -18,15 +27,25 @@ export default function Page({
<kbd>{compatRange.to}</kbd>
</h1>

<h2 className="text-xl font-bold">Runtimes</h2>
<ul>
{compatRange.runtimes.map((runtime) => (
<li key={runtime.name}>
<kbd>{runtime.name}</kbd>
<kbd>{runtime.minVersion}</kbd> - <kbd>{runtime.maxVersion}</kbd>
</li>
))}
</ul>
<Table>
<TableCaption>Runtime Version Ranges</TableCaption>
<TableHeader>
<TableRow>
<TableHead className="w-[200px]">Runtime</TableHead>
<TableHead>Minimum Version</TableHead>
<TableHead>Maximum Version</TableHead>
</TableRow>
</TableHeader>
<TableBody>
{compatRange.runtimes.map((runtime) => (
<TableRow key={runtime.name}>
<TableCell className="font-medium">{runtime.name}</TableCell>
<TableCell>{runtime.minVersion}</TableCell>
<TableCell>{runtime.maxVersion}</TableCell>
</TableRow>
))}
</TableBody>
</Table>

<h2 className="text-xl font-bold">Plugins</h2>
<ul>
Expand Down

0 comments on commit c8b6f61

Please sign in to comment.