From c619e83d4fcc4dadbe07ead7b58b88ca7524fbfb Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 2 Mar 2024 05:27:39 +0200 Subject: Spacings adjustment --- bin/ak2html | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'bin') diff --git a/bin/ak2html b/bin/ak2html index d8aafa6..e7c39d8 100755 --- a/bin/ak2html +++ b/bin/ak2html @@ -7,6 +7,7 @@ then echo "Give a zblock's IPFS CID v0 as an argument" exit 1 fi + if [ -n "$1" ] then TEST="$(echo -n "$1" | grep -v '^Qm[A-Za-z0-9]\{44\}$')" @@ -16,6 +17,7 @@ then exit 1 fi fi + ak-enter -l 1 "$1" | jq '.[]' > tempz arg="tempz" @@ -24,7 +26,7 @@ arg="tempz" echo "" echo "" echo "" -echo " Arching Kaos Chain Data" +echo " Arching Kaos Chain Data" echo "" echo "" @@ -47,26 +49,26 @@ then datablock=$(cat $arg | jq -r ".$data") # Output data in HTML format - echo "

ZBLOCK: $zblock

" - echo "

BLOCK SIGNATURE: $block_signature

" - echo "
$(ak-ipfs-cat $zblock | jq)
" - echo "

BLOCK: $block

" - echo "
$(ak-ipfs-cat $block | jq)
" - echo "

TIMESTAMP: $timestamp

" - echo "

DETACH: $detach

" - echo "
$(ak-ipfs-cat $detach)
" - echo "

MODULE: $module

" - echo "

ACTION: $action

" - echo "

GPG: $gpg

" - echo "
$(ak-ipfs-cat $gpg)
" - echo "

PREVIOUS: $previous

" - echo "

DATA: $data

" - echo "
$datablock
" - echo "

ipfs: $(echo $datablock | jq -r '.ipfs')

" - echo "

detach: $(echo $datablock | jq -r '.detach')

" - echo "
$(ak-ipfs-cat $(echo $datablock | jq -r '.detach'))
" - echo "

Rendered ZBLOCK

" - echo "
$(cat $arg | jq)

" + echo "

ZBLOCK: $zblock

" + echo "

BLOCK SIGNATURE: $block_signature

" + echo "
$(ak-ipfs-cat $zblock | jq)
" + echo "

BLOCK: $block

" + echo "
$(ak-ipfs-cat $block | jq)
" + echo "

TIMESTAMP: $timestamp

" + echo "

DETACH: $detach

" + echo "
$(ak-ipfs-cat $detach)
" + echo "

MODULE: $module

" + echo "

ACTION: $action

" + echo "

GPG: $gpg

" + echo "
$(ak-ipfs-cat $gpg)
" + echo "

PREVIOUS: $previous

" + echo "

DATA: $data

" + echo "
$datablock
" + echo "

ipfs: $(echo $datablock | jq -r '.ipfs')

" + echo "

detach: $(echo $datablock | jq -r '.detach')

" + echo "
$(ak-ipfs-cat $(echo $datablock | jq -r '.detach'))
" + echo "

Rendered ZBLOCK

" + echo "
$(cat $arg | jq)
" fi #done -- cgit v1.2.3