| 1 |
import QuizStore from './store/quiz'; |
| 2 |
import HTTP from './http'; |
| 3 |
import './fill-in-blanks'; |
| 4 |
|
| 5 |
window.$Vue = window.$Vue || Vue; |
| 6 |
window.$Vuex = window.$Vuex || Vuex; |
| 7 |
|
| 8 |
/** |
| 9 |
* Init app. |
| 10 |
* |
| 11 |
* @since 3.0.0 |
| 12 |
*/ |
| 13 |
|
| 14 |
window.jQuery( document ).ready( function() { |
| 15 |
window.LP_Quiz_Store = new $Vuex.Store( QuizStore( lp_quiz_editor ) ); |
| 16 |
HTTP( { ns: 'LPListQuizQuestionsRequest', store: LP_Quiz_Store } ); |
| 17 |
|
| 18 |
setTimeout( () => { |
| 19 |
window.LP_Quiz_Editor = new $Vue( { |
| 20 |
el: '#admin-editor-lp_quiz', |
| 21 |
template: '<lp-quiz-editor></lp-quiz-editor>', |
| 22 |
} ); |
| 23 |
}, 100 ); |
| 24 |
} ); |
| 25 |
|