From 50bdd947f001cdb4a5d533c6d1d75a7cd5e5de63 Mon Sep 17 00:00:00 2001 From: Steffi Antony <“steffiantony196@gmail.com”> Date: Fri, 6 Sep 2024 13:03:31 +0530 Subject: [PATCH] Implemented Certificates and ModalUploadCertificate pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jira: https://jsw.ibm.com/browse/PFEBMC-2392 Jira: https://jsw.ibm.com/browse/PFEBMC-2373 Signed-off-by: Steffi Antony <“steffiantony196@gmail.com”> --- src/assets/styles/bmc/custom/_forms.scss | 9 + src/components/Global/FormFile.vue | 10 +- src/router/routes.js | 9 + src/store/index.js | 4 + src/store/modules/GlobalStore.js | 1 - .../SecurityAndAccess/CertificatesStore.js | 118 ++-- .../SecurityAndAccess/UserManagementStore.js | 23 +- .../Certificates/Certificates.vue | 569 ++++++++-------- .../Certificates/CsrCountryCodes.js | 606 ++++++++++-------- .../Certificates/ModalGenerateCsr.vue | 557 ++++++++-------- .../Certificates/ModalUploadCertificate.vue | 304 +++++---- 11 files changed, 1177 insertions(+), 1033 deletions(-) diff --git a/src/assets/styles/bmc/custom/_forms.scss b/src/assets/styles/bmc/custom/_forms.scss index 56995a8917..07851dcd4f 100644 --- a/src/assets/styles/bmc/custom/_forms.scss +++ b/src/assets/styles/bmc/custom/_forms.scss @@ -181,3 +181,12 @@ div[role='group'] { background-color: $gray-900; border-color: $gray-900; } +.form-control-file { + opacity: 0; + height: 0; + &:focus + span { + box-shadow: + inset 0 0 0 3px $primary, + inset 0 0 0 5px $white; + } +} \ No newline at end of file diff --git a/src/components/Global/FormFile.vue b/src/components/Global/FormFile.vue index 6072f5f49a..47ebd64fd1 100644 --- a/src/components/Global/FormFile.vue +++ b/src/components/Global/FormFile.vue @@ -69,16 +69,14 @@ const props = defineProps({ }, }); -const file = ref(null); - -const isSecondary = computed(() => { - return props.variant === 'secondary'; -}); - function clearFile() { file.value = null; emit('input', file.value); } +const file = ref(null); +const isSecondary = computed(() => { + return props.variant === 'secondary'; +}); diff --git a/src/views/SecurityAndAccess/Certificates/CsrCountryCodes.js b/src/views/SecurityAndAccess/Certificates/CsrCountryCodes.js index a2d7000733..f99278433b 100644 --- a/src/views/SecurityAndAccess/Certificates/CsrCountryCodes.js +++ b/src/views/SecurityAndAccess/Certificates/CsrCountryCodes.js @@ -1,345 +1,429 @@ import i18n from '@/i18n'; export const COUNTRY_LIST = [ - { name: 'Afghanistan', code: 'AF', label: i18n.t('countries.AF') }, - { name: 'Albania', code: 'AL', label: i18n.t('countries.AL') }, - { name: 'Algeria', code: 'DZ', label: i18n.t('countries.DZ') }, - { name: 'American Samoa', code: 'AS', label: i18n.t('countries.AS') }, - { name: 'Andorra', code: 'AD', label: i18n.t('countries.AD') }, - { name: 'Angola', code: 'AO', label: i18n.t('countries.AO') }, - { name: 'Anguilla', code: 'AI', label: i18n.t('countries.AI') }, - { name: 'Antarctica', code: 'AQ', label: i18n.t('countries.AQ') }, - { name: 'Antigua and Barbuda', code: 'AG', label: i18n.t('countries.AG') }, - { name: 'Argentina', code: 'AR', label: i18n.t('countries.AR') }, - { name: 'Armenia', code: 'AM', label: i18n.t('countries.AM') }, - { name: 'Aruba', code: 'AW', label: i18n.t('countries.AW') }, - { name: 'Australia', code: 'AU', label: i18n.t('countries.AU') }, - { name: 'Austria', code: 'AT', label: i18n.t('countries.AT') }, - { name: 'Azerbaijan', code: 'AZ', label: i18n.t('countries.AZ') }, - { name: 'Bahamas, The', code: 'BS', label: i18n.t('countries.BS') }, - { name: 'Bahrain', code: 'BH', label: i18n.t('countries.BH') }, - { name: 'Bangladesh', code: 'BD', label: i18n.t('countries.BD') }, - { name: 'Barbados', code: 'BB', label: i18n.t('countries.BB') }, - { name: 'Belarus', code: 'BY', label: i18n.t('countries.BY') }, - { name: 'Belgium', code: 'BE', label: i18n.t('countries.BE') }, - { name: 'Belize', code: 'BZ', label: i18n.t('countries.BZ') }, - { name: 'Benin', code: 'BJ', label: i18n.t('countries.BJ') }, - { name: 'Bermuda', code: 'BM', label: i18n.t('countries.BM') }, - { name: 'Bhutan', code: 'BT', label: i18n.t('countries.BT') }, - { name: 'Bolivia', code: 'BO', label: i18n.t('countries.BO') }, + { name: 'Afghanistan', code: 'AF', label: i18n.global.t('countries.AF') }, + { name: 'Albania', code: 'AL', label: i18n.global.t('countries.AL') }, + { name: 'Algeria', code: 'DZ', label: i18n.global.t('countries.DZ') }, + { name: 'American Samoa', code: 'AS', label: i18n.global.t('countries.AS') }, + { name: 'Andorra', code: 'AD', label: i18n.global.t('countries.AD') }, + { name: 'Angola', code: 'AO', label: i18n.global.t('countries.AO') }, + { name: 'Anguilla', code: 'AI', label: i18n.global.t('countries.AI') }, + { name: 'Antarctica', code: 'AQ', label: i18n.global.t('countries.AQ') }, + { + name: 'Antigua and Barbuda', + code: 'AG', + label: i18n.global.t('countries.AG'), + }, + { name: 'Argentina', code: 'AR', label: i18n.global.t('countries.AR') }, + { name: 'Armenia', code: 'AM', label: i18n.global.t('countries.AM') }, + { name: 'Aruba', code: 'AW', label: i18n.global.t('countries.AW') }, + { name: 'Australia', code: 'AU', label: i18n.global.t('countries.AU') }, + { name: 'Austria', code: 'AT', label: i18n.global.t('countries.AT') }, + { name: 'Azerbaijan', code: 'AZ', label: i18n.global.t('countries.AZ') }, + { name: 'Bahamas, The', code: 'BS', label: i18n.global.t('countries.BS') }, + { name: 'Bahrain', code: 'BH', label: i18n.global.t('countries.BH') }, + { name: 'Bangladesh', code: 'BD', label: i18n.global.t('countries.BD') }, + { name: 'Barbados', code: 'BB', label: i18n.global.t('countries.BB') }, + { name: 'Belarus', code: 'BY', label: i18n.global.t('countries.BY') }, + { name: 'Belgium', code: 'BE', label: i18n.global.t('countries.BE') }, + { name: 'Belize', code: 'BZ', label: i18n.global.t('countries.BZ') }, + { name: 'Benin', code: 'BJ', label: i18n.global.t('countries.BJ') }, + { name: 'Bermuda', code: 'BM', label: i18n.global.t('countries.BM') }, + { name: 'Bhutan', code: 'BT', label: i18n.global.t('countries.BT') }, + { name: 'Bolivia', code: 'BO', label: i18n.global.t('countries.BO') }, { name: 'Bonaire, Sint Eustatius and Saba', code: 'BQ', - label: i18n.t('countries.BQ'), + label: i18n.global.t('countries.BQ'), }, { name: 'Bosnia and Herzegovina ', code: 'BA', - label: i18n.t('countries.BA'), + label: i18n.global.t('countries.BA'), }, - { name: 'Bostwana', code: 'BW', label: i18n.t('countries.BW') }, - { name: 'Bouvet Island', code: 'BV', label: i18n.t('countries.BV') }, - { name: 'Brazil', code: 'BR', label: i18n.t('countries.BR') }, + { name: 'Bostwana', code: 'BW', label: i18n.global.t('countries.BW') }, + { name: 'Bouvet Island', code: 'BV', label: i18n.global.t('countries.BV') }, + { name: 'Brazil', code: 'BR', label: i18n.global.t('countries.BR') }, { name: 'British Indian Ocean Territory', code: 'IO', - label: i18n.t('countries.IO'), - }, - { name: 'Brunei Darussalam ', code: 'BN', label: i18n.t('countries.BN') }, - { name: 'Bulgaria', code: 'BG', label: i18n.t('countries.BG') }, - { name: 'Burkina Faso', code: 'BF', label: i18n.t('countries.BF') }, - { name: 'Burundi', code: 'BI', label: i18n.t('countries.BI') }, - { name: 'Cabo Verde', code: 'CV', label: i18n.t('countries.CV') }, - { name: 'Cambodia', code: 'KH', label: i18n.t('countries.KH') }, - { name: 'Cameroon', code: 'CM', label: i18n.t('countries.CM') }, - { name: 'Canada', code: 'CA', label: i18n.t('countries.CA') }, - { name: 'Cayman Islands', code: 'KY', label: i18n.t('countries.KY') }, + label: i18n.global.t('countries.IO'), + }, + { + name: 'Brunei Darussalam ', + code: 'BN', + label: i18n.global.t('countries.BN'), + }, + { name: 'Bulgaria', code: 'BG', label: i18n.global.t('countries.BG') }, + { name: 'Burkina Faso', code: 'BF', label: i18n.global.t('countries.BF') }, + { name: 'Burundi', code: 'BI', label: i18n.global.t('countries.BI') }, + { name: 'Cabo Verde', code: 'CV', label: i18n.global.t('countries.CV') }, + { name: 'Cambodia', code: 'KH', label: i18n.global.t('countries.KH') }, + { name: 'Cameroon', code: 'CM', label: i18n.global.t('countries.CM') }, + { name: 'Canada', code: 'CA', label: i18n.global.t('countries.CA') }, + { name: 'Cayman Islands', code: 'KY', label: i18n.global.t('countries.KY') }, { name: 'Central African Republic', code: 'CF', - label: i18n.t('countries.CF'), + label: i18n.global.t('countries.CF'), + }, + { name: 'Chad', code: 'TD', label: i18n.global.t('countries.TD') }, + { name: 'Chile', code: 'CL', label: i18n.global.t('countries.CL') }, + { name: 'China', code: 'CN', label: i18n.global.t('countries.CN') }, + { + name: 'Christmas Island ', + code: 'CX', + label: i18n.global.t('countries.CX'), }, - { name: 'Chad', code: 'TD', label: i18n.t('countries.TD') }, - { name: 'Chile', code: 'CL', label: i18n.t('countries.CL') }, - { name: 'China', code: 'CN', label: i18n.t('countries.CN') }, - { name: 'Christmas Island ', code: 'CX', label: i18n.t('countries.CX') }, - { name: 'Cocos(Keeling) Islands', code: 'CC', label: i18n.t('countries.CC') }, - { name: 'Columbia', code: 'CO', label: i18n.t('countries.CO') }, - { name: 'Comoros', code: 'KM', label: i18n.t('countries.KM') }, + { + name: 'Cocos(Keeling) Islands', + code: 'CC', + label: i18n.global.t('countries.CC'), + }, + { name: 'Columbia', code: 'CO', label: i18n.global.t('countries.CO') }, + { name: 'Comoros', code: 'KM', label: i18n.global.t('countries.KM') }, { name: 'Congo, The Democratic Republic of the', code: 'CD', - label: i18n.t('countries.CD'), - }, - { name: 'Congo', code: 'CG', label: i18n.t('countries.CG') }, - { name: 'Cook Islands', code: 'CK', label: i18n.t('countries.CK') }, - { name: 'Costa Rica', code: 'CR', label: i18n.t('countries.CR') }, - { name: 'Croatia', code: 'HR', label: i18n.t('countries.HR') }, - { name: 'Cuba', code: 'CU', label: i18n.t('countries.CU') }, - { name: 'Curaçao', code: 'CW', label: i18n.t('countries.CW') }, - { name: 'Cyprus', code: 'CY', label: i18n.t('countries.CY') }, - { name: 'Czechia', code: 'CZ', label: i18n.t('countries.CZ') }, - { name: "Côte d'Ivoire", code: 'CI', label: i18n.t('countries.CI') }, - { name: 'Denmark', code: 'DK', label: i18n.t('countries.DK') }, - { name: 'Djibouti', code: 'DJ', label: i18n.t('countries.DJ') }, - { name: 'Dominica', code: 'DM', label: i18n.t('countries.DM') }, - { name: 'Dominican Republic', code: 'DO', label: i18n.t('countries.DO') }, - { name: 'Ecuador', code: 'EC', label: i18n.t('countries.EC') }, - { name: 'Egypt', code: 'EG', label: i18n.t('countries.EG') }, - { name: 'El Salvador', code: 'SV', label: i18n.t('countries.SV') }, - { name: 'Equatorial Guinea ', code: 'GQ', label: i18n.t('countries.GQ') }, - { name: 'Eritrea', code: 'ER', label: i18n.t('countries.ER') }, - { name: 'Estonia', code: 'EE', label: i18n.t('countries.EE') }, - { name: 'Eswatini', code: 'SZ', label: i18n.t('countries.SZ') }, - { name: 'Ethiopia', code: 'ET', label: i18n.t('countries.ET') }, + label: i18n.global.t('countries.CD'), + }, + { name: 'Congo', code: 'CG', label: i18n.global.t('countries.CG') }, + { name: 'Cook Islands', code: 'CK', label: i18n.global.t('countries.CK') }, + { name: 'Costa Rica', code: 'CR', label: i18n.global.t('countries.CR') }, + { name: 'Croatia', code: 'HR', label: i18n.global.t('countries.HR') }, + { name: 'Cuba', code: 'CU', label: i18n.global.t('countries.CU') }, + { name: 'Curaçao', code: 'CW', label: i18n.global.t('countries.CW') }, + { name: 'Cyprus', code: 'CY', label: i18n.global.t('countries.CY') }, + { name: 'Czechia', code: 'CZ', label: i18n.global.t('countries.CZ') }, + { name: "Côte d'Ivoire", code: 'CI', label: i18n.global.t('countries.CI') }, + { name: 'Denmark', code: 'DK', label: i18n.global.t('countries.DK') }, + { name: 'Djibouti', code: 'DJ', label: i18n.global.t('countries.DJ') }, + { name: 'Dominica', code: 'DM', label: i18n.global.t('countries.DM') }, + { + name: 'Dominican Republic', + code: 'DO', + label: i18n.global.t('countries.DO'), + }, + { name: 'Ecuador', code: 'EC', label: i18n.global.t('countries.EC') }, + { name: 'Egypt', code: 'EG', label: i18n.global.t('countries.EG') }, + { name: 'El Salvador', code: 'SV', label: i18n.global.t('countries.SV') }, + { + name: 'Equatorial Guinea ', + code: 'GQ', + label: i18n.global.t('countries.GQ'), + }, + { name: 'Eritrea', code: 'ER', label: i18n.global.t('countries.ER') }, + { name: 'Estonia', code: 'EE', label: i18n.global.t('countries.EE') }, + { name: 'Eswatini', code: 'SZ', label: i18n.global.t('countries.SZ') }, + { name: 'Ethiopia', code: 'ET', label: i18n.global.t('countries.ET') }, { name: 'Falkland Islands (Malvinas)', code: 'FK', - label: i18n.t('countries.FK'), + label: i18n.global.t('countries.FK'), + }, + { name: 'Faroe Islands', code: 'FO', label: i18n.global.t('countries.FO') }, + { name: 'Fiji', code: 'FJ', label: i18n.global.t('countries.FJ') }, + { name: 'Finland', code: 'FI', label: i18n.global.t('countries.FI') }, + { name: 'France', code: 'FR', label: i18n.global.t('countries.FR') }, + { name: 'French Guiana', code: 'GF', label: i18n.global.t('countries.GF') }, + { + name: 'French Polynesia', + code: 'PF', + label: i18n.global.t('countries.PF'), }, - { name: 'Faroe Islands', code: 'FO', label: i18n.t('countries.FO') }, - { name: 'Fiji', code: 'FJ', label: i18n.t('countries.FJ') }, - { name: 'Finland', code: 'FI', label: i18n.t('countries.FI') }, - { name: 'France', code: 'FR', label: i18n.t('countries.FR') }, - { name: 'French Guiana', code: 'GF', label: i18n.t('countries.GF') }, - { name: 'French Polynesia', code: 'PF', label: i18n.t('countries.PF') }, { name: 'French Southern Territories', code: 'TF', - label: i18n.t('countries.TF'), - }, - { name: 'Gabon', code: 'GA', label: i18n.t('countries.GA') }, - { name: 'Gambia, The', code: 'GM', label: i18n.t('countries.GM') }, - { name: 'Georgia', code: 'GE', label: i18n.t('countries.GE') }, - { name: 'Germany', code: 'DE', label: i18n.t('countries.DE') }, - { name: 'Ghana', code: 'GH', label: i18n.t('countries.GH') }, - { name: 'Gibraltar', code: 'GI', label: i18n.t('countries.GI') }, - { name: 'Greece', code: 'GR', label: i18n.t('countries.GR') }, - { name: 'Greenland', code: 'GL', label: i18n.t('countries.GL') }, - { name: 'Grenada', code: 'GD', label: i18n.t('countries.GD') }, - { name: 'Guadeloupe', code: 'GP', label: i18n.t('countries.GP') }, - { name: 'Guam', code: 'GU', label: i18n.t('countries.GU') }, - { name: 'Guatemala', code: 'GT', label: i18n.t('countries.GT') }, - { name: 'Guernsey', code: 'GG', label: i18n.t('countries.GG') }, - { name: 'Guinea', code: 'GN', label: i18n.t('countries.GN') }, - { name: 'Guinea-Bissau', code: 'GW', label: i18n.t('countries.GW') }, - { name: 'Guyana', code: 'GY', label: i18n.t('countries.GY') }, - { name: 'Haiti', code: 'HT', label: i18n.t('countries.HT') }, + label: i18n.global.t('countries.TF'), + }, + { name: 'Gabon', code: 'GA', label: i18n.global.t('countries.GA') }, + { name: 'Gambia, The', code: 'GM', label: i18n.global.t('countries.GM') }, + { name: 'Georgia', code: 'GE', label: i18n.global.t('countries.GE') }, + { name: 'Germany', code: 'DE', label: i18n.global.t('countries.DE') }, + { name: 'Ghana', code: 'GH', label: i18n.global.t('countries.GH') }, + { name: 'Gibraltar', code: 'GI', label: i18n.global.t('countries.GI') }, + { name: 'Greece', code: 'GR', label: i18n.global.t('countries.GR') }, + { name: 'Greenland', code: 'GL', label: i18n.global.t('countries.GL') }, + { name: 'Grenada', code: 'GD', label: i18n.global.t('countries.GD') }, + { name: 'Guadeloupe', code: 'GP', label: i18n.global.t('countries.GP') }, + { name: 'Guam', code: 'GU', label: i18n.global.t('countries.GU') }, + { name: 'Guatemala', code: 'GT', label: i18n.global.t('countries.GT') }, + { name: 'Guernsey', code: 'GG', label: i18n.global.t('countries.GG') }, + { name: 'Guinea', code: 'GN', label: i18n.global.t('countries.GN') }, + { name: 'Guinea-Bissau', code: 'GW', label: i18n.global.t('countries.GW') }, + { name: 'Guyana', code: 'GY', label: i18n.global.t('countries.GY') }, + { name: 'Haiti', code: 'HT', label: i18n.global.t('countries.HT') }, { name: 'Heard Island and McDonald Islands', code: 'HM', - label: i18n.t('countries.HM'), + label: i18n.global.t('countries.HM'), }, - { name: 'Holy See', code: 'VA', label: i18n.t('countries.VA') }, - { name: 'Honduras', code: 'HN', label: i18n.t('countries.HN') }, - { name: 'Hong Kong', code: 'HK', label: i18n.t('countries.HK') }, - { name: 'Hungary', code: 'HU', label: i18n.t('countries.HU') }, - { name: 'Iceland', code: 'IS', label: i18n.t('countries.IS') }, - { name: 'India', code: 'IN', label: i18n.t('countries.IN') }, - { name: 'Indonesia', code: 'ID', label: i18n.t('countries.ID') }, + { name: 'Holy See', code: 'VA', label: i18n.global.t('countries.VA') }, + { name: 'Honduras', code: 'HN', label: i18n.global.t('countries.HN') }, + { name: 'Hong Kong', code: 'HK', label: i18n.global.t('countries.HK') }, + { name: 'Hungary', code: 'HU', label: i18n.global.t('countries.HU') }, + { name: 'Iceland', code: 'IS', label: i18n.global.t('countries.IS') }, + { name: 'India', code: 'IN', label: i18n.global.t('countries.IN') }, + { name: 'Indonesia', code: 'ID', label: i18n.global.t('countries.ID') }, { name: 'Iran, Islamic Republic of', code: 'IR', - label: i18n.t('countries.IR'), - }, - { name: 'Iraq', code: 'IQ', label: i18n.t('countries.IQ') }, - { name: 'Ireland', code: 'IE', label: i18n.t('countries.IE') }, - { name: 'Isle of Man', code: 'IM', label: i18n.t('countries.IM') }, - { name: 'Israel', code: 'IL', label: i18n.t('countries.IL') }, - { name: 'Italy', code: 'IT', label: i18n.t('countries.IT') }, - { name: 'Jamaica', code: 'JM', label: i18n.t('countries.JM') }, - { name: 'Japan', code: 'JP', label: i18n.t('countries.JP') }, - { name: 'Jersey', code: 'JE', label: i18n.t('countries.JE') }, - { name: 'Jordan', code: 'JO', label: i18n.t('countries.JO') }, - { name: 'Kazakhstan', code: 'KZ', label: i18n.t('countries.KZ') }, - { name: 'Kenya', code: 'KE', label: i18n.t('countries.KE') }, - { name: 'Kiribati', code: 'KI', label: i18n.t('countries.KI') }, - { name: 'Korea, Republic of', code: 'KR', label: i18n.t('countries.KR') }, + label: i18n.global.t('countries.IR'), + }, + { name: 'Iraq', code: 'IQ', label: i18n.global.t('countries.IQ') }, + { name: 'Ireland', code: 'IE', label: i18n.global.t('countries.IE') }, + { name: 'Isle of Man', code: 'IM', label: i18n.global.t('countries.IM') }, + { name: 'Israel', code: 'IL', label: i18n.global.t('countries.IL') }, + { name: 'Italy', code: 'IT', label: i18n.global.t('countries.IT') }, + { name: 'Jamaica', code: 'JM', label: i18n.global.t('countries.JM') }, + { name: 'Japan', code: 'JP', label: i18n.global.t('countries.JP') }, + { name: 'Jersey', code: 'JE', label: i18n.global.t('countries.JE') }, + { name: 'Jordan', code: 'JO', label: i18n.global.t('countries.JO') }, + { name: 'Kazakhstan', code: 'KZ', label: i18n.global.t('countries.KZ') }, + { name: 'Kenya', code: 'KE', label: i18n.global.t('countries.KE') }, + { name: 'Kiribati', code: 'KI', label: i18n.global.t('countries.KI') }, + { + name: 'Korea, Republic of', + code: 'KR', + label: i18n.global.t('countries.KR'), + }, { name: "Korea, Democratic People's Republic of", code: 'KP', - label: i18n.t('countries.KP'), + label: i18n.global.t('countries.KP'), }, - { name: 'Kuwait', code: 'KW', label: i18n.t('countries.KW') }, - { name: 'Kyrgyzstan', code: 'KG', label: i18n.t('countries.KG') }, + { name: 'Kuwait', code: 'KW', label: i18n.global.t('countries.KW') }, + { name: 'Kyrgyzstan', code: 'KG', label: i18n.global.t('countries.KG') }, { name: "Lao People's Democratic Republic", code: 'LA', - label: i18n.t('countries.LA'), - }, - { name: 'Latvia', code: 'LV', label: i18n.t('countries.LV') }, - { name: 'Lebanon', code: 'LB', label: i18n.t('countries.LB') }, - { name: 'Lesotho', code: 'LS', label: i18n.t('countries.LS') }, - { name: 'Liberia', code: 'LR', label: i18n.t('countries.LR') }, - { name: 'Libya', code: 'LY', label: i18n.t('countries.LY') }, - { name: 'Liechtenstein', code: 'LI', label: i18n.t('countries.LI') }, - { name: 'Lithuania', code: 'LT', label: i18n.t('countries.LT') }, - { name: 'Luxembourg', code: 'LU', label: i18n.t('countries.LU') }, - { name: 'Macao', code: 'MO', label: i18n.t('countries.MO') }, + label: i18n.global.t('countries.LA'), + }, + { name: 'Latvia', code: 'LV', label: i18n.global.t('countries.LV') }, + { name: 'Lebanon', code: 'LB', label: i18n.global.t('countries.LB') }, + { name: 'Lesotho', code: 'LS', label: i18n.global.t('countries.LS') }, + { name: 'Liberia', code: 'LR', label: i18n.global.t('countries.LR') }, + { name: 'Libya', code: 'LY', label: i18n.global.t('countries.LY') }, + { name: 'Liechtenstein', code: 'LI', label: i18n.global.t('countries.LI') }, + { name: 'Lithuania', code: 'LT', label: i18n.global.t('countries.LT') }, + { name: 'Luxembourg', code: 'LU', label: i18n.global.t('countries.LU') }, + { name: 'Macao', code: 'MO', label: i18n.global.t('countries.MO') }, { name: 'Macedonia, The Former Yugoslav Republic of', code: 'MK', - label: i18n.t('countries.MK'), - }, - { name: 'Madagascar', code: 'MG', label: i18n.t('countries.MG') }, - { name: 'Malawi', code: 'MW', label: i18n.t('countries.MW') }, - { name: 'Malaysia', code: 'MY', label: i18n.t('countries.MY') }, - { name: 'Maldives', code: 'MV', label: i18n.t('countries.MV') }, - { name: 'Mali', code: 'ML', label: i18n.t('countries.ML') }, - { name: 'Malta', code: 'MT', label: i18n.t('countries.MT') }, - { name: 'Marshall Islands', code: 'MH', label: i18n.t('countries.MH') }, - { name: 'Martinique', code: 'MQ', label: i18n.t('countries.MQ') }, - { name: 'Mauritania', code: 'MR', label: i18n.t('countries.MR') }, - { name: 'Mauritius', code: 'MU', label: i18n.t('countries.MU') }, - { name: 'Mayotte', code: 'YT', label: i18n.t('countries.YT') }, - { name: 'Mexico', code: 'MX', label: i18n.t('countries.MX') }, + label: i18n.global.t('countries.MK'), + }, + { name: 'Madagascar', code: 'MG', label: i18n.global.t('countries.MG') }, + { name: 'Malawi', code: 'MW', label: i18n.global.t('countries.MW') }, + { name: 'Malaysia', code: 'MY', label: i18n.global.t('countries.MY') }, + { name: 'Maldives', code: 'MV', label: i18n.global.t('countries.MV') }, + { name: 'Mali', code: 'ML', label: i18n.global.t('countries.ML') }, + { name: 'Malta', code: 'MT', label: i18n.global.t('countries.MT') }, + { + name: 'Marshall Islands', + code: 'MH', + label: i18n.global.t('countries.MH'), + }, + { name: 'Martinique', code: 'MQ', label: i18n.global.t('countries.MQ') }, + { name: 'Mauritania', code: 'MR', label: i18n.global.t('countries.MR') }, + { name: 'Mauritius', code: 'MU', label: i18n.global.t('countries.MU') }, + { name: 'Mayotte', code: 'YT', label: i18n.global.t('countries.YT') }, + { name: 'Mexico', code: 'MX', label: i18n.global.t('countries.MX') }, { name: 'Micronesia, Federated States of', code: 'FM', - label: i18n.t('countries.FM'), - }, - { name: 'Moldova, Republic of', code: 'MD', label: i18n.t('countries.MD') }, - { name: 'Monaco', code: 'MC', label: i18n.t('countries.MC') }, - { name: 'Mongolia', code: 'MN', label: i18n.t('countries.MN') }, - { name: 'Montenegro', code: 'ME', label: i18n.t('countries.ME') }, - { name: 'Montserrat', code: 'MS', label: i18n.t('countries.MS') }, - { name: 'Morocco', code: 'MA', label: i18n.t('countries.MA') }, - { name: 'Mozambique', code: 'MZ', label: i18n.t('countries.MZ') }, - { name: 'Myanmar', code: 'MM', label: i18n.t('countries.MM') }, - { name: 'Namibia', code: 'NA', label: i18n.t('countries.NA') }, - { name: 'Nauru', code: 'NR', label: i18n.t('countries.NR') }, - { name: 'Nepal', code: 'NP', label: i18n.t('countries.NP') }, - { name: 'Netherlands', code: 'NL', label: i18n.t('countries.NL') }, - { name: 'New Caledonia', code: 'NC', label: i18n.t('countries.NC') }, - { name: 'New Zealand', code: 'NZ', label: i18n.t('countries.NZ') }, - { name: 'Nicaragua', code: 'NI', label: i18n.t('countries.NI') }, - { name: 'Niger', code: 'NE', label: i18n.t('countries.NE') }, - { name: 'Nigeria', code: 'NG', label: i18n.t('countries.NG') }, - { name: 'Niue', code: 'NU', label: i18n.t('countries.NU') }, - { name: 'Norfolk Island', code: 'NF', label: i18n.t('countries.NF') }, + label: i18n.global.t('countries.FM'), + }, + { + name: 'Moldova, Republic of', + code: 'MD', + label: i18n.global.t('countries.MD'), + }, + { name: 'Monaco', code: 'MC', label: i18n.global.t('countries.MC') }, + { name: 'Mongolia', code: 'MN', label: i18n.global.t('countries.MN') }, + { name: 'Montenegro', code: 'ME', label: i18n.global.t('countries.ME') }, + { name: 'Montserrat', code: 'MS', label: i18n.global.t('countries.MS') }, + { name: 'Morocco', code: 'MA', label: i18n.global.t('countries.MA') }, + { name: 'Mozambique', code: 'MZ', label: i18n.global.t('countries.MZ') }, + { name: 'Myanmar', code: 'MM', label: i18n.global.t('countries.MM') }, + { name: 'Namibia', code: 'NA', label: i18n.global.t('countries.NA') }, + { name: 'Nauru', code: 'NR', label: i18n.global.t('countries.NR') }, + { name: 'Nepal', code: 'NP', label: i18n.global.t('countries.NP') }, + { name: 'Netherlands', code: 'NL', label: i18n.global.t('countries.NL') }, + { name: 'New Caledonia', code: 'NC', label: i18n.global.t('countries.NC') }, + { name: 'New Zealand', code: 'NZ', label: i18n.global.t('countries.NZ') }, + { name: 'Nicaragua', code: 'NI', label: i18n.global.t('countries.NI') }, + { name: 'Niger', code: 'NE', label: i18n.global.t('countries.NE') }, + { name: 'Nigeria', code: 'NG', label: i18n.global.t('countries.NG') }, + { name: 'Niue', code: 'NU', label: i18n.global.t('countries.NU') }, + { name: 'Norfolk Island', code: 'NF', label: i18n.global.t('countries.NF') }, { name: 'Northern Mariana Islands', code: 'MP', - label: i18n.t('countries.MP'), - }, - { name: 'Norway', code: 'NO', label: i18n.t('countries.NO') }, - { name: 'Oman', code: 'OM', label: i18n.t('countries.OM') }, - { name: 'Pakistan', code: 'PK', label: i18n.t('countries.PK') }, - { name: 'Palau', code: 'PW', label: i18n.t('countries.PW') }, - { name: 'Palestine', code: 'PS', label: i18n.t('countries.PS') }, - { name: 'Panama', code: 'PA', label: i18n.t('countries.PA') }, - { name: 'Papua New Guinea', code: 'PG', label: i18n.t('countries.PG') }, - { name: 'Paraguay', code: 'PY', label: i18n.t('countries.PY') }, - { name: 'Peru', code: 'PE', label: i18n.t('countries.PE') }, - { name: 'Philippines', code: 'PH', label: i18n.t('countries.PH') }, - { name: 'Pitcairn', code: 'PN', label: i18n.t('countries.PN') }, - { name: 'Poland', code: 'PL', label: i18n.t('countries.PL') }, - { name: 'Portugal', code: 'PT', label: i18n.t('countries.PT') }, - { name: 'Puerto Rico', code: 'PR', label: i18n.t('countries.PR') }, - { name: 'Qatar', code: 'QA', label: i18n.t('countries.QA') }, - { name: 'Romania', code: 'RO', label: i18n.t('countries.RO') }, - { name: 'Russian Federation', code: 'RU', label: i18n.t('countries.RU') }, - { name: 'Rwanda', code: 'RW', label: i18n.t('countries.RW') }, - { name: 'Réunion', code: 'RE', label: i18n.t('countries.RE') }, - { name: 'Saint Barthélemy', code: 'BL', label: i18n.t('countries.BL') }, + label: i18n.global.t('countries.MP'), + }, + { name: 'Norway', code: 'NO', label: i18n.global.t('countries.NO') }, + { name: 'Oman', code: 'OM', label: i18n.global.t('countries.OM') }, + { name: 'Pakistan', code: 'PK', label: i18n.global.t('countries.PK') }, + { name: 'Palau', code: 'PW', label: i18n.global.t('countries.PW') }, + { name: 'Palestine', code: 'PS', label: i18n.global.t('countries.PS') }, + { name: 'Panama', code: 'PA', label: i18n.global.t('countries.PA') }, + { + name: 'Papua New Guinea', + code: 'PG', + label: i18n.global.t('countries.PG'), + }, + { name: 'Paraguay', code: 'PY', label: i18n.global.t('countries.PY') }, + { name: 'Peru', code: 'PE', label: i18n.global.t('countries.PE') }, + { name: 'Philippines', code: 'PH', label: i18n.global.t('countries.PH') }, + { name: 'Pitcairn', code: 'PN', label: i18n.global.t('countries.PN') }, + { name: 'Poland', code: 'PL', label: i18n.global.t('countries.PL') }, + { name: 'Portugal', code: 'PT', label: i18n.global.t('countries.PT') }, + { name: 'Puerto Rico', code: 'PR', label: i18n.global.t('countries.PR') }, + { name: 'Qatar', code: 'QA', label: i18n.global.t('countries.QA') }, + { name: 'Romania', code: 'RO', label: i18n.global.t('countries.RO') }, + { + name: 'Russian Federation', + code: 'RU', + label: i18n.global.t('countries.RU'), + }, + { name: 'Rwanda', code: 'RW', label: i18n.global.t('countries.RW') }, + { name: 'Réunion', code: 'RE', label: i18n.global.t('countries.RE') }, + { + name: 'Saint Barthélemy', + code: 'BL', + label: i18n.global.t('countries.BL'), + }, { name: 'Saint Helena, Ascension and Tristan da Cunha', code: 'SH', - label: i18n.t('countries.SH'), + label: i18n.global.t('countries.SH'), }, - { name: 'Saint Kitts and Nevis ', code: 'KN', label: i18n.t('countries.KN') }, - { name: 'Saint Lucia', code: 'LC', label: i18n.t('countries.LC') }, - { name: 'Saint Martin', code: 'MF', label: i18n.t('countries.MF') }, + { + name: 'Saint Kitts and Nevis ', + code: 'KN', + label: i18n.global.t('countries.KN'), + }, + { name: 'Saint Lucia', code: 'LC', label: i18n.global.t('countries.LC') }, + { name: 'Saint Martin', code: 'MF', label: i18n.global.t('countries.MF') }, { name: 'Saint Pierre and Miquelon', code: 'PM', - label: i18n.t('countries.PM'), + label: i18n.global.t('countries.PM'), }, { name: 'Saint Vincent and the Grenadines', code: 'VC', - label: i18n.t('countries.VC'), - }, - { name: 'Samoa', code: 'WS', label: i18n.t('countries.WS') }, - { name: 'San Marino ', code: 'SM', label: i18n.t('countries.SM') }, - { name: 'Sao Tome and Principe', code: 'ST', label: i18n.t('countries.ST') }, - { name: 'Saudi Arabia', code: 'SA', label: i18n.t('countries.SA') }, - { name: 'Senegal', code: 'SN', label: i18n.t('countries.SN') }, - { name: 'Serbia', code: 'RS', label: i18n.t('countries.RS') }, - { name: 'Seychelles', code: 'SC', label: i18n.t('countries.SC') }, - { name: 'Sierra Leone', code: 'SL', label: i18n.t('countries.SL') }, - { name: 'Singapore', code: 'SG', label: i18n.t('countries.SG') }, - { name: 'Sint Maarten', code: 'SX', label: i18n.t('countries.SX') }, - { name: 'Slovakia', code: 'SK', label: i18n.t('countries.SK') }, - { name: 'Slovenia', code: 'SI', label: i18n.t('countries.SI') }, - { name: 'Solomon Islands', code: 'SB', label: i18n.t('countries.SB') }, - { name: 'Somalia', code: 'SO', label: i18n.t('countries.SO') }, - { name: 'South Africa ', code: 'ZA', label: i18n.t('countries.ZA') }, + label: i18n.global.t('countries.VC'), + }, + { name: 'Samoa', code: 'WS', label: i18n.global.t('countries.WS') }, + { name: 'San Marino ', code: 'SM', label: i18n.global.t('countries.SM') }, + { + name: 'Sao Tome and Principe', + code: 'ST', + label: i18n.global.t('countries.ST'), + }, + { name: 'Saudi Arabia', code: 'SA', label: i18n.global.t('countries.SA') }, + { name: 'Senegal', code: 'SN', label: i18n.global.t('countries.SN') }, + { name: 'Serbia', code: 'RS', label: i18n.global.t('countries.RS') }, + { name: 'Seychelles', code: 'SC', label: i18n.global.t('countries.SC') }, + { name: 'Sierra Leone', code: 'SL', label: i18n.global.t('countries.SL') }, + { name: 'Singapore', code: 'SG', label: i18n.global.t('countries.SG') }, + { name: 'Sint Maarten', code: 'SX', label: i18n.global.t('countries.SX') }, + { name: 'Slovakia', code: 'SK', label: i18n.global.t('countries.SK') }, + { name: 'Slovenia', code: 'SI', label: i18n.global.t('countries.SI') }, + { name: 'Solomon Islands', code: 'SB', label: i18n.global.t('countries.SB') }, + { name: 'Somalia', code: 'SO', label: i18n.global.t('countries.SO') }, + { name: 'South Africa ', code: 'ZA', label: i18n.global.t('countries.ZA') }, { name: 'South Georgia and the South Sandwich Islands', code: 'GS', - label: i18n.t('countries.GS'), - }, - { name: 'South Sudan', code: 'SS', label: i18n.t('countries.SS') }, - { name: 'Spain', code: 'ES', label: i18n.t('countries.ES') }, - { name: 'Sri Lanka', code: 'LK', label: i18n.t('countries.LK') }, - { name: 'Sudan', code: 'SD', label: i18n.t('countries.SD') }, - { name: 'Suriname', code: 'SR', label: i18n.t('countries.SR') }, - { name: 'Svalbard and Jan Mayen', code: 'SJ', label: i18n.t('countries.SJ') }, - { name: 'Sweden', code: 'SE', label: i18n.t('countries.SE') }, - { name: 'Switzerland', code: 'CH', label: i18n.t('countries.CH') }, - { name: 'Syrian Arab Republic', code: 'SY', label: i18n.t('countries.SY') }, - { name: 'Taiwan', code: 'TW', label: i18n.t('countries.TW') }, - { name: 'Tajikistan', code: 'TJ', label: i18n.t('countries.TJ') }, + label: i18n.global.t('countries.GS'), + }, + { name: 'South Sudan', code: 'SS', label: i18n.global.t('countries.SS') }, + { name: 'Spain', code: 'ES', label: i18n.global.t('countries.ES') }, + { name: 'Sri Lanka', code: 'LK', label: i18n.global.t('countries.LK') }, + { name: 'Sudan', code: 'SD', label: i18n.global.t('countries.SD') }, + { name: 'Suriname', code: 'SR', label: i18n.global.t('countries.SR') }, + { + name: 'Svalbard and Jan Mayen', + code: 'SJ', + label: i18n.global.t('countries.SJ'), + }, + { name: 'Sweden', code: 'SE', label: i18n.global.t('countries.SE') }, + { name: 'Switzerland', code: 'CH', label: i18n.global.t('countries.CH') }, + { + name: 'Syrian Arab Republic', + code: 'SY', + label: i18n.global.t('countries.SY'), + }, + { name: 'Taiwan', code: 'TW', label: i18n.global.t('countries.TW') }, + { name: 'Tajikistan', code: 'TJ', label: i18n.global.t('countries.TJ') }, { name: 'Tanzania, United Republic of', code: 'TZ', - label: i18n.t('countries.TZ'), - }, - { name: 'Thailand', code: 'TH', label: i18n.t('countries.TH') }, - { name: 'Timor-Leste', code: 'TL', label: i18n.t('countries.TL') }, - { name: 'Togo', code: 'TG', label: i18n.t('countries.TG') }, - { name: 'Tokelau', code: 'TK', label: i18n.t('countries.TK') }, - { name: 'Tonga', code: 'TO', label: i18n.t('countries.TO') }, - { name: 'Trinidad and Tobago', code: 'TT', label: i18n.t('countries.TT') }, - { name: 'Tunisia', code: 'TN', label: i18n.t('countries.TN') }, - { name: 'Turkey', code: 'TR', label: i18n.t('countries.TR') }, - { name: 'Turkmenistan', code: 'TM', label: i18n.t('countries.TM') }, + label: i18n.global.t('countries.TZ'), + }, + { name: 'Thailand', code: 'TH', label: i18n.global.t('countries.TH') }, + { name: 'Timor-Leste', code: 'TL', label: i18n.global.t('countries.TL') }, + { name: 'Togo', code: 'TG', label: i18n.global.t('countries.TG') }, + { name: 'Tokelau', code: 'TK', label: i18n.global.t('countries.TK') }, + { name: 'Tonga', code: 'TO', label: i18n.global.t('countries.TO') }, + { + name: 'Trinidad and Tobago', + code: 'TT', + label: i18n.global.t('countries.TT'), + }, + { name: 'Tunisia', code: 'TN', label: i18n.global.t('countries.TN') }, + { name: 'Turkey', code: 'TR', label: i18n.global.t('countries.TR') }, + { name: 'Turkmenistan', code: 'TM', label: i18n.global.t('countries.TM') }, { name: 'Turks and Caicos Islands', code: 'TC', - label: i18n.t('countries.TC'), + label: i18n.global.t('countries.TC'), }, - { name: 'Tuvalu', code: 'TV', label: i18n.t('countries.TV') }, - { name: 'Uganda', code: 'UG', label: i18n.t('countries.UG') }, - { name: 'Ukraine', code: 'UA', label: i18n.t('countries.UA') }, - { name: 'United Arab Emirates', code: 'AE', label: i18n.t('countries.AE') }, - { name: 'United Kingdom', code: 'GB', label: i18n.t('countries.GB') }, + { name: 'Tuvalu', code: 'TV', label: i18n.global.t('countries.TV') }, + { name: 'Uganda', code: 'UG', label: i18n.global.t('countries.UG') }, + { name: 'Ukraine', code: 'UA', label: i18n.global.t('countries.UA') }, + { + name: 'United Arab Emirates', + code: 'AE', + label: i18n.global.t('countries.AE'), + }, + { name: 'United Kingdom', code: 'GB', label: i18n.global.t('countries.GB') }, { name: 'United States Minor Outlying Islands', code: 'UM', - label: i18n.t('countries.UM'), + label: i18n.global.t('countries.UM'), }, { name: 'United States of America', code: 'US', - label: i18n.t('countries.US'), + label: i18n.global.t('countries.US'), }, - { name: 'Uruguay', code: 'UY', label: i18n.t('countries.UY') }, - { name: 'Uzbekistan', code: 'UZ', label: i18n.t('countries.UZ') }, - { name: 'Vanuatu', code: 'VU', label: i18n.t('countries.VU') }, - { name: 'Venezuela', code: 'VE', label: i18n.t('countries.VE') }, - { name: 'Viet Nam', code: 'VN', label: i18n.t('countries.VN') }, + { name: 'Uruguay', code: 'UY', label: i18n.global.t('countries.UY') }, + { name: 'Uzbekistan', code: 'UZ', label: i18n.global.t('countries.UZ') }, + { name: 'Vanuatu', code: 'VU', label: i18n.global.t('countries.VU') }, + { name: 'Venezuela', code: 'VE', label: i18n.global.t('countries.VE') }, + { name: 'Viet Nam', code: 'VN', label: i18n.global.t('countries.VN') }, { name: 'Virgin Islands, British', code: 'VG', - label: i18n.t('countries.VG'), - }, - { name: 'Virgin Islands, U.S', code: 'VI', label: i18n.t('countries.VI') }, - { name: 'Wallis and Futuna', code: 'WF', label: i18n.t('countries.WF') }, - { name: 'Western Sahara', code: 'EH', label: i18n.t('countries.EH') }, - { name: 'Yemen', code: 'YE', label: i18n.t('countries.YE') }, - { name: 'Zambia', code: 'ZM', label: i18n.t('countries.ZM') }, - { name: 'Zimbabwe', code: 'ZW', label: i18n.t('countries.ZW') }, - { name: 'Åland Islands', code: 'AX', label: i18n.t('countries.AX') }, + label: i18n.global.t('countries.VG'), + }, + { + name: 'Virgin Islands, U.S', + code: 'VI', + label: i18n.global.t('countries.VI'), + }, + { + name: 'Wallis and Futuna', + code: 'WF', + label: i18n.global.t('countries.WF'), + }, + { name: 'Western Sahara', code: 'EH', label: i18n.global.t('countries.EH') }, + { name: 'Yemen', code: 'YE', label: i18n.global.t('countries.YE') }, + { name: 'Zambia', code: 'ZM', label: i18n.global.t('countries.ZM') }, + { name: 'Zimbabwe', code: 'ZW', label: i18n.global.t('countries.ZW') }, + { name: 'Åland Islands', code: 'AX', label: i18n.global.t('countries.AX') }, ]; diff --git a/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue b/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue index 0a0b84c941..de6229b4db 100644 --- a/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue +++ b/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue @@ -1,207 +1,209 @@ - - - - - - - - + + + + + + - - + {{ $t('global.form.selectAnOption') }} - + - - + + {{ $t('global.form.fieldRequired') }} - - - - - + + + + - - + {{ $t('global.form.selectAnOption') }} - + - - + + {{ $t('global.form.fieldRequired') }} - - - - - - - + + + + + + - - + {{ $t('global.form.fieldRequired') }} - - - - - + + + + - - + {{ $t('global.form.fieldRequired') }} - - - - - - - + + + + + + - - + {{ $t('global.form.fieldRequired') }} - - - - - + + + + - - + {{ $t('global.form.fieldRequired') }} - - - - - - - + + + + + + - - + {{ $t('global.form.fieldRequired') }} - - - - - + + + + + {{ $t('pageCertificates.modal.contactPerson') }} - {{ $t('global.form.optional') }} - - - - - - - + + + + + + {{ $t('pageCertificates.modal.emailAddress') }} - {{ $t('global.form.optional') }} - - - - - - - + + + + + + {{ $t('pageCertificates.modal.alternateName') }} - {{ $t('global.form.optional') }} - + {{ $t('pageCertificates.modal.alternateNameHelperText') }} - - + {{ $t('global.action.add') }} - - - - - - - - + + + + + + + + {{ $t('pageCertificates.modal.privateKey') }} - - - + {{ $t('global.form.selectAnOption') }} - + - - + + {{ $t('global.form.fieldRequired') }} - - - - - - - - + + + + + + + - - + {{ $t('global.form.selectAnOption') }} - + - - + + {{ $t('global.form.fieldRequired') }} - - + + - - + - - + {{ $t('global.form.selectAnOption') }} - + - - + + {{ $t('global.form.fieldRequired') }} - - + + - - - - - - + + + + + + - + {{ $t('global.action.cancel') }} - - + {{ $t('pageCertificates.generateCsr') }} - + - - + {{ csrString }} - - + + -
{{ $t('pageCertificates.modal.privateKey') }}