forked from baron/baron-sso
CSV 내보내기 버튼 공통
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { useInfiniteQuery } from "@tanstack/react-query";
|
import { useInfiniteQuery } from "@tanstack/react-query";
|
||||||
import type { AxiosError } from "axios";
|
import type { AxiosError } from "axios";
|
||||||
import { ListChecks, RefreshCw, Search } from "lucide-react";
|
import { Download, RefreshCw, Search } from "lucide-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import {
|
import {
|
||||||
formatAuditValue,
|
formatAuditValue,
|
||||||
@@ -92,7 +92,7 @@ function AuditLogsPage() {
|
|||||||
title={t("ui.common.audit.title", "감사 로그")}
|
title={t("ui.common.audit.title", "감사 로그")}
|
||||||
description={t(
|
description={t(
|
||||||
"msg.admin.audit.subtitle",
|
"msg.admin.audit.subtitle",
|
||||||
"Command 요청 기반 ClickHouse 로그를 조회합니다. 사용자/테넌트는 추후 세션 연동 시 자동 채워집니다.",
|
"관리자 작업 이력을 조회합니다.",
|
||||||
)}
|
)}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
@@ -110,8 +110,8 @@ function AuditLogsPage() {
|
|||||||
{t("ui.common.refresh", "새로고침")}
|
{t("ui.common.refresh", "새로고침")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button>
|
<Button>
|
||||||
<ListChecks size={16} />
|
<Download size={16} />
|
||||||
{t("ui.admin.audit.export_csv", "Export CSV")}
|
{t("ui.common.export_csv", "CSV 내보내기")}
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ loading = "Loading audit logs..."
|
|||||||
[msg.common.audit.registry]
|
[msg.common.audit.registry]
|
||||||
count = "{{count}} logs"
|
count = "{{count}} logs"
|
||||||
|
|
||||||
|
[msg.admin.audit]
|
||||||
|
subtitle = "View administrator activity history."
|
||||||
|
|
||||||
|
[msg.dev.audit]
|
||||||
|
subtitle = "View developer activity history within the current app scope."
|
||||||
|
|
||||||
[ui.common]
|
[ui.common]
|
||||||
apply = "Apply"
|
apply = "Apply"
|
||||||
actions = "Actions"
|
actions = "Actions"
|
||||||
@@ -47,6 +53,7 @@ disabled = "Disabled"
|
|||||||
edit = "Edit"
|
edit = "Edit"
|
||||||
enabled = "Enabled"
|
enabled = "Enabled"
|
||||||
export = "Export"
|
export = "Export"
|
||||||
|
export_csv = "Export CSV"
|
||||||
export_with_ids = "Include UUID"
|
export_with_ids = "Include UUID"
|
||||||
export_without_ids = "Export without UUID"
|
export_without_ids = "Export without UUID"
|
||||||
fail = "Fail"
|
fail = "Fail"
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ loading = "Loading audit logs..."
|
|||||||
[msg.common.audit.registry]
|
[msg.common.audit.registry]
|
||||||
count = "총 {{count}}개 로그"
|
count = "총 {{count}}개 로그"
|
||||||
|
|
||||||
|
[msg.admin.audit]
|
||||||
|
subtitle = "관리자 작업 이력을 조회합니다."
|
||||||
|
|
||||||
|
[msg.dev.audit]
|
||||||
|
subtitle = "현재 앱 범위의 개발자 작업 이력을 조회합니다."
|
||||||
|
|
||||||
[ui.common]
|
[ui.common]
|
||||||
apply = "적용"
|
apply = "적용"
|
||||||
actions = "액션"
|
actions = "액션"
|
||||||
@@ -47,6 +53,7 @@ disabled = "사용 안 함"
|
|||||||
edit = "편집"
|
edit = "편집"
|
||||||
enabled = "사용"
|
enabled = "사용"
|
||||||
export = "내보내기"
|
export = "내보내기"
|
||||||
|
export_csv = "CSV 내보내기"
|
||||||
export_with_ids = "UUID 포함"
|
export_with_ids = "UUID 포함"
|
||||||
export_without_ids = "UUID 제외 내보내기"
|
export_without_ids = "UUID 제외 내보내기"
|
||||||
fail = "실패"
|
fail = "실패"
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ loading = ""
|
|||||||
[msg.common.audit.registry]
|
[msg.common.audit.registry]
|
||||||
count = ""
|
count = ""
|
||||||
|
|
||||||
|
[msg.admin.audit]
|
||||||
|
subtitle = ""
|
||||||
|
|
||||||
|
[msg.dev.audit]
|
||||||
|
subtitle = ""
|
||||||
|
|
||||||
[ui.common]
|
[ui.common]
|
||||||
apply = "Apply"
|
apply = "Apply"
|
||||||
actions = ""
|
actions = ""
|
||||||
@@ -47,6 +53,7 @@ disabled = ""
|
|||||||
edit = ""
|
edit = ""
|
||||||
enabled = ""
|
enabled = ""
|
||||||
export = ""
|
export = ""
|
||||||
|
export_csv = ""
|
||||||
export_with_ids = ""
|
export_with_ids = ""
|
||||||
export_without_ids = ""
|
export_without_ids = ""
|
||||||
fail = ""
|
fail = ""
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ function AuditLogsPage() {
|
|||||||
title={t("ui.common.audit.title", "Audit Logs")}
|
title={t("ui.common.audit.title", "Audit Logs")}
|
||||||
description={t(
|
description={t(
|
||||||
"msg.dev.audit.subtitle",
|
"msg.dev.audit.subtitle",
|
||||||
"Shows DevFront activity history within current tenant/app scope.",
|
"현재 앱 범위의 개발자 작업 이력을 조회합니다.",
|
||||||
)}
|
)}
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
@@ -146,7 +146,7 @@ function AuditLogsPage() {
|
|||||||
onClick={handleExportCsv}
|
onClick={handleExportCsv}
|
||||||
>
|
>
|
||||||
<Download size={16} />
|
<Download size={16} />
|
||||||
{t("ui.dev.clients.consents.export_csv", "Export CSV")}
|
{t("ui.common.export_csv", "CSV 내보내기")}
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user