From dfc0cc331a6654bf3e02e5c23d42ec0b1380fd0f Mon Sep 17 00:00:00 2001 From: cpu Date: Fri, 9 May 2025 15:04:47 +0200 Subject: [PATCH] disable screen lock --- README.md | 5 ++- src/components/PlayerForm.vue | 5 +-- src/services/WakeLockService.js | 66 +++++++++++++++++++++++++++++++++ src/views/GameView.vue | 43 ++++++++++++++++++--- src/views/SetupView.vue | 8 ++-- 5 files changed, 113 insertions(+), 14 deletions(-) create mode 100644 src/services/WakeLockService.js diff --git a/README.md b/README.md index 3111bfe..09687d7 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Game enthusiasts who play turn-based games (board games, tabletop RPGs, card gam * **JavaScript:** For application logic, timer functionality, and event handling. * **Web Audio API:** For audio feedback (ticking sounds, alerts). * **Browser API:** For capturing Players' photo. +* **Screen Wake Lock API:** For preventing of the screen lock in a PWA. * **Local Storage/IndexedDB:** For persistent storage of player data, timer states, and settings. * **Service Worker:** Essential for PWA functionality (offline access, push notifications - potential future feature). * **Manifest File:** Defines the PWA's metadata (name, icons, theme color). @@ -125,7 +126,7 @@ For an enhanced tactile experience, Nexus Timer supports Smart Buttons based on } ``` ## Building for the production -Navigate to your project directory on the server +Navigate to the projects' directory on the server ```bash cd /virt ``` @@ -154,7 +155,7 @@ Use the editor to create or overwrite the service: ```bash sudo systemctl edit --force --full virt-nexus-timer.service ``` -Paste the contents from virt-nexus-timer.service, then save and exit. +Paste the content from `systemd/virt-nexus-timer.service`, then save and exit. Enable on system boot and start the service ```bash diff --git a/src/components/PlayerForm.vue b/src/components/PlayerForm.vue index c44d71d..5a71357 100644 --- a/src/components/PlayerForm.vue +++ b/src/components/PlayerForm.vue @@ -41,14 +41,13 @@ "Pass Turn / My Pause" Hotkey:
-