Poprawki bugów; cleanup i restrukturyzacja kodu

This commit is contained in:
2021-11-12 23:08:25 +01:00
parent c8b9734506
commit 8e9da4c498
7 changed files with 1113 additions and 970 deletions
+21 -1
View File
@@ -1,4 +1,24 @@
import { createApp } from "vue";
import App from "./App.vue";
createApp(App).mount("#app");
import { ICargo, ICarWagon, ILocomotive, IStock, IStore } from "./types";
import { reactive } from "@vue/reactivity";
const Store: IStore = reactive({
chosenCar: null as ICarWagon | null,
chosenLoco: null as ILocomotive | null,
chosenCargo: null as ICargo | null,
showSupporter: false,
imageLoading: false,
chosenLocoPower: "loco-e",
chosenCarUseType: "car-passenger",
stockList: [] as IStock[],
cargoOptions: [] as any[][],
})
createApp(App)
.provide('Store', Store)
.mount("#app");