diff --git a/frontend/src/locale/src/de.json b/frontend/src/locale/src/de.json index dee8a3f..eb2783e 100644 --- a/frontend/src/locale/src/de.json +++ b/frontend/src/locale/src/de.json @@ -5,12 +5,21 @@ "access-lists.title": { "defaultMessage": "Zugriffslisten" }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.download": { + "defaultMessage": "Download" + }, "action.edit": { "defaultMessage": "Bearbeiten" }, "action.nginx-config": { "defaultMessage": "View Nginx Config" }, + "action.renew": { + "defaultMessage": "Renew" + }, "action.set-password": { "defaultMessage": "Passwort festlegen" }, @@ -38,6 +47,9 @@ "certificate-authorities.title": { "defaultMessage": "Zertifizierungsstellen" }, + "certificate-authority": { + "defaultMessage": "Certificate Authority" + }, "certificate-authority.acmesh-server": { "defaultMessage": "ACME-Server" }, @@ -128,14 +140,23 @@ "disabled": { "defaultMessage": "Deaktiviert" }, + "dns-provider": { + "defaultMessage": "DNS Provider" + }, "dns-provider.acmesh-name": { "defaultMessage": "Acme.sh-Name" }, "dns-provider.create": { "defaultMessage": "Erstellen Sie einen DNS-Anbieter" }, - "name": { - "defaultMessage": "Name" + "dns-providers.empty": { + "defaultMessage": "No DNS Providers - Create one first" + }, + "domain_names": { + "defaultMessage": "Domain Names" + }, + "domain_names.max": { + "defaultMessage": "{count} domain names maximum" }, "dns-providers.title": { "defaultMessage": "DNS-Anbieter" @@ -161,6 +182,9 @@ "error.invalid-login-credentials": { "defaultMessage": "Ungültige Login-Details" }, + "error.provider_not_found": { + "defaultMessage": "Provider not found" + }, "error.request-failed-validation": { "defaultMessage": "Back-End-Validierung fehlgeschlagen" }, @@ -248,12 +272,18 @@ "https-only": { "defaultMessage": "Nur HTTPS" }, + "is-ecc": { + "defaultMessage": "ECC Certificate" + }, "lets-go": { "defaultMessage": "Lass uns gehen" }, "login.login": { "defaultMessage": "Einloggen" }, + "name": { + "defaultMessage": "Name" + }, "navigation.close": { "defaultMessage": "Navigation schließen" }, @@ -359,6 +389,9 @@ "type.http": { "defaultMessage": "HTTP" }, + "type.mkcert": { + "defaultMessage": "MKCert" + }, "type.proxy": { "defaultMessage": "Proxy Host" }, diff --git a/frontend/src/locale/src/en.json b/frontend/src/locale/src/en.json index 8c2f284..ec12290 100644 --- a/frontend/src/locale/src/en.json +++ b/frontend/src/locale/src/en.json @@ -242,12 +242,21 @@ "acmesh.dns_zonomi": { "defaultMessage": "Zonomi" }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.download": { + "defaultMessage": "Download" + }, "action.edit": { "defaultMessage": "Edit" }, "action.nginx-config": { "defaultMessage": "View Nginx Config" }, + "action.renew": { + "defaultMessage": "Renew" + }, "action.set-password": { "defaultMessage": "Set Password" }, @@ -416,7 +425,7 @@ "dns-provider.create": { "defaultMessage": "Create DNS Provider" }, - "dns-providers-empty": { + "dns-providers.empty": { "defaultMessage": "No DNS Providers - Create one first" }, "domain_names": { @@ -425,9 +434,6 @@ "domain_names.max": { "defaultMessage": "{count} domain names maximum" }, - "name": { - "defaultMessage": "Name" - }, "dns-providers.title": { "defaultMessage": "DNS Providers" }, @@ -452,6 +458,9 @@ "error.invalid-login-credentials": { "defaultMessage": "Invalid login credentials" }, + "error.provider_not_found": { + "defaultMessage": "Provider not found" + }, "error.request-failed-validation": { "defaultMessage": "Failed backend validation" }, @@ -548,6 +557,9 @@ "login.login": { "defaultMessage": "Sign in" }, + "name": { + "defaultMessage": "Name" + }, "navigation.close": { "defaultMessage": "Close navigation" }, diff --git a/frontend/src/locale/src/fa.json b/frontend/src/locale/src/fa.json index 4d3abee..207f6d2 100644 --- a/frontend/src/locale/src/fa.json +++ b/frontend/src/locale/src/fa.json @@ -5,12 +5,21 @@ "access-lists.title": { "defaultMessage": "دسترسی به لیست ها" }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.download": { + "defaultMessage": "Download" + }, "action.edit": { "defaultMessage": "ویرایش کنید" }, "action.nginx-config": { "defaultMessage": "View Nginx Config" }, + "action.renew": { + "defaultMessage": "Renew" + }, "action.set-password": { "defaultMessage": "قراردادن رمز عبور" }, @@ -38,6 +47,9 @@ "certificate-authorities.title": { "defaultMessage": "مقامات صدور گواهینامه" }, + "certificate-authority": { + "defaultMessage": "Certificate Authority" + }, "certificate-authority.acmesh-server": { "defaultMessage": "سرور ACME" }, @@ -128,14 +140,23 @@ "disabled": { "defaultMessage": "معلول" }, + "dns-provider": { + "defaultMessage": "DNS Provider" + }, "dns-provider.acmesh-name": { "defaultMessage": "نام Acme.sh" }, "dns-provider.create": { "defaultMessage": "ارائه دهنده DNS ایجاد کنید" }, - "name": { - "defaultMessage": "نام" + "dns-providers.empty": { + "defaultMessage": "No DNS Providers - Create one first" + }, + "domain_names": { + "defaultMessage": "Domain Names" + }, + "domain_names.max": { + "defaultMessage": "{count} domain names maximum" }, "dns-providers.title": { "defaultMessage": "ارائه دهندگان DNS" @@ -161,6 +182,9 @@ "error.invalid-login-credentials": { "defaultMessage": "اعتبار ورود نامعتبر است" }, + "error.provider_not_found": { + "defaultMessage": "Provider not found" + }, "error.request-failed-validation": { "defaultMessage": "اعتبار سنجی پشتیبان ناموفق بود" }, @@ -254,9 +278,15 @@ "lets-go": { "defaultMessage": "بیا بریم" }, + "is-ecc": { + "defaultMessage": "ECC Certificate" + }, "login.login": { "defaultMessage": "ورود" }, + "name": { + "defaultMessage": "نام" + }, "navigation.close": { "defaultMessage": "بستن ناوبری" }, @@ -362,6 +392,9 @@ "type.http": { "defaultMessage": "HTTP" }, + "type.mkcert": { + "defaultMessage": "MKCert" + }, "type.proxy": { "defaultMessage": "Proxy Host" }, diff --git a/frontend/src/modals/CertificateCreateModal/Common/DNSProviderField.tsx b/frontend/src/modals/CertificateCreateModal/Common/DNSProviderField.tsx index 75aa815..c90d45a 100644 --- a/frontend/src/modals/CertificateCreateModal/Common/DNSProviderField.tsx +++ b/frontend/src/modals/CertificateCreateModal/Common/DNSProviderField.tsx @@ -60,7 +60,7 @@ function DNSProviderField() { {!isLoading && !data?.total ? intl.formatMessage({ - id: "dns-providers-empty", + id: "dns-providers.empty", }) : form.errors[fieldName]} diff --git a/frontend/src/pages/Certificates/Table.tsx b/frontend/src/pages/Certificates/Table.tsx index 3d81584..39b0b69 100644 --- a/frontend/src/pages/Certificates/Table.tsx +++ b/frontend/src/pages/Certificates/Table.tsx @@ -16,7 +16,7 @@ import { } from "components"; import { intl } from "locale"; import { CertificateEditModal } from "modals"; -import { FiEdit } from "react-icons/fi"; +import { FiDownload, FiEdit, FiRefreshCw, FiTrash2 } from "react-icons/fi"; import { useSortBy, useFilters, useTable, usePagination } from "react-table"; export interface TableProps { @@ -76,8 +76,34 @@ function Table({ title: intl.formatMessage({ id: "action.edit", }), - onClick: (e: any, { id }: any) => setEditId(id), + onClick: (e: any, { id }: any) => alert(id), icon: , + disabled: (data: any) => + data.type === "dns" || data.type === "http", + }, + { + title: intl.formatMessage({ + id: "action.renew", + }), + onClick: (e: any, { id }: any) => alert(id), + icon: , + disabled: (data: any) => + data.type !== "dns" && data.type !== "http", + }, + { + title: intl.formatMessage({ + id: "action.download", + }), + onClick: (e: any, { id }: any) => alert(id), + icon: , + disabled: (data: any) => data.isReadonly, + }, + { + title: intl.formatMessage({ + id: "action.delete", + }), + onClick: (e: any, { id }: any) => alert(id), + icon: , disabled: (data: any) => data.isReadonly, }, ]),