@mjhls/mjh-framework 1.0.186 → 1.0.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.es.js +82 -75
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +81 -74
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -10477,18 +10477,18 @@ var DeckContent = function (_React$Component) {
|
|
|
10477
10477
|
|
|
10478
10478
|
if (currentPage !== pageNumber) {
|
|
10479
10479
|
lib_3.refresh();
|
|
10480
|
-
if (pageview) {
|
|
10481
|
-
_this.setState({
|
|
10482
|
-
currentPage: pageNumber
|
|
10483
|
-
}, function () {
|
|
10484
|
-
if (path[0] !== '/') {
|
|
10485
|
-
path = '/' + path;
|
|
10486
|
-
}
|
|
10487
10480
|
|
|
10488
|
-
|
|
10481
|
+
_this.setState({
|
|
10482
|
+
currentPage: pageNumber
|
|
10483
|
+
}, function () {
|
|
10484
|
+
if (path[0] !== '/') {
|
|
10485
|
+
path = '/' + path;
|
|
10486
|
+
}
|
|
10487
|
+
|
|
10488
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
10489
10489
|
|
|
10490
|
-
|
|
10491
|
-
|
|
10490
|
+
// please leave this for later debug purpose : Yong Jun.
|
|
10491
|
+
/* console.log('page change reported', {
|
|
10492
10492
|
currentPage: currentPage,
|
|
10493
10493
|
pageNumber: pageNumber,
|
|
10494
10494
|
pathname: pathname,
|
|
@@ -10496,15 +10496,16 @@ var DeckContent = function (_React$Component) {
|
|
|
10496
10496
|
newPath: newPath,
|
|
10497
10497
|
firstPage: pageNumber === 1,
|
|
10498
10498
|
queryString: queryString
|
|
10499
|
-
|
|
10499
|
+
}) */
|
|
10500
10500
|
|
|
10501
|
+
if (pageview) {
|
|
10501
10502
|
pageview(newPath);
|
|
10503
|
+
}
|
|
10502
10504
|
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
});
|
|
10505
|
+
router.push(pathname, newPath, {
|
|
10506
|
+
shallow: true
|
|
10506
10507
|
});
|
|
10507
|
-
}
|
|
10508
|
+
});
|
|
10508
10509
|
}
|
|
10509
10510
|
}
|
|
10510
10511
|
}, _this.renderAuthor = function (authorDetail, index$$1, length) {
|
|
@@ -11880,23 +11881,23 @@ var GridContent = function (_React$Component) {
|
|
|
11880
11881
|
|
|
11881
11882
|
if (currentPage !== pageNumber) {
|
|
11882
11883
|
lib_3.refresh();
|
|
11883
|
-
if (pageview) {
|
|
11884
|
-
_this.setState({
|
|
11885
|
-
currentPage: pageNumber
|
|
11886
|
-
}, function () {
|
|
11887
|
-
if (path[0] !== '/') {
|
|
11888
|
-
path = '/' + path;
|
|
11889
|
-
}
|
|
11890
11884
|
|
|
11891
|
-
|
|
11885
|
+
_this.setState({
|
|
11886
|
+
currentPage: pageNumber
|
|
11887
|
+
}, function () {
|
|
11888
|
+
if (path[0] !== '/') {
|
|
11889
|
+
path = '/' + path;
|
|
11890
|
+
}
|
|
11892
11891
|
|
|
11892
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
11893
|
+
if (pageview) {
|
|
11893
11894
|
pageview(newPath);
|
|
11895
|
+
}
|
|
11894
11896
|
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
});
|
|
11897
|
+
router.push(pathname, newPath, {
|
|
11898
|
+
shallow: true
|
|
11898
11899
|
});
|
|
11899
|
-
}
|
|
11900
|
+
});
|
|
11900
11901
|
}
|
|
11901
11902
|
}
|
|
11902
11903
|
}, _this.renderAuthor = function (authorDetail, index$$1, length) {
|
|
@@ -12464,23 +12465,24 @@ var DeckQueue = function (_React$Component) {
|
|
|
12464
12465
|
|
|
12465
12466
|
if (currentPage !== pageNumber) {
|
|
12466
12467
|
lib_3.refresh();
|
|
12467
|
-
if (pageview) {
|
|
12468
|
-
_this.setState({
|
|
12469
|
-
currentPage: pageNumber
|
|
12470
|
-
}, function () {
|
|
12471
|
-
if (path[0] !== '/') {
|
|
12472
|
-
path = '/' + path;
|
|
12473
|
-
}
|
|
12474
12468
|
|
|
12475
|
-
|
|
12469
|
+
_this.setState({
|
|
12470
|
+
currentPage: pageNumber
|
|
12471
|
+
}, function () {
|
|
12472
|
+
if (path[0] !== '/') {
|
|
12473
|
+
path = '/' + path;
|
|
12474
|
+
}
|
|
12475
|
+
|
|
12476
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
12476
12477
|
|
|
12478
|
+
if (pageview) {
|
|
12477
12479
|
pageview(newPath);
|
|
12480
|
+
}
|
|
12478
12481
|
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
});
|
|
12482
|
+
router.push(pathname, newPath, {
|
|
12483
|
+
shallow: true
|
|
12482
12484
|
});
|
|
12483
|
-
}
|
|
12485
|
+
});
|
|
12484
12486
|
}
|
|
12485
12487
|
}
|
|
12486
12488
|
}, _this.renderMobileAd = function (index$$1, numberOfItemsBeforeAd) {
|
|
@@ -13292,17 +13294,20 @@ var changePageNumber = function changePageNumber(pageNumber, seoPaginate, pagevi
|
|
|
13292
13294
|
|
|
13293
13295
|
if (currentPage !== pageNumber) {
|
|
13294
13296
|
lib_3.refresh();
|
|
13297
|
+
|
|
13298
|
+
setCurrentPage(pageNumber);
|
|
13299
|
+
if (path[0] !== '/') {
|
|
13300
|
+
path = '/' + path;
|
|
13301
|
+
}
|
|
13302
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
13303
|
+
|
|
13295
13304
|
if (pageview) {
|
|
13296
|
-
setCurrentPage(pageNumber);
|
|
13297
|
-
if (path[0] !== '/') {
|
|
13298
|
-
path = '/' + path;
|
|
13299
|
-
}
|
|
13300
|
-
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
13301
13305
|
pageview(newPath);
|
|
13302
|
-
router.push(pathname, newPath, {
|
|
13303
|
-
shallow: true
|
|
13304
|
-
});
|
|
13305
13306
|
}
|
|
13307
|
+
|
|
13308
|
+
router.push(pathname, newPath, {
|
|
13309
|
+
shallow: true
|
|
13310
|
+
});
|
|
13306
13311
|
}
|
|
13307
13312
|
}
|
|
13308
13313
|
};
|
|
@@ -13982,23 +13987,24 @@ var VideoSeriesListing = function (_React$Component) {
|
|
|
13982
13987
|
|
|
13983
13988
|
if (currentPage !== pageNumber) {
|
|
13984
13989
|
lib_3.refresh();
|
|
13985
|
-
if (pageview) {
|
|
13986
|
-
_this.setState({
|
|
13987
|
-
currentPage: pageNumber
|
|
13988
|
-
}, function () {
|
|
13989
|
-
if (path[0] !== '/') {
|
|
13990
|
-
path = '/' + path;
|
|
13991
|
-
}
|
|
13992
13990
|
|
|
13993
|
-
|
|
13991
|
+
_this.setState({
|
|
13992
|
+
currentPage: pageNumber
|
|
13993
|
+
}, function () {
|
|
13994
|
+
if (path[0] !== '/') {
|
|
13995
|
+
path = '/' + path;
|
|
13996
|
+
}
|
|
13997
|
+
|
|
13998
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
13994
13999
|
|
|
14000
|
+
if (pageview) {
|
|
13995
14001
|
pageview(newPath);
|
|
14002
|
+
}
|
|
13996
14003
|
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
});
|
|
14004
|
+
router.push(pathname, newPath, {
|
|
14005
|
+
shallow: true
|
|
14000
14006
|
});
|
|
14001
|
-
}
|
|
14007
|
+
});
|
|
14002
14008
|
}
|
|
14003
14009
|
}
|
|
14004
14010
|
}, _this.renderManualPagination = function () {
|
|
@@ -14240,18 +14246,18 @@ var MasterDeck = function (_React$Component) {
|
|
|
14240
14246
|
|
|
14241
14247
|
if (currentPage !== pageNumber) {
|
|
14242
14248
|
lib_3.refresh();
|
|
14243
|
-
if (pageview) {
|
|
14244
|
-
_this.setState({
|
|
14245
|
-
currentPage: pageNumber
|
|
14246
|
-
}, function () {
|
|
14247
|
-
if (path[0] !== '/') {
|
|
14248
|
-
path = '/' + path;
|
|
14249
|
-
}
|
|
14250
14249
|
|
|
14251
|
-
|
|
14250
|
+
_this.setState({
|
|
14251
|
+
currentPage: pageNumber
|
|
14252
|
+
}, function () {
|
|
14253
|
+
if (path[0] !== '/') {
|
|
14254
|
+
path = '/' + path;
|
|
14255
|
+
}
|
|
14252
14256
|
|
|
14253
|
-
|
|
14254
|
-
|
|
14257
|
+
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
14258
|
+
|
|
14259
|
+
// please leave this for later debug purpose : Yong Jun.
|
|
14260
|
+
/* console.log('page change reported', {
|
|
14255
14261
|
currentPage: currentPage,
|
|
14256
14262
|
pageNumber: pageNumber,
|
|
14257
14263
|
pathname: pathname,
|
|
@@ -14259,15 +14265,16 @@ var MasterDeck = function (_React$Component) {
|
|
|
14259
14265
|
newPath: newPath,
|
|
14260
14266
|
firstPage: pageNumber === 1,
|
|
14261
14267
|
queryString: queryString
|
|
14262
|
-
|
|
14268
|
+
}) */
|
|
14263
14269
|
|
|
14270
|
+
if (pageview) {
|
|
14264
14271
|
pageview(newPath);
|
|
14272
|
+
}
|
|
14265
14273
|
|
|
14266
|
-
|
|
14267
|
-
|
|
14268
|
-
});
|
|
14274
|
+
router.push(pathname, newPath, {
|
|
14275
|
+
shallow: true
|
|
14269
14276
|
});
|
|
14270
|
-
}
|
|
14277
|
+
});
|
|
14271
14278
|
}
|
|
14272
14279
|
}
|
|
14273
14280
|
}, _this.renderAuthor = function (authorDetail, index$$1, length) {
|