finish implementing card layout
This commit is contained in:
parent
46be8e8629
commit
becae553b8
7 changed files with 157 additions and 39 deletions
|
|
@ -7,6 +7,7 @@ export default new Vuex.Store({
|
|||
state: {
|
||||
events: ['35c3', 'camp19', '36c3'],
|
||||
activeEvent: '36c3',
|
||||
layout: 'cards',
|
||||
loadedItems: [
|
||||
{ uid: 1, description: 'sleeping bag', box: 7, image: 41 },
|
||||
{ uid: 2, description: 'tent', box: 7, image: 23 },
|
||||
|
|
@ -14,16 +15,27 @@ export default new Vuex.Store({
|
|||
{ uid: 4, description: 'power supply black', box: 5, image: 62 },
|
||||
{ uid: 5, description: 'pullover yellow "pesthörnchen"', box: 5, image: 84 },
|
||||
{ uid: 6, description: '"blue black second skin"', box: 6, image: 72 },
|
||||
{ uid: 7, description: '"the bike blog" bottle orange', box: 6, image: 71 }
|
||||
{ uid: 7, description: '"the bike blog" bottle orange', box: 6, image: 71 },
|
||||
{ uid: 8, description: 'tshirt guad3c', box: 6, image: 26 },
|
||||
{ uid: 9, description: 'power supply dell', box: 6, image: 74 },
|
||||
{ uid: 10, description: 'blanket green blue', box: 6, image: 25 },
|
||||
{ uid: 11, description: 'cap "ega"', box: 6, image: 71 },
|
||||
{ uid: 12, description: 'water bottle blue "sistema"', box: 3, image: 12 },
|
||||
{ uid: 13, description: 'sun hat black', box: 5, image: 1 },
|
||||
{ uid: 14, description: 'toy truck', box: 6, image: 51 }
|
||||
]
|
||||
},
|
||||
mutations: {
|
||||
changeEvent(state, event) {
|
||||
state.activeEvent = event;
|
||||
},
|
||||
setLayout(state, layout) {
|
||||
state.layout = layout;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
changeEvent({ commit }, event) {
|
||||
// todo: load items from server
|
||||
// todo: load items from server
|
||||
commit('changeEvent', event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue