From fe8e7eb098298475be759979e8d0c5cabc41d3bd Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Sat, 20 Dec 2025 18:30:40 +0100 Subject: [PATCH] display time left to node expiry on active nodes --- src/components/GatheringNode.vue | 42 ++++++++++++++++++++++++++------ src/entities/Node.ts | 22 +++++++++++++++++ src/entities/TimeRange.ts | 13 ++++++++++ 3 files changed, 69 insertions(+), 8 deletions(-) diff --git a/src/components/GatheringNode.vue b/src/components/GatheringNode.vue index 5dfbdbf..202b015 100644 --- a/src/components/GatheringNode.vue +++ b/src/components/GatheringNode.vue @@ -3,10 +3,26 @@ class="node" :class="{active: gatheringNode.isActive(eorzeaTime)}" > -
- {{ - gatheringNode.isActive(eorzeaTime) ? 'Active' : prettyTimer(gatheringNode.getSecondsToNextActiveTime(eorzeaTime)) - }} +
+
+ {{ + prettyTimer(gatheringNode.getSecondsToNextActiveTime(eorzeaTime)) + }} +
+
+
+
+ Active +
+ {{ + prettyTimer(gatheringNode.getSecondsToNextInactiveTime(eorzeaTime)) + }} +
+
@@ -29,7 +45,9 @@
{{ zones[gatheringNode.nearestAetheryte.position.zone]?.name?.en }} {{ gatheringNode.nearestAetheryte.name.en }} - {{ gatheringNode.nearestAetheryte.position.x.toFixed(1) }}, {{ gatheringNode.nearestAetheryte.position.y.toFixed(1) }} + {{ + gatheringNode.nearestAetheryte.position.x.toFixed(1) + }}, {{ gatheringNode.nearestAetheryte.position.y.toFixed(1) }}
@@ -78,9 +96,15 @@ export default defineComponent({