diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index bf5bdfa..3c899db 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -27,6 +27,10 @@ jobs: HOST1: ${{ secrets.HOST1 }} USER: ${{ secrets.USER }} run: | + echo "Deploying..." + echo "Removing old files..." ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*' + echo "Copying new files..." scp -r . $USER@$HOST1:/var/www/elia.network/html + echo "Deployment done!" ssh $USER@$HOST1 'rm -r /var/www/elia.network/html/.git*' diff --git a/assets/index.js b/assets/index.js index 3770a1c..0085534 100644 --- a/assets/index.js +++ b/assets/index.js @@ -1,4 +1,4 @@ -// animation speeds cause why not +// animation speeds const TYPING_SPEED = 50; const ERASE_SPEED = 70; const STATUS_UPDATE_INTERVAL = 60000; // 1min updates @@ -84,7 +84,7 @@ function updateClientInfo() { if (!clientInfo) { throw new Error("X-Client-Info header not present"); } - + // this solves the weird encoding issue with µ const cleanClientInfo = clientInfo .replace(/\u00C2\u00B5s/g, "µs") .replace(/µs/g, "µs")