mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 04:30:06 +00:00
Translations update from Hosted Weblate (#45)
* Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (English) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (English) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 96.8% (153 of 158 strings) Translated using Weblate (Italian) Currently translated at 69.6% (110 of 158 strings) Translated using Weblate (English) Currently translated at 100.0% (158 of 158 strings) Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 99.3% (157 of 158 strings) Translated using Weblate (Chinese (Simplified Han script)) Currently translated at 70.8% (112 of 158 strings) Translated using Weblate (Italian) Currently translated at 99.3% (157 of 158 strings) Translated using Weblate (English) Currently translated at 100.0% (158 of 158 strings) Co-authored-by: Anonymous <noreply@weblate.org> Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: UUBulb <uub@kuzu.uk> Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/en/ Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/it/ Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hans/ Translate-URL: https://hosted.weblate.org/projects/nezha/admin-frontend/zh_Hant/ Translation: Nezha/Admin frontend * chore: auto-fix linting and formatting issues --------- Co-authored-by: UUBulb <uub@kuzu.uk> Co-authored-by: weblate <weblate@users.noreply.github.com>
This commit is contained in:
@@ -93,18 +93,18 @@ export const AlertRuleCard: React.FC<AlertRuleCardProps> = ({ data, mutate }) =>
|
|||||||
resolver: zodResolver(alertRuleFormSchema),
|
resolver: zodResolver(alertRuleFormSchema),
|
||||||
defaultValues: data
|
defaultValues: data
|
||||||
? {
|
? {
|
||||||
...data,
|
...data,
|
||||||
rules_raw: JSON.stringify(data.rules),
|
rules_raw: JSON.stringify(data.rules),
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
name: "",
|
name: "",
|
||||||
rules_raw: "",
|
rules_raw: "",
|
||||||
rules: [],
|
rules: [],
|
||||||
fail_trigger_tasks: [],
|
fail_trigger_tasks: [],
|
||||||
recover_trigger_tasks: [],
|
recover_trigger_tasks: [],
|
||||||
notification_group_id: 0,
|
notification_group_id: 0,
|
||||||
trigger_mode: 0,
|
trigger_mode: 0,
|
||||||
},
|
},
|
||||||
resetOptions: {
|
resetOptions: {
|
||||||
keepDefaultValues: false,
|
keepDefaultValues: false,
|
||||||
},
|
},
|
||||||
@@ -205,13 +205,11 @@ export const AlertRuleCard: React.FC<AlertRuleCardProps> = ({ data, mutate }) =>
|
|||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{Object.entries(triggerModes).map(
|
{Object.entries(triggerModes).map(([k, v]) => (
|
||||||
([k, v]) => (
|
<SelectItem key={k} value={k}>
|
||||||
<SelectItem key={k} value={k}>
|
{v}
|
||||||
{v}
|
</SelectItem>
|
||||||
</SelectItem>
|
))}
|
||||||
),
|
|
||||||
)}
|
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ export const CronCard: React.FC<CronCardProps> = ({ data, mutate }) => {
|
|||||||
defaultValues: data
|
defaultValues: data
|
||||||
? data
|
? data
|
||||||
: {
|
: {
|
||||||
name: "",
|
name: "",
|
||||||
task_type: 0,
|
task_type: 0,
|
||||||
scheduler: "",
|
scheduler: "",
|
||||||
servers: [],
|
servers: [],
|
||||||
cover: 0,
|
cover: 0,
|
||||||
notification_group_id: 0,
|
notification_group_id: 0,
|
||||||
},
|
},
|
||||||
resetOptions: {
|
resetOptions: {
|
||||||
keepDefaultValues: false,
|
keepDefaultValues: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,14 +7,14 @@
|
|||||||
},
|
},
|
||||||
"Username": "Username",
|
"Username": "Username",
|
||||||
"Password": "Password",
|
"Password": "Password",
|
||||||
"LoginFirst": "Please log in first",
|
"LoginFirst": "Please Log in first",
|
||||||
"CurrentTime": "Current time",
|
"CurrentTime": "Current Time",
|
||||||
"Results": {
|
"Results": {
|
||||||
"UsernameMin": "Username must be at least {{number}} characters.",
|
"UsernameMin": "Username must be at least {{number}} characters.",
|
||||||
"PasswordRequired": "Password cannot be empty.",
|
"PasswordRequired": "Password cannot be empty.",
|
||||||
"ErrorFetchingResource": "Error Fetching Resource : {{error}}",
|
"ErrorFetchingResource": "Error Fetching Resource : {{error}}",
|
||||||
"SelectAtLeastOneServer": "Please select at least one server.",
|
"SelectAtLeastOneServer": "Please select at least one server.",
|
||||||
"UnExpectedError": "UnExpected Error, Please see the console for details.",
|
"UnExpectedError": "Unexpected error, Please see the console for details.",
|
||||||
"ForceUpdate": "Forced upgrade:",
|
"ForceUpdate": "Forced upgrade:",
|
||||||
"NoRowsAreSelected": "No rows are selected",
|
"NoRowsAreSelected": "No rows are selected",
|
||||||
"ThisOperationIsUnrecoverable": "This operation cannot be undone!",
|
"ThisOperationIsUnrecoverable": "This operation cannot be undone!",
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"Version": "Version",
|
"Version": "Version",
|
||||||
"Unknown": "unknown",
|
"Unknown": "unknown",
|
||||||
"Enable": "Enable",
|
"Enable": "Enable",
|
||||||
"HideForGuest": "Hidden from visitors",
|
"HideForGuest": "Hidden from Visitors",
|
||||||
"InstallCommands": "Installation command",
|
"InstallCommands": "Installation command",
|
||||||
"Note": "Note",
|
"Note": "Note",
|
||||||
"Success": "Success",
|
"Success": "Success",
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"Loading": "Loading",
|
"Loading": "Loading",
|
||||||
"NoResults": "No results",
|
"NoResults": "No results",
|
||||||
"Actions": "Actions",
|
"Actions": "Actions",
|
||||||
"EditServer": "Edit server",
|
"EditServer": "Edit Server",
|
||||||
"Weight": "Weight (the larger the number, the higher it is displayed)",
|
"Weight": "Weight (the larger the number, the higher it is displayed)",
|
||||||
"DDNSProfiles": "DDNS Profile IDs",
|
"DDNSProfiles": "DDNS Profile IDs",
|
||||||
"SeparateWithComma": "(Separate with comma)",
|
"SeparateWithComma": "(Separate with comma)",
|
||||||
@@ -61,76 +61,76 @@
|
|||||||
"Submit": "Submit",
|
"Submit": "Submit",
|
||||||
"Target": "Target",
|
"Target": "Target",
|
||||||
"Coverage": "Coverage",
|
"Coverage": "Coverage",
|
||||||
"CoverAll": "Cover all",
|
"CoverAll": "Cover All",
|
||||||
"IgnoreAll": "Ignore all",
|
"IgnoreAll": "Ignore All",
|
||||||
"SpecificServers": "Specific server",
|
"SpecificServers": "Specific server",
|
||||||
"Type": "Type",
|
"Type": "Type",
|
||||||
"Interval": "Interval",
|
"Interval": "Interval",
|
||||||
"NotifierGroupID": "Notification group ID",
|
"NotifierGroupID": "Notifier Group ID",
|
||||||
"Trigger": "On Trigger",
|
"Trigger": "On Trigger",
|
||||||
"TasksToTriggerOnAlert": "The task that triggered the alert",
|
"TasksToTriggerOnAlert": "The task that triggered the alert",
|
||||||
"TasksToTriggerAfterRecovery": "Tasks to be triggered after recovery",
|
"TasksToTriggerAfterRecovery": "Tasks to be triggered after recovery",
|
||||||
"Confirm": "Confirm",
|
"Confirm": "Confirm",
|
||||||
"ConfirmDeletion": "Confirm deletion?",
|
"ConfirmDeletion": "Confirm Deletion?",
|
||||||
"Services": "Services",
|
"Services": "Services",
|
||||||
"ShowInService": "Show in Service",
|
"ShowInService": "Show in Service",
|
||||||
"Coverages": {
|
"Coverages": {
|
||||||
"Excludes": "Excludes specific servers",
|
"Excludes": "Excludes Specific Servers",
|
||||||
"Only": "Only specific servers",
|
"Only": "Only Specific Servers",
|
||||||
"Alarmed": "Executed on the server that triggered the alarm"
|
"Alarmed": "Executed on the server that triggered the alarm"
|
||||||
},
|
},
|
||||||
"EnableFailureNotification": "Enable Failure Notification",
|
"EnableFailureNotification": "Enable Failure Notification",
|
||||||
"MaximumLatency": "Maximum Latency Time (ms)",
|
"MaximumLatency": "Maximum Delay (ms)",
|
||||||
"MinimumLatency": "Minimum delay time (milliseconds)",
|
"MinimumLatency": "Minimum Delay (milliseconds)",
|
||||||
"EnableLatencyNotification": "Enable delayed notifications",
|
"EnableLatencyNotification": "Enable Latency Notification",
|
||||||
"EnableTriggerTask": "Enable Trigger Task",
|
"EnableTriggerTask": "Enable Trigger Task",
|
||||||
"CronExpression": "Cron expression",
|
"CronExpression": "Cron Expression",
|
||||||
"Command": "Order",
|
"Command": "Command",
|
||||||
"NotifierGroup": "Notification group",
|
"NotifierGroup": "Notifier Group",
|
||||||
"SendSuccessNotification": "Send success notification",
|
"SendSuccessNotification": "Send Success Notification",
|
||||||
"LastExecution": "Last Execution",
|
"LastExecution": "Last Execution",
|
||||||
"Result": "Result",
|
"Result": "Result",
|
||||||
"Scheduled": "Scheduled tasks",
|
"Scheduled": "Scheduled Tasks",
|
||||||
"Notifier": "Notifier",
|
"Notifier": "Notifier",
|
||||||
"AlertRule": "Alert rules",
|
"AlertRule": "Alert rules",
|
||||||
"VerifyTLS": "Verify TLS",
|
"VerifyTLS": "Verify TLS",
|
||||||
"TriggerMode": "Trigger mode",
|
"TriggerMode": "Trigger Mode",
|
||||||
"Rules": "Rules",
|
"Rules": "Rules",
|
||||||
"RequestMethod": "Request method",
|
"RequestMethod": "Request Method",
|
||||||
"RequestHeader": "Request header",
|
"RequestHeader": "Request Header",
|
||||||
"DoNotSendTestMessage": "Do Not Send Test Message",
|
"DoNotSendTestMessage": "Do Not Send Test Message",
|
||||||
"Always": "Always",
|
"Always": "Always",
|
||||||
"Once": "Once",
|
"Once": "Once",
|
||||||
"Provider": "Provider",
|
"Provider": "Provider",
|
||||||
"Domains": "domain name",
|
"Domains": "Domains",
|
||||||
"MaximumRetryAttempts": "Maximum number of retries",
|
"MaximumRetryAttempts": "Maximum time for retry attempts",
|
||||||
"Refresh": "Refresh",
|
"Refresh": "Refresh",
|
||||||
"CopyPath": "Copy path",
|
"CopyPath": "Copy path",
|
||||||
"Goto": "Go to",
|
"Goto": "Go to",
|
||||||
"UpdateProfile": "Update profile",
|
"UpdateProfile": "Update Profile",
|
||||||
"NewUsername": "New username",
|
"NewUsername": "New Username",
|
||||||
"OriginalPassword": "Original password",
|
"OriginalPassword": "Original Password",
|
||||||
"NewPassword": "New Password",
|
"NewPassword": "New Password",
|
||||||
"EditDDNS": "Edit DDNS",
|
"EditDDNS": "Edit DDNS",
|
||||||
"CreateDDNS": "Create DDNS",
|
"CreateDDNS": "Create DDNS",
|
||||||
"Credential": "Credential",
|
"Credential": "Credential",
|
||||||
"RequestType": "Request type",
|
"RequestType": "Request Type",
|
||||||
"RequestBody": "Request body",
|
"RequestBody": "Request Body",
|
||||||
"FileManager": "Pseudo File Manager",
|
"FileManager": "Pseudo File Manager",
|
||||||
"Downloading": "Downloading",
|
"Downloading": "Downloading",
|
||||||
"Uploading": "Uploading",
|
"Uploading": "Uploading",
|
||||||
"EditNAT": "Edit intranet penetration",
|
"EditNAT": "Edit NAT Configuration",
|
||||||
"CreateNAT": "Create intranet penetration",
|
"CreateNAT": "Create NAT Configuration",
|
||||||
"LocalService": "Local service",
|
"LocalService": "Local Service",
|
||||||
"BindHostname": "Bind domain name",
|
"BindHostname": "Bind Domain Name",
|
||||||
"EditServerGroup": "Edit server group",
|
"EditServerGroup": "Edit Server Group",
|
||||||
"CreateServerGroup": "Create server group",
|
"CreateServerGroup": "Create Server Group",
|
||||||
"User": "User",
|
"User": "User",
|
||||||
"WAF": "Web application firewall",
|
"WAF": "Web Application Firewall",
|
||||||
"SiteName": "Site name",
|
"SiteName": "Site Name",
|
||||||
"DashboardOriginalHost": "Agent docking address [domain name/IP:port]",
|
"DashboardOriginalHost": "Agent connecting address [domain name/IP:port]",
|
||||||
"ConfigTLS": "Use TLS to connect Agent",
|
"ConfigTLS": "Use TLS to connect Agent",
|
||||||
"LoginFailed": "Login failed",
|
"LoginFailed": "Login Failed",
|
||||||
"BruteForceAttackingToken": "Brute Force Attacking Token",
|
"BruteForceAttackingToken": "Brute Force Attacking Token",
|
||||||
"BruteForceAttackingAgentSecret": "Brute Force Attacking Agent Secret",
|
"BruteForceAttackingAgentSecret": "Brute Force Attacking Agent Secret",
|
||||||
"Language": "Language",
|
"Language": "Language",
|
||||||
@@ -139,19 +139,19 @@
|
|||||||
"CustomPublicDNSNameserversforDDNS": "Custom Public DNS Nameservers for DDNS",
|
"CustomPublicDNSNameserversforDDNS": "Custom Public DNS Nameservers for DDNS",
|
||||||
"RealIPHeader": "Real IP request header",
|
"RealIPHeader": "Real IP request header",
|
||||||
"UseDirectConnectingIP": "Use direct connection IP",
|
"UseDirectConnectingIP": "Use direct connection IP",
|
||||||
"IPChangeNotification": "IP Change notification",
|
"IPChangeNotification": "IP Change Notification",
|
||||||
"FullIPNotification": "Show Full IP Address in Notification Messages",
|
"FullIPNotification": "Show Full IP Address in Notification Messages",
|
||||||
"EditService": "Edit service",
|
"EditService": "Edit Service",
|
||||||
"CreateService": "Create service",
|
"CreateService": "Create Service",
|
||||||
"EditTask": "Edit task",
|
"EditTask": "Edit Task",
|
||||||
"CreateTask": "Create task",
|
"CreateTask": "Create Task",
|
||||||
"CreateNotifier": "Create notification",
|
"CreateNotifier": "Create Notifier",
|
||||||
"EditNotifier": "Edit notification",
|
"EditNotifier": "Edit Notifier",
|
||||||
"EditAlertRule": "Edit alarm rules",
|
"EditAlertRule": "Edit Alert Rules",
|
||||||
"CreateAlertRule": "Create alert rules",
|
"CreateAlertRule": "Create Alert Rules",
|
||||||
"EditNotifierGroup": "Edit notification group",
|
"EditNotifierGroup": "Edit Notifier Group",
|
||||||
"CreateNotifierGroup": "Create notification group",
|
"CreateNotifierGroup": "Create Notifier Group",
|
||||||
"NewUser": "New user",
|
"NewUser": "New User",
|
||||||
"Count": "Count",
|
"Count": "Count",
|
||||||
"LastBlockReason": "Last Block Reason",
|
"LastBlockReason": "Last Block Reason",
|
||||||
"LastBlockTime": "Last ban time",
|
"LastBlockTime": "Last ban time",
|
||||||
@@ -161,6 +161,6 @@
|
|||||||
"Community": "Community",
|
"Community": "Community",
|
||||||
"Official": "Official",
|
"Official": "Official",
|
||||||
"CommunityThemeWarning": "You are using a community theme",
|
"CommunityThemeWarning": "You are using a community theme",
|
||||||
"CommunityThemeDescription": "This theme is provided by the community, use it at your own risk",
|
"CommunityThemeDescription": "This theme is provided by the community, use at your own risk",
|
||||||
"Cancel": "Cancel"
|
"Cancel": "Cancel"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,8 +119,8 @@
|
|||||||
"FileManager": "Gestore di File Pseudo",
|
"FileManager": "Gestore di File Pseudo",
|
||||||
"Downloading": "Download in corso",
|
"Downloading": "Download in corso",
|
||||||
"Uploading": "Caricamento",
|
"Uploading": "Caricamento",
|
||||||
"EditNAT": "Modifica la penetrazione della intranet",
|
"EditNAT": "Modifica configurazione NAT",
|
||||||
"CreateNAT": "Creare penetrazione intranet",
|
"CreateNAT": "Crea configurazione NAT",
|
||||||
"LocalService": "servizio locale",
|
"LocalService": "servizio locale",
|
||||||
"BindHostname": "Associa il nome di dominio",
|
"BindHostname": "Associa il nome di dominio",
|
||||||
"EditServerGroup": "Modifica gruppo di server",
|
"EditServerGroup": "Modifica gruppo di server",
|
||||||
|
|||||||
@@ -115,12 +115,12 @@
|
|||||||
"CreateDDNS": "创建DDNS",
|
"CreateDDNS": "创建DDNS",
|
||||||
"Credential": "凭据",
|
"Credential": "凭据",
|
||||||
"RequestType": "请求类型",
|
"RequestType": "请求类型",
|
||||||
"RequestBody": "请求主体",
|
"RequestBody": "请求体",
|
||||||
"FileManager": "文件列表",
|
"FileManager": "文件列表",
|
||||||
"Downloading": "下载中",
|
"Downloading": "下载中",
|
||||||
"Uploading": "上传中",
|
"Uploading": "上传中",
|
||||||
"EditNAT": "编辑内网穿透",
|
"EditNAT": "编辑内网穿透配置",
|
||||||
"CreateNAT": "创建内网穿透",
|
"CreateNAT": "创建内网穿透配置",
|
||||||
"LocalService": "本地服务",
|
"LocalService": "本地服务",
|
||||||
"BindHostname": "绑定域名",
|
"BindHostname": "绑定域名",
|
||||||
"EditServerGroup": "编辑服务器分组",
|
"EditServerGroup": "编辑服务器分组",
|
||||||
|
|||||||
@@ -115,12 +115,12 @@
|
|||||||
"CreateDDNS": "建立DDNS",
|
"CreateDDNS": "建立DDNS",
|
||||||
"Credential": "憑證",
|
"Credential": "憑證",
|
||||||
"RequestType": "請求類型",
|
"RequestType": "請求類型",
|
||||||
"RequestBody": "請求主體",
|
"RequestBody": "請求體",
|
||||||
"FileManager": "檔案列表",
|
"FileManager": "檔案列表",
|
||||||
"Downloading": "下載中",
|
"Downloading": "下載中",
|
||||||
"Uploading": "上傳中",
|
"Uploading": "上傳中",
|
||||||
"EditNAT": "編輯內網穿透",
|
"EditNAT": "編輯內網穿透配置",
|
||||||
"CreateNAT": "創建內網穿透",
|
"CreateNAT": "創建內網穿透配置",
|
||||||
"LocalService": "本地服務",
|
"LocalService": "本地服務",
|
||||||
"BindHostname": "綁定域名",
|
"BindHostname": "綁定域名",
|
||||||
"EditServerGroup": "編輯伺服器分組",
|
"EditServerGroup": "編輯伺服器分組",
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default function SettingsPage() {
|
|||||||
}, [error])
|
}, [error])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
; (async () => {
|
;(async () => {
|
||||||
try {
|
try {
|
||||||
const c = await getSettings()
|
const c = await getSettings()
|
||||||
setConfig(c)
|
setConfig(c)
|
||||||
@@ -78,20 +78,20 @@ export default function SettingsPage() {
|
|||||||
resolver: zodResolver(settingFormSchema),
|
resolver: zodResolver(settingFormSchema),
|
||||||
defaultValues: config
|
defaultValues: config
|
||||||
? {
|
? {
|
||||||
...config,
|
...config,
|
||||||
site_name: config.site_name || "",
|
site_name: config.site_name || "",
|
||||||
user_template:
|
user_template:
|
||||||
config.user_template ||
|
config.user_template ||
|
||||||
Object.keys(config.frontend_templates.filter((t) => !t.is_admin) || {})[0] ||
|
Object.keys(config.frontend_templates.filter((t) => !t.is_admin) || {})[0] ||
|
||||||
"user-dist",
|
"user-dist",
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
ip_change_notification_group_id: 0,
|
ip_change_notification_group_id: 0,
|
||||||
cover: 1,
|
cover: 1,
|
||||||
site_name: "",
|
site_name: "",
|
||||||
language: "",
|
language: "",
|
||||||
user_template: "user-dist",
|
user_template: "user-dist",
|
||||||
},
|
},
|
||||||
resetOptions: {
|
resetOptions: {
|
||||||
keepDefaultValues: false,
|
keepDefaultValues: false,
|
||||||
},
|
},
|
||||||
@@ -236,15 +236,15 @@ export default function SettingsPage() {
|
|||||||
{!config?.frontend_templates?.find(
|
{!config?.frontend_templates?.find(
|
||||||
(t) => t.path === field.value,
|
(t) => t.path === field.value,
|
||||||
)?.is_official && (
|
)?.is_official && (
|
||||||
<div className="mt-2 text-sm text-yellow-700 dark:text-yellow-200 bg-yellow-100 dark:bg-yellow-900 border border-yellow-200 dark:border-yellow-700 rounded-md p-2">
|
<div className="mt-2 text-sm text-yellow-700 dark:text-yellow-200 bg-yellow-100 dark:bg-yellow-900 border border-yellow-200 dark:border-yellow-700 rounded-md p-2">
|
||||||
<div className="font-medium text-lg mb-1">
|
<div className="font-medium text-lg mb-1">
|
||||||
{t("CommunityThemeWarning")}
|
{t("CommunityThemeWarning")}
|
||||||
</div>
|
|
||||||
<div className="text-yellow-700 dark:text-yellow-200">
|
|
||||||
{t("CommunityThemeDescription")}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
<div className="text-yellow-700 dark:text-yellow-200">
|
||||||
|
{t("CommunityThemeDescription")}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -69,9 +69,7 @@ export default function WAFPage() {
|
|||||||
header: t("LastBlockReason"),
|
header: t("LastBlockReason"),
|
||||||
accessorKey: "lastBlockReason",
|
accessorKey: "lastBlockReason",
|
||||||
accessorFn: (row) => row.last_block_reason,
|
accessorFn: (row) => row.last_block_reason,
|
||||||
cell: ({ row }) => (
|
cell: ({ row }) => <span>{wafBlockReasons[row.original.last_block_reason] || ""}</span>,
|
||||||
<span>{wafBlockReasons[row.original.last_block_reason] || ""}</span>
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: t("LastBlockTime"),
|
header: t("LastBlockTime"),
|
||||||
@@ -141,9 +139,9 @@ export default function WAFPage() {
|
|||||||
{header.isPlaceholder
|
{header.isPlaceholder
|
||||||
? null
|
? null
|
||||||
: flexRender(
|
: flexRender(
|
||||||
header.column.columnDef.header,
|
header.column.columnDef.header,
|
||||||
header.getContext(),
|
header.getContext(),
|
||||||
)}
|
)}
|
||||||
</TableHead>
|
</TableHead>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ export const cronCoverageTypes: Record<number, string> = {
|
|||||||
0: i18n.t("Coverages.Only"),
|
0: i18n.t("Coverages.Only"),
|
||||||
1: i18n.t("Coverages.Excludes"),
|
1: i18n.t("Coverages.Excludes"),
|
||||||
2: i18n.t("Coverages.Alarmed"),
|
2: i18n.t("Coverages.Alarmed"),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ export const serviceTypes: Record<number, string> = {
|
|||||||
export const serviceCoverageTypes: Record<number, string> = {
|
export const serviceCoverageTypes: Record<number, string> = {
|
||||||
0: i18n.t("Coverages.Excludes"),
|
0: i18n.t("Coverages.Excludes"),
|
||||||
1: i18n.t("Coverages.Only"),
|
1: i18n.t("Coverages.Only"),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user