Skip to content

Commit

Permalink
MOSIP-36144: UI Development Partner Admin Tabular View of uploaded ce…
Browse files Browse the repository at this point in the history
…rtificates

Signed-off-by: Anil_Kumar_Majji <[email protected]>
  • Loading branch information
Anil-kumar-Majji committed Dec 12, 2024
1 parent c6f0f42 commit 6773e53
Show file tree
Hide file tree
Showing 8 changed files with 362 additions and 268 deletions.
1 change: 1 addition & 0 deletions pmp-revamp-ui/public/i18n/ara.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@
},
"rootTrustCertificate": {
"rootOfTrustCertificates": "جذر شهادات الثقة",
"intermediateRootTrustCertificates":"شهادات ثقة الجذر المتوسطة",
"certificateId": "معرف الشهادة",
"partnerDomain": "مجال الشريك",
"issuedTo": "صدر ل",
Expand Down
4 changes: 3 additions & 1 deletion pmp-revamp-ui/public/i18n/eng.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@
},
"rootTrustCertificate": {
"rootOfTrustCertificates": "Root of Trust Certificates",
"intermediateRootTrustCertificates": "Intermediate Root Trust Certificates",
"certificateId": "Certificate Id",
"partnerDomain": "Partner Domain",
"issuedTo": "Issued To",
Expand Down Expand Up @@ -590,7 +591,8 @@
"caCertificates": "Ca Certificates"
},
"intermediateTrustCertificateList": {
"intermediateRootTrustCertificates": "Intermediate Root Trust Certificates"
"intermediateRootTrustCertificates": "Intermediate Root Trust Certificates",
"intermediateRootTrustCertificateList": "List of Root of Trust Certificates"
},
"partnerList": {
"partnerTitle": "Partners",
Expand Down
1 change: 1 addition & 0 deletions pmp-revamp-ui/public/i18n/fra.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@
},
"rootTrustCertificate": {
"rootOfTrustCertificates": "Certificats racine de confiance",
"intermediateRootTrustCertificates":"Certificats de confiance racine intermédiaires",
"certificateId": "Id du certificat",
"partnerDomain": "Domaine partenaire",
"issuedTo": "Délivré à",
Expand Down
9 changes: 7 additions & 2 deletions pmp-revamp-ui/src/AppRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import DevicesList from './pages/partner/deviceProviderServices/DevicesList.js';
import FtmList from './pages/partner/ftmProviderServices/FtmList.js';
import AddFtm from './pages/partner/ftmProviderServices/AddFtm.js';
import ViewFtmChipDetails from './pages/partner/ftmProviderServices/ViewFtmChipDetails.js';
import RootTrustCertificateList from './pages/admin/certificates/RootTrustCertificateList.js';
import UploadRootTrustCertificate from './pages/admin/certificates/UploadRootTrustCertificate.js';
import PartnersList from './pages/admin/partners/PartnersList.js';
import ViewPartnerDetails from './pages/admin/partners/ViewPartnerDetails.js';
Expand All @@ -47,6 +46,8 @@ import AdminSbiList from './pages/admin/deviceProviderServices/AdminSbiList.js';
import AdminDevicesList from './pages/admin/deviceProviderServices/AdminDevicesList.js';
import ViewAdminSbiDetails from './pages/admin/deviceProviderServices/ViewAdminSbiDetails.js';
import ViewAdminDeviceDetails from './pages/admin/deviceProviderServices/ViewAdminDeviceDetails.js';
import RootTrustCertificatesList from './pages/admin/certificates/RootTrustCertificatesList.js';
import IntermediateRootTrustCertificatesList from './pages/admin/certificates/IntermediateRootTrustCertificatesList.js';

function AppRoutes() {

Expand Down Expand Up @@ -149,7 +150,11 @@ function AppRoutes() {
},
{
path: 'admin/certificates/root-trust-certificate-list',
element: <GuardedRoute><MainLayout><RootTrustCertificateList /></MainLayout></GuardedRoute>
element: <GuardedRoute><MainLayout><RootTrustCertificatesList /></MainLayout></GuardedRoute>
},
{
path: 'admin/certificates/intermediate-root-trust-certificate-list',
element: <GuardedRoute><MainLayout><IntermediateRootTrustCertificatesList /></MainLayout></GuardedRoute>
},
{
path: 'admin/certificates/upload-root-trust-certificate',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import RootCertificateList from './RootCertificateList';

function IntermediateRootTrustCertificatesList() {
return (
<RootCertificateList
certificateType='intermediate'
uploadCertificateButtonName='rootTrustCertificate.UploadCertBtn'
/>
)
}

export default IntermediateRootTrustCertificatesList;
325 changes: 325 additions & 0 deletions pmp-revamp-ui/src/pages/admin/certificates/RootCertificateList.js

Large diffs are not rendered by default.

265 changes: 0 additions & 265 deletions pmp-revamp-ui/src/pages/admin/certificates/RootTrustCertificateList.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import RootCertificateList from "./RootCertificateList";

function RootTrustCertificatesList() {

return (
<RootCertificateList
certificateType = 'root'
uploadCertificateButtonName='rootTrustCertificate.UploadCertBtn'
/>
)
}

export default RootTrustCertificatesList;

0 comments on commit 6773e53

Please sign in to comment.