PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / trunk
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses vtrunk
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / assets / src / apps / js / admin / editor / store / course.js

course.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses trunk, at assets/src/apps/js/admin/editor/store/course.js

31 lines 698 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import ModalCourseItems from '../store/modal-course-items';
2 import CourseSection from '../store/course-section';
3 import i18n from '../store/i18n';
4 import getters from '../getters/course';
5 import mutations from '../mutations/course';
6 import actions from '../actions/course';
7
8 const $ = window.jQuery;
9
10 const Course = function Course( data ) {
11 var state = $.extend( {}, data.root );
12
13 state.status = 'success';
14 state.heartbeat = true;
15 state.countCurrentRequest = 0;
16
17 return {
18 state: state,
19 getters: getters,
20 mutations: mutations,
21 actions: actions,
22 modules: {
23 ci: ModalCourseItems( data ),
24 i18n: i18n( data.i18n ),
25 ss: CourseSection( data ),
26 },
27 };
28 };
29
30 export default Course;
31