Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 28 additions & 24 deletions applications/viewer/src/components/JsonContent.svelte
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
<script lang="ts">
let textareaprops = {
id: 'message',
name: 'message',
label: 'Your message',
rows: 30,
cols: 100,
placeholder: 'Leave a comment...',
};
let textareaprops = {
id: 'message',
name: 'message',
label: 'Your message',
rows: 30,
cols: 100,
customStyle: '',
placeholder: 'Leave a comment...'
};

export let text: any = {};
export let rows: number = 30;
export let cols: number = 100;
export let text: any = {};
export let rows: number = 30;
export let cols: number = 100;
export let customStyle: string = '';

function toPrettyJson(obj: any): string {
if (!obj)
return "{}";
return JSON.stringify(obj, null, 2)
}
function toPrettyJson(obj: any): string {
if (!obj) return '{}';
return JSON.stringify(obj, null, 2);
}

textareaprops = {...textareaprops, rows, cols};
textareaprops = { ...textareaprops, rows, cols, customStyle };
</script>

<div class="p-4 w-full w">
<div class="flex flex-col mt-4">
<div class="md:flex-grow">
<textarea {...textareaprops} value={toPrettyJson(text)} class="w-full h-max textarea-info text-sm md:text-base" disabled></textarea>
</div>
</div>
<div class="flex flex-col mt-4">
<div class="md:flex-grow">
<textarea
{...textareaprops}
value={toPrettyJson(text)}
class={`w-full h-max textarea-info text-sm md:text-base ${customStyle}`}
disabled
></textarea>
</div>
</div>
</div>


2 changes: 1 addition & 1 deletion applications/viewer/src/components/TxnContext.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="p-4 w-full">
<div class="flex flex-col mt-4">
<div class="md:flex-grow">
<textarea {...textareaprops} value={toPrettyJson(tx)} class="w-full h-max text-base" disabled></textarea>
<textarea {...textareaprops} value={toPrettyJson(tx)} class="w-full h-max text-base text-gray-100 bg-black" disabled></textarea>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import {goto} from "$app/navigation";
import {page} from "$app/stores";
import {truncate, lovelaceToAda} from "$lib/util";
import { goto } from "$app/navigation";
import { page } from "$app/stores";
import { truncate, lovelaceToAda } from "$lib/util";
import { onMount } from 'svelte';

export let data;
Expand Down Expand Up @@ -122,7 +122,7 @@
</div>
{/if}

<h2 class="text-2xl font-bold text-center text-gray-700 mb-6">Pool Registrations</h2>
<h2 class="text-xl font-bold text-center text-gray-500 mb-6">Pool Registrations</h2>

{#if error}
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert">
Expand Down
2 changes: 1 addition & 1 deletion applications/viewer/src/routes/epoch-stakes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</script>

<div class="container mx-auto px-4 py-8">
<h1 class="text-2xl font-bold text-gray-900 mb-6">Epoch Stakes</h1>
<h1 class="text-2xl font-bold mb-6">Epoch Stakes</h1>

<!-- Search Section -->
<div class="bg-white rounded-lg shadow-md p-6 mb-6">
Expand Down
12 changes: 6 additions & 6 deletions applications/viewer/src/routes/governance/proposals/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import {onMount} from 'svelte';
import {page} from "$app/stores";
import {goto} from '$app/navigation';
import {formatAda} from '$lib/util';
import type {Proposal} from "./types";
import { onMount } from 'svelte';
import { page } from "$app/stores";
import { goto } from '$app/navigation';
import { formatAda } from '$lib/util';
import type { Proposal } from "./types";
import { EyeIcon, CopyIcon, InfoIcon } from 'svelte-feather-icons';
import { env } from '$env/dynamic/public';

Expand Down Expand Up @@ -187,7 +187,7 @@
{/if}

<div class="flex justify-between items-center mb-6">
<h1 class="text-2xl font-bold text-gray-900">Governance Action Proposals</h1>
<h1 class="text-2xl font-bold">Governance Action Proposals</h1>
</div>

{#if error}
Expand Down
Loading
Loading