From 816172d67bb856f3935cf1a64fda1ab5bf3442a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nunzio=20Marf=C3=A8?= Date: Mon, 12 Jan 2026 08:36:03 +0100 Subject: [PATCH] Feature: PWA (#479) * feat: add PWA support with offline capabilities - Add web app manifest with icons and theme configuration - Add service worker with cache-first strategy for static assets - Add useServiceWorker hook for SW registration - Add PWA meta tags and Apple-specific tags to index.html - Update vite.config.ts for optimal asset caching * Update package-lock.json --- index.html | 7 ++ public/manifest.json | 40 +++++++++++ public/sw.js | 120 ++++++++++++++++++++++++++++++++ src/hooks/use-service-worker.ts | 71 +++++++++++++++++++ src/main.tsx | 5 ++ vite.config.ts | 7 +- 6 files changed, 247 insertions(+), 3 deletions(-) create mode 100644 public/manifest.json create mode 100644 public/sw.js create mode 100644 src/hooks/use-service-worker.ts diff --git a/index.html b/index.html index b376f7cd..83e38e8e 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,13 @@ + + + + + + + Termix