[Entities] AP Service Repository View Table
Some checks failed
checks-impure / test (pull_request) Successful in 2m23s
checks / test (pull_request) Failing after 25m15s

- implemented Service Repository table with the first dummy data
- adjusted dummy data file & component names
This commit is contained in:
Onur Arslan
2023-11-20 00:37:32 +01:00
parent 6d1112f2db
commit 19ba8b8682
3 changed files with 54 additions and 4 deletions

View File

@@ -1,10 +1,16 @@
"use client";
import {APDummyData, APTableConfig} from "@/mock/ap/data";
import {RecentActivity} from "@/components/dashboard/activity";
import {APServiceRepositoryDummyData, APServiceRepositoryTableConfig} from "@/mock/ap/serviceRepository";
import {APAttachmentsDummyData, APAttachmentsTableConfig} from "@/mock/ap/attachmentData";
export default function AccessPoint() {
return (
<RecentActivity title={"Attachments"} data={APDummyData} configuration={APTableConfig}/>
<div>
<RecentActivity title={"Attachments"} data={APAttachmentsDummyData}
configuration={APAttachmentsTableConfig}/><br/>
<RecentActivity title={"Service Repository"} data={APServiceRepositoryDummyData}
configuration={APServiceRepositoryTableConfig}/>
</div>
)
}

View File

@@ -1,4 +1,4 @@
export const APDummyData = [
export const APAttachmentsDummyData = [
{
"entity_name": "C1",
"entity_DID": "did:sov:test:1234",
@@ -24,7 +24,7 @@ export const APDummyData = [
]
export const APTableConfig = [
export const APAttachmentsTableConfig = [
{
key: "entity_name",
label: "Entity name"

View File

@@ -0,0 +1,44 @@
export const APServiceRepositoryDummyData = [
{
"service_name": "Carlo's Printing",
"service_type": "3D Printing",
"end_point": "URL",
"producer": "C1",
"producer_DID": "did:sov:test:1234",
"network": "Carlo's Home Network",
}, {
"service_name": "Jeff's Printing",
"service_type": "3D Printing",
"end_point": "URL",
"producer": "C2",
"producer_DID": "did:sov:test:5678",
"network": "Jeff's Home Network",
},
]
export const APServiceRepositoryTableConfig = [
{
key: "service_name",
label: "Service name"
},
{
key: "service_type",
label: "Service type"
},
{
key: "end_point",
label: "End point"
},
{
key: "producer",
label: "Producer"
},
{
key: "producer_DID",
label: "Producer DID"
},
{
key: "network",
label: "Network"
},
]