Add routing, state mgmt and train types

This commit is contained in:
Conor McNamara
2023-03-04 17:02:06 +00:00
parent b0b5ecd36a
commit 8af615a429
12 changed files with 606 additions and 89 deletions

17
src/store/store.js Normal file
View File

@ -0,0 +1,17 @@
import { reactive } from 'vue'
export const store = reactive({
insights: {},
latestTrain: {},
earliestTrain: {},
setInsights(insights) {
this.insights = insights
},
setLatestTrain(latestTrain) {
this.latestTrain = latestTrain
},
setEarliestTrain(earliestTrain) {
this.earliestTrain = earliestTrain
}
})