cleanup
This commit is contained in:
@@ -36,7 +36,7 @@ defineEmits<Emits>();
|
|||||||
|
|
||||||
const marketTaxStore = useMarketTaxStore();
|
const marketTaxStore = useMarketTaxStore();
|
||||||
|
|
||||||
const threshold = useStorage('market-axquisition-threshold', 10);
|
const threshold = useStorage('market-aquisition-threshold', 10);
|
||||||
const filter = ref("");
|
const filter = ref("");
|
||||||
const { sortedArray, headerProps } = useSort<Result>(computed(() => props.items
|
const { sortedArray, headerProps } = useSort<Result>(computed(() => props.items
|
||||||
.filter(r => r.type.name.toLowerCase().includes(filter.value.toLowerCase()))
|
.filter(r => r.type.name.toLowerCase().includes(filter.value.toLowerCase()))
|
||||||
|
|||||||
@@ -56,7 +56,10 @@ watch(() => markeyScanStore.types, async t => {
|
|||||||
|
|
||||||
const prices = await apraisalStore.getPrices(await getMarketTypes(typesToLoad));
|
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 });
|
}, { immediate: true });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -73,4 +76,4 @@ watch(() => markeyScanStore.types, async t => {
|
|||||||
<ScanResultTable :items="items" @buy="(type, buy, sell) => buyModal?.open(type, { 'Buy': buy, 'Sell': sell })" @remove="removeItem" />
|
<ScanResultTable :items="items" @buy="(type, buy, sell) => buyModal?.open(type, { 'Buy': buy, 'Sell': sell })" @remove="removeItem" />
|
||||||
<BuyModal ref="buyModal" />
|
<BuyModal ref="buyModal" />
|
||||||
</template>
|
</template>
|
||||||
</template>@/market/acquisition
|
</template>
|
||||||
@@ -1,12 +1,9 @@
|
|||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import { defineConfig, loadEnv } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import runtimeEnv from 'vite-plugin-runtime-env';
|
import runtimeEnv from 'vite-plugin-runtime-env';
|
||||||
|
|
||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig({
|
||||||
const env = loadEnv(mode, process.cwd(), '');
|
|
||||||
|
|
||||||
return {
|
|
||||||
plugins: [
|
plugins: [
|
||||||
runtimeEnv(),
|
runtimeEnv(),
|
||||||
vue(),
|
vue(),
|
||||||
@@ -23,7 +20,6 @@ export default defineConfig(({ mode }) => {
|
|||||||
strictPort: true,
|
strictPort: true,
|
||||||
watch: {
|
watch: {
|
||||||
usePolling: true
|
usePolling: true
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user