1
0
forked from baron/baron-sso

92e607aee8 기준 code check 오류 수정

This commit is contained in:
2026-05-14 10:22:59 +09:00
parent e803a0b150
commit da10b4be15
17 changed files with 536 additions and 379 deletions

View File

@@ -449,7 +449,10 @@ function ClientConsentsPage() {
{t("ui.dev.clients.consents.table.status", "Status")}
</TableHead>
<TableHead>
{t("ui.dev.clients.consents.table.scopes", "Granted Scopes")}
{t(
"ui.dev.clients.consents.table.scopes",
"Granted Scopes",
)}
</TableHead>
<TableHead>
{t(
@@ -553,7 +556,10 @@ function ClientConsentsPage() {
<TableCell className="text-sm text-muted-foreground">
{row.status === "revoked" && row.deletedAt ? (
<span className="text-destructive font-medium">
{t("ui.dev.clients.consents.revoked_at", "Revoked: ")}
{t(
"ui.dev.clients.consents.revoked_at",
"Revoked: ",
)}
{new Date(row.deletedAt).toLocaleString()}
</span>
) : row.authenticatedAt ? (

View File

@@ -1,12 +1,6 @@
import { useMutation, useQuery } from "@tanstack/react-query";
import type { AxiosError } from "axios";
import {
BookOpenText,
Filter,
Plus,
Search,
X,
} from "lucide-react";
import { BookOpenText, Filter, Plus, Search, X } from "lucide-react";
import { useEffect, useMemo, useState } from "react";
import { useAuth } from "react-oidc-context";
import { Link, useNavigate } from "react-router-dom";
@@ -128,12 +122,11 @@ function ClientsPage() {
const [statusFilter, setStatusFilter] = useState("all");
const [isAdvancedFilterOpen, setIsAdvancedFilterOpen] = useState(false);
const [isRequestModalOpen, setIsRequestModalOpen] = useState(false);
const [sortConfig, setSortConfig] = useState<SortConfig<ClientSortKey> | null>(
{
const [sortConfig, setSortConfig] =
useState<SortConfig<ClientSortKey> | null>({
key: "createdAt",
direction: "desc",
},
);
});
const clients = data?.items || [];
const clientSortResolvers = useMemo<
@@ -460,7 +453,10 @@ function ClientsPage() {
<TableHeader className={sortableTableHeaderClassName}>
<TableRow>
<SortableTableHead
label={t("ui.dev.clients.table.application", "애플리케이션")}
label={t(
"ui.dev.clients.table.application",
"애플리케이션",
)}
onSort={requestSort}
sortConfig={sortConfig}
sortKey="application"
@@ -587,7 +583,10 @@ function ClientsPage() {
t("ui.dev.clients.untitled", "Untitled")}
</p>
<p className="text-xs text-muted-foreground">
{t("ui.dev.clients.tenant_scoped", "Tenant-scoped")}
{t(
"ui.dev.clients.tenant_scoped",
"Tenant-scoped",
)}
</p>
</div>
</Link>
@@ -625,7 +624,9 @@ function ClientsPage() {
</TableCell>
<TableCell>
<Badge
variant={client.status === "active" ? "info" : "muted"}
variant={
client.status === "active" ? "info" : "muted"
}
className="px-3 py-1 text-xs uppercase"
>
{client.status === "active"