diff --git a/pkgs/ui/src/app/access-point/page.tsx b/pkgs/ui/src/app/access-point/page.tsx
index da581a9..2814c4a 100644
--- a/pkgs/ui/src/app/access-point/page.tsx
+++ b/pkgs/ui/src/app/access-point/page.tsx
@@ -1,5 +1,36 @@
"use client";
+import SummaryDetails from "@/components/summary_card";
+import CustomTable from "@/components/table";
+import {
+ APSummaryDetails,
+ APAttachmentsDummyData,
+ APAttachmentsTableConfig,
+ APServiceRepositoryDummyData,
+ APServiceRepositoryTableConfig,
+} from "@/mock/access_point";
+
export default function AccessPoint() {
- return
Access Point Page
;
+ return (
+
+
+
+
Attachement View
+
+
+
+
Service Repository View
+
+
+
+ );
}
diff --git a/pkgs/ui/src/app/client-1/page.tsx b/pkgs/ui/src/app/client-1/page.tsx
new file mode 100644
index 0000000..4e1bc94
--- /dev/null
+++ b/pkgs/ui/src/app/client-1/page.tsx
@@ -0,0 +1,17 @@
+import SummaryDetails from "@/components/summary_card";
+import { Client1SummaryDetails } from "@/mock/client_1";
+
+export default function Client1() {
+ return (
+
+
+
+ );
+}
diff --git a/pkgs/ui/src/app/client-2/page.tsx b/pkgs/ui/src/app/client-2/page.tsx
new file mode 100644
index 0000000..f501d9b
--- /dev/null
+++ b/pkgs/ui/src/app/client-2/page.tsx
@@ -0,0 +1,17 @@
+import SummaryDetails from "@/components/summary_card";
+import { Client2SummaryDetails } from "@/mock/client_2";
+
+export default function Client1() {
+ return (
+
+
+
+ );
+}
diff --git a/pkgs/ui/src/app/distributed-ledger-gateway/page.tsx b/pkgs/ui/src/app/distributed-ledger-gateway/page.tsx
index 4e20b89..cc1c15e 100644
--- a/pkgs/ui/src/app/distributed-ledger-gateway/page.tsx
+++ b/pkgs/ui/src/app/distributed-ledger-gateway/page.tsx
@@ -1,5 +1,30 @@
"use client";
+import {
+ DLGResolutionDummyData,
+ DLGResolutionTableConfig,
+ DLGSummaryDetails,
+} from "@/mock/dlg";
+import CustomTable from "@/components/table";
+import SummaryDetails from "@/components/summary_card";
+
export default function DLG() {
- return DLG Page
;
+ return (
+
+
+
+
DID Resolution View
+
+
+
+ );
}
diff --git a/pkgs/ui/src/app/home/page.tsx b/pkgs/ui/src/app/home/page.tsx
new file mode 100644
index 0000000..7747e08
--- /dev/null
+++ b/pkgs/ui/src/app/home/page.tsx
@@ -0,0 +1,24 @@
+import { NoDataOverlay } from "@/components/noDataOverlay";
+import SummaryDetails from "@/components/summary_card";
+import CustomTable from "@/components/table";
+
+export default function Home() {
+ return (
+
+
+
+
+
Home View Table
+
+
+
+
+
Sequence Diagram
+
+
+
+ );
+}
diff --git a/pkgs/ui/src/app/layout.tsx b/pkgs/ui/src/app/layout.tsx
index 9b2c52f..50de272 100644
--- a/pkgs/ui/src/app/layout.tsx
+++ b/pkgs/ui/src/app/layout.tsx
@@ -47,9 +47,9 @@ export default function RootLayout({
return (
- Clan.lol
+ Service Aware Networks
-
+
@@ -89,7 +89,7 @@ export default function RootLayout({
-
-
-
+ return isLoading ? (
+
+
+
- );
- } else {
- return (
-
- );
- }
+
+ ) : (
+
+ );
}
diff --git a/pkgs/ui/src/app/theme/themes.ts b/pkgs/ui/src/app/theme/themes.ts
index 13e7af1..3860409 100644
--- a/pkgs/ui/src/app/theme/themes.ts
+++ b/pkgs/ui/src/app/theme/themes.ts
@@ -21,10 +21,10 @@ const commonOptions: Partial = {
const commonPalette: Partial = {
primary: {
- main: palette.green50.value,
+ main: palette.blue10.value,
},
secondary: {
- main: palette.green50.value,
+ main: palette.blue20.value,
},
info: {
main: palette.blue50.value,
diff --git a/pkgs/ui/src/components/copy_to_clipboard/index.tsx b/pkgs/ui/src/components/copy_to_clipboard/index.tsx
new file mode 100644
index 0000000..f380dbd
--- /dev/null
+++ b/pkgs/ui/src/components/copy_to_clipboard/index.tsx
@@ -0,0 +1,26 @@
+import { useState } from "react";
+import { Button, Snackbar } from "@mui/material";
+
+const CopyToClipboard = ({ contentRef }: { contentRef: any }) => {
+ const [open, setOpen] = useState(false);
+ const handleClick = () => {
+ if (contentRef.current) {
+ const text = contentRef.current.textContent;
+ navigator.clipboard.writeText(text);
+ setOpen(true);
+ }
+ };
+
+ return (
+ <>
+
+ setOpen(false)}
+ autoHideDuration={2000}
+ message="Copied to clipboard"
+ />
+ >
+ );
+};
+export default CopyToClipboard;
diff --git a/pkgs/ui/src/components/noDataOverlay/index.tsx b/pkgs/ui/src/components/noDataOverlay/index.tsx
index 11867cd..3d76c8e 100644
--- a/pkgs/ui/src/components/noDataOverlay/index.tsx
+++ b/pkgs/ui/src/components/noDataOverlay/index.tsx
@@ -35,7 +35,7 @@ interface NoDataOverlayProps {
export function NoDataOverlay(props: NoDataOverlayProps) {
const { label } = props;
return (
-
+