From ad5895a1eafecd16589d4b58e3a3eb3ddad767ed Mon Sep 17 00:00:00 2001 From: chan Date: Fri, 13 Feb 2026 15:15:21 +0900 Subject: [PATCH] =?UTF-8?q?I18=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/overview/GlobalOverviewPage.tsx | 1 + .../tenants/routes/TenantProfilePage.tsx | 28 ----------- adminfront/src/lib/adminApi.ts | 21 ++++++++ adminfront/src/lib/i18n.ts | 4 +- adminfront/src/locales/en.toml | 49 ++++++++++++++----- adminfront/src/locales/ko.toml | 37 ++++++++++++-- adminfront/src/locales/template.toml | 33 +++++++++++-- devfront/src/lib/i18n.ts | 4 +- devfront/src/locales/en.toml | 49 ++++++++++++++----- devfront/src/locales/ko.toml | 37 ++++++++++++-- devfront/src/locales/template.toml | 33 +++++++++++-- docker-compose.yaml | 2 + 12 files changed, 228 insertions(+), 70 deletions(-) diff --git a/adminfront/src/features/overview/GlobalOverviewPage.tsx b/adminfront/src/features/overview/GlobalOverviewPage.tsx index 24e8f139..7db5a1cd 100644 --- a/adminfront/src/features/overview/GlobalOverviewPage.tsx +++ b/adminfront/src/features/overview/GlobalOverviewPage.tsx @@ -17,6 +17,7 @@ import { CardTitle, } from "../../components/ui/card"; import { t } from "../../lib/i18n"; +import PermissionChecker from "./components/PermissionChecker"; const summaryCards = [ { diff --git a/adminfront/src/features/tenants/routes/TenantProfilePage.tsx b/adminfront/src/features/tenants/routes/TenantProfilePage.tsx index 6bfd3610..f75a3f39 100644 --- a/adminfront/src/features/tenants/routes/TenantProfilePage.tsx +++ b/adminfront/src/features/tenants/routes/TenantProfilePage.tsx @@ -18,7 +18,6 @@ import { approveTenant, deleteTenant, fetchTenant, - fetchTenantGroups, updateTenant, } from "../../../lib/adminApi"; @@ -36,17 +35,11 @@ export function TenantProfilePage() { queryFn: () => fetchTenant(tenantId), }); - const groupsQuery = useQuery({ - queryKey: ["tenant-groups", { limit: 100 }], - queryFn: () => fetchTenantGroups(100, 0), - }); - const [name, setName] = useState(""); const [slug, setSlug] = useState(""); const [description, setDescription] = useState(""); const [status, setStatus] = useState("active"); const [domains, setDomains] = useState(""); - const [tenantGroupId, setTenantGroupId] = useState(""); useEffect(() => { if (tenantQuery.data) { @@ -55,7 +48,6 @@ export function TenantProfilePage() { setDescription(tenantQuery.data.description ?? ""); setStatus(tenantQuery.data.status); setDomains(tenantQuery.data.domains?.join(", ") ?? ""); - setTenantGroupId(tenantQuery.data.tenantGroupId ?? ""); } }, [tenantQuery.data]); @@ -66,7 +58,6 @@ export function TenantProfilePage() { slug, description: description || undefined, status, - tenantGroupId: tenantGroupId || undefined, domains: domains .split(",") .map((d) => d.trim()) @@ -145,25 +136,6 @@ export function TenantProfilePage() { onChange={(e) => setDescription(e.target.value)} /> -
- - -

- 테넌트가 속할 그룹을 지정합니다. 그룹 관리자는 소속 테넌트에 대한 - 접근 권한을 가집니다. -

-