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..c23ccd4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,12 +1,11 @@ -// 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..3d04297 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..339b495 100644 --- a/src/components/PlayerForm.vue +++ b/src/components/PlayerForm.vue @@ -1,177 +1,219 @@ - - \ No newline at end of file + // If editing an existing player, and current time becomes the new "initial" baseline if reset + // This is debatable. The spec says "Set initial timer values per player". + // If user edits "remaining time", should it also update "initialTimer"? + // For now, let's assume "initialTimer" is only set when player is first added, + // or if explicitly edited through a separate mechanism (not present). + // So, playerPayload.initialTimerSec will be what was loaded or set for new player. + + 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..92f5ccc 100644 --- a/src/components/PlayerListItem.vue +++ b/src/components/PlayerListItem.vue @@ -8,12 +8,19 @@ @click="handleTap" >
+ Player Avatar +

{{ player.name }}

SKIPPED

@@ -26,17 +33,16 @@ :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..d75c24d 100644 --- a/src/views/SetupView.vue +++ b/src/views/SetupView.vue @@ -17,17 +17,39 @@
-
- Avatar +
+ Player Avatar + {{ player.name }} - ({{ formatTime(player.initialTimerSec) }}) - + ({{ formatTime(player.currentTimerSec) }}) Hotkey: {{ player.hotkey.toUpperCase() }}
-
+
+ + + + + + @@ -73,7 +95,6 @@
-