From 099d9df78d1eda6c3cd606fa7653ed01752a2192 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Thu, 31 Oct 2024 16:49:47 -0400 Subject: [PATCH] chore: update sdk --- package-lock.json | 8 ++++---- package.json | 2 +- src/views/indexView.ts | 27 +++++++++++++++++++++------ 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4d14631..7c95696 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", - "@dignetwork/dig-sdk": "^0.0.1-alpha.180", + "@dignetwork/dig-sdk": "^0.0.1-alpha.181", "add": "^2.0.6", "cheerio": "^1.0.0", "cookie-parser": "^1.4.6", @@ -247,9 +247,9 @@ } }, "node_modules/@dignetwork/dig-sdk": { - "version": "0.0.1-alpha.180", - "resolved": "https://registry.npmjs.org/@dignetwork/dig-sdk/-/dig-sdk-0.0.1-alpha.180.tgz", - "integrity": "sha512-Uzntb7KzhkAauFyRlsMMhSw5NH83x2RjY/jM2dtsT/kpobG+YhQc1+cvIjTLtQVGOewAdHvtfS4LVYfkEXZVIw==", + "version": "0.0.1-alpha.181", + "resolved": "https://registry.npmjs.org/@dignetwork/dig-sdk/-/dig-sdk-0.0.1-alpha.181.tgz", + "integrity": "sha512-aN2tqowKqiDgk9kcri2vgzf1gNXcVjG4kPYq7wrMuZbNTJeuRe8+y224AXn/p9Myz+lSAxys+An3mtj1FjdO1A==", "dependencies": { "@dignetwork/datalayer-driver": "^0.1.29", "@dignetwork/dig-sdk": "^0.0.1-alpha.158", diff --git a/package.json b/package.json index 0fd69eb..d01d0d9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ ], "dependencies": { "@dignetwork/datalayer-driver": "^0.1.28", - "@dignetwork/dig-sdk": "^0.0.1-alpha.180", + "@dignetwork/dig-sdk": "^0.0.1-alpha.181", "add": "^2.0.6", "cheerio": "^1.0.0", "cookie-parser": "^1.4.6", diff --git a/src/views/indexView.ts b/src/views/indexView.ts index 9c0304f..9219cdb 100644 --- a/src/views/indexView.ts +++ b/src/views/indexView.ts @@ -7,7 +7,6 @@ export const renderIndexView = ( formattedBytes: string, host: string ) => { - const urn = udi.toUrn(); const isSyncing = !state; // Check if state is null const toastId = `toast-${urn}`; // Unique ID for the toast @@ -17,11 +16,19 @@ export const renderIndexView = (

- ${isSyncing ? "Syncing..." : (state.metadata.label || "No Label")} - ${isSyncing ? '' : ""} + ${isSyncing ? "Syncing..." : state.metadata.label || "No Label"} + ${ + isSyncing + ? '' + : "" + }

- ${isSyncing ? "Syncing data, please wait..." : (state.metadata.description || "No Description Available")} + ${ + isSyncing + ? "Syncing data, please wait..." + : state.metadata.description || "No Description Available" + }

Store: ${urn} @@ -30,14 +37,22 @@ export const renderIndexView = ( - View as Webapp +

+ View as Webapp +

${isSyncing ? "Syncing..." : formattedBytes} - ${isSyncing ? '' : ""} + ${ + isSyncing + ? '' + : "" + }