Skip to content

Commit 2a567c4

Browse files
authored
Feat/bhwa233 (#137)
1 parent 4c2e95b commit 2a567c4

File tree

3 files changed

+45
-34
lines changed

3 files changed

+45
-34
lines changed

web/src/components/layout/app-sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function AppSidebar() {
2424

2525
<SidebarFooter>
2626
<div className="flex items-center gap-2 group-data-[collapsible=icon]:flex-col group-data-[collapsible=icon]:w-full group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:items-stretch">
27-
<SidebarTrigger />
2827
<ThemeToggle />
28+
<SidebarTrigger />
2929
</div>
3030
</SidebarFooter>
3131
</Sidebar>

web/src/components/layout/nav-proxy-status.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export function NavProxyStatus() {
1616
const fullUrl = `http://${proxyAddress}`;
1717
const isCollapsed = state === 'collapsed';
1818
const versionDisplay = proxyStatus?.version ?? '...';
19-
2019
const handleCopy = async () => {
2120
try {
2221
await navigator.clipboard.writeText(fullUrl);

web/src/components/ui/table.tsx

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,99 @@
1-
import * as React from 'react';
1+
import * as React from "react"
22

3-
import { cn } from '@/lib/utils';
3+
import { cn } from "@/lib/utils"
44

5-
function Table({ className, ...props }: React.ComponentProps<'table'>) {
5+
function Table({ className, ...props }: React.ComponentProps<"table">) {
66
return (
77
<div data-slot="table-container" className="relative w-full overflow-x-auto">
88
<table
99
data-slot="table"
10-
className={cn('w-full caption-bottom text-sm', className)}
10+
className={cn("w-full caption-bottom text-sm", className)}
1111
{...props}
1212
/>
1313
</div>
14-
);
14+
)
1515
}
1616

17-
function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {
18-
return <thead data-slot="table-header" className={cn('[&_tr]:border-b', className)} {...props} />;
17+
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
18+
return (
19+
<thead
20+
data-slot="table-header"
21+
className={cn("[&_tr]:border-b", className)}
22+
{...props}
23+
/>
24+
)
1925
}
2026

21-
function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {
27+
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
2228
return (
2329
<tbody
2430
data-slot="table-body"
25-
className={cn('[&_tr:last-child]:border-0', className)}
31+
className={cn("[&_tr:last-child]:border-0", className)}
2632
{...props}
2733
/>
28-
);
34+
)
2935
}
3036

31-
function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {
37+
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
3238
return (
3339
<tfoot
3440
data-slot="table-footer"
35-
className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}
41+
className={cn("bg-muted/50 border-t font-medium [&>tr:last-child]:border-b-0", className)}
3642
{...props}
3743
/>
38-
);
44+
)
3945
}
4046

41-
function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {
47+
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
4248
return (
4349
<tr
4450
data-slot="table-row"
45-
className={cn(
46-
'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
47-
className,
48-
)}
51+
className={cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b border-border transition-colors", className)}
4952
{...props}
5053
/>
51-
);
54+
)
5255
}
5356

54-
function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
57+
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
5558
return (
5659
<th
5760
data-slot="table-head"
58-
className={cn(
59-
'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0',
60-
className,
61-
)}
61+
className={cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0", className)}
6262
{...props}
6363
/>
64-
);
64+
)
6565
}
6666

67-
function TableCell({ className, ...props }: React.ComponentProps<'td'>) {
67+
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
6868
return (
6969
<td
7070
data-slot="table-cell"
71-
className={cn('p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0', className)}
71+
className={cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className)}
7272
{...props}
7373
/>
74-
);
74+
)
7575
}
7676

77-
function TableCaption({ className, ...props }: React.ComponentProps<'caption'>) {
77+
function TableCaption({
78+
className,
79+
...props
80+
}: React.ComponentProps<"caption">) {
7881
return (
7982
<caption
8083
data-slot="table-caption"
81-
className={cn('text-muted-foreground mt-4 text-sm', className)}
84+
className={cn("text-muted-foreground mt-4 text-sm", className)}
8285
{...props}
8386
/>
84-
);
87+
)
8588
}
8689

87-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
90+
export {
91+
Table,
92+
TableHeader,
93+
TableBody,
94+
TableFooter,
95+
TableHead,
96+
TableRow,
97+
TableCell,
98+
TableCaption,
99+
}

0 commit comments

Comments
 (0)