mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Lokalizacja napisów
This commit is contained in:
+4
-1
@@ -198,7 +198,10 @@
|
|||||||
"filter-all": "ALL ENTRIES",
|
"filter-all": "ALL ENTRIES",
|
||||||
"filter-abandoned": "ABANDONED",
|
"filter-abandoned": "ABANDONED",
|
||||||
"filter-fulfilled": "FULFILLED",
|
"filter-fulfilled": "FULFILLED",
|
||||||
"filter-active": "ACTIVE"
|
"filter-active": "ACTIVE",
|
||||||
|
|
||||||
|
"no-further-data": "No further data for current parameters",
|
||||||
|
"loading-further-data": "Loading..."
|
||||||
},
|
},
|
||||||
"scenery": {
|
"scenery": {
|
||||||
"users": "PLAYERS ONLINE",
|
"users": "PLAYERS ONLINE",
|
||||||
|
|||||||
+4
-1
@@ -200,7 +200,10 @@
|
|||||||
"filter-all": "WSZYSTKIE",
|
"filter-all": "WSZYSTKIE",
|
||||||
"filter-abandoned": "PORZUCONE",
|
"filter-abandoned": "PORZUCONE",
|
||||||
"filter-fulfilled": "WYPEŁNIONE",
|
"filter-fulfilled": "WYPEŁNIONE",
|
||||||
"filter-active": "AKTYWNE"
|
"filter-active": "AKTYWNE",
|
||||||
|
|
||||||
|
"no-further-data": "Brak dalszych wyników dla podanych parametrów",
|
||||||
|
"loading-further-data": "Ładowanie..."
|
||||||
},
|
},
|
||||||
"scenery": {
|
"scenery": {
|
||||||
"users": "GRACZE ONLINE",
|
"users": "GRACZE ONLINE",
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<div class="history-wrapper">
|
<div class="history-wrapper">
|
||||||
<JournalOptions @changedOptions="search" @changedFilter="search" />
|
<JournalOptions @changedOptions="search" @changedFilter="search" />
|
||||||
|
|
||||||
|
<button class="return-btn" @click="scrollToTop" v-if="showReturnButton">
|
||||||
|
<img :src="icons.arrow" alt="return arrow" />
|
||||||
|
</button>
|
||||||
|
|
||||||
<div class="history_list">
|
<div class="history_list">
|
||||||
<div class="list_wrapper" ref="scrollElement">
|
<div class="list_wrapper" ref="scrollElement">
|
||||||
<transition name="warning" mode="out-in">
|
<transition name="warning" mode="out-in">
|
||||||
@@ -119,8 +123,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="history_warning" v-if="scrollNoMoreData">Brak dalszych wyników dla podanych parametrów</div>
|
<div class="history_warning" v-if="scrollNoMoreData">{{ $t('journal.no-further-data' )}}</div>
|
||||||
<div class="history_warning" v-else-if="!scrollDataLoaded">Pobieranie kolejnych wyników...</div>
|
<div class="history_warning" v-else-if="!scrollDataLoaded">{{ $t('journal.loading-further-data' )}}</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -186,11 +190,14 @@ export default defineComponent({
|
|||||||
data: () => ({
|
data: () => ({
|
||||||
icons: {
|
icons: {
|
||||||
loading: require('@/assets/icon-loading.svg'),
|
loading: require('@/assets/icon-loading.svg'),
|
||||||
|
arrow: require('@/assets/icon-arrow-asc.svg'),
|
||||||
},
|
},
|
||||||
|
|
||||||
currentQuery: '',
|
currentQuery: '',
|
||||||
scrollDataLoaded: true,
|
scrollDataLoaded: true,
|
||||||
scrollNoMoreData: false,
|
scrollNoMoreData: false,
|
||||||
|
|
||||||
|
showReturnButton: false,
|
||||||
}),
|
}),
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
@@ -264,6 +271,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
|
this.showReturnButton = window.scrollY > window.innerHeight;
|
||||||
|
|
||||||
const element = this.$refs.scrollElement as HTMLElement;
|
const element = this.$refs.scrollElement as HTMLElement;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
@@ -274,6 +283,10 @@ export default defineComponent({
|
|||||||
this.addHistoryData();
|
this.addHistoryData();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
scrollToTop() {
|
||||||
|
window.scrollTo({ top: 0 });
|
||||||
|
},
|
||||||
|
|
||||||
search() {
|
search() {
|
||||||
this.fetchHistoryData({
|
this.fetchHistoryData({
|
||||||
searchedDriver: this.searchedDriver,
|
searchedDriver: this.searchedDriver,
|
||||||
@@ -415,6 +428,39 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Style
|
||||||
|
|
||||||
|
.return-btn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
margin: 0 1em 1em 0;
|
||||||
|
|
||||||
|
width: 2em;
|
||||||
|
height: 2em;
|
||||||
|
|
||||||
|
font-size: 1.7em;
|
||||||
|
|
||||||
|
background-color: #333;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
border-radius: 50%;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #3c3c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 1.3em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.history-view {
|
.history-view {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user