forked from baron/baron-sso
devfront consents 및 audit 테이블 공통화
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import type { ReactNode, ThHTMLAttributes } from "react";
|
import type { ReactNode, ThHTMLAttributes } from "react";
|
||||||
import type { SortConfig } from "../../utils";
|
import type { SortConfig } from "../../utils";
|
||||||
|
import { commonTableHeadClass } from "../../../ui/table";
|
||||||
|
|
||||||
export const sortableTableHeadBaseClassName =
|
export const sortableTableHeadBaseClassName =
|
||||||
"h-12 px-6 text-left text-xs font-sans font-bold uppercase tracking-[0.08em] text-foreground align-middle";
|
commonTableHeadClass;
|
||||||
|
|
||||||
export const sortableTableHeaderClassName =
|
export const sortableTableHeaderClassName =
|
||||||
"sticky top-0 z-10 bg-secondary shadow-sm";
|
"sticky top-0 z-10 bg-secondary shadow-sm";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export const commonTableFooterClass = "bg-muted/50 font-medium text-foreground";
|
|||||||
export const commonTableRowClass =
|
export const commonTableRowClass =
|
||||||
"border-b transition-colors hover:bg-muted/30 data-[state=selected]:bg-muted";
|
"border-b transition-colors hover:bg-muted/30 data-[state=selected]:bg-muted";
|
||||||
export const commonTableHeadClass =
|
export const commonTableHeadClass =
|
||||||
"h-12 px-6 text-left text-xs font-bold uppercase tracking-[0.08em] text-muted-foreground align-middle";
|
"h-12 px-6 text-left text-xs font-sans font-bold uppercase tracking-[0.08em] text-foreground align-middle";
|
||||||
export const commonTableCellClass = "p-6 align-middle text-sm";
|
export const commonTableCellClass = "p-6 align-middle text-sm";
|
||||||
export const commonTableCaptionClass = "mt-4 text-sm text-muted-foreground";
|
export const commonTableCaptionClass = "mt-4 text-sm text-muted-foreground";
|
||||||
export const commonTableShellClass =
|
export const commonTableShellClass =
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ import {
|
|||||||
TableHeader,
|
TableHeader,
|
||||||
TableRow,
|
TableRow,
|
||||||
} from "../../components/ui/table";
|
} from "../../components/ui/table";
|
||||||
|
import {
|
||||||
|
commonTableShellClass,
|
||||||
|
commonTableViewportClass,
|
||||||
|
} from "../../../../common/ui/table";
|
||||||
import { fetchClient, fetchConsents, revokeConsent } from "../../lib/devApi";
|
import { fetchClient, fetchConsents, revokeConsent } from "../../lib/devApi";
|
||||||
import { t } from "../../lib/i18n";
|
import { t } from "../../lib/i18n";
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "../../lib/utils";
|
||||||
@@ -430,8 +434,10 @@ function ClientConsentsPage() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<div className={commonTableShellClass}>
|
||||||
|
<div className={commonTableViewportClass}>
|
||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader className="sticky top-0 z-10 bg-secondary shadow-sm">
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableHead>
|
<TableHead>
|
||||||
{t("ui.dev.clients.consents.table.user", "User")}
|
{t("ui.dev.clients.consents.table.user", "User")}
|
||||||
@@ -521,7 +527,10 @@ function ClientConsentsPage() {
|
|||||||
</Badge>
|
</Badge>
|
||||||
) : (
|
) : (
|
||||||
<Badge variant="warning">
|
<Badge variant="warning">
|
||||||
{t("ui.dev.clients.consents.status_revoked", "Revoked")}
|
{t(
|
||||||
|
"ui.dev.clients.consents.status_revoked",
|
||||||
|
"Revoked",
|
||||||
|
)}
|
||||||
</Badge>
|
</Badge>
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
@@ -570,6 +579,8 @@ function ClientConsentsPage() {
|
|||||||
)}
|
)}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</Table>
|
</Table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<CardContent className="flex items-center justify-between border-t border-border bg-muted/10 px-6 py-4 text-sm text-muted-foreground">
|
<CardContent className="flex items-center justify-between border-t border-border bg-muted/10 px-6 py-4 text-sm text-muted-foreground">
|
||||||
<p>
|
<p>
|
||||||
{t(
|
{t(
|
||||||
|
|||||||
Reference in New Issue
Block a user