From ff6622bc293dfe2ad513a373be6cd9c77130a118 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 7 Mar 2025 14:04:58 +0100 Subject: [PATCH] feat: loading data from clipboard; error detection --- src/components/app/MainContainer.vue | 6 +-- .../{StockSection.vue => TabsSection.vue} | 46 +++++++++++++------ src/components/tabs/NumberGeneratorTab.vue | 3 +- src/components/tabs/StockGeneratorTab.vue | 4 -- src/components/tabs/StockListTab.vue | 35 ++++++++++---- src/components/tabs/StorageTab.vue | 45 ++++++++++++++++++ src/components/tabs/WikiListTab.vue | 4 -- src/locales/en.json | 22 ++++----- src/locales/pl.json | 25 ++++------ src/mixins/stockMixin.ts | 12 ++++- src/router.ts | 8 ++++ src/store.ts | 2 + 12 files changed, 147 insertions(+), 65 deletions(-) rename src/components/sections/{StockSection.vue => TabsSection.vue} (59%) create mode 100644 src/components/tabs/StorageTab.vue diff --git a/src/components/app/MainContainer.vue b/src/components/app/MainContainer.vue index 897e87e..bbd73e5 100644 --- a/src/components/app/MainContainer.vue +++ b/src/components/app/MainContainer.vue @@ -3,7 +3,7 @@ - + @@ -12,10 +12,10 @@ import { defineComponent } from 'vue'; import LogoSection from '../sections/LogoSection.vue'; import InputsSection from '../sections/InputsSection.vue'; import TrainImageSection from '../sections/TrainImageSection.vue'; -import StockSection from '../sections/StockSection.vue'; +import TabsSection from '../sections/TabsSection.vue'; export default defineComponent({ - components: { LogoSection, InputsSection, TrainImageSection, StockSection }, + components: { LogoSection, InputsSection, TrainImageSection, TabsSection }, }); diff --git a/src/components/sections/StockSection.vue b/src/components/sections/TabsSection.vue similarity index 59% rename from src/components/sections/StockSection.vue rename to src/components/sections/TabsSection.vue index ef00656..f19182c 100644 --- a/src/components/sections/StockSection.vue +++ b/src/components/sections/TabsSection.vue @@ -1,9 +1,17 @@