forked from STI/Astroport.ONE
UPlanet Zine generator & UPlanet swarm.key forge wish
This commit is contained in:
parent
c50afc49b6
commit
2bcaaf95bc
16
ASTROBOT/G1NewUplanet.sh
Normal file
16
ASTROBOT/G1NewUplanet.sh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
########################################################################
|
||||
# Version: 0.1
|
||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
||||
########################################################################
|
||||
MY_PATH="`dirname \"$0\"`" # relative
|
||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
||||
ME="${0##*/}"
|
||||
|
||||
. "${MY_PATH}/../tools/my.sh"
|
||||
|
||||
## IT MAKES WISH WALLET MASTER OF NEW UPLANET
|
||||
## IT MAKES swarm.key as UPLANETNAME
|
||||
## SAME WISH BE CONNECTED TO THE PRIVATE IPFS MADE FIRST
|
||||
|
||||
exit 0
|
@ -151,7 +151,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
--output ~/.zen/tmp/${MOATS} \
|
||||
--render '.' 'GPS.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'GPS' ## GPS Tiddler
|
||||
[[ ! -s ~/.zen/tmp/${MOATS}/GPS.json || $(cat ~/.zen/tmp/${MOATS}/GPS.json) == "[]" ]] \
|
||||
&& echo "${PLAYER} GPS : BAD TW (☓‿‿☓) " && continue
|
||||
&& msg="${PLAYER} GPS : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)"
|
||||
|
||||
#############################################################
|
||||
## CHECK MadeInZion
|
||||
@ -160,7 +160,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
--render '.' 'MadeInZion.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'MadeInZion' ## MadeInZion Tiddler
|
||||
|
||||
[[ ! -s ~/.zen/tmp/${MOATS}/MadeInZion.json || $(cat ~/.zen/tmp/${MOATS}/MadeInZion.json) == "[]" ]] \
|
||||
&& echo "${PLAYER} MadeInZion : BAD TW (☓‿‿☓) " && continue
|
||||
&& msg="${PLAYER} MadeInZion : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)"
|
||||
|
||||
player=$(cat ~/.zen/tmp/${MOATS}/MadeInZion.json | jq -r .[].player)
|
||||
#############################################################
|
||||
@ -176,12 +176,6 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
--render '.' 'TWsign.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '$:/config/NewTiddler/Tags' ## $:/config/NewTiddler/Tags Tiddler
|
||||
signature=$(cat ~/.zen/tmp/${MOATS}/TWsign.json | jq -r .[].text)
|
||||
echo "${player} SIGNATURE = $signature"
|
||||
############################################################ BAD TW SIGNATURE
|
||||
[[ ${player} != ${PLAYER} || ${PLAYER} != ${signature} ]] \
|
||||
&& echo "> (☓‿‿☓) BAD PLAYER=$player in TW (☓‿‿☓)" \
|
||||
&& ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ALL" \
|
||||
&& continue \
|
||||
|| echo "${PLAYER} OFFICIAL TW - (⌐■_■) -"
|
||||
|
||||
#############################################################
|
||||
## CHECK "Astroport" TIDDLER
|
||||
@ -189,7 +183,14 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
--output ~/.zen/tmp/${MOATS} \
|
||||
--render '.' 'Astroport.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' 'Astroport' ## Astroport Tiddler
|
||||
[[ ! -s ~/.zen/tmp/${MOATS}/Astroport.json || $(cat ~/.zen/tmp/${MOATS}/Astroport.json) == "[]" ]] \
|
||||
&& echo "${PLAYER} Astroport : BAD TW (☓‿‿☓) " && continue
|
||||
&& msg="${PLAYER} Astroport : BAD TW (☓‿‿☓) " && err="(☓‿‿☓)"
|
||||
|
||||
############################################################ BAD TW SIGNATURE
|
||||
[[ ( ${player} != ${PLAYER} || ${PLAYER} != ${signature} || "${err}" == "(☓‿‿☓)" ) && ${PLAYER} != ${CURRENT} ]] \
|
||||
&& echo "> (☓‿‿☓) BAD PLAYER=$player in TW (☓‿‿☓) $msg" \
|
||||
&& ${MY_PATH}/PLAYER.unplug.sh "${HOME}/.zen/game/players/${PLAYER}/ipfs/moa/index.html" "${PLAYER}" "ALL" \
|
||||
&& continue \
|
||||
|| echo "${PLAYER} OFFICIAL TW - (⌐■_■) -"
|
||||
|
||||
BIRTHDATE=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].birthdate)
|
||||
ASTROPORT=$(cat ~/.zen/tmp/${MOATS}/Astroport.json | jq -r .[].astroport) ## ZenStation IPNS address
|
||||
@ -322,7 +323,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
fi
|
||||
|
||||
( ## REFRESH LOCAL PLAYER CACHE with FRIEND ACTUAL TW (&) will be used TOMORROW
|
||||
ipfs --timeout 480s cat ${FTW} > ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html
|
||||
ipfs --timeout 480s cat --progress=false ${FTW} > ~/.zen/game/players/${PLAYER}/FRIENDS/${FPLAYER}/index.html
|
||||
) &
|
||||
|
||||
## CHECK ALREADY IN ${FPLAYER^^} IHASH
|
||||
@ -357,7 +358,7 @@ for PLAYER in ${PLAYERONE[@]}; do
|
||||
&& rm ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html \
|
||||
|| echo "ERROR - CANNOT CREATE TW NEWINDEX - ERROR"
|
||||
|
||||
if [[ $ORIGINH != $INSIDEH ]]; then
|
||||
if [[ $ORIGINH != $INSIDEH && $ORIGINH != "" ]]; then
|
||||
echo "ORIGINH Update"
|
||||
rm -f ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/newindex.html
|
||||
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
|
||||
|
@ -39,7 +39,7 @@ YOU=$(myIpfsApi);
|
||||
#~ TWMODEL="/ipfs/bafybeid7xwuqkgyiffehs77x3wky3dghjncxepr5ln6dewapgvbwrqi7n4"
|
||||
#~ # ipfs cat $TWMODEL > templates/twdefault.html
|
||||
TWUPLANET="/ipfs/bafybeigpwapdih24vnakummoyj6vodxiem4i6ezp5hxa35yt3paxpqz53y" ## WITH LIGHTBEAMS SAVER
|
||||
TWUPLANET="/ipfs/bafybeigynmmvvtsmdtfegddhtjx4cwrk7vewohpoi7hc6xhaqu36lyqyxu" ## WITH IPFS SAVER
|
||||
TWUPLANET="/ipfs/bafybeicku4z2diasnkc4tch45bcbuvkfqhsic7747uuecwoullts5ehwk4" ## WITH IPFS SAVER
|
||||
# ipfs cat $TWUPLANET > templates/twuplanet.html
|
||||
################################################################################
|
||||
|
||||
|
45
templates/UPlanetZine/sans titre
Normal file
45
templates/UPlanetZine/sans titre
Normal file
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- TODO: Update the language if you're not writing in English! Hey, maybe remix this project and translate the instructions for other people? -->
|
||||
<html lang="fr">
|
||||
<!-- TODO: Add a title for your zine -->
|
||||
<title>[Astroport Pass Card]</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<!-- TODO: Update the icon image if you want to get fancy! -->
|
||||
<link rel="icon" type="image/png" href="https://cdn.glitch.com/c10b2617-5888-415b-b574-42e2ab8f3484%2Fzine-machine-32.png" />
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
|
||||
<!-- TODO: Add a description for your zine -->
|
||||
<meta name="Description" content="[Add your zine description]" />
|
||||
<!-- TODO: Update the theme color to match if you change the styles -->
|
||||
<meta name="theme-color" content="#741b47" />
|
||||
|
||||
<main class="zine">
|
||||
<header class="zine-page page-1">
|
||||
<!-- TODO: Your front cover content goes here, so you probably want a good title and maybe some kind of image -->
|
||||
</header>
|
||||
<section class="zine-page page-2">
|
||||
<!-- TODO: Page 2 content goes here. This is also the inside of the front cover, so you can be minimal or fit in as much content as possible! -->
|
||||
</section>
|
||||
<section class="zine-page page-3">
|
||||
<!-- TODO: Page 3 content here -->
|
||||
</section>
|
||||
<section class="zine-page page-4">
|
||||
<!-- TODO: Page 4 - that's the halfway point, you're nearly there! -->
|
||||
</section>
|
||||
<section class="zine-page page-5">
|
||||
<!-- TODO: You guessed it, page 5 content now -->
|
||||
</section>
|
||||
<section class="zine-page page-6">
|
||||
<!-- TODO: Page 6, this is the last "page" but you can still keep going -->
|
||||
</section>
|
||||
<section class="zine-page page-7">
|
||||
<!-- TODO: Page 7, this is the inside of the back cover -->
|
||||
</section>
|
||||
<footer class="zine-page page-8">
|
||||
<!-- TODO: You made it! Page 8, the back cover. Feel free to use this for attributions. Hey, let me know if you want a review. I'll give you ★★★★★ and an amazing quote -->
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
<!-- I know it says you need a closing </html> tag, but you actually don't! Feel free to add one though if it seems cleaner -->
|
Loading…
Reference in New Issue
Block a user