@mjhls/mjh-framework 1.0.866-d4d665.2 → 1.0.866-youtube-group-v1
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 +168 -168
- package/dist/cjs/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/AD728x90.js +3 -3
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +2 -2
- package/dist/cjs/AlgoliaSearch.js +18 -36
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -5
- package/dist/cjs/ArticleSeriesListing.js +3 -3
- package/dist/cjs/Auth.js +41 -6
- package/dist/cjs/AuthWrapper.js +228 -189
- package/dist/cjs/CMEDeck.js +3 -3
- package/dist/cjs/Column3.js +3 -3
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +13 -13
- package/dist/cjs/DeckQueue.js +4 -4
- package/dist/cjs/EventsDeck.js +21 -21
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +8 -8
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +13 -13
- package/dist/cjs/MediaSeriesLanding.js +149 -193
- package/dist/cjs/NavMagazine.js +14 -14
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +114 -138
- package/dist/cjs/PubSection.js +5 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -3
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-19548e2a.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +14 -14
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +33 -14
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
- package/dist/cjs/getRelatedArticle.js +62 -126
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-21103688.js → getTargeting-a9a871f0.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index-4990e6c9.js → index-f83a102a.js} +22 -22
- package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +3 -3
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +2 -2
- package/dist/esm/AlgoliaSearch.js +17 -35
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +5 -5
- package/dist/esm/ArticleSeriesLandingPage.js +5 -5
- package/dist/esm/ArticleSeriesListing.js +3 -3
- package/dist/esm/Auth.js +42 -7
- package/dist/esm/AuthWrapper.js +228 -189
- package/dist/esm/CMEDeck.js +3 -3
- package/dist/esm/Column3.js +3 -3
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +13 -13
- package/dist/esm/DeckQueue.js +4 -4
- package/dist/esm/EventsDeck.js +21 -21
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +8 -8
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +15 -15
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +13 -13
- package/dist/esm/MediaSeriesLanding.js +149 -193
- package/dist/esm/NavMagazine.js +14 -14
- package/dist/esm/NavNative.js +12 -12
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +115 -139
- package/dist/esm/PubSection.js +5 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +3 -3
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-7d89f4d9.js} +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-47815365.js} +3 -3
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +5 -5
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesLandingPage.js +5 -5
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +14 -14
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +33 -14
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-88d69971.js → getTargeting-bd800589.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-bec35c6c.js → index-82fea143.js} +22 -22
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
- package/dist/esm/index.js +12 -12
- package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/package.json +111 -111
- /package/dist/cjs/{ADInfeed-799275aa.js → ADInfeed-25d48cc2.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-a535a768.js} +0 -0
- /package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-56a3db8b.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-53edb995.js} +0 -0
package/dist/esm/CMEDeck.js
CHANGED
|
@@ -14,10 +14,10 @@ import { useRouter } from 'next/router';
|
|
|
14
14
|
import './isSymbol-1981418f.js';
|
|
15
15
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
16
16
|
import './toNumber-2f7a84cd.js';
|
|
17
|
-
import { I as InfiniteScroll } from './index.es-
|
|
17
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
18
18
|
import 'react-dom';
|
|
19
19
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
20
|
-
import { m as
|
|
20
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
21
21
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
22
22
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
23
23
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
@@ -286,7 +286,7 @@ var CMEDeck = function CMEDeck(_ref) {
|
|
|
286
286
|
)
|
|
287
287
|
)
|
|
288
288
|
),
|
|
289
|
-
|
|
289
|
+
main_40 && rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && React.createElement(
|
|
290
290
|
'div',
|
|
291
291
|
{ style: { margin: '0 auto' } },
|
|
292
292
|
renderMobileAd(index, numberOfItemsBeforeAd)
|
package/dist/esm/Column3.js
CHANGED
|
@@ -17,7 +17,7 @@ import Col from 'react-bootstrap/Col';
|
|
|
17
17
|
import './isSymbol-1981418f.js';
|
|
18
18
|
import './debounce-9207d8ee.js';
|
|
19
19
|
import './toNumber-2f7a84cd.js';
|
|
20
|
-
import { m as
|
|
20
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
21
21
|
import './slicedToArray-641f241f.js';
|
|
22
22
|
import './stringify-4330ccdc.js';
|
|
23
23
|
import './asyncToGenerator-fc1c2e29.js';
|
|
@@ -52,7 +52,7 @@ var Column3 = function Column3(props) {
|
|
|
52
52
|
var adRef = useRef(null);
|
|
53
53
|
|
|
54
54
|
useEffect(function () {
|
|
55
|
-
if (!
|
|
55
|
+
if (!main_40 && window.innerWidth >= 768) {
|
|
56
56
|
var navbar = document.querySelector('.navbar');
|
|
57
57
|
var AdOffsetTop = adRef.current.getBoundingClientRect().top;
|
|
58
58
|
window.addEventListener('scroll', function () {
|
|
@@ -112,7 +112,7 @@ var Column3 = function Column3(props) {
|
|
|
112
112
|
{ jsx: 'true' },
|
|
113
113
|
'\n .filter-box {\n float: right;\n padding-top: 6px;\n padding-right: 18px;\n }\n @media only screen and (min-width: 768px) {\n .title-wrap {\n display: flex;\n justify-content: space-between;\n }\n }\n @media only screen and (max-width: 767px) {\n /* .filter-box {\n float: right;\n display: flex;\n justify-content: flex-end;\n } */\n .title-wrap {\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n }\n }\n '
|
|
114
114
|
),
|
|
115
|
-
(!
|
|
115
|
+
(!main_40 || showRightAd) && React.createElement(
|
|
116
116
|
Col,
|
|
117
117
|
{ xs: 12, className: 'rightCol' },
|
|
118
118
|
website && website.conferenceBannerContent && React.createElement(ConferenceBanner, { website: website }),
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { m as moment } from './moment-
|
|
3
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
4
4
|
import './index-51a80699.js';
|
|
5
5
|
import urlFor from './urlFor.js';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
Example usage - targetedonc.com/latest-conference
|
|
9
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
10
|
-
...,
|
|
11
|
-
title,
|
|
12
|
-
summary,
|
|
13
|
-
thumbnail,
|
|
14
|
-
url,
|
|
15
|
-
published,
|
|
16
|
-
documentGroup->,
|
|
17
|
-
contentCategory->,
|
|
18
|
-
'pageNumber': ${currentPage}
|
|
19
|
-
}`
|
|
20
|
-
|
|
21
|
-
const posts = await client.fetch(query, params)
|
|
7
|
+
/*
|
|
8
|
+
Example usage - targetedonc.com/latest-conference
|
|
9
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
10
|
+
...,
|
|
11
|
+
title,
|
|
12
|
+
summary,
|
|
13
|
+
thumbnail,
|
|
14
|
+
url,
|
|
15
|
+
published,
|
|
16
|
+
documentGroup->,
|
|
17
|
+
contentCategory->,
|
|
18
|
+
'pageNumber': ${currentPage}
|
|
19
|
+
}`
|
|
20
|
+
|
|
21
|
+
const posts = await client.fetch(query, params)
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -21,18 +21,18 @@ import Container from 'react-bootstrap/Container';
|
|
|
21
21
|
import Row from 'react-bootstrap/Row';
|
|
22
22
|
import Col from 'react-bootstrap/Col';
|
|
23
23
|
import Card from 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
25
25
|
import { withRouter } from 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
32
32
|
import './index-51a80699.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
36
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
37
|
import './slicedToArray-641f241f.js';
|
|
38
38
|
import './stringify-4330ccdc.js';
|
|
@@ -40,7 +40,7 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
40
40
|
import './Segment.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
43
|
+
import { A as ADInfeed } from './ADInfeed-56a3db8b.js';
|
|
44
44
|
|
|
45
45
|
var DeckContent = function (_React$Component) {
|
|
46
46
|
_inherits(DeckContent, _React$Component);
|
|
@@ -174,14 +174,14 @@ var DeckContent = function (_React$Component) {
|
|
|
174
174
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
175
175
|
|
|
176
176
|
// please leave this for later debug purpose : Yong Jun.
|
|
177
|
-
/* console.log('page change reported', {
|
|
178
|
-
currentPage: currentPage,
|
|
179
|
-
pageNumber: pageNumber,
|
|
180
|
-
pathname: pathname,
|
|
181
|
-
path: path,
|
|
182
|
-
newPath: newPath,
|
|
183
|
-
firstPage: pageNumber === 1,
|
|
184
|
-
queryString: queryString
|
|
177
|
+
/* console.log('page change reported', {
|
|
178
|
+
currentPage: currentPage,
|
|
179
|
+
pageNumber: pageNumber,
|
|
180
|
+
pathname: pathname,
|
|
181
|
+
path: path,
|
|
182
|
+
newPath: newPath,
|
|
183
|
+
firstPage: pageNumber === 1,
|
|
184
|
+
queryString: queryString
|
|
185
185
|
}) */
|
|
186
186
|
|
|
187
187
|
if (pageview) {
|
|
@@ -346,7 +346,7 @@ var DeckContent = function (_React$Component) {
|
|
|
346
346
|
)
|
|
347
347
|
)
|
|
348
348
|
),
|
|
349
|
-
|
|
349
|
+
main_40 && _this.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
350
350
|
);
|
|
351
351
|
}
|
|
352
352
|
})
|
package/dist/esm/DeckQueue.js
CHANGED
|
@@ -21,18 +21,18 @@ import Container from 'react-bootstrap/Container';
|
|
|
21
21
|
import Row from 'react-bootstrap/Row';
|
|
22
22
|
import Col from 'react-bootstrap/Col';
|
|
23
23
|
import Card from 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
25
25
|
import { withRouter } from 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
32
32
|
import './index-51a80699.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
36
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
37
|
import { g as get_1 } from './get-1e515072.js';
|
|
38
38
|
import './eq-b470f743.js';
|
|
@@ -302,7 +302,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
302
302
|
)
|
|
303
303
|
)
|
|
304
304
|
),
|
|
305
|
-
|
|
305
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
306
306
|
);
|
|
307
307
|
})
|
|
308
308
|
);
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -13,10 +13,10 @@ import Container from 'react-bootstrap/Container';
|
|
|
13
13
|
import Row from 'react-bootstrap/Row';
|
|
14
14
|
import Col from 'react-bootstrap/Col';
|
|
15
15
|
import Card from 'react-bootstrap/Card';
|
|
16
|
-
import './moment-
|
|
16
|
+
import './moment-b6f49411.js';
|
|
17
17
|
import { useRouter } from 'next/router';
|
|
18
|
-
import { I as InfiniteScroll } from './index.es-
|
|
19
|
-
import './main-
|
|
18
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
19
|
+
import './main-747e7d25.js';
|
|
20
20
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-641f241f.js';
|
|
21
21
|
import { _ as _JSON$stringify } from './stringify-4330ccdc.js';
|
|
22
22
|
import Button from 'react-bootstrap/Button';
|
|
@@ -24,7 +24,7 @@ import { _ as _objectToArray } from './_object-to-array-7e804fce.js';
|
|
|
24
24
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
25
25
|
import Spinner from 'react-bootstrap/Spinner';
|
|
26
26
|
import Form from 'react-bootstrap/Form';
|
|
27
|
-
import { m as momentTimezone } from './index-
|
|
27
|
+
import { m as momentTimezone } from './index-c00b0bbb.js';
|
|
28
28
|
import { j as js_cookie } from './js.cookie-6874175c.js';
|
|
29
29
|
|
|
30
30
|
// https://github.com/tc39/proposal-object-values-entries
|
|
@@ -245,23 +245,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
245
245
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
246
246
|
setAccessToken(cventAccessToken);
|
|
247
247
|
} else {
|
|
248
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
-
fetch(url, {
|
|
252
|
-
headers: {
|
|
253
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
-
Authorization: `Basic ${encodedData}`
|
|
255
|
-
},
|
|
256
|
-
method: 'POST',
|
|
257
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
-
})
|
|
259
|
-
.then((response) => response.json())
|
|
260
|
-
.then((json) => {
|
|
261
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
-
setAccessToken(json.access_token)
|
|
264
|
-
})
|
|
248
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
249
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
250
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
251
|
+
fetch(url, {
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
254
|
+
Authorization: `Basic ${encodedData}`
|
|
255
|
+
},
|
|
256
|
+
method: 'POST',
|
|
257
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
258
|
+
})
|
|
259
|
+
.then((response) => response.json())
|
|
260
|
+
.then((json) => {
|
|
261
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
262
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
263
|
+
setAccessToken(json.access_token)
|
|
264
|
+
})
|
|
265
265
|
.catch((e) => console.log(e))*/
|
|
266
266
|
// hello
|
|
267
267
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -19,7 +19,7 @@ import './index-f7fb1e25.js';
|
|
|
19
19
|
import 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
21
21
|
import 'react-bootstrap/Col';
|
|
22
|
-
import './moment-
|
|
22
|
+
import './moment-b6f49411.js';
|
|
23
23
|
import { useRouter } from 'next/router';
|
|
24
24
|
import './isSymbol-1981418f.js';
|
|
25
25
|
import './debounce-9207d8ee.js';
|
|
@@ -28,7 +28,7 @@ import 'react-dom';
|
|
|
28
28
|
import './index-51a80699.js';
|
|
29
29
|
import './urlFor.js';
|
|
30
30
|
import './index-6c12bdd5.js';
|
|
31
|
-
import './main-
|
|
31
|
+
import './main-747e7d25.js';
|
|
32
32
|
import './entities-7cc3bf45.js';
|
|
33
33
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
34
34
|
import './stringify-4330ccdc.js';
|
|
@@ -44,9 +44,9 @@ import './GroupDeck.js';
|
|
|
44
44
|
import 'react-bootstrap';
|
|
45
45
|
import './iconBase-602d52fe.js';
|
|
46
46
|
import './index.esm-3fdda599.js';
|
|
47
|
-
import { g as getSerializers } from './index-
|
|
47
|
+
import { g as getSerializers } from './index-82fea143.js';
|
|
48
48
|
import './util-7700fc59.js';
|
|
49
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
50
50
|
import 'next/head';
|
|
51
51
|
import 'react-share';
|
|
52
52
|
import './SocialShare.js';
|
|
@@ -56,7 +56,7 @@ import 'react-bootstrap/Figure';
|
|
|
56
56
|
import 'react-bootstrap/OverlayTrigger';
|
|
57
57
|
import 'react-bootstrap/Tooltip';
|
|
58
58
|
import 'react-bootstrap/Popover';
|
|
59
|
-
import { m as momentTimezone } from './index-
|
|
59
|
+
import { m as momentTimezone } from './index-c00b0bbb.js';
|
|
60
60
|
|
|
61
61
|
var ExternalResources = function ExternalResources(props) {
|
|
62
62
|
var resources = props.resources,
|
package/dist/esm/Feature.js
CHANGED
|
@@ -2,7 +2,7 @@ import './_commonjsHelpers-0c4b6f40.js';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './index-51a80699.js';
|
|
4
4
|
import urlFor from './urlFor.js';
|
|
5
|
-
import { m as
|
|
5
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
6
6
|
import Carousel from 'react-bootstrap/Carousel';
|
|
7
7
|
|
|
8
8
|
//Feature query to be used
|
|
@@ -30,7 +30,7 @@ var Feature = function Feature(props) {
|
|
|
30
30
|
|
|
31
31
|
//image width updated.
|
|
32
32
|
var imageWidth = 450;
|
|
33
|
-
if (
|
|
33
|
+
if (main_40) {
|
|
34
34
|
imageWidth = 225;
|
|
35
35
|
}
|
|
36
36
|
|
package/dist/esm/ForbesHero.js
CHANGED
|
@@ -5,7 +5,7 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
5
5
|
import './web.dom.iterable-4439f05a.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import 'prop-types';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import './index-51a80699.js';
|
|
11
11
|
import urlFor from './urlFor.js';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -21,18 +21,18 @@ import Container from 'react-bootstrap/Container';
|
|
|
21
21
|
import Row from 'react-bootstrap/Row';
|
|
22
22
|
import Col from 'react-bootstrap/Col';
|
|
23
23
|
import Card from 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
25
25
|
import { withRouter } from 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
27
|
import { d as debounce_1 } from './debounce-9207d8ee.js';
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import { I as InfiniteScroll } from './index.es-
|
|
29
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
32
32
|
import './index-51a80699.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
-
import { m as
|
|
35
|
+
import { m as main_40 } from './main-747e7d25.js';
|
|
36
36
|
import { c as clean_html_1 } from './entities-7cc3bf45.js';
|
|
37
37
|
import './slicedToArray-641f241f.js';
|
|
38
38
|
import './stringify-4330ccdc.js';
|
|
@@ -40,9 +40,9 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
40
40
|
import './Segment.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
43
|
+
import { A as ADInfeed } from './ADInfeed-56a3db8b.js';
|
|
44
44
|
import { l as lodash } from './lodash-ec8c6b48.js';
|
|
45
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
45
|
+
import { A as ADlgInfeed } from './ADlgInfeed-53edb995.js';
|
|
46
46
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
47
47
|
import { g as get_1 } from './get-1e515072.js';
|
|
48
48
|
import './eq-b470f743.js';
|
|
@@ -658,7 +658,7 @@ var GridContent = function (_React$Component) {
|
|
|
658
658
|
)
|
|
659
659
|
),
|
|
660
660
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
661
|
-
|
|
661
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
662
662
|
);
|
|
663
663
|
} else {
|
|
664
664
|
return React.createElement(
|
|
@@ -722,7 +722,7 @@ var GridContent = function (_React$Component) {
|
|
|
722
722
|
)
|
|
723
723
|
),
|
|
724
724
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
725
|
-
|
|
725
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
728
|
} else if (row._type === 'lg-infeed' && row.adUnit) {
|
|
@@ -810,7 +810,7 @@ var GridContent = function (_React$Component) {
|
|
|
810
810
|
)
|
|
811
811
|
),
|
|
812
812
|
showVideo && (posts.length < numberOfItemsBeforeVideo || index + 1 === numberOfItemsBeforeVideo) && React.createElement(VideoPlayer, null),
|
|
813
|
-
|
|
813
|
+
main_40 && _this2.props.rightItems && (index + 1) % numberOfItemsBeforeAd === 0 && _this2.renderMobileAd(index, numberOfItemsBeforeAd)
|
|
814
814
|
);
|
|
815
815
|
} else return null;
|
|
816
816
|
}) : React.createElement(
|
package/dist/esm/GridHero.js
CHANGED
|
@@ -5,7 +5,7 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
5
5
|
import './web.dom.iterable-4439f05a.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import 'prop-types';
|
|
8
|
-
import { m as moment } from './moment-
|
|
8
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import './index-51a80699.js';
|
|
11
11
|
import urlFor from './urlFor.js';
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -8,7 +8,7 @@ import './web.dom.iterable-4439f05a.js';
|
|
|
8
8
|
import React, { useRef, useState, useEffect } from 'react';
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import Container from 'react-bootstrap/Container';
|
|
11
|
-
import { m as
|
|
11
|
+
import { m as main_40, c as main_41 } from './main-747e7d25.js';
|
|
12
12
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
13
13
|
import './asyncToGenerator-fc1c2e29.js';
|
|
14
14
|
import Segment from './Segment.js';
|
|
@@ -25,18 +25,18 @@ import { N as NavFooter } from './NavFooter-c29526b7.js';
|
|
|
25
25
|
import { S as SocialNavFooter } from './index.esm-8ee5ff72.js';
|
|
26
26
|
import './SocialIcons.js';
|
|
27
27
|
import 'react-bootstrap/FormControl';
|
|
28
|
-
import { S as SocialSearchComponent } from './SocialSearchComponent-
|
|
28
|
+
import { S as SocialSearchComponent } from './SocialSearchComponent-47815365.js';
|
|
29
29
|
|
|
30
30
|
var HamMagazine = function HamMagazine(props) {
|
|
31
|
-
/*
|
|
32
|
-
Example Nav with acceptable props
|
|
33
|
-
<MagazineNav
|
|
34
|
-
showLogin
|
|
35
|
-
logo={props.settings.logo}
|
|
36
|
-
dataObject={props.cache.mainNavCache}
|
|
37
|
-
website={website}
|
|
38
|
-
subNav={props.cache.subNavCache}
|
|
39
|
-
/>
|
|
31
|
+
/*
|
|
32
|
+
Example Nav with acceptable props
|
|
33
|
+
<MagazineNav
|
|
34
|
+
showLogin
|
|
35
|
+
logo={props.settings.logo}
|
|
36
|
+
dataObject={props.cache.mainNavCache}
|
|
37
|
+
website={website}
|
|
38
|
+
subNav={props.cache.subNavCache}
|
|
39
|
+
/>
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
|
@@ -187,7 +187,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
if (props.initiallyCollapsed && !
|
|
190
|
+
if (props.initiallyCollapsed && !main_40) {
|
|
191
191
|
navRef.current.style.position = 'fixed';
|
|
192
192
|
setIsSticky(true);
|
|
193
193
|
navLinks.style.margin = 'auto';
|
|
@@ -217,7 +217,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
217
217
|
|
|
218
218
|
return React.createElement(
|
|
219
219
|
'header',
|
|
220
|
-
{ className: !
|
|
220
|
+
{ className: !main_40 && isOpen ? 'nav-open' : 'nav-close', style: { zIndex: '999999' } },
|
|
221
221
|
React.createElement(
|
|
222
222
|
Navbar,
|
|
223
223
|
{ expand: 'md', ref: topNavRef },
|
|
@@ -344,7 +344,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
344
344
|
'aria-controls': 'basic-navbar-nav',
|
|
345
345
|
onClick: function onClick() {
|
|
346
346
|
// Set overflow fix for iPhones safari browsers
|
|
347
|
-
if (
|
|
347
|
+
if (main_41) {
|
|
348
348
|
var mainNav = document.querySelector('#navbar-ham');
|
|
349
349
|
if (mainNav && mainNav.style) mainNav.style.overflow = 'auto';
|
|
350
350
|
}
|
|
@@ -573,7 +573,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
573
573
|
'\n .navbar .collapse {\n display: block;\n }\n '
|
|
574
574
|
)
|
|
575
575
|
),
|
|
576
|
-
|
|
576
|
+
main_40 && !main_41 && React.createElement(
|
|
577
577
|
'style',
|
|
578
578
|
{ jsx: 'true' },
|
|
579
579
|
'\n #navbar-ham {\n overflow: hidden;\n overflow-y: scroll;\n margin-bottom: 5rem;\n }\n '
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-
|
|
3
|
+
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-4abff0b1.js';
|
|
4
4
|
|
|
5
5
|
var HighlightenVideo = function HighlightenVideo(_ref) {
|
|
6
6
|
var highlightVideoOptions = _ref.highlightVideoOptions;
|
|
@@ -19,7 +19,7 @@ import './index-f7fb1e25.js';
|
|
|
19
19
|
import 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
21
21
|
import 'react-bootstrap/Col';
|
|
22
|
-
import './moment-
|
|
22
|
+
import './moment-b6f49411.js';
|
|
23
23
|
import 'next/router';
|
|
24
24
|
import './isSymbol-1981418f.js';
|
|
25
25
|
import './debounce-9207d8ee.js';
|
|
@@ -28,7 +28,7 @@ import 'react-dom';
|
|
|
28
28
|
import './index-51a80699.js';
|
|
29
29
|
import './urlFor.js';
|
|
30
30
|
import './index-6c12bdd5.js';
|
|
31
|
-
import './main-
|
|
31
|
+
import './main-747e7d25.js';
|
|
32
32
|
import './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-641f241f.js';
|
|
34
34
|
import './stringify-4330ccdc.js';
|
|
@@ -46,9 +46,9 @@ import 'react-bootstrap';
|
|
|
46
46
|
import './iconBase-602d52fe.js';
|
|
47
47
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
48
48
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
49
|
-
import { g as getSerializers } from './index-
|
|
49
|
+
import { g as getSerializers } from './index-82fea143.js';
|
|
50
50
|
import './util-7700fc59.js';
|
|
51
|
-
import './brightcove-react-player-loader.es-
|
|
51
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
52
52
|
import 'next/head';
|
|
53
53
|
import 'react-share';
|
|
54
54
|
import './SocialShare.js';
|
|
@@ -8,7 +8,7 @@ import 'prop-types';
|
|
|
8
8
|
import Row from 'react-bootstrap/Row';
|
|
9
9
|
import Col from 'react-bootstrap/Col';
|
|
10
10
|
import Card from 'react-bootstrap/Card';
|
|
11
|
-
import { m as moment } from './moment-
|
|
11
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import './index-51a80699.js';
|
|
14
14
|
import urlFor from './urlFor.js';
|
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'prop-types';
|
|
|
12
12
|
import Row from 'react-bootstrap/Row';
|
|
13
13
|
import Col from 'react-bootstrap/Col';
|
|
14
14
|
import Card from 'react-bootstrap/Card';
|
|
15
|
-
import { I as InfiniteScroll } from './index.es-
|
|
15
|
+
import { I as InfiniteScroll } from './index.es-c6222053.js';
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import './index-51a80699.js';
|
|
18
18
|
import urlFor from './urlFor.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -20,18 +20,18 @@ import 'prop-types';
|
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
21
21
|
import 'react-bootstrap/Col';
|
|
22
22
|
import 'react-bootstrap/Card';
|
|
23
|
-
import './moment-
|
|
23
|
+
import './moment-b6f49411.js';
|
|
24
24
|
import 'next/router';
|
|
25
25
|
import './isSymbol-1981418f.js';
|
|
26
26
|
import './debounce-9207d8ee.js';
|
|
27
27
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import './index.es-
|
|
28
|
+
import './index.es-c6222053.js';
|
|
29
29
|
import 'react-dom';
|
|
30
30
|
import './visibility-sensor-f40c2564.js';
|
|
31
31
|
import './index-51a80699.js';
|
|
32
32
|
import './urlFor.js';
|
|
33
33
|
import './index-6c12bdd5.js';
|
|
34
|
-
import './main-
|
|
34
|
+
import './main-747e7d25.js';
|
|
35
35
|
import './entities-7cc3bf45.js';
|
|
36
36
|
import './slicedToArray-641f241f.js';
|
|
37
37
|
import './stringify-4330ccdc.js';
|
|
@@ -39,9 +39,9 @@ import './asyncToGenerator-fc1c2e29.js';
|
|
|
39
39
|
import './Segment.js';
|
|
40
40
|
import './Beam.js';
|
|
41
41
|
import './AdSlot.js';
|
|
42
|
-
import './ADInfeed-
|
|
42
|
+
import './ADInfeed-56a3db8b.js';
|
|
43
43
|
import './lodash-ec8c6b48.js';
|
|
44
|
-
import './ADlgInfeed-
|
|
44
|
+
import './ADlgInfeed-53edb995.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
46
|
import './AuthorComponent-8ffd4679.js';
|
|
47
47
|
import 'react-bootstrap/Button';
|
|
@@ -54,9 +54,9 @@ import './timeDifferenceCalc.js';
|
|
|
54
54
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
55
55
|
import './iconBase-602d52fe.js';
|
|
56
56
|
import './index.esm-3fdda599.js';
|
|
57
|
-
import { g as getSerializers } from './index-
|
|
57
|
+
import { g as getSerializers } from './index-82fea143.js';
|
|
58
58
|
import './util-7700fc59.js';
|
|
59
|
-
import './brightcove-react-player-loader.es-
|
|
59
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
60
60
|
import 'next/head';
|
|
61
61
|
import 'react-share';
|
|
62
62
|
import './SocialShare.js';
|
|
@@ -69,35 +69,35 @@ import 'react-bootstrap/Popover';
|
|
|
69
69
|
import 'react-bootstrap/Breadcrumb';
|
|
70
70
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
71
71
|
|
|
72
|
-
/* usage
|
|
73
|
-
import Settings, { Ads } from '../../../../settings'
|
|
74
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
75
|
-
import client from '../../../../client'
|
|
76
|
-
import moment from 'moment'
|
|
77
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
78
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
79
|
-
|
|
80
|
-
const Issue = (props) => {
|
|
81
|
-
const { pubIssue, cache } = props
|
|
82
|
-
const targeting = {
|
|
83
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
84
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
85
|
-
}
|
|
86
|
-
return (
|
|
87
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
88
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
89
|
-
</Shell>
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
Issue.getInitialProps = async (ctx) => {
|
|
94
|
-
const { query } = ctx
|
|
95
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
96
|
-
)
|
|
97
|
-
return { pubIssue }
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export default Issue
|
|
72
|
+
/* usage
|
|
73
|
+
import Settings, { Ads } from '../../../../settings'
|
|
74
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
75
|
+
import client from '../../../../client'
|
|
76
|
+
import moment from 'moment'
|
|
77
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
78
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
79
|
+
|
|
80
|
+
const Issue = (props) => {
|
|
81
|
+
const { pubIssue, cache } = props
|
|
82
|
+
const targeting = {
|
|
83
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
84
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
85
|
+
}
|
|
86
|
+
return (
|
|
87
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
88
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
89
|
+
</Shell>
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
Issue.getInitialProps = async (ctx) => {
|
|
94
|
+
const { query } = ctx
|
|
95
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
96
|
+
)
|
|
97
|
+
return { pubIssue }
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export default Issue
|
|
101
101
|
*/
|
|
102
102
|
|
|
103
103
|
var IssueLanding = function IssueLanding(props) {
|