diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index f027b8c..1ec8c89 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -48,30 +48,30 @@ steps: - name: Send Docker Image Build Status Notification (success) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Docker image build success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Docker image build success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Docker image build + - Docker image build when: - - status: [ success ] + - status: [success] - name: Send Docker Image Build Status Notification (failure) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Docker image build failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Docker image build failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Docker image build + - Docker image build when: - - status: [ failure ] + - status: [failure] - name: Push to registry image: docker:latest @@ -103,30 +103,30 @@ steps: - name: Send Push to Registry Status Notification (success) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Push to registry success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Push to registry success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Push to registry + - Push to registry when: - - status: [ success ] + - status: [success] - name: Send Push to Registry Status Notification (failure) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Push to registry failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Push to registry failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Push to registry + - Push to registry when: - - status: [ failure ] + - status: [failure] - name: Trigger Portainer stack redeploy image: curlimages/curl:latest @@ -151,27 +151,27 @@ steps: - name: Send Deploy Status Notification (success) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Production Deploy success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Production Deploy success 🎉"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Trigger Portainer stack redeploy + - Trigger Portainer stack redeploy when: - - status: [ success ] + - status: [success] - name: Send Deploy Status Notification (failure) image: curlimages/curl environment: - DISCORD_WEBHOOK_URL: - from_secret: discord_webhook_url + DISCORD_WEBHOOK_URL: + from_secret: discord_webhook_url commands: - - | - BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Production Deploy failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") - curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" + - | + BODY=$(printf '{"username":"WoodpeckerBot","content":"[%s - Build #%s] Production Deploy failure 💩"}' "$CI_REPO" "$CI_PIPELINE_NUMBER") + curl -sS -X POST -H "Content-Type: application/json" -d "$BODY" "$DISCORD_WEBHOOK_URL" depends_on: - - Trigger Portainer stack redeploy + - Trigger Portainer stack redeploy when: - - status: [ failure ] + - status: [failure] diff --git a/scripts/critical-css.mjs b/scripts/critical-css.mjs index 1a57388..6f7ef3c 100644 --- a/scripts/critical-css.mjs +++ b/scripts/critical-css.mjs @@ -32,9 +32,9 @@ try { html, inline: { strategy: 'default' }, // preload in head + link at end of body (no inline JS, CSP-safe) dimensions: [ - { width: 375, height: 667 }, // mobile (iPhone SE) - { width: 768, height: 1024 }, // tablet - { width: 1280, height: 720 }, // desktop + { width: 375, height: 667 }, // mobile (iPhone SE) + { width: 768, height: 1024 }, // tablet + { width: 1280, height: 720 }, // desktop ], penthouse: { timeout: 30000 }, }); diff --git a/src/lib/components/SharePanel.svelte b/src/lib/components/SharePanel.svelte index b1e32ef..b78fbdc 100644 --- a/src/lib/components/SharePanel.svelte +++ b/src/lib/components/SharePanel.svelte @@ -50,7 +50,7 @@ {#if qrCodeImage}
QR code for this page = (): LayoutServerDataO location: siteDef?.location, person: siteDef?.person, linksHeading: siteDef?.linksHeading, - showContact: siteDef?.showContact, contactLinks: siteDef?.contactLinks, qrCodeImage: siteDef?.qrCodeImage ?? undefined, }; diff --git a/static/assets/images/qr-mifi-bio.svg b/static/assets/images/qr-mifi-bio.svg new file mode 100644 index 0000000..416c193 --- /dev/null +++ b/static/assets/images/qr-mifi-bio.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/static/assets/images/qr-mifi-dev.svg b/static/assets/images/qr-mifi-dev.svg new file mode 100644 index 0000000..f7a3e4c --- /dev/null +++ b/static/assets/images/qr-mifi-dev.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file