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