From e9d202f5da661200df45889f9771be6967844ed4 Mon Sep 17 00:00:00 2001 From: cpu Date: Thu, 8 May 2025 01:25:54 +0200 Subject: [PATCH] without footer --- assets/default-avatar.svg | 4 - public/service-worker.js | 2 +- src/App.vue | 103 ++++--- src/components/DefaultAvatarIcon.vue | 9 + src/components/PlayerDisplay.vue | 92 +++++-- src/components/PlayerForm.vue | 384 +++++++++++++++------------ src/components/PlayerListItem.vue | 14 +- src/store/index.js | 146 +++++----- src/views/GameView.vue | 52 ++-- src/views/SetupView.vue | 172 +++++++++--- 10 files changed, 606 insertions(+), 372 deletions(-) delete mode 100644 assets/default-avatar.svg create mode 100644 src/components/DefaultAvatarIcon.vue diff --git a/assets/default-avatar.svg b/assets/default-avatar.svg deleted file mode 100644 index e5c534b..0000000 --- a/assets/default-avatar.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/service-worker.js b/public/service-worker.js index 5b36e80..18a7ab9 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'nexus-timer-cache-v1'; +const CACHE_NAME = 'nexus-timer-cache-v2'; const urlsToCache = [ '/', '/index.html', diff --git a/src/App.vue b/src/App.vue index 3661d3a..b99dd01 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,38 +1,39 @@ -// src/App.vue \ No newline at end of file diff --git a/src/components/DefaultAvatarIcon.vue b/src/components/DefaultAvatarIcon.vue new file mode 100644 index 0000000..a67623e --- /dev/null +++ b/src/components/DefaultAvatarIcon.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/components/PlayerDisplay.vue b/src/components/PlayerDisplay.vue index 7b813bb..ea49b63 100644 --- a/src/components/PlayerDisplay.vue +++ b/src/components/PlayerDisplay.vue @@ -1,6 +1,6 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/PlayerForm.vue b/src/components/PlayerForm.vue index 6dd656e..bdd5453 100644 --- a/src/components/PlayerForm.vue +++ b/src/components/PlayerForm.vue @@ -1,177 +1,231 @@ - - \ No newline at end of file + + if (!isEditing.value) { + playerPayload.initialTimerSec = playerPayload.currentTimerSec; + } + + emit('save', playerPayload); + closeModal(); +} + +function closeModal() { + emit('close'); +} + \ No newline at end of file diff --git a/src/components/PlayerListItem.vue b/src/components/PlayerListItem.vue index 14bdaa2..de4b31b 100644 --- a/src/components/PlayerListItem.vue +++ b/src/components/PlayerListItem.vue @@ -9,11 +9,17 @@ >
Player Avatar +

{{ player.name }}

SKIPPED

@@ -26,16 +32,14 @@ :is-pulsating="player.isTimerRunning" class="text-2xl" /> -
\ No newline at end of file diff --git a/src/views/SetupView.vue b/src/views/SetupView.vue index 2d27b0d..e130124 100644 --- a/src/views/SetupView.vue +++ b/src/views/SetupView.vue @@ -7,8 +7,8 @@
-

Players ({{ players.length }}/7)

- @@ -17,14 +17,35 @@
-
- Avatar +
+ + Player Avatar + + {{ player.name }} - ({{ formatTime(player.initialTimerSec) }}) - + ({{ formatTime(player.currentTimerSec) }}) Hotkey: {{ player.hotkey.toUpperCase() }}
-
+
+ + + @@ -45,20 +66,48 @@
-

Game Settings

-
- - +
+ +
+ - + +
+
+ +
+ + +
+
+
Dark Mode
+