From 7ba6fc7ac7842a2f8192a46bc1c99b3a4bbf520b Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 5 Nov 2024 15:58:00 +0100 Subject: [PATCH] New comments and actions --- .gitea/workflows/deploy.yaml | 4 ++++ assets/index.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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")