@mjhls/mjh-framework 1.0.30 → 1.0.32
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 +170 -170
- package/dist/index.es.js +36 -15
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +36 -15
- package/dist/index.js.map +1 -1
- package/package.json +77 -77
package/dist/index.js
CHANGED
|
@@ -556,6 +556,7 @@ var DeckContent = function (_React$Component) {
|
|
|
556
556
|
|
|
557
557
|
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
558
558
|
data: _this.data,
|
|
559
|
+
dataKeptToCompareNewDatarecord: _this.data,
|
|
559
560
|
per: _this.params ? _this.params.to : 2,
|
|
560
561
|
page: 1,
|
|
561
562
|
from: _this.params ? _this.params.from : 0,
|
|
@@ -684,6 +685,24 @@ var DeckContent = function (_React$Component) {
|
|
|
684
685
|
}
|
|
685
686
|
|
|
686
687
|
createClass(DeckContent, [{
|
|
688
|
+
key: 'componentDidUpdate',
|
|
689
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
690
|
+
if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
|
|
691
|
+
// eslint-disable-next-line react/no-did-update-set-state
|
|
692
|
+
this.setState({
|
|
693
|
+
data: this.props.dataRecord,
|
|
694
|
+
dataKeptToCompareNewDatarecord: this.props.dataRecord,
|
|
695
|
+
per: this.props.params ? this.props.params.to : 2,
|
|
696
|
+
page: 1,
|
|
697
|
+
from: this.props.params ? this.props.params.from : 0,
|
|
698
|
+
to: this.props.params ? this.props.params.to : 2,
|
|
699
|
+
total_pages: null,
|
|
700
|
+
scrolling: true,
|
|
701
|
+
query: this.props.query
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
}, {
|
|
687
706
|
key: 'componentDidMount',
|
|
688
707
|
value: function componentDidMount() {
|
|
689
708
|
// this.loadData();
|
|
@@ -2251,6 +2270,8 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
2251
2270
|
};
|
|
2252
2271
|
|
|
2253
2272
|
var Column1 = function Column1(props) {
|
|
2273
|
+
var title = props.title;
|
|
2274
|
+
|
|
2254
2275
|
return React__default.createElement(
|
|
2255
2276
|
'section',
|
|
2256
2277
|
null,
|
|
@@ -2259,11 +2280,11 @@ var Column1 = function Column1(props) {
|
|
|
2259
2280
|
{ className: 'justify-content-md-center' },
|
|
2260
2281
|
React__default.createElement(
|
|
2261
2282
|
Col,
|
|
2262
|
-
{ className: 'middleCol', style: { marginTop: !
|
|
2263
|
-
|
|
2283
|
+
{ className: 'middleCol', style: { marginTop: !title && '10px' } },
|
|
2284
|
+
title && React__default.createElement(
|
|
2264
2285
|
'h1',
|
|
2265
2286
|
null,
|
|
2266
|
-
|
|
2287
|
+
title
|
|
2267
2288
|
),
|
|
2268
2289
|
props.children
|
|
2269
2290
|
)
|
|
@@ -2272,7 +2293,8 @@ var Column1 = function Column1(props) {
|
|
|
2272
2293
|
};
|
|
2273
2294
|
|
|
2274
2295
|
var Column2 = function Column2(props) {
|
|
2275
|
-
var rightItems = props.rightItems
|
|
2296
|
+
var rightItems = props.rightItems,
|
|
2297
|
+
title = props.title;
|
|
2276
2298
|
|
|
2277
2299
|
|
|
2278
2300
|
return React__default.createElement(
|
|
@@ -2283,11 +2305,11 @@ var Column2 = function Column2(props) {
|
|
|
2283
2305
|
{ className: 'justify-content-md-center' },
|
|
2284
2306
|
React__default.createElement(
|
|
2285
2307
|
Col,
|
|
2286
|
-
{ md: true, className: 'middleCol', style: { marginTop: !
|
|
2287
|
-
|
|
2308
|
+
{ md: true, className: 'middleCol', style: { marginTop: !title && '10px' } },
|
|
2309
|
+
title && React__default.createElement(
|
|
2288
2310
|
'h1',
|
|
2289
2311
|
null,
|
|
2290
|
-
|
|
2312
|
+
title
|
|
2291
2313
|
),
|
|
2292
2314
|
props.children
|
|
2293
2315
|
),
|
|
@@ -2378,8 +2400,8 @@ var LeftNav = function LeftNav(props) {
|
|
|
2378
2400
|
|
|
2379
2401
|
var Column3 = function Column3(props) {
|
|
2380
2402
|
var leftItems = props.leftItems,
|
|
2381
|
-
rightItems = props.rightItems
|
|
2382
|
-
|
|
2403
|
+
rightItems = props.rightItems,
|
|
2404
|
+
title = props.title;
|
|
2383
2405
|
|
|
2384
2406
|
return React__default.createElement(
|
|
2385
2407
|
'section',
|
|
@@ -2394,11 +2416,11 @@ var Column3 = function Column3(props) {
|
|
|
2394
2416
|
),
|
|
2395
2417
|
React__default.createElement(
|
|
2396
2418
|
Col,
|
|
2397
|
-
{ md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !
|
|
2398
|
-
|
|
2419
|
+
{ md: true, className: 'middleCol', style: { maxWidth: '640px', marginTop: !title && '10px' } },
|
|
2420
|
+
title && React__default.createElement(
|
|
2399
2421
|
'h1',
|
|
2400
2422
|
null,
|
|
2401
|
-
|
|
2423
|
+
title
|
|
2402
2424
|
),
|
|
2403
2425
|
props.children
|
|
2404
2426
|
),
|
|
@@ -4746,8 +4768,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
4746
4768
|
keywords = props.keywords,
|
|
4747
4769
|
description = props.description,
|
|
4748
4770
|
website = props.website,
|
|
4749
|
-
horizontalAD = props.config.horizontalAD
|
|
4750
|
-
onSearch = props.onSearch;
|
|
4771
|
+
horizontalAD = props.config.horizontalAD;
|
|
4751
4772
|
|
|
4752
4773
|
|
|
4753
4774
|
var navigation = function navigation() {
|
|
@@ -4793,7 +4814,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
4793
4814
|
return React__default.createElement(
|
|
4794
4815
|
'section',
|
|
4795
4816
|
null,
|
|
4796
|
-
React__default.createElement(Header, { title: title, keyword: keywords, description: description }),
|
|
4817
|
+
React__default.createElement(Header, { title: title + ' | ' + website.title, keyword: keywords, description: description }),
|
|
4797
4818
|
navigation(),
|
|
4798
4819
|
horizontalAD && horizontalAD.networkID && horizontalAD.adUnit && React__default.createElement(
|
|
4799
4820
|
Container,
|