| 1 |
import getters from '../getters/question'; |
| 2 |
import mutations from '../mutations/question'; |
| 3 |
import actions from '../actions/question'; |
| 4 |
|
| 5 |
const $ = window.jQuery || jQuery; |
| 6 |
|
| 7 |
const Question = function Question( data ) { |
| 8 |
var state = $.extend( { |
| 9 |
status: 'successful', |
| 10 |
countCurrentRequest: 0, |
| 11 |
i18n: $.extend( {}, data.i18n ), |
| 12 |
}, data.root ); |
| 13 |
|
| 14 |
return { |
| 15 |
state: state, |
| 16 |
getters: getters, |
| 17 |
mutations: mutations, |
| 18 |
actions: actions, |
| 19 |
}; |
| 20 |
}; |
| 21 |
|
| 22 |
export default Question; |
| 23 |
|