Rework to use marbas and authentik instead of poketbase #1

Merged
Sirttas merged 18 commits from rework-acquisition into main 2024-05-17 23:00:52 +02:00
3 changed files with 25 additions and 26 deletions
Showing only changes of commit 584dcaa4fd - Show all commits

View File

@@ -36,7 +36,7 @@ defineEmits<Emits>();
const marketTaxStore = useMarketTaxStore();
const threshold = useStorage('market-axquisition-threshold', 10);
const threshold = useStorage('market-aquisition-threshold', 10);
const filter = ref("");
const { sortedArray, headerProps } = useSort<Result>(computed(() => props.items
.filter(r => r.type.name.toLowerCase().includes(filter.value.toLowerCase()))

View File

@@ -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 });
</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" />
<BuyModal ref="buyModal" />
</template>
</template>@/market/acquisition
</template>

View File

@@ -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
}
};
})
}
});