mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-05 04:28:10 +00:00
poprawki w widoku składu; tłumaczenia
This commit is contained in:
@@ -103,7 +103,7 @@ function chooseSection(sectionId: SectionMode) {
|
|||||||
|
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 1em;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -1,5 +1,40 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="stock-list-tab">
|
<section class="stock-list-tab">
|
||||||
|
<div class="tab_header">
|
||||||
|
<h2>{{ $t('stocklist.title') }}</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="stock_actions">
|
||||||
|
<label class="file-label">
|
||||||
|
<div class="btn btn--image">
|
||||||
|
<img src="/images/icon-upload.svg" alt="" />
|
||||||
|
{{ $t('stocklist.action-upload') }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input type="file" @change="uploadStock" ref="conFile" accept=".con,.txt" />
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="downloadStock">
|
||||||
|
<img src="/images/icon-download.svg" alt="download icon" />
|
||||||
|
{{ $t('stocklist.action-download') }}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="copyToClipboard">
|
||||||
|
<img src="/images/icon-copy.svg" alt="copy icon" />
|
||||||
|
{{ $t('stocklist.action-copy') }}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="resetStock">
|
||||||
|
<img src="/images/icon-reset.svg" alt="reset icon" />
|
||||||
|
{{ $t('stocklist.action-reset') }}
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="shuffleCars">
|
||||||
|
<img src="/images/icon-shuffle.svg" alt="shuffle icon" />
|
||||||
|
{{ $t('stocklist.action-shuffle') }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="stock_controls" :data-disabled="store.chosenStockListIndex == -1">
|
<div class="stock_controls" :data-disabled="store.chosenStockListIndex == -1">
|
||||||
<b v-if="store.chosenStockListIndex >= 0">
|
<b v-if="store.chosenStockListIndex >= 0">
|
||||||
{{ $t('stocklist.vehicle-no') }} <span class="text--accent">{{ store.chosenStockListIndex + 1 }}</span>
|
{{ $t('stocklist.vehicle-no') }} <span class="text--accent">{{ store.chosenStockListIndex + 1 }}</span>
|
||||||
@@ -37,37 +72,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="stock_actions">
|
|
||||||
<label class="file-label">
|
|
||||||
<div class="btn btn--image">
|
|
||||||
<img src="/images/icon-upload.svg" alt="" />
|
|
||||||
{{ $t('stocklist.action-upload') }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<input type="file" @change="uploadStock" ref="conFile" accept=".con,.txt" />
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="downloadStock">
|
|
||||||
<img src="/images/icon-download.svg" alt="download icon" />
|
|
||||||
{{ $t('stocklist.action-download') }}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="copyToClipboard">
|
|
||||||
<img src="/images/icon-copy.svg" alt="copy icon" />
|
|
||||||
{{ $t('stocklist.action-copy') }}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="resetStock">
|
|
||||||
<img src="/images/icon-reset.svg" alt="reset icon" />
|
|
||||||
{{ $t('stocklist.action-reset') }}
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button class="btn btn--image" :data-disabled="stockIsEmpty" :disabled="stockIsEmpty" @click="shuffleCars">
|
|
||||||
<img src="/images/icon-shuffle.svg" alt="shuffle icon" />
|
|
||||||
{{ $t('stocklist.action-shuffle') }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="stock_specs">
|
<div class="stock_specs">
|
||||||
<b class="real-stock-info" v-if="store.chosenRealStock">
|
<b class="real-stock-info" v-if="store.chosenRealStock">
|
||||||
<span class="text--accent">
|
<span class="text--accent">
|
||||||
@@ -422,6 +426,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '../../styles/global';
|
@import '../../styles/global';
|
||||||
|
@import '../../styles/tab.scss';
|
||||||
|
|
||||||
.stock-list-tab {
|
.stock-list-tab {
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -483,7 +488,7 @@ export default defineComponent({
|
|||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
|
||||||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||||
|
|
||||||
label.file-label {
|
label.file-label {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
"stock-generator": "STOCK GEN."
|
"stock-generator": "STOCK GEN."
|
||||||
},
|
},
|
||||||
"stocklist": {
|
"stocklist": {
|
||||||
|
"title": "STOCK EDITOR",
|
||||||
"vehicle-no": "VEHICLE NO.",
|
"vehicle-no": "VEHICLE NO.",
|
||||||
"no-vehicle-chosen": "NO VEHICLE CHOSEN",
|
"no-vehicle-chosen": "NO VEHICLE CHOSEN",
|
||||||
"action-move-up": "MOVE UP",
|
"action-move-up": "MOVE UP",
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
"stock-generator": "GNR SKŁADU"
|
"stock-generator": "GNR SKŁADU"
|
||||||
},
|
},
|
||||||
"stocklist": {
|
"stocklist": {
|
||||||
|
"title": "EDYTOR SKŁADU",
|
||||||
"vehicle-no": "POJAZD NR",
|
"vehicle-no": "POJAZD NR",
|
||||||
"no-vehicle-chosen": "NIE WYBRANO POJAZDU",
|
"no-vehicle-chosen": "NIE WYBRANO POJAZDU",
|
||||||
"action-move-up": "PRZENIEŚ WYŻEJ",
|
"action-move-up": "PRZENIEŚ WYŻEJ",
|
||||||
|
|||||||
Reference in New Issue
Block a user