Skip to content

Commit 01af418

Browse files
committed
Modified trip locations
1 parent 5998e0b commit 01af418

File tree

2 files changed

+274
-202
lines changed

2 files changed

+274
-202
lines changed
Lines changed: 59 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
namespaced: true,
33

4-
state() {
4+
state () {
55
return {
66
user: null,
77
notificationSystem: {
@@ -19,27 +19,75 @@ export default {
1919
position: 'topRight'
2020
}
2121
}
22-
}
23-
};
22+
},
23+
pickUpLocations: [
24+
{
25+
id: 1,
26+
name: 'Microsoft Corporate Office',
27+
latitude: 47.6423354,
28+
longitude: -122.1391189
29+
},
30+
{
31+
id: 2,
32+
name: 'Hyatt Regency Bellevue',
33+
latitude: 47.618282,
34+
longitude: -122.201035
35+
},
36+
{
37+
id: 3,
38+
name: 'Space Needle',
39+
latitude: 47.62053,
40+
longitude: -122.3493
41+
}
42+
],
43+
destinationLocations: [
44+
{
45+
id: 1,
46+
name: 'Seattle, Washington',
47+
latitude: 47.6131746,
48+
longitude: -122.4821466
49+
},
50+
{
51+
id: 2,
52+
name: 'Bellevue, Washington',
53+
latitude: 47.5963256,
54+
longitude: -122.1928181
55+
},
56+
{
57+
id: 3,
58+
name: 'Redmond, Washington',
59+
latitude: 47.6721228,
60+
longitude: -122.1356409
61+
}
62+
]
63+
}
2464
},
2565

2666
getters: {
2767
user: state => state.user,
28-
notificationSystem: state => state.notificationSystem
68+
notificationSystem: state => state.notificationSystem,
69+
pickUpLocations: state => state.pickUpLocations,
70+
destinationLocations: state => state.destinationLocations
2971
},
3072

3173
mutations: {
32-
user(state, value) {
33-
state.user = value;
74+
user (state, value) {
75+
state.user = value
76+
},
77+
notificationSystem (state, value) {
78+
state.notificationSystem = value
79+
},
80+
pickUpLocations (state, value) {
81+
state.pickUpLocations = value
3482
},
35-
notificationSystem(state, value) {
36-
state.notificationSystem = value;
83+
destinationLocations (state, value) {
84+
state.destinationLocations = value
3785
}
3886
},
3987

4088
actions: {
41-
setUser({ commit }, value) {
42-
commit('user', value);
89+
setUser ({ commit }, value) {
90+
commit('user', value)
4391
}
4492
}
45-
};
93+
}

0 commit comments

Comments
 (0)