From 2fcba062cf35a8118c5c34b23f9578fa49230cf4 Mon Sep 17 00:00:00 2001 From: Lucas Bruno <69604366+lucasbrunozup@users.noreply.github.com> Date: Thu, 1 Oct 2020 13:09:44 -0300 Subject: [PATCH] Organizing i18n values in frontend (#30) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Rewrite i18n values for external pages and dashsboard screen * Adjusting i18 values in repositories screen * 🛠️ Adjusting redirect routes when the call is external of manager (#19) * Hotfix/fixing redirect and output bigger (#21) * Fixing redirect in email template reset-password * Fixing code output when exists many content and bad read * Fixing fmt and set total output to down * Hotfix/unique names (#28) * Adding unique names migration * Adding validations to unique names and unity tests * Fixing swagger in horusec-analytics (#27) * Add i18n values to enUS Co-authored-by: Wilian Gabriel <63816070+wiliansilvazup@users.noreply.github.com> Co-authored-by: nathanmartinszup <63246935+nathanmartinszup@users.noreply.github.com> --- .../src/components/Dialog/index.tsx | 2 +- .../src/components/Select/index.tsx | 2 +- .../src/components/SideMenu/index.tsx | 10 +- horusec-manager/src/config/i18n/enUS.json | 280 ++++++++++------- horusec-manager/src/config/i18n/ptBR.json | 284 +++++++++++------- .../External/CreateAccount/Password/index.tsx | 36 ++- .../External/CreateAccount/UserInfo/index.tsx | 16 +- .../src/pages/External/Login/index.tsx | 14 +- .../RecoveryPassword/CheckCode/index.tsx | 14 +- .../RecoveryPassword/NewPassword/index.tsx | 36 ++- .../RecoveryPassword/SendEmail/index.tsx | 16 +- .../src/pages/Internal/Company/Add/index.tsx | 14 +- .../src/pages/Internal/Company/Edit/index.tsx | 14 +- .../src/pages/Internal/Company/List/index.tsx | 18 +- .../Dashboard/AllVulnerabilities/index.tsx | 4 +- .../Internal/Home/Dashboard/Filters/index.tsx | 8 +- .../Home/Dashboard/TotalDevelopers/index.tsx | 2 +- .../Dashboard/TotalRepositories/index.tsx | 2 +- .../VulnerabilitiesByDeveloper/index.tsx | 6 +- .../VulnerabilitiesByLanguage/index.tsx | 6 +- .../VulnerabilitiesByRepository/index.tsx | 6 +- .../VulnerabilitiesDetails/index.tsx | 26 +- .../VulnerabilitiesTimeLine/index.tsx | 6 +- .../Internal/Home/Repositories/Add/index.tsx | 14 +- .../Internal/Home/Repositories/Edit/index.tsx | 14 +- .../Home/Repositories/Invite/index.tsx | 26 +- .../Repositories/Tokens/Add/Sucess/index.tsx | 11 +- .../Home/Repositories/Tokens/Add/index.tsx | 12 +- .../Home/Repositories/Tokens/index.tsx | 24 +- .../Internal/Home/Repositories/index.tsx | 34 ++- .../pages/Internal/Home/Users/Edit/index.tsx | 4 +- .../Internal/Home/Users/Invite/index.tsx | 4 +- 32 files changed, 566 insertions(+), 399 deletions(-) diff --git a/horusec-manager/src/components/Dialog/index.tsx b/horusec-manager/src/components/Dialog/index.tsx index 1da2de54a..76be6ccee 100644 --- a/horusec-manager/src/components/Dialog/index.tsx +++ b/horusec-manager/src/components/Dialog/index.tsx @@ -73,7 +73,7 @@ const Dialog: React.FC = ({ {hasCancel ? (