diff --git a/frontend/index.html b/frontend/index.html index 28e68a38..fe67e71d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,6 +5,20 @@ + + + + + + + + + + + + + + diff --git a/frontend/package.json b/frontend/package.json index d1ba49a6..d8dba0d0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -75,6 +75,8 @@ "vite": "^7.1.7", "vite-plugin-pwa": "^1.2.0", "vitest": "^3.2.4", + "workbox-core": "^7.4.0", + "workbox-window": "^7.4.0", "workbox-precaching": "^7.4.0" } } diff --git a/frontend/public/splash/splash-1080x2340.png b/frontend/public/splash/splash-1080x2340.png new file mode 100644 index 00000000..da296ffa Binary files /dev/null and b/frontend/public/splash/splash-1080x2340.png differ diff --git a/frontend/public/splash/splash-1125x2436.png b/frontend/public/splash/splash-1125x2436.png new file mode 100644 index 00000000..945fa3a9 Binary files /dev/null and b/frontend/public/splash/splash-1125x2436.png differ diff --git a/frontend/public/splash/splash-1170x2532.png b/frontend/public/splash/splash-1170x2532.png new file mode 100644 index 00000000..7e6e1c64 Binary files /dev/null and b/frontend/public/splash/splash-1170x2532.png differ diff --git a/frontend/public/splash/splash-1179x2556.png b/frontend/public/splash/splash-1179x2556.png new file mode 100644 index 00000000..fbb6b3d8 Binary files /dev/null and b/frontend/public/splash/splash-1179x2556.png differ diff --git a/frontend/public/splash/splash-1242x2208.png b/frontend/public/splash/splash-1242x2208.png new file mode 100644 index 00000000..57416d37 Binary files /dev/null and b/frontend/public/splash/splash-1242x2208.png differ diff --git a/frontend/public/splash/splash-1242x2688.png b/frontend/public/splash/splash-1242x2688.png new file mode 100644 index 00000000..18fab484 Binary files /dev/null and b/frontend/public/splash/splash-1242x2688.png differ diff --git a/frontend/public/splash/splash-1284x2778.png b/frontend/public/splash/splash-1284x2778.png new file mode 100644 index 00000000..4caf0f95 Binary files /dev/null and b/frontend/public/splash/splash-1284x2778.png differ diff --git a/frontend/public/splash/splash-1290x2796.png b/frontend/public/splash/splash-1290x2796.png new file mode 100644 index 00000000..c4a4dfbd Binary files /dev/null and b/frontend/public/splash/splash-1290x2796.png differ diff --git a/frontend/public/splash/splash-1620x2160.png b/frontend/public/splash/splash-1620x2160.png new file mode 100644 index 00000000..117bb0e7 Binary files /dev/null and b/frontend/public/splash/splash-1620x2160.png differ diff --git a/frontend/public/splash/splash-1640x2360.png b/frontend/public/splash/splash-1640x2360.png new file mode 100644 index 00000000..1c31f816 Binary files /dev/null and b/frontend/public/splash/splash-1640x2360.png differ diff --git a/frontend/public/splash/splash-1668x2388.png b/frontend/public/splash/splash-1668x2388.png new file mode 100644 index 00000000..55f62d09 Binary files /dev/null and b/frontend/public/splash/splash-1668x2388.png differ diff --git a/frontend/public/splash/splash-2048x2732.png b/frontend/public/splash/splash-2048x2732.png new file mode 100644 index 00000000..74ec9402 Binary files /dev/null and b/frontend/public/splash/splash-2048x2732.png differ diff --git a/frontend/public/splash/splash-750x1334.png b/frontend/public/splash/splash-750x1334.png new file mode 100644 index 00000000..3afd0311 Binary files /dev/null and b/frontend/public/splash/splash-750x1334.png differ diff --git a/frontend/public/splash/splash-828x1792.png b/frontend/public/splash/splash-828x1792.png new file mode 100644 index 00000000..28cc47be Binary files /dev/null and b/frontend/public/splash/splash-828x1792.png differ diff --git a/frontend/src/lib/serviceWorker.ts b/frontend/src/lib/serviceWorker.ts index 972b9d39..c29da45a 100644 --- a/frontend/src/lib/serviceWorker.ts +++ b/frontend/src/lib/serviceWorker.ts @@ -1,18 +1,10 @@ -export async function registerServiceWorker(): Promise { - if (!("serviceWorker" in navigator)) return null; +export function registerServiceWorker(): void { + if (!("serviceWorker" in navigator)) return; - try { - const registration = await navigator.serviceWorker.register("/sw.js", { - scope: "/", - type: "module", - }); - - registration.update().catch(() => {}); - - return registration; - } catch { - return null; - } + navigator.serviceWorker + .register("/sw.js", { scope: "/", type: "module" }) + .then((registration) => registration.update()) + .catch(() => {}); } export async function getServiceWorkerRegistration(): Promise { diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 101a5fb0..7199bbab 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -4,7 +4,7 @@ import './index.css' import App from './App.tsx' import { registerServiceWorker } from './lib/serviceWorker' -registerServiceWorker().catch(() => {}) +registerServiceWorker() createRoot(document.getElementById('root')!).render( diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 939ccbf7..0207a948 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -278,9 +278,15 @@ importers: vitest: specifier: ^3.2.4 version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.4)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@27.4.0)(lightningcss@1.30.2)(terser@5.46.0) + workbox-core: + specifier: ^7.4.0 + version: 7.4.0 workbox-precaching: specifier: ^7.4.0 version: 7.4.0 + workbox-window: + specifier: ^7.4.0 + version: 7.4.0 shared: dependencies: