From dcef8cdac8ef61c9ee9f61798538d150a65b69e0 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 15 Feb 2026 17:50:52 +0100 Subject: [PATCH] chore(profile): improved history list design --- .../PlayerProfileView/ProfileHistoryList.vue | 52 ++++++++++++------- src/locales/pl.json | 4 +- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/components/PlayerProfileView/ProfileHistoryList.vue b/src/components/PlayerProfileView/ProfileHistoryList.vue index 025bcc0..9694f1c 100644 --- a/src/components/PlayerProfileView/ProfileHistoryList.vue +++ b/src/components/PlayerProfileView/ProfileHistoryList.vue @@ -33,44 +33,52 @@ timetable icon - + {{ entry.date.toLocaleString('pl-PL', { dateStyle: 'long', timeStyle: 'short' }) }} - - - - - - {{ - new Date(entry.value.timestampTo).toLocaleString('pl-PL', { - dateStyle: - new Date(entry.value.timestampTo).getDay() == entry.date.getDay() - ? undefined - : 'long', - timeStyle: 'short' - }) - }} + + - + {{ + new Date(entry.value.timestampTo).toLocaleString('pl-PL', { + dateStyle: + new Date(entry.value.timestampTo).getDay() == entry.date.getDay() + ? undefined + : 'long', + timeStyle: 'short' + }) + }} +
- {{ entry.value.trainCategoryCode }} {{ entry.value.trainNo }} + {{ entry.value.trainCategoryCode }} + {{ ' ' }} + {{ entry.value.trainNo }} {{ ' ' }} {{ t('profile.list.for') }}: {{ entry.value.driverName }} {{ ' ' }} {{ entry.value.route.replace('|', ' > ') }} {{ ' ' }} - ({{ entry.value.currentDistance }} / {{ entry.value.routeDistance }}km) + ({{ entry.value.currentDistance }} km / {{ entry.value.routeDistance }} km)
{{ entry.value.stationName }} {{ ' - ' }} - - {{ t('profile.list.since') }}: + + {{ t('profile.list.online-since') }}: {{ humanizeDuration( (entry.value.timestampTo || Date.now()) - entry.value.timestampFrom @@ -229,6 +237,14 @@ function toggleFilter(filterType: JournalEntryType) { } } +.timestamp-indicator { + color: #ccc; + + &[data-online='true'] { + color: var(--clr-success); + } +} + @include responsive.midScreen { .history-list-box { max-height: 100vh; diff --git a/src/locales/pl.json b/src/locales/pl.json index 1f11a24..7d8efb6 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -638,7 +638,7 @@ "created-timetables-count": "wystawione RJ jako dyżurny ruchu", "longest-created-timetable": "najdłuższy wystawiony RJ", "created-timetables-length-sum": "suma długości wystawionych RJ", - "no-dispatcher-stats": "Ten dyżurny nie wystawił jeszcze żadnego rozkładu jazdy" + "no-dispatcher-stats": "Brak zapisanych wystawionych RJ" }, "recent-stats": { @@ -651,7 +651,7 @@ "list": { "for": "dla", - "since": "od" + "online-since": "online od" } } }