generated from Luis/nextjs-python-web-template
[Entities] AP Service Repository View Table
- implemented Service Repository table with the first dummy data - adjusted dummy data file & component names
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import {APDummyData, APTableConfig} from "@/mock/ap/data";
|
|
||||||
import {RecentActivity} from "@/components/dashboard/activity";
|
import {RecentActivity} from "@/components/dashboard/activity";
|
||||||
|
import {APServiceRepositoryDummyData, APServiceRepositoryTableConfig} from "@/mock/ap/serviceRepository";
|
||||||
|
import {APAttachmentsDummyData, APAttachmentsTableConfig} from "@/mock/ap/attachmentData";
|
||||||
|
|
||||||
export default function AccessPoint() {
|
export default function AccessPoint() {
|
||||||
return (
|
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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
export const APDummyData = [
|
export const APAttachmentsDummyData = [
|
||||||
{
|
{
|
||||||
"entity_name": "C1",
|
"entity_name": "C1",
|
||||||
"entity_DID": "did:sov:test:1234",
|
"entity_DID": "did:sov:test:1234",
|
||||||
@@ -24,7 +24,7 @@ export const APDummyData = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
export const APTableConfig = [
|
export const APAttachmentsTableConfig = [
|
||||||
{
|
{
|
||||||
key: "entity_name",
|
key: "entity_name",
|
||||||
label: "Entity name"
|
label: "Entity name"
|
||||||
44
pkgs/ui/src/mock/ap/serviceRepository.tsx
Normal file
44
pkgs/ui/src/mock/ap/serviceRepository.tsx
Normal 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"
|
||||||
|
},
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user