From 848eccb35b910c8121d15611547dca8da0b12756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elisi=C3=A1rio=20Couto?= Date: Thu, 18 Sep 2025 23:43:08 +0100 Subject: [PATCH] chore: Format files. --- .github/workflows/release.yml | 6 +++--- frontend/public/browserconfig.xml | 2 +- frontend/public/robots.txt | 2 +- frontend/pwa-assets.config.json | 2 +- frontend/src/components/PWAPrompts.tsx | 6 +++--- frontend/src/hooks/usePWA.ts | 2 +- frontend/src/index.css | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a098ee1..38e3e11 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,19 +143,19 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Install git-cliff run: | wget -qO- https://github.com/orhun/git-cliff/releases/latest/download/git-cliff-2.10.0-x86_64-unknown-linux-gnu.tar.gz | tar xz sudo mv git-cliff-*/git-cliff /usr/local/bin/ - + - name: Generate release notes id: release_notes run: | echo "notes<> $GITHUB_OUTPUT git-cliff --current >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - + - name: Create Release uses: softprops/action-gh-release@v2 with: diff --git a/frontend/public/browserconfig.xml b/frontend/public/browserconfig.xml index d495b9e..e664264 100644 --- a/frontend/public/browserconfig.xml +++ b/frontend/public/browserconfig.xml @@ -6,4 +6,4 @@ #3B82F6 - \ No newline at end of file + diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt index 446726b..b08aee5 100644 --- a/frontend/public/robots.txt +++ b/frontend/public/robots.txt @@ -1,4 +1,4 @@ User-agent: * Allow: / -Sitemap: /sitemap.xml \ No newline at end of file +Sitemap: /sitemap.xml diff --git a/frontend/pwa-assets.config.json b/frontend/pwa-assets.config.json index cf8c4e9..0c98953 100644 --- a/frontend/pwa-assets.config.json +++ b/frontend/pwa-assets.config.json @@ -1,4 +1,4 @@ { "preset": "minimal-2023", "images": ["public/favicon.svg"] -} \ No newline at end of file +} diff --git a/frontend/src/components/PWAPrompts.tsx b/frontend/src/components/PWAPrompts.tsx index 3e66008..86af0ea 100644 --- a/frontend/src/components/PWAPrompts.tsx +++ b/frontend/src/components/PWAPrompts.tsx @@ -33,11 +33,11 @@ export function PWAInstallPrompt({ onInstall }: PWAPromptProps) { try { await deferredPrompt.prompt(); const { outcome } = await deferredPrompt.userChoice; - + if (outcome === "accepted") { onInstall?.(); } - + setDeferredPrompt(null); setShowPrompt(false); } catch (error) { @@ -153,4 +153,4 @@ export function PWAUpdatePrompt({ updateAvailable, onUpdate }: PWAUpdatePromptPr ); -} \ No newline at end of file +} diff --git a/frontend/src/hooks/usePWA.ts b/frontend/src/hooks/usePWA.ts index 621e20e..8fde6ba 100644 --- a/frontend/src/hooks/usePWA.ts +++ b/frontend/src/hooks/usePWA.ts @@ -34,4 +34,4 @@ export function usePWA(): PWAUpdate { updateAvailable, updateSW, }; -} \ No newline at end of file +} diff --git a/frontend/src/index.css b/frontend/src/index.css index 070146d..6536c24 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -29,7 +29,7 @@ --chart-4: 43 74% 66%; --chart-5: 27 87% 67%; --radius: 0.5rem; - + /* iOS Safe Area Support for PWA */ --safe-area-inset-top: env(safe-area-inset-top, 0px); --safe-area-inset-right: env(safe-area-inset-right, 0px);