Compare commits

..

6 Commits

Author SHA1 Message Date
5c0696b1bf Fixing asset pipeline
Some checks failed
checks-impure / test (pull_request) Successful in 29s
checks / test (pull_request) Has been cancelled
2023-12-10 18:27:13 +01:00
Erdem-Arslan
2d8ac0cec9 Merge pull request '[Functionality] Request DID Resolution' (#38) from frontend into main
Some checks failed
assets1 / test (push) Failing after 21s
checks / test (push) Successful in 1m18s
checks-impure / test (push) Successful in 29s
Reviewed-on: #38
2023-12-10 00:50:01 +01:00
Arslan, Erdem
88578fe007 fix formatting
All checks were successful
checks-impure / test (pull_request) Successful in 29s
checks / test (pull_request) Successful in 3m19s
2023-12-10 00:45:52 +01:00
Onur Arslan
61261d7ac3 [Functionality] Request DID Resolution
Some checks failed
checks-impure / test (pull_request) Successful in 29s
checks / test (pull_request) Failing after 2m48s
- fixes
2023-12-10 00:30:30 +01:00
Onur Arslan
5262d83da0 [Functionality] Request DID Resolution
Some checks failed
checks-impure / test (pull_request) Successful in 29s
checks / test (pull_request) Failing after 2m50s
- fetch resolution data
- adjustments
2023-12-10 00:15:34 +01:00
fa4fb0356e Merge pull request 'Added resolution endpoint. Added delete endpoints. Added tests for new endpoints' (#37) from Luis-Hebendanz-main into main
All checks were successful
checks-impure / test (push) Successful in 29s
checks / test (push) Successful in 1m12s
assets1 / test (push) Successful in 20s
2023-12-09 21:03:04 +01:00
11 changed files with 27 additions and 29 deletions

0
pkgs/clan-cli/bin/clan Executable file → Normal file
View File

0
pkgs/clan-cli/bin/clan-config Executable file → Normal file
View File

0
pkgs/clan-cli/bin/gen-openapi Executable file → Normal file
View File

0
pkgs/node-packages/generate.sh Executable file → Normal file
View File

0
pkgs/ui/nix/update-ui-assets.sh Executable file → Normal file
View File

View File

@@ -23,22 +23,11 @@ export default function AccessPoint() {
useEffect(() => {
fetch("http://localhost:2979/api/v1/get_repositories", {
method: "GET",
// credentials: 'include',
})
.then((resp) =>
resp.json().then((jsonData) => {
console.log(jsonData);
const transformedData = jsonData.map(
(item: { service_name: any; entity_did: any; network: any }) => ({
entity_name: item.service_name,
entity_did: item.entity_did,
network: item.network,
ip_address: "",
}),
);
setRepositoryData(transformedData);
setRepositoryData(jsonData);
}),
)
.then()

View File

@@ -16,7 +16,6 @@ export default function Client1() {
useEffect(() => {
fetch("http://localhost:2979/api/v1/get_consumers", {
method: "GET",
// credentials: 'include',
})
.then((resp) =>
resp.json().then((jsonData) => {
@@ -29,7 +28,6 @@ export default function Client1() {
fetch("http://localhost:2979/api/v1/get_producers", {
method: "GET",
// credentials: 'include',
})
.then((resp) =>
resp.json().then((jsonData) => {

View File

@@ -16,7 +16,6 @@ export default function Client1() {
useEffect(() => {
fetch("http://localhost:2979/api/v1/get_consumers", {
method: "GET",
// credentials: 'include',
})
.then((resp) =>
resp.json().then((jsonData) => {

View File

@@ -1,14 +1,27 @@
"use client";
import {
DLGResolutionDummyData,
DLGResolutionTableConfig,
DLGSummaryDetails,
} from "@/mock/dlg";
import { DLGResolutionTableConfig, DLGSummaryDetails } from "@/mock/dlg";
import CustomTable from "@/components/table";
import SummaryDetails from "@/components/summary_card";
import { useEffect, useState } from "react";
export default function DLG() {
const [resolutionData, setResolutionData] = useState([]);
useEffect(() => {
fetch("http://localhost:2979/api/v1/get_resolutions", {
method: "GET",
})
.then((resp) =>
resp.json().then((jsonData) => {
console.log(jsonData);
setResolutionData(jsonData);
}),
)
.then()
.catch();
}, []);
return (
<div className="m-10">
<SummaryDetails
@@ -21,7 +34,7 @@ export default function DLG() {
<div>
<h4>DID Resolution View</h4>
<CustomTable
data={DLGResolutionDummyData}
data={resolutionData}
configuration={DLGResolutionTableConfig}
/>
</div>

View File

@@ -12,7 +12,6 @@ export default function Home() {
useEffect(() => {
fetch("http://localhost:2979/api/v1/get_entities", {
method: "GET",
// credentials: 'include',
})
.then((resp) =>
resp.json().then((jsonData) => {

View File

@@ -16,14 +16,14 @@ export const DLGSummaryDetails = [
export const DLGResolutionDummyData = [
{
requester_name: "C1",
requester_DID: "did:sov:test:1234",
DID_resolved: "did:sov:test:1234",
requester_did: "did:sov:test:1234",
resolved_did: "did:sov:test:1234",
timestamp: "2023.11.01 17:05:45",
},
{
requester_name: "C2",
requester_DID: "did:sov:test:5678",
DID_resolved: "did:sov:test:5678",
requester_did: "did:sov:test:5678",
resolved_did: "did:sov:test:5678",
timestamp: "2023.12.01 15:05:50",
},
];
@@ -34,12 +34,12 @@ export const DLGResolutionTableConfig = [
label: "Requester name",
},
{
key: "requester_DID",
key: "requester_did",
label: "Requester DID",
},
{
key: "DID_resolved",
label: "DID resolved",
key: "resolved_did",
label: "Resolved DID",
},
{
key: "timestamp",