fred 2024-02-23 23:25:34 +01:00
parent 47211ca4b1
commit d748cbce13
6 changed files with 51 additions and 2 deletions

1
.chain Normal file
View File

@ -0,0 +1 @@
QmSuSjodhgqpfwkyWorh6ikJ2KCrN93JbwERwCYWcYjvQd

View File

@ -0,0 +1 @@
QmP5oq5MZ3XeP7mHa1XN9kedURBwq1EapVRbJMP87jir8t

1
.moats Normal file
View File

@ -0,0 +1 @@
202402232207027815

View File

@ -17,3 +17,4 @@ OSM2IPFS gives a "partition table" to IPFS and a 5 layer information grid over o
powered by [Astroport.ONE](https://github.com/papiche/Astroport.ONE) : Gateway & Blockchain API engine
Enjoy Life, extend ditributed data storage system
/ipfs/QmP5oq5MZ3XeP7mHa1XN9kedURBwq1EapVRbJMP87jir8t

View File

@ -159,7 +159,7 @@
// Add an event listener to the button
button.addEventListener('click', function() {
window.open( '/ipns/'+ sectorIPNS, "AstroTab");
window.open( '/ipns/'+ sectorIPNS, "_blank");
});
// Append the button to the button container
@ -234,7 +234,7 @@ if (deg <= 0.01) {
const button = document.createElement('button');
button.textContent = 'Enter UPlanet';
button.textContent = 'ENTER';
button.style.width = '100%';
button.style.height = '100px'; // Customize the button height
button.style.backgroundColor = '#0074d9';

45
ipfs.microledger.me.sh Executable file
View File

@ -0,0 +1,45 @@
#!/bin/bash
################################################################################
# Author: Fred (support@qo-op.com)
# 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
############################################################### ipfs
## __ __ ___ ____ ____ ___ _ _____ ____ ____ _____ ____
## | \/ |_ _/ ___| _ \ / _ \ | | | ____| _ \ / ___| ____| _ \
## | |\/| || | | | |_) | | | | | | | _| | | | | | _| _| | |_) |
## | | | || | |___| _ <| |_| | | |___| |___| |_| | |_| | |___| _ <
## |_| |_|___\____|_| \_\\___/ |_____|_____|____/ \____|_____|_| \_\ me
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
OLD=$(cat ${MY_PATH}/.chain)
[[ -z ${OLD} ]] \
&& GENESYS=$(ipfs add -rwHq ${MY_PATH}/* | tail -n 1) \
&& echo ${GENESYS} > ${MY_PATH}/.chain \
&& echo /ipfs/${GENESYS} >> ${MY_PATH}/README.md \
&& echo "CHAIN BLOC ZERO : ${GENESYS}" \
## TIMESTAMP SHIFTING
cp ${MY_PATH}/.chain \
${MY_PATH}/.chain.$(cat ${MY_PATH}/.moats)
TW=$(ipfs add -rwHq ${MY_PATH}/* | tail -n 1)
[[ ${TW} == ${OLD} ]] && echo "No change." && exit 1
echo ${TW} > ${MY_PATH}/.chain
echo ${MOATS} > ${MY_PATH}/.moats
sed -i "s~${OLD}~${TW}~g" ${MY_PATH}/README.md
echo '# MAKE YOUR GIT IPFS LINKING
git add .
git commit -m "Try ME : https://ipfs.copylaradio.com/ipfs/'${TW}'"
git push
'
exit 0