From 4a03535b0755361c5a4646c552aa2213ee7aba3f Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 19 Aug 2023 13:13:00 +0200 Subject: [PATCH 01/12] feature: ikony akcji --- public/images/icon-copy.svg | 1 + public/images/icon-download.svg | 1 + public/images/icon-reset.svg | 1 + public/images/icon-shuffle.svg | 1 + public/images/icon-upload.svg | 1 + src/components/tabs/StockListTab.vue | 27 +++++++++++++++++++++------ src/styles/global.scss | 16 ++++++++++++++-- 7 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 public/images/icon-copy.svg create mode 100644 public/images/icon-download.svg create mode 100644 public/images/icon-reset.svg create mode 100644 public/images/icon-shuffle.svg create mode 100644 public/images/icon-upload.svg diff --git a/public/images/icon-copy.svg b/public/images/icon-copy.svg new file mode 100644 index 0000000..66e3b08 --- /dev/null +++ b/public/images/icon-copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/icon-download.svg b/public/images/icon-download.svg new file mode 100644 index 0000000..6d064ad --- /dev/null +++ b/public/images/icon-download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/icon-reset.svg b/public/images/icon-reset.svg new file mode 100644 index 0000000..14c8197 --- /dev/null +++ b/public/images/icon-reset.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/icon-shuffle.svg b/public/images/icon-shuffle.svg new file mode 100644 index 0000000..16a4a62 --- /dev/null +++ b/public/images/icon-shuffle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/icon-upload.svg b/public/images/icon-upload.svg new file mode 100644 index 0000000..7169aa1 --- /dev/null +++ b/public/images/icon-upload.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/tabs/StockListTab.vue b/src/components/tabs/StockListTab.vue index dbf5855..97f162b 100644 --- a/src/components/tabs/StockListTab.vue +++ b/src/components/tabs/StockListTab.vue @@ -35,19 +35,33 @@
- + - - + - +
@@ -182,8 +196,9 @@ export default defineComponent({ data: () => ({ imageOffsetY: 0, - draggedVehicleID: -1, + + stockActions: [{}], }), computed: { diff --git a/src/styles/global.scss b/src/styles/global.scss index 50bde83..7907371 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -121,6 +121,18 @@ button { background-color: #2b2b2b; } + &--image { + display: flex; + justify-content: center; + align-items: center; + gap: 0.5em; + + img { + width: 1.3em; + vertical-align: middle; + } + } + &--text { font-weight: bold; transition: all 250ms; @@ -134,8 +146,8 @@ button { } select, -input[type="text"], -input[type="number"] { +input[type='text'], +input[type='number'] { background: none; border: 2px solid #aaa; outline: none; From 17882e3e6ecdc3bee436104cffbbaf06f249c4fd Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 21 Aug 2023 03:19:37 +0200 Subject: [PATCH 02/12] =?UTF-8?q?feature:=20t=C5=82umaczenie=20PL/EN=20(wi?= =?UTF-8?q?p)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +- src/components/app/Footer.vue | 21 ++--- src/components/sections/InputsSection.vue | 42 ++++----- src/components/sections/StockSection.vue | 20 +---- src/i18n.ts | 10 +++ src/locales/en.json | 5 ++ src/locales/pl.json | 102 ++++++++++++++++++++++ src/main.ts | 14 ++- yarn.lock | 50 ++++++++++- 9 files changed, 213 insertions(+), 54 deletions(-) create mode 100644 src/i18n.ts create mode 100644 src/locales/en.json create mode 100644 src/locales/pl.json diff --git a/package.json b/package.json index 626619b..a9565f1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "dependencies": { "pinia": "^2.0.17", - "vue": "^3.2.37" + "vue": "^3.2.37", + "vue-i18n": "9" }, "devDependencies": { "@vitejs/plugin-vue": "^4.1.0", diff --git a/src/components/app/Footer.vue b/src/components/app/Footer.vue index 86bc9a9..44d802d 100644 --- a/src/components/app/Footer.vue +++ b/src/components/app/Footer.vue @@ -1,15 +1,16 @@