From 200e994ae634bc0d30861661dc6d2e8ae8282057 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 10 Feb 2026 00:28:57 +0100 Subject: [PATCH] chore(profile): change appearance of activity history entries --- .../JournalTimetables/EntryGeneral.vue | 19 +-- src/styles/_badge.scss | 17 +++ src/views/PlayerProfileView.vue | 132 +++++++++++------- 3 files changed, 97 insertions(+), 71 deletions(-) diff --git a/src/components/JournalView/JournalTimetables/EntryGeneral.vue b/src/components/JournalView/JournalTimetables/EntryGeneral.vue index 9844342..19057a3 100644 --- a/src/components/JournalView/JournalTimetables/EntryGeneral.vue +++ b/src/components/JournalView/JournalTimetables/EntryGeneral.vue @@ -87,7 +87,7 @@
-

{{ playerName }}

+

+ + {{ playerName }} + +

@@ -69,7 +73,8 @@ v-if="playerInfo.currentActivity.driver && playerInfo.currentActivity.driver.length > 0" > ONLINE JAKO MASZYNISTA: - {{ playerInfo.currentActivity.driver.trainNo }} + {{ playerInfo.currentActivity.driver.trainNo }} na scenerii + {{ playerInfo.currentActivity.driver.currentStationName }}
@@ -194,10 +199,7 @@

{{ playerInfo.driverStatsLastMonth.countAll }}

-
- ROZKŁADÓW
- JAZDY -
+
ROZKŁADÓW JAZDY
@@ -207,10 +209,7 @@ {{ playerInfo.driverStatsLastMonth.currentDistanceTotal?.toFixed(2) || 0 }}
-
- POKONANYCH
- KILOMETRÓW -
+
POKONANYCH KILOMETRÓW
@@ -220,10 +219,7 @@ {{ playerInfo.dispatcherStatsLastMonth.services?.count || 0 }}
-
- SŁUŻB
- DYŻURNEGO -
+
SŁUŻB DYŻURNEGO
@@ -233,10 +229,7 @@ {{ playerInfo.dispatcherStatsLastMonth.issuedTimetables?.count || 0 }}
-
- WYSTAWIONYCH
- ROZKŁADÓW -
+
WYSTAWIONYCH ROZKŁADÓW
@@ -257,28 +250,48 @@
  • - user icon +
    + user icon - train icon + train icon - timetable icon + timetable icon - - {{ entry.date.toLocaleString('pl-PL', { dateStyle: 'long', timeStyle: 'short' }) }} - + + {{ + 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' + }) + }} + +
    - +
    {{ entry.value.trainCategoryCode }} {{ entry.value.trainNo }} @@ -289,18 +302,21 @@ {{ entry.value.route.replace('|', ' > ') }} {{ ' ' }} ({{ entry.value.currentDistance }} / {{ entry.value.routeDistance }}km) - +
    - - {{ entry.value.stationName }} +
    + {{ entry.value.stationName }} {{ ' - ' }} - {{ - humanizeDuration( - (entry.value.timestampTo || Date.now()) - entry.value.timestampFrom - ) - }} - + + od + {{ + humanizeDuration( + (entry.value.timestampTo || Date.now()) - entry.value.timestampFrom + ) + }} + +
@@ -472,7 +488,7 @@ async function fetchPlayerJournal(playerId: string) { const response = await apiStore.client.get('api/getPlayerJournal', { params: { playerId: playerId, - countLimit: 15 + countLimit: 30 } }); @@ -593,21 +609,22 @@ $tileColor: #181818; padding: 1em; } -.summary-main { - display: flex; - justify-content: center; - gap: 1.5em; +.player-name-header { + margin: 0.5em 0; } .player-badges { - margin: 0.5em 0; + display: flex; + justify-content: center; + gap: 1em; } .badge-container { display: flex; + justify-content: center; align-items: center; - gap: 0.5em; - margin: 0.5em 0; + + gap: 0.25em; & > .level-badge { font-size: 1.15em; @@ -640,6 +657,15 @@ $tileColor: #181818; background-color: $tileColor; border-radius: 0.5em; padding: 0.5em; + + h3 { + font-size: 1.3em; + } + + div:nth-child(3) { + margin-top: 0.5em; + font-size: 0.9em; + } } .history-menu { @@ -671,7 +697,7 @@ $tileColor: #181818; & > ul > li { display: flex; - align-items: center; + flex-direction: column; gap: 0.25em; background-color: $tileColor;