| 1 |
import HTTP from './http'; |
| 2 |
import CourseStore from './store/course'; |
| 3 |
|
| 4 |
window.$Vue = window.$Vue || Vue; |
| 5 |
window.$Vuex = window.$Vuex || Vuex; |
| 6 |
|
| 7 |
const $ = window.jQuery; |
| 8 |
|
| 9 |
/** |
| 10 |
* Init app. |
| 11 |
* |
| 12 |
* @since 3.0.0 |
| 13 |
*/ |
| 14 |
$( document ).ready( function() { |
| 15 |
window.LP_Curriculum_Store = new $Vuex.Store( CourseStore( lpAdminCourseEditorSettings ) ); |
| 16 |
HTTP( { ns: 'LPCurriculumRequest', store: LP_Curriculum_Store } ); |
| 17 |
|
| 18 |
setTimeout( () => { |
| 19 |
window.LP_Course_Editor = new $Vue( { |
| 20 |
el: '#admin-editor-lp_course', |
| 21 |
template: '<lp-course-editor></lp-course-editor>', |
| 22 |
} ); |
| 23 |
}, 100 ); |
| 24 |
} ); |
| 25 |
|