mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Wsparcie języka angielskiego (beta)
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<span
|
||||
class="option-content"
|
||||
:class="option.section + (option.value ? ' checked' : '')"
|
||||
>{{ option.content }}</span
|
||||
>{{ $t(`filters.${option.id}`) }}</span
|
||||
>
|
||||
</label>
|
||||
</div>
|
||||
@@ -42,7 +42,9 @@
|
||||
|
||||
<span class="slider-value">{{ slider.value }}</span>
|
||||
|
||||
<div class="slider-content">{{ slider.content }}</div>
|
||||
<div class="slider-content">
|
||||
{{ $t(`filters.sliders.${slider.id}`) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -51,15 +53,17 @@
|
||||
<label>
|
||||
<input type="checkbox" v-model="saveOptions" @change="saveFilters" />
|
||||
<span class="save" :class="{ checked: saveOptions }">
|
||||
ZAPISZ FILTRY
|
||||
{{ $t("filters.save") }}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-actions flex">
|
||||
<button class="button" @click="resetFilters">RESET FILTRÓW</button>
|
||||
<button class="button" @click="exit">ZAMKNIJ FILTRY</button>
|
||||
<button class="button" @click="resetFilters">
|
||||
{{ $t("filters.reset") }}
|
||||
</button>
|
||||
<button class="button" @click="exit">{{ $t("filters.close") }}</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -4,7 +4,56 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th v-html="$t('sceneries.station')"></th>
|
||||
<th v-html="$t('sceneries.min-lvl')"></th>
|
||||
<th v-html="$t('sceneries.status')"></th>
|
||||
<th v-html="$t('sceneries.dispatcher')"></th>
|
||||
<th v-html="$t('sceneries.dispatcher-lvl')"></th>
|
||||
<th v-html="$t('sceneries.routes')"></th>
|
||||
<th v-html="$t('sceneries.general')"></th>
|
||||
<th v-html="$t('sceneries.drivers-online')"></th>
|
||||
<th v-html="$t('sceneries.spawns')"></th>
|
||||
<th v-html="$t('sceneries.timetables')"></th> -->
|
||||
|
||||
<th
|
||||
v-for="(id, i) in headIds"
|
||||
:key="id"
|
||||
@click="() => changeSorter(i)"
|
||||
>
|
||||
<span class="header_wrapper">
|
||||
<div v-html="$t(`sceneries.${id}`)"></div>
|
||||
|
||||
<img
|
||||
class="sort-icon"
|
||||
v-if="sorterActive.index == i"
|
||||
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
||||
alt
|
||||
/>
|
||||
</span>
|
||||
</th>
|
||||
|
||||
<th
|
||||
v-for="(id, i) in headIconsIds"
|
||||
:key="id"
|
||||
@click="() => changeSorter(i + 7)"
|
||||
>
|
||||
<span class="header_wrapper">
|
||||
<img
|
||||
:src="require(`@/assets/icon-${id}.svg`)"
|
||||
:alt="id"
|
||||
:title="$t(`sceneries.${id}s`)"
|
||||
/>
|
||||
|
||||
<img
|
||||
class="sort-icon"
|
||||
v-if="sorterActive.index == i + 7"
|
||||
:src="sorterActive.dir == 1 ? ascIcon : descIcon"
|
||||
alt
|
||||
/>
|
||||
</span>
|
||||
</th>
|
||||
|
||||
<!-- <th
|
||||
v-for="(head, i) in headTitles"
|
||||
:key="i"
|
||||
@click="() => changeSorter(i)"
|
||||
@@ -28,7 +77,7 @@
|
||||
alt
|
||||
/>
|
||||
</span>
|
||||
</th>
|
||||
</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -204,7 +253,6 @@
|
||||
import { Component, Prop } from "vue-property-decorator";
|
||||
|
||||
import Station from "@/scripts/interfaces/Station";
|
||||
|
||||
import styleMixin from "@/mixins/styleMixin";
|
||||
|
||||
import Options from "@/components/StationsView/Options.vue";
|
||||
@@ -228,6 +276,18 @@ export default class StationTable extends styleMixin {
|
||||
ascIcon: string = require("@/assets/icon-arrow-asc.svg");
|
||||
descIcon: string = require("@/assets/icon-arrow-desc.svg");
|
||||
|
||||
headIds = [
|
||||
"station",
|
||||
"min-lvl",
|
||||
"status",
|
||||
"dispatcher",
|
||||
"dispatcher-lvl",
|
||||
"routes",
|
||||
"general",
|
||||
];
|
||||
|
||||
headIconsIds = ["user", "spawn", "timetable"];
|
||||
|
||||
headTitles: string[][] = [
|
||||
["Stacja"],
|
||||
["Min. poziom", "dyżurnego"],
|
||||
|
||||
Reference in New Issue
Block a user