forked from axiom-team/astrXbian
index.html et FRIENDS/index.html du WIKI des Amis
This commit is contained in:
parent
c7fd3520d8
commit
cea9463a88
|
@ -105,9 +105,12 @@ echo "####################################################
|
||||||
Customisation TiddlyWiki"
|
Customisation TiddlyWiki"
|
||||||
[[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID} && cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
|
[[ ! -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html ]] && mkdir -p ~/.zen/ipfs/.${IPFSNODEID} && cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
|
||||||
|
|
||||||
|
# cp ~/.zen/astrXbian/.install/templates/tiddlywiki/index.html ~/.zen/ipfs/.${IPFSNODEID}/index.html
|
||||||
|
|
||||||
zuid="$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid)"
|
zuid="$(cat ~/.zen/ipfs/.$IPFSNODEID/_xbian.zuid)"
|
||||||
wiki="/home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html"
|
wiki="/home/$YOU/.zen/ipfs/.$IPFSNODEID/index.html"
|
||||||
|
|
||||||
|
sed -i "s/GettingStarted/$zuid/g" $wiki ## (star) pseudo (score)
|
||||||
sed -i "s/Moa/$zuid/g" $wiki ## (star) pseudo (score)
|
sed -i "s/Moa/$zuid/g" $wiki ## (star) pseudo (score)
|
||||||
GTITLE="$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title | sed 's/\ /-/g')"
|
GTITLE="$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title | sed 's/\ /-/g')"
|
||||||
sed -i "s/$zuid/$GTITLE/g" $wiki ## (star) pseudo (score)
|
sed -i "s/$zuid/$GTITLE/g" $wiki ## (star) pseudo (score)
|
||||||
|
|
|
@ -239,19 +239,41 @@ done
|
||||||
########################################################################
|
########################################################################
|
||||||
echo "******************************************************************"
|
echo "******************************************************************"
|
||||||
echo "### PUBLISH tiddlywiki WALL OF FRIENDS ###"
|
echo "### PUBLISH tiddlywiki WALL OF FRIENDS ###"
|
||||||
echo "<html><body>" > ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
echo "<html>
|
||||||
for wiki in $(ls ~/.zen/ipfs_swarm/.12D*/index.html 2>/dev/null); do
|
<head>
|
||||||
|
<title>WIKI des Amis de ${IPFSNODEID}</title>
|
||||||
|
<link rel='stylesheet' href='https://tube.copylaradio.com/crowdbunker.css' type='text/css' />
|
||||||
|
<link rel='icon' type='image/png' href='https://tube.copylaradio.com/astrocrowdbunker.png' />
|
||||||
|
</head>
|
||||||
|
<body><header>
|
||||||
|
<h1>
|
||||||
|
<a href='https://astroport.com'><span>Astroport</span> × <span>WIKI des Amis</span></a>
|
||||||
|
</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<ul id='videosList'>" > ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
||||||
|
for wiki in $(ls ~/.zen/ipfs_swarm/.12D*/index.html | grep -Ev "${IPFSNODEID}" 2>/dev/null); do
|
||||||
ipfsnodeid=$(echo $wiki | cut -d '.' -f 3- | cut -d '/' -f 1)
|
ipfsnodeid=$(echo $wiki | cut -d '.' -f 3- | cut -d '/' -f 1)
|
||||||
whoisg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid)
|
whoisg1=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid)
|
||||||
|
echo "<li>
|
||||||
echo "<iframe id=\"$ipfsnodeid\"
|
<a href=\"https://oasis.astroport.com/ipns/$ipfsnodeid/.$ipfsnodeid/index.html\">
|
||||||
title='tiddlywiki $whoisg1'
|
<img src=\"https://oasis.astroport.com/ipns/$ipfsnodeid/.$ipfsnodeid/QR.png\" alt=\"$whoisg1\" />
|
||||||
width='600'
|
</a>
|
||||||
src=\"http://127.0.0.1:8181/ipns/$ipfsnodeid/.$ipfsnodeid/index.html\">
|
<p class='video-title'>
|
||||||
</iframe>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
<a href=\"https://oasis.astroport.com/ipns/$ipfsnodeid/.$ipfsnodeid/index.html\">
|
||||||
|
\"$ipfsnodeid\"
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<iframe id=\"$ipfsnodeid\"
|
||||||
|
title='tiddlywiki $whoisg1'
|
||||||
|
width='600'
|
||||||
|
src=\"http://127.0.0.1:8181/ipns/$ipfsnodeid/.$ipfsnodeid/index.html\">
|
||||||
|
</iframe>
|
||||||
|
</li>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "</body></html>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
echo "</main></body></html>" >> ~/.zen/ipfs/.${IPFSNODEID}/FRIENDS/index.html
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# ACTIVATE WORDPRESS CHANNEL ## TODO DEBUG (creates WP duplicates)
|
# ACTIVATE WORDPRESS CHANNEL ## TODO DEBUG (creates WP duplicates)
|
||||||
|
|
Loading…
Reference in New Issue