From 43a724bf13d490ca6f1e37c03e3bd33db833b8c8 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 27 Mar 2024 16:13:33 +0100 Subject: [PATCH] cleanup --- src/i18n-setup.ts | 2 -- src/store.ts | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/src/i18n-setup.ts b/src/i18n-setup.ts index 0c82b5a..faf09d4 100644 --- a/src/i18n-setup.ts +++ b/src/i18n-setup.ts @@ -21,6 +21,4 @@ const i18n = createI18n<[LocaleMessageSchema], 'en' | 'pl'>({ messages: locales, }); -// fetchBackendTranslations(); - export default i18n; diff --git a/src/store.ts b/src/store.ts index faae7ea..a19e4ff 100644 --- a/src/store.ts +++ b/src/store.ts @@ -68,23 +68,6 @@ export const useStore = defineStore({ isTrainPassenger: (state) => isTrainPassenger(state.stockList), acceptableWeight: (state) => acceptableWeight(state.stockList), - // chosenRealStock: (state) => { - // const currentStockString = state.stockList - // .reduce((acc, stock) => { - // for (let i = 0; i < stock.count; i++) acc.push(stock.type); - // return acc; - // }, [] as string[]) - // .join(';'); - - // // const realStockObj = vehilcesData.realCompositions.find((readyStock) => readyStock.stockString == currentStockString); - - // // state.chosenRealStockName = realStockObj?.stockId ?? undefined; - - // state - - // // return state.r.find((readyStock) => readyStock.stockString == currentStockString); - // }, - realCompositionList: (state) => { if (!state.vehiclesAPIData) return [];