From 9dd0480e09e6c09770cacc23edd9526ccd6007d0 Mon Sep 17 00:00:00 2001 From: cpu Date: Mon, 31 Mar 2025 12:17:05 +0200 Subject: [PATCH] clean up --- sw.js | 23 ++- test.html | 499 ------------------------------------------------------ 2 files changed, 14 insertions(+), 508 deletions(-) delete mode 100644 test.html diff --git a/sw.js b/sw.js index 959b49e..6ca8ad8 100644 --- a/sw.js +++ b/sw.js @@ -5,29 +5,34 @@ const CACHE_NAME = `game-timer-${CACHE_VERSION}`; // Files to cache const CACHE_FILES = [ '/', - '/sw.js', '/index.html', '/manifest.json', - '/css/styles.css', + '/sw.js', '/favicon.ico', + '/config.env.js', + '/css/styles.css', '/icons/android-chrome-192x192.png', '/icons/android-chrome-512x512.png', '/icons/apple-touch-icon.png', '/icons/favicon-32x32.png', '/icons/favicon-16x16.png', + '/images/screenshot1.png', + '/images/screenshot2.png', '/js/app.js', '/js/config.js', '/js/env-loader.js', - '/js/ui/audio.js', - '/js/ui/camera.js', - '/js/ui/ui.js', - '/js/core/state.js', - '/js/core/timer.js', + '/js/core/eventHandlers.js', '/js/core/gameActions.js', '/js/core/playerManager.js', - '/js/core/eventHandlers.js', + '/js/core/state.js', + '/js/core/timer.js', '/js/services/pushFlicIntegration.js', - '/js/services/serviceWorkerManager.js' + '/js/services/screenLockManager.js', + '/js/services/serviceWorkerManager.js', + '/js/ui/audio.js', + '/js/ui/camera.js', + '/js/ui/pushSettingsUI.js', + '/js/ui/ui.js' ]; // Install event - Cache files diff --git a/test.html b/test.html deleted file mode 100644 index 378473f..0000000 --- a/test.html +++ /dev/null @@ -1,499 +0,0 @@ - - - - Push Notification Debug - - - -

Push Notification Debug

- -
-

LocalStorage Management

- - -

-    
- -
-

Push Subscription Status

- - -

-    
- -
-

Manually Trigger Subscription

-

Use these buttons to manually trigger the subscription process:

- - -

-    
- -
-

Test Server Communication

-

Send existing subscription to server (tests authentication):

- - -

-    
- -
-

Simulate Button Click (Webhook)

-

This simulates a button click by sending a request to the webhook endpoint:

-
- - - - -
- -

-    
- -
-

Service Worker Message Monitor

-

Displays messages received from the service worker (client.postMessage):

-
- - -
-

-    
- - - - \ No newline at end of file