PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.4
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.4
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 / js / admin / admin-statistic.js

admin-statistic.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.4, at assets/src/js/admin/admin-statistic.js

40 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Statistics dashboard entry — bootstraps the per-tab modules.
3 *
4 * All four tabs run on the statistics/* module stack (state, api, chart,
5 * data-table, report-modal); the legacy per-tab loaders are gone.
6 *
7 * @since 4.2.5.5
8 * @version 2.0.0
9 */
10
11 import * as lpUtils from 'lpAssetsJsPath/utils.js';
12 import { lpStatsFilterBar, LpStatsFilterBar } from './statistics/filter-bar.js';
13 import { lpStatsReportModal } from './statistics/report-modal.js';
14 import { lpStatsTabOverview, LpStatsTabOverview } from './statistics/tab-overview.js';
15 import { lpStatsTabOrders, LpStatsTabOrders } from './statistics/tab-orders.js';
16 import { lpStatsTabCourses, LpStatsTabCourses } from './statistics/tab-courses.js';
17 import { lpStatsTabUsers, LpStatsTabUsers } from './statistics/tab-users.js';
18 import { lpStatsTabInstructors, LpStatsTabInstructors } from './statistics/tab-instructors.js';
19
20 lpUtils.lpOnElementReady( LpStatsFilterBar.selectors.elContainer, () => {
21 lpStatsFilterBar.init();
22 } );
23 // SweetAlert2 popup: delegated events only, no rendered container to wait for.
24 lpStatsReportModal.init();
25 lpUtils.lpOnElementReady( LpStatsTabOverview.selectors.elContainer, () => {
26 lpStatsTabOverview.init();
27 } );
28 lpUtils.lpOnElementReady( LpStatsTabOrders.selectors.elContainer, () => {
29 lpStatsTabOrders.init();
30 } );
31 lpUtils.lpOnElementReady( LpStatsTabCourses.selectors.elContainer, () => {
32 lpStatsTabCourses.init();
33 } );
34 lpUtils.lpOnElementReady( LpStatsTabUsers.selectors.elContainer, () => {
35 lpStatsTabUsers.init();
36 } );
37 lpUtils.lpOnElementReady( LpStatsTabInstructors.selectors.elContainer, () => {
38 lpStatsTabInstructors.init();
39 } );
40