Migracja na Vite

This commit is contained in:
2022-07-25 19:59:46 +02:00
parent ad671b59b7
commit c46ddc8b0b
21 changed files with 644 additions and 30483 deletions
+10 -8
View File
@@ -1,6 +1,6 @@
<template>
<header>
<img :src="logoSVG" alt="logo pojazdownik" />
<img :src="logoImage" alt="logo pojazdownik" />
</header>
<main>
@@ -8,8 +8,8 @@
<img :src="store.vehiclePreviewSrc" alt="preview" />
</div>
<inputs-section />
<list-section />
<InputsSection />
<ListSection />
</main>
<footer>
<div class="text--grayed" style="margin-bottom: 0.25em">
@@ -27,26 +27,27 @@ import packageInfo from '.././package.json';
import { defineComponent, inject } from 'vue';
import ListSection from '@/components/ListSection.vue';
import InputsSection from '@/components/InputsSection.vue';
import { IStore } from './types';
import InputsSection from './components/InputsSection.vue';
import ListSection from './components/ListSection.vue';
import logoImage from './assets/logo.svg';
export default defineComponent({
components: {
ListSection,
InputsSection,
},
data: () => ({
VERSION: packageInfo.version,
logoSVG: require('@/assets/logo.svg'),
logoImage,
}),
setup() {
const store = inject('Store') as IStore;
// const readyStockJSON = await (await fetch('https://spythere.github.io/api/readyStock.json')).json();
return {
store,
};
@@ -173,3 +174,4 @@ footer {
}
}
</style>