aboutsummaryrefslogtreecommitdiff
path: root/bin/ak2html
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:27:39 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:27:39 +0200
commitc619e83d4fcc4dadbe07ead7b58b88ca7524fbfb (patch)
tree4a5fe31399ee35a7160c1dd5b08150a90555d08e /bin/ak2html
parent7fba668be61c89f133d821c2e7b46630c346fb43 (diff)
downloadarching-kaos-tools-c619e83d4fcc4dadbe07ead7b58b88ca7524fbfb.tar.gz
arching-kaos-tools-c619e83d4fcc4dadbe07ead7b58b88ca7524fbfb.tar.bz2
arching-kaos-tools-c619e83d4fcc4dadbe07ead7b58b88ca7524fbfb.zip
Spacings adjustment
Diffstat (limited to 'bin/ak2html')
-rwxr-xr-xbin/ak2html44
1 files changed, 23 insertions, 21 deletions
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 "<!DOCTYPE html>"
echo "<html>"
echo "<head>"
-echo " <title>Arching Kaos Chain Data</title>"
+echo " <title>Arching Kaos Chain Data</title>"
echo "</head>"
echo "<body>"
@@ -47,26 +49,26 @@ then
datablock=$(cat $arg | jq -r ".$data")
# Output data in HTML format
- echo " <h1>ZBLOCK: $zblock</h1>"
- echo " <p>BLOCK SIGNATURE: $block_signature</p>"
- echo " <pre>$(ak-ipfs-cat $zblock | jq)</pre>"
- echo " <h2>BLOCK: $block</h2>"
- echo " <pre>$(ak-ipfs-cat $block | jq)</pre>"
- echo " <p>TIMESTAMP: $timestamp</p>"
- echo " <p>DETACH: $detach</p>"
- echo " <pre>$(ak-ipfs-cat $detach)</pre>"
- echo " <p>MODULE: $module</p>"
- echo " <p>ACTION: $action</p>"
- echo " <p>GPG: $gpg</p>"
- echo " <pre>$(ak-ipfs-cat $gpg)</pre>"
- echo " <p>PREVIOUS: $previous</p>"
- echo " <h3>DATA: $data</h3>"
- echo " <pre>$datablock</pre>"
- echo " <p>ipfs: $(echo $datablock | jq -r '.ipfs')</p>"
- echo " <p>detach: $(echo $datablock | jq -r '.detach')</p>"
- echo " <pre>$(ak-ipfs-cat $(echo $datablock | jq -r '.detach'))</pre>"
- echo " <h2>Rendered ZBLOCK</h2>"
- echo " <pre>$(cat $arg | jq)</p>"
+ echo " <h1>ZBLOCK: $zblock</h1>"
+ echo " <p>BLOCK SIGNATURE: $block_signature</p>"
+ echo " <pre>$(ak-ipfs-cat $zblock | jq)</pre>"
+ echo " <h2>BLOCK: $block</h2>"
+ echo " <pre>$(ak-ipfs-cat $block | jq)</pre>"
+ echo " <p>TIMESTAMP: $timestamp</p>"
+ echo " <p>DETACH: $detach</p>"
+ echo " <pre>$(ak-ipfs-cat $detach)</pre>"
+ echo " <p>MODULE: $module</p>"
+ echo " <p>ACTION: $action</p>"
+ echo " <p>GPG: $gpg</p>"
+ echo " <pre>$(ak-ipfs-cat $gpg)</pre>"
+ echo " <p>PREVIOUS: $previous</p>"
+ echo " <h3>DATA: $data</h3>"
+ echo " <pre>$datablock</pre>"
+ echo " <p>ipfs: $(echo $datablock | jq -r '.ipfs')</p>"
+ echo " <p>detach: $(echo $datablock | jq -r '.detach')</p>"
+ echo " <pre>$(ak-ipfs-cat $(echo $datablock | jq -r '.detach'))</pre>"
+ echo " <h2>Rendered ZBLOCK</h2>"
+ echo " <pre>$(cat $arg | jq)</pre>"
fi
#done