mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
chore(scenery): added links to players' profiles in top lists
This commit is contained in:
@@ -31,7 +31,10 @@
|
|||||||
<ul v-else-if="currentListMode == 'likes'">
|
<ul v-else-if="currentListMode == 'likes'">
|
||||||
<li v-for="(value, i) in topLikesList">
|
<li v-for="(value, i) in topLikesList">
|
||||||
<div>
|
<div>
|
||||||
{{ t('scenery.top-list.place', i + 1) }} - <b>{{ value.dispatcherName }}</b>
|
{{ t('scenery.top-list.place', i + 1) }} -
|
||||||
|
<router-link :to="`/profile?playerId=${value.dispatcherId}`">{{
|
||||||
|
value.dispatcherName
|
||||||
|
}}</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<b class="text--primary">{{ t('scenery.top-list.like-count', value.sumRate) }}</b>
|
<b class="text--primary">{{ t('scenery.top-list.like-count', value.sumRate) }}</b>
|
||||||
@@ -42,7 +45,10 @@
|
|||||||
<ul v-else>
|
<ul v-else>
|
||||||
<li v-for="(value, i) in topDispatchersList">
|
<li v-for="(value, i) in topDispatchersList">
|
||||||
<div>
|
<div>
|
||||||
{{ t('scenery.top-list.place', i + 1) }} - <b>{{ value.dispatcherName }}</b>
|
{{ t('scenery.top-list.place', i + 1) }} -
|
||||||
|
<router-link :to="`/profile?playerId=${value.dispatcherId}`">{{
|
||||||
|
value.dispatcherName
|
||||||
|
}}</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<b class="text--primary">{{ t('scenery.top-list.dispatch-count', value.count) }}</b>
|
<b class="text--primary">{{ t('scenery.top-list.dispatch-count', value.count) }}</b>
|
||||||
@@ -63,11 +69,13 @@ import { useMainStore } from '../../store/mainStore';
|
|||||||
|
|
||||||
interface DispatcherTopCount {
|
interface DispatcherTopCount {
|
||||||
dispatcherName: string;
|
dispatcherName: string;
|
||||||
|
dispatcherId: number;
|
||||||
count: number;
|
count: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LikesTopCount {
|
interface LikesTopCount {
|
||||||
dispatcherName: string;
|
dispatcherName: string;
|
||||||
|
dispatcherId: number;
|
||||||
sumRate: number;
|
sumRate: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,5 +211,11 @@ async function fetchTopDispatchersList() {
|
|||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
background-color: #2b2b2b;
|
background-color: #2b2b2b;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
line-height: 1.5em;
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user