forked from baron/baron-sso
로케일 누락 키 추가 및 lint 수정
This commit is contained in:
@@ -2427,13 +2427,13 @@ function ClientGeneralPage() {
|
|||||||
{tenantAccessRestricted ? (
|
{tenantAccessRestricted ? (
|
||||||
<div className="grid gap-4 lg:grid-cols-[0.8fr_1.2fr]">
|
<div className="grid gap-4 lg:grid-cols-[0.8fr_1.2fr]">
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<Label className="text-sm font-semibold">
|
<Label className="text-sm font-semibold">
|
||||||
{t(
|
{t(
|
||||||
"ui.dev.clients.general.tenant_access.picker_label",
|
"ui.dev.clients.general.tenant_access.picker_label",
|
||||||
"Add allowed tenant",
|
"Add allowed tenant",
|
||||||
)}{" "}
|
)}{" "}
|
||||||
<span className="text-destructive">*</span>
|
<span className="text-destructive">*</span>
|
||||||
</Label>
|
</Label>
|
||||||
<TenantAccessPicker
|
<TenantAccessPicker
|
||||||
disabled={isGeneralSettingsReadOnly}
|
disabled={isGeneralSettingsReadOnly}
|
||||||
selectedCount={allowedTenantIds.length}
|
selectedCount={allowedTenantIds.length}
|
||||||
|
|||||||
@@ -16,10 +16,7 @@ type TenantAccessPickerProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function resolveOrgFrontBaseUrl() {
|
function resolveOrgFrontBaseUrl() {
|
||||||
return (
|
return import.meta.env.ORGFRONT_URL || "http://localhost:5175";
|
||||||
import.meta.env.ORGFRONT_URL ||
|
|
||||||
"http://localhost:5175"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TenantAccessPicker({
|
export function TenantAccessPicker({
|
||||||
|
|||||||
@@ -43,9 +43,7 @@ describe("developer access pages", () => {
|
|||||||
|
|
||||||
window.localStorage.setItem("locale", "en");
|
window.localStorage.setItem("locale", "en");
|
||||||
|
|
||||||
expect(getDeveloperAccessPageLabel("client_create")).toBe(
|
expect(getDeveloperAccessPageLabel("client_create")).toBe("Add linked app");
|
||||||
"Add linked app",
|
|
||||||
);
|
|
||||||
expect(developerAccessPagesToLabel(["overview", "audit"])).toBe(
|
expect(developerAccessPagesToLabel(["overview", "audit"])).toBe(
|
||||||
"Overview, Audit Logs",
|
"Overview, Audit Logs",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -96,10 +96,7 @@ function getRecentClientFieldLabel(key: string) {
|
|||||||
"클라이언트 시크릿",
|
"클라이언트 시크릿",
|
||||||
);
|
);
|
||||||
case "id_token_claims":
|
case "id_token_claims":
|
||||||
return t(
|
return t("ui.dev.clients.general.id_token_claims.title", "Custom Claims");
|
||||||
"ui.dev.clients.general.id_token_claims.title",
|
|
||||||
"Custom Claims",
|
|
||||||
);
|
|
||||||
default:
|
default:
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
@@ -159,11 +156,7 @@ function formatIdTokenClaimChangeSummary(
|
|||||||
const afterValueType =
|
const afterValueType =
|
||||||
typeof afterValue.valueType === "string" ? afterValue.valueType : null;
|
typeof afterValue.valueType === "string" ? afterValue.valueType : null;
|
||||||
|
|
||||||
if (
|
if (beforeValueType && afterValueType && beforeValueType !== afterValueType) {
|
||||||
beforeValueType &&
|
|
||||||
afterValueType &&
|
|
||||||
beforeValueType !== afterValueType
|
|
||||||
) {
|
|
||||||
return `~ ${beforeDisplayName}: ${beforeValueType} → ${afterValueType}`;
|
return `~ ${beforeDisplayName}: ${beforeValueType} → ${afterValueType}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -317,7 +310,9 @@ export function buildRecentClientChangeDetails(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (action !== "CREATE_CLIENT" && action !== "DELETE_CLIENT") {
|
if (action !== "CREATE_CLIENT" && action !== "DELETE_CLIENT") {
|
||||||
if (auditValueSignature(beforeValue) === auditValueSignature(afterValue)) {
|
if (
|
||||||
|
auditValueSignature(beforeValue) === auditValueSignature(afterValue)
|
||||||
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,13 @@ describe("i18n", () => {
|
|||||||
window.localStorage.setItem("locale", "en");
|
window.localStorage.setItem("locale", "en");
|
||||||
|
|
||||||
expect(t("ui.dev.request.list.title", "신청 내역")).toBe("Request History");
|
expect(t("ui.dev.request.list.title", "신청 내역")).toBe("Request History");
|
||||||
expect(t("msg.dev.request.list.approved_count", "총 {{count}}명의 사용자가 승인되었습니다.", { count: 0 })).toBe(
|
expect(
|
||||||
"0 users have been approved.",
|
t(
|
||||||
);
|
"msg.dev.request.list.approved_count",
|
||||||
|
"총 {{count}}명의 사용자가 승인되었습니다.",
|
||||||
|
{ count: 0 },
|
||||||
|
),
|
||||||
|
).toBe("0 users have been approved.");
|
||||||
expect(t("ui.dev.grants.form.title", "직접 부여")).toBe("Direct Grant");
|
expect(t("ui.dev.grants.form.title", "직접 부여")).toBe("Direct Grant");
|
||||||
expect(
|
expect(
|
||||||
t(
|
t(
|
||||||
@@ -23,7 +27,10 @@ describe("i18n", () => {
|
|||||||
"Select a user to view their current tenant, email, and phone, then grant developer access immediately.",
|
"Select a user to view their current tenant, email, and phone, then grant developer access immediately.",
|
||||||
);
|
);
|
||||||
expect(
|
expect(
|
||||||
t("msg.dev.grants.list.description", "현재 부여된 개발자 권한 목록입니다."),
|
t(
|
||||||
|
"msg.dev.grants.list.description",
|
||||||
|
"현재 부여된 개발자 권한 목록입니다.",
|
||||||
|
),
|
||||||
).toBe("Current developer access grants.");
|
).toBe("Current developer access grants.");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2687,6 +2687,12 @@ title = "Direct Grant"
|
|||||||
[ui.dev.grants.list]
|
[ui.dev.grants.list]
|
||||||
title = "Granted Access"
|
title = "Granted Access"
|
||||||
|
|
||||||
|
[ui.dev.access_pages]
|
||||||
|
all = "All"
|
||||||
|
overview = "Overview"
|
||||||
|
client_create = "Add linked app"
|
||||||
|
audit = "Audit Logs"
|
||||||
|
|
||||||
[ui.dev.header]
|
[ui.dev.header]
|
||||||
plane = "Dev Plane"
|
plane = "Dev Plane"
|
||||||
subtitle = "Manage your applications"
|
subtitle = "Manage your applications"
|
||||||
|
|||||||
@@ -2687,6 +2687,12 @@ title = "직접 부여"
|
|||||||
[ui.dev.grants.list]
|
[ui.dev.grants.list]
|
||||||
title = "부여된 권한"
|
title = "부여된 권한"
|
||||||
|
|
||||||
|
[ui.dev.access_pages]
|
||||||
|
all = "전체"
|
||||||
|
overview = "개요"
|
||||||
|
client_create = "연동 앱 추가"
|
||||||
|
audit = "감사로그"
|
||||||
|
|
||||||
[ui.dev.header]
|
[ui.dev.header]
|
||||||
plane = "Dev Plane"
|
plane = "Dev Plane"
|
||||||
subtitle = "Manage your applications"
|
subtitle = "Manage your applications"
|
||||||
|
|||||||
@@ -2687,6 +2687,12 @@ title = ""
|
|||||||
[ui.dev.grants.list]
|
[ui.dev.grants.list]
|
||||||
title = ""
|
title = ""
|
||||||
|
|
||||||
|
[ui.dev.access_pages]
|
||||||
|
all = ""
|
||||||
|
overview = ""
|
||||||
|
client_create = ""
|
||||||
|
audit = ""
|
||||||
|
|
||||||
[ui.dev.header]
|
[ui.dev.header]
|
||||||
plane = ""
|
plane = ""
|
||||||
subtitle = ""
|
subtitle = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user