From a2ea3e8811d7fcf0453bee62a99f4a7e28354b74 Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Mon, 20 Feb 2023 20:57:49 -0800 Subject: [PATCH] Add screenshot support for upcoming Salmon Run shifts --- .../salmonrun/ExpandedSalmonRunRow.vue | 11 ++++++- src/components/salmonrun/SalmonRunBox.vue | 29 +++++++++++++++---- src/views/screenshots/SalmonRunView.vue | 9 ++---- 3 files changed, 37 insertions(+), 12 deletions(-) diff --git a/src/components/salmonrun/ExpandedSalmonRunRow.vue b/src/components/salmonrun/ExpandedSalmonRunRow.vue index 75d5af9..f7881ed 100644 --- a/src/components/salmonrun/ExpandedSalmonRunRow.vue +++ b/src/components/salmonrun/ExpandedSalmonRunRow.vue @@ -8,7 +8,13 @@
import { formatDurationFromNow, formatDurationHoursFromNow } from '@/common/time'; +import { useTimeStore } from '../../stores/time.mjs'; import StageImage from '../StageImage.vue'; import SalmonRunWeapons from './SalmonRunWeapons.vue'; defineProps({ schedule: Object, }); + +const time = useTimeStore(); diff --git a/src/components/salmonrun/SalmonRunBox.vue b/src/components/salmonrun/SalmonRunBox.vue index 8562804..5992c61 100644 --- a/src/components/salmonrun/SalmonRunBox.vue +++ b/src/components/salmonrun/SalmonRunBox.vue @@ -11,22 +11,23 @@
-
+
{{ $t('times.now') }}
- +
-
+
{{ $t('times.future') }}
-
- +
+ +
@@ -37,13 +38,31 @@