From 6b184eefe4d35ca5bb4f4aec5cd8928fa07309c4 Mon Sep 17 00:00:00 2001 From: wistkeylab Date: Mon, 9 Feb 2026 14:32:09 +0700 Subject: [PATCH 1/2] fix issue#134 --- .../viewer/src/components/JsonContent.svelte | 52 +-- .../viewer/src/components/TxnContext.svelte | 2 +- .../pool-registrations/+page.svelte | 8 +- .../src/routes/epoch-stakes/+page.svelte | 2 +- .../routes/governance/proposals/+page.svelte | 12 +- .../src/routes/transactions/[id]/+page.svelte | 355 +++++++++++------- 6 files changed, 262 insertions(+), 169 deletions(-) diff --git a/applications/viewer/src/components/JsonContent.svelte b/applications/viewer/src/components/JsonContent.svelte index d10524b9..84de71e9 100644 --- a/applications/viewer/src/components/JsonContent.svelte +++ b/applications/viewer/src/components/JsonContent.svelte @@ -1,32 +1,36 @@
-
-
- -
-
+
+
+ +
+
- - diff --git a/applications/viewer/src/components/TxnContext.svelte b/applications/viewer/src/components/TxnContext.svelte index 7b819eb3..79043c93 100644 --- a/applications/viewer/src/components/TxnContext.svelte +++ b/applications/viewer/src/components/TxnContext.svelte @@ -18,7 +18,7 @@
- +
diff --git a/applications/viewer/src/routes/certificates/pool-registrations/+page.svelte b/applications/viewer/src/routes/certificates/pool-registrations/+page.svelte index 3bb4edef..4da9e9f3 100644 --- a/applications/viewer/src/routes/certificates/pool-registrations/+page.svelte +++ b/applications/viewer/src/routes/certificates/pool-registrations/+page.svelte @@ -1,7 +1,7 @@
-

Epoch Stakes

+

Epoch Stakes

diff --git a/applications/viewer/src/routes/governance/proposals/+page.svelte b/applications/viewer/src/routes/governance/proposals/+page.svelte index d9abe4ef..10284060 100644 --- a/applications/viewer/src/routes/governance/proposals/+page.svelte +++ b/applications/viewer/src/routes/governance/proposals/+page.svelte @@ -1,9 +1,9 @@ -
-
-
-
-
-
- Transaction Hash -
-
-

- {tx.hash} -

-
-
-
-
- Block/Slot -
-
-

- {tx.block_height} / {tx.slot} -

-
-
-
-
- TTL -
-
-

- {tx.ttl} -

-
-
-
-
-
-
- Fee (Ada) -
-
-

- {lovelaceToAda(tx.fees, 4)} -

-
-
-
-
- Total Outputs (Ada) -
-
-

- {lovelaceToAda(tx.total_output, 2)} -

-
-
-
-
-
-
+
+
+
+
+

+ Transaction Hash +

+
+ {tx.hash} + +
+
+ +
+
+
+ Block / Slot +
+
+ + {tx.block_height} + + / + {tx.slot} +
+
+ +
+
Fee
+
+ {lovelaceToAda(tx.fees, 4)} ADA +
+
+ +
+
+ Total Output +
+
+ {lovelaceToAda(tx.total_output, 2)} ADA +
+
+ +
+
TTL
+
{tx.ttl}
+
+
+
+ +
+
+ + + + + -
-
-
- - - - - - -
- - {#if activeTabIndex == INPUT_TAB} -
- -
- {/if} - - {#if activeTabIndex == CONTRACT_TAB} -
- {#each contracts as contract, index} -
-
- -
- {/each} -
- {/if} - - {#if activeTabIndex == COLLATERAL_TAB} -
- -
- {/if} - - {#if activeTabIndex == METADATA_TAB} -
- -
- {/if} - - {#if activeTabIndex == REFERENCE_INPUT_TAB} -
- -
- {/if} - - {#if activeTabIndex == JSON_TAB} -
- -
- {/if} -
+ + + + + +
+
+ +
+ {#if activeTabIndex == INPUT_TAB} +
+ +
+ {/if} + + {#if activeTabIndex == CONTRACT_TAB} +
+ {#if contracts.length === 0} +
+ No contracts found in this transaction. +
+ {:else} + {#each contracts as contract, index} +
+ {#if index > 0}
{/if} + +
+ {/each} + {/if} +
+ {/if} + + {#if activeTabIndex == COLLATERAL_TAB} +
+ +
+ {/if} + + {#if activeTabIndex == METADATA_TAB} +
+ {#if !metadata} +
No metadata available.
+ {:else} + + {/if} +
+ {/if} + + {#if activeTabIndex == REFERENCE_INPUT_TAB} +
+ +
+ {/if} + + {#if activeTabIndex == JSON_TAB} +
+ +
+ {/if} +
+
+ + From 3c0359d016c87212c3780f8efc052c120c686aef Mon Sep 17 00:00:00 2001 From: wistkeylab Date: Tue, 10 Feb 2026 14:46:14 +0700 Subject: [PATCH 2/2] fix update on light mode --- applications/viewer/src/components/JsonContent.svelte | 8 ++++---- applications/viewer/src/components/TxnContext.svelte | 2 +- .../viewer/src/routes/transactions/[id]/+page.svelte | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/viewer/src/components/JsonContent.svelte b/applications/viewer/src/components/JsonContent.svelte index 84de71e9..3bee1b28 100644 --- a/applications/viewer/src/components/JsonContent.svelte +++ b/applications/viewer/src/components/JsonContent.svelte @@ -5,21 +5,21 @@ label: 'Your message', rows: 30, cols: 100, - background: '', + customStyle: '', placeholder: 'Leave a comment...' }; export let text: any = {}; export let rows: number = 30; export let cols: number = 100; - export let background: string = ''; + export let customStyle: string = ''; function toPrettyJson(obj: any): string { if (!obj) return '{}'; return JSON.stringify(obj, null, 2); } - textareaprops = { ...textareaprops, rows, cols, background }; + textareaprops = { ...textareaprops, rows, cols, customStyle };
@@ -28,7 +28,7 @@
diff --git a/applications/viewer/src/components/TxnContext.svelte b/applications/viewer/src/components/TxnContext.svelte index 79043c93..b390c6af 100644 --- a/applications/viewer/src/components/TxnContext.svelte +++ b/applications/viewer/src/components/TxnContext.svelte @@ -18,7 +18,7 @@
- +
diff --git a/applications/viewer/src/routes/transactions/[id]/+page.svelte b/applications/viewer/src/routes/transactions/[id]/+page.svelte index dc1102ec..cc767fbd 100644 --- a/applications/viewer/src/routes/transactions/[id]/+page.svelte +++ b/applications/viewer/src/routes/transactions/[id]/+page.svelte @@ -194,7 +194,7 @@ {#if !metadata}
No metadata available.
{:else} - + {/if}
{/if}