From 3bfc1ad67a61e3fa7224e74e570d369ec22debc4 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 25 Dec 2022 18:11:26 +0100 Subject: [PATCH] c'est beau !!! --- 12345.sh | 4 +++- ajouter_media.sh | 2 +- specs/astroport_spec.sh | 7 +++++++ templates/register.html | 4 ++-- tools/template.sh | 6 ++++++ 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/12345.sh b/12345.sh index 4c935c95..d0d166fc 100755 --- a/12345.sh +++ b/12345.sh @@ -99,7 +99,9 @@ while true; do ############### ############### ############### ############### templates/index.http # REPLACE myHOST in http response template (fixing next API meeting point) echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http - template_register >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http + [[ $isLAN ]] \ + && template_register_localhost >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http \ + || template_register >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http sed -i "s~:12345~:${PORT}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http sed -i "s~_SESSIONLNK_~${myIPFS}/ipns/${SESSIONNS}~g" ~/.zen/tmp/coucou/${MOATS}.myHOST.http diff --git a/ajouter_media.sh b/ajouter_media.sh index e76c6016..439068d6 100755 --- a/ajouter_media.sh +++ b/ajouter_media.sh @@ -50,7 +50,7 @@ CHOICE="$3" [[ ${PLAYER} == "" ]] \ && ${MY_PATH}/start.sh \ && espeak "Astroport Empty. Enter your magic email" \ -&& xdg-open "http://astroport.localhost:1234" \ +&& xdg-open "https://qo-op.com" \ && exit 1 PSEUDO=$(cat ~/.zen/game/players/${PLAYER}/.pseudo 2>/dev/null) diff --git a/specs/astroport_spec.sh b/specs/astroport_spec.sh index c301be21..442beacf 100644 --- a/specs/astroport_spec.sh +++ b/specs/astroport_spec.sh @@ -39,5 +39,12 @@ Describe 'Astroport' The status should be success The stderr should equal "" End + It 'does localhost html register page' + When call template_register_localhost + The stdout should include "input name='salt' value=''" + The stdout should include "input name='pepper' value=''" + The status should be success + The stderr should equal "" + End End End diff --git a/templates/register.html b/templates/register.html index 16077729..261e7b79 100644 --- a/templates/register.html +++ b/templates/register.html @@ -51,8 +51,8 @@ html {