From 584dcaa4fd6a204558def50ce63f4a031fe7232b Mon Sep 17 00:00:00 2001 From: Sirttas Date: Thu, 16 May 2024 08:52:44 +0200 Subject: [PATCH] cleanup --- .../acquisition/AcquisitionResultTable.vue | 2 +- src/pages/market/Scan.vue | 7 +++- vite.config.ts | 42 +++++++++---------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/src/market/acquisition/AcquisitionResultTable.vue b/src/market/acquisition/AcquisitionResultTable.vue index 7c77711..4e6e184 100644 --- a/src/market/acquisition/AcquisitionResultTable.vue +++ b/src/market/acquisition/AcquisitionResultTable.vue @@ -36,7 +36,7 @@ defineEmits(); const marketTaxStore = useMarketTaxStore(); -const threshold = useStorage('market-axquisition-threshold', 10); +const threshold = useStorage('market-aquisition-threshold', 10); const filter = ref(""); const { sortedArray, headerProps } = useSort(computed(() => props.items .filter(r => r.type.name.toLowerCase().includes(filter.value.toLowerCase())) diff --git a/src/pages/market/Scan.vue b/src/pages/market/Scan.vue index b58efe6..3c35522 100644 --- a/src/pages/market/Scan.vue +++ b/src/pages/market/Scan.vue @@ -56,7 +56,10 @@ watch(() => markeyScanStore.types, async t => { const prices = await apraisalStore.getPrices(await getMarketTypes(typesToLoad)); - items.value = [...items.value, ...(await Promise.all(typesToLoad.map(i => createResult(i, prices.find(p => p.type.id === i) as MarketTypePrice))))]; + items.value = [ + ...items.value, + ...(await Promise.all(typesToLoad.map(i => createResult(i, prices.find(p => p.type.id === i) as MarketTypePrice)))) + ]; }, { immediate: true }); @@ -73,4 +76,4 @@ watch(() => markeyScanStore.types, async t => { -@/market/acquisition \ No newline at end of file + \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 3454d58..7e41a89 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,29 +1,25 @@ import vue from '@vitejs/plugin-vue'; import * as path from "path"; -import { defineConfig, loadEnv } from 'vite'; +import { defineConfig } from 'vite'; import runtimeEnv from 'vite-plugin-runtime-env'; -export default defineConfig(({ mode }) => { - const env = loadEnv(mode, process.cwd(), ''); - - return { - plugins: [ - runtimeEnv(), - vue(), - ], - resolve: { - alias: { - 'src': path.resolve(__dirname, './src/'), - '@': path.resolve(__dirname, './src/'), - }, - extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] +export default defineConfig({ + plugins: [ + runtimeEnv(), + vue(), + ], + resolve: { + alias: { + 'src': path.resolve(__dirname, './src/'), + '@': path.resolve(__dirname, './src/'), }, - server: { - port: 3000, - strictPort: true, - watch: { - usePolling: true - }, + extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'] + }, + server: { + port: 3000, + strictPort: true, + watch: { + usePolling: true } - }; -}) + } +});