Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created December 17, 2017 15:48
Show Gist options
  • Save jongravois/83b2a3c47cda12f4ca8cfddfaf39d4c7 to your computer and use it in GitHub Desktop.
Save jongravois/83b2a3c47cda12f4ca8cfddfaf39d4c7 to your computer and use it in GitHub Desktop.
Store
import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
import getters from './getters';
import mutations from './mutations';
import actions from './actions';
export const store = new Vuex.Store({
state: {
current_user: {},
events: [
{
id: 1,
name: 'Tupelo Arrival: B747',
date: '2017-12-17'
},{
id: 2,
name: 'Humana Open Enrollment',
date: '2018-01-01'
},
{
id: 3,
name: 'Tupelo Arrival: A380',
date: '2018-01-19'
},
{
id: 4,
name: 'UAM Board Meeting',
date: '2018-02-28'
},
{
id: 5,
name: 'Airbus/Boeing Symposium',
date: '2018-07-15'
}
],
ceo_sales: {
value_boxes: [
{
id: 101,
title: 'Sales vs Target',
value: 123,
secondary_val: 8,
unit: 'currency',
val_operand: 'positive'
},
{
id: 102,
title: 'Performance Against Model',
value: 2.09,
secondary_val: null,
unit: 'percentage',
val_operand: 'positive'
}
],
charts: {
gross: 1190500,
net: 1019440,
gp: 910229,
books: 798390,
},
labels: [
'gross', 'net', 'gp', 'book'
],
vals: [
1190500, 1019440, 1019440, 798390
]
},
ceo_tupelo: {
value_boxes: [
{
id: 201,
title: 'Scrap Revenue',
value: 102839,
unit: 'currency',
val_operand: 'positive'
},
{
id: 202,
title: 'Revenue v Goal',
value: 19.3,
unit: 'percentage',
val_operand: 'positive'
}
],
progress: [
{
id: 203,
title: 'Completed v Targeted',
value: 92,
unit: 'count',
val_operand: 'positive'
},
{
id: 204,
title: 'Landed',
value: 54,
unit: 'count',
val_operand: 'positive'
},
{
id: 205,
title: 'Disassembled',
value: 14,
unit: 'count',
val_operand: 'positive'
},
{
id: 206,
title: 'Engines Disassembled',
value: 3,
unit: 'count',
val_operand: 'positive'
}
]
}
},
getters,
mutations,
actions
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment