mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-04 03:58:11 +00:00
Poprawki bugów; cleanup i restrukturyzacja kodu
This commit is contained in:
+21
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user