@mjhls/mjh-framework 1.0.889-publication-filename-v1 → 1.0.890
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/AlgoliaSearch.js +1 -1
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +7 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +7 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/GridContentPaginated.js +6 -2
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueLanding.js +29 -29
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +35 -12
- package/dist/cjs/{MediaSeriesCard-3d5c69ba.js → MediaSeriesCard-8b4efd28.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +12 -10
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-4a929dd5.js +90 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +8 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +12 -2
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-ba0c5d1a.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +4 -4
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-9d509319.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-8647570b.js} +7 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/AlgoliaSearch.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +7 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +7 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/GridContentPaginated.js +6 -2
- package/dist/esm/HamMagazine.js +9 -9
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueLanding.js +29 -29
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +35 -12
- package/dist/esm/{MediaSeriesCard-5b1d13dd.js → MediaSeriesCard-51ebf1c0.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +12 -10
- package/dist/esm/NavMagazine.js +10 -10
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-b1ec9ba8.js +82 -0
- package/dist/esm/PartnerDetailListingPaginated.js +8 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +12 -2
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-45adb8dc.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +4 -4
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-4061f839.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index.esm-d4932dea.js → index.esm-0a31ab97.js} +6 -2
- package/dist/esm/index.js +3 -3
- package/package.json +112 -112
- package/dist/cjs/Pagination-3effd8c6.js +0 -60
- package/dist/esm/Pagination-0173504c.js +0 -54
package/README.md
CHANGED
|
@@ -1,168 +1,168 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install --save @mjhls/mjh-framework
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```jsx
|
|
14
|
-
import React, { Component } from 'react'
|
|
15
|
-
|
|
16
|
-
import { NavMagazine, DeckQueue } from 'mjh-framework'
|
|
17
|
-
|
|
18
|
-
export default class App extends Component {
|
|
19
|
-
render() {
|
|
20
|
-
return (
|
|
21
|
-
<div>
|
|
22
|
-
<NavMagazine />
|
|
23
|
-
<DeckQueue />
|
|
24
|
-
</div>
|
|
25
|
-
)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Publish new updates to the npm registry
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm publish
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## For getting updates in the template without publishing each time a change is made in the framework
|
|
37
|
-
|
|
38
|
-
Link react and react-dom of the template repo, so that it can be used by the framework.
|
|
39
|
-
This is to avoid the error arising due to multiple instances of React.
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
cd ../mjh-template/node_modules/react
|
|
43
|
-
|
|
44
|
-
yarn link
|
|
45
|
-
|
|
46
|
-
cd ../react-dom
|
|
47
|
-
|
|
48
|
-
yarn link
|
|
49
|
-
|
|
50
|
-
cd ../../../mjh-framework
|
|
51
|
-
|
|
52
|
-
yarn link react && yarn link react-dom
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Link the framework repo so that it can be used in the template
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm link
|
|
59
|
-
|
|
60
|
-
cd ../mjh-template
|
|
61
|
-
|
|
62
|
-
npm link @mjhls/mjh-framework
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
## Components and "props"
|
|
66
|
-
|
|
67
|
-
### Deck Components
|
|
68
|
-
|
|
69
|
-
- #### DeckContent
|
|
70
|
-
|
|
71
|
-
##### Props
|
|
72
|
-
|
|
73
|
-
- mapping
|
|
74
|
-
- dataRecord
|
|
75
|
-
- query
|
|
76
|
-
- params
|
|
77
|
-
- pointer
|
|
78
|
-
- pointerArray
|
|
79
|
-
- defaultImage
|
|
80
|
-
|
|
81
|
-
- #### DeckQueue
|
|
82
|
-
##### Props
|
|
83
|
-
- page
|
|
84
|
-
- dataRecord
|
|
85
|
-
- query
|
|
86
|
-
- params
|
|
87
|
-
- pointer
|
|
88
|
-
- pointerArray
|
|
89
|
-
|
|
90
|
-
### Layout Components
|
|
91
|
-
|
|
92
|
-
- #### Column1
|
|
93
|
-
- #### Column2
|
|
94
|
-
##### Props
|
|
95
|
-
- rightItems
|
|
96
|
-
- #### Column3
|
|
97
|
-
##### Props
|
|
98
|
-
- leftItems
|
|
99
|
-
- rightItems
|
|
100
|
-
##### Common Props (Column1, Column2, Column3)
|
|
101
|
-
- title
|
|
102
|
-
- children
|
|
103
|
-
- #### Header
|
|
104
|
-
##### Props
|
|
105
|
-
- title
|
|
106
|
-
- keyword
|
|
107
|
-
- description
|
|
108
|
-
- #### LeftNav
|
|
109
|
-
##### Props
|
|
110
|
-
- leftItems
|
|
111
|
-
- #### AccordionPanel
|
|
112
|
-
##### Props
|
|
113
|
-
- accordionClassName
|
|
114
|
-
- data
|
|
115
|
-
|
|
116
|
-
### Navigation Components
|
|
117
|
-
|
|
118
|
-
- #### NavMagazine
|
|
119
|
-
##### Props
|
|
120
|
-
- logo
|
|
121
|
-
- dataObject
|
|
122
|
-
- #### NavNative
|
|
123
|
-
##### Props
|
|
124
|
-
- logo
|
|
125
|
-
- dataObject
|
|
126
|
-
- #### NavNormal
|
|
127
|
-
##### Props
|
|
128
|
-
- logo
|
|
129
|
-
- dataObject
|
|
130
|
-
- variant
|
|
131
|
-
- #### NavDvm
|
|
132
|
-
##### Props
|
|
133
|
-
- logo
|
|
134
|
-
- dataObject
|
|
135
|
-
- subNavHeads
|
|
136
|
-
|
|
137
|
-
### Template Components
|
|
138
|
-
|
|
139
|
-
- #### TemplateNormal
|
|
140
|
-
##### Props
|
|
141
|
-
- config
|
|
142
|
-
- title
|
|
143
|
-
- keywords
|
|
144
|
-
- description
|
|
145
|
-
- website
|
|
146
|
-
|
|
147
|
-
### Ad Components
|
|
148
|
-
|
|
149
|
-
- #### AD300x250
|
|
150
|
-
- #### AD300x250x600
|
|
151
|
-
- #### AD728x90
|
|
152
|
-
##### Common Props
|
|
153
|
-
- networkID
|
|
154
|
-
- adUnit
|
|
155
|
-
|
|
156
|
-
### Serializers
|
|
157
|
-
|
|
158
|
-
- #### getSerializers (function)
|
|
159
|
-
##### arguments
|
|
160
|
-
- client
|
|
161
|
-
##### types
|
|
162
|
-
- youtube
|
|
163
|
-
- figure
|
|
164
|
-
- slideshow
|
|
165
|
-
|
|
166
|
-
## License
|
|
167
|
-
|
|
168
|
-
MIT © [mjh-framework](https://github.com/mjh-framework)
|
|
1
|
+
# mjh-framework v. 1.0.890
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @mjhls/mjh-framework
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
import React, { Component } from 'react'
|
|
15
|
+
|
|
16
|
+
import { NavMagazine, DeckQueue } from 'mjh-framework'
|
|
17
|
+
|
|
18
|
+
export default class App extends Component {
|
|
19
|
+
render() {
|
|
20
|
+
return (
|
|
21
|
+
<div>
|
|
22
|
+
<NavMagazine />
|
|
23
|
+
<DeckQueue />
|
|
24
|
+
</div>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Publish new updates to the npm registry
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm publish
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## For getting updates in the template without publishing each time a change is made in the framework
|
|
37
|
+
|
|
38
|
+
Link react and react-dom of the template repo, so that it can be used by the framework.
|
|
39
|
+
This is to avoid the error arising due to multiple instances of React.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
cd ../mjh-template/node_modules/react
|
|
43
|
+
|
|
44
|
+
yarn link
|
|
45
|
+
|
|
46
|
+
cd ../react-dom
|
|
47
|
+
|
|
48
|
+
yarn link
|
|
49
|
+
|
|
50
|
+
cd ../../../mjh-framework
|
|
51
|
+
|
|
52
|
+
yarn link react && yarn link react-dom
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Link the framework repo so that it can be used in the template
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npm link
|
|
59
|
+
|
|
60
|
+
cd ../mjh-template
|
|
61
|
+
|
|
62
|
+
npm link @mjhls/mjh-framework
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Components and "props"
|
|
66
|
+
|
|
67
|
+
### Deck Components
|
|
68
|
+
|
|
69
|
+
- #### DeckContent
|
|
70
|
+
|
|
71
|
+
##### Props
|
|
72
|
+
|
|
73
|
+
- mapping
|
|
74
|
+
- dataRecord
|
|
75
|
+
- query
|
|
76
|
+
- params
|
|
77
|
+
- pointer
|
|
78
|
+
- pointerArray
|
|
79
|
+
- defaultImage
|
|
80
|
+
|
|
81
|
+
- #### DeckQueue
|
|
82
|
+
##### Props
|
|
83
|
+
- page
|
|
84
|
+
- dataRecord
|
|
85
|
+
- query
|
|
86
|
+
- params
|
|
87
|
+
- pointer
|
|
88
|
+
- pointerArray
|
|
89
|
+
|
|
90
|
+
### Layout Components
|
|
91
|
+
|
|
92
|
+
- #### Column1
|
|
93
|
+
- #### Column2
|
|
94
|
+
##### Props
|
|
95
|
+
- rightItems
|
|
96
|
+
- #### Column3
|
|
97
|
+
##### Props
|
|
98
|
+
- leftItems
|
|
99
|
+
- rightItems
|
|
100
|
+
##### Common Props (Column1, Column2, Column3)
|
|
101
|
+
- title
|
|
102
|
+
- children
|
|
103
|
+
- #### Header
|
|
104
|
+
##### Props
|
|
105
|
+
- title
|
|
106
|
+
- keyword
|
|
107
|
+
- description
|
|
108
|
+
- #### LeftNav
|
|
109
|
+
##### Props
|
|
110
|
+
- leftItems
|
|
111
|
+
- #### AccordionPanel
|
|
112
|
+
##### Props
|
|
113
|
+
- accordionClassName
|
|
114
|
+
- data
|
|
115
|
+
|
|
116
|
+
### Navigation Components
|
|
117
|
+
|
|
118
|
+
- #### NavMagazine
|
|
119
|
+
##### Props
|
|
120
|
+
- logo
|
|
121
|
+
- dataObject
|
|
122
|
+
- #### NavNative
|
|
123
|
+
##### Props
|
|
124
|
+
- logo
|
|
125
|
+
- dataObject
|
|
126
|
+
- #### NavNormal
|
|
127
|
+
##### Props
|
|
128
|
+
- logo
|
|
129
|
+
- dataObject
|
|
130
|
+
- variant
|
|
131
|
+
- #### NavDvm
|
|
132
|
+
##### Props
|
|
133
|
+
- logo
|
|
134
|
+
- dataObject
|
|
135
|
+
- subNavHeads
|
|
136
|
+
|
|
137
|
+
### Template Components
|
|
138
|
+
|
|
139
|
+
- #### TemplateNormal
|
|
140
|
+
##### Props
|
|
141
|
+
- config
|
|
142
|
+
- title
|
|
143
|
+
- keywords
|
|
144
|
+
- description
|
|
145
|
+
- website
|
|
146
|
+
|
|
147
|
+
### Ad Components
|
|
148
|
+
|
|
149
|
+
- #### AD300x250
|
|
150
|
+
- #### AD300x250x600
|
|
151
|
+
- #### AD728x90
|
|
152
|
+
##### Common Props
|
|
153
|
+
- networkID
|
|
154
|
+
- adUnit
|
|
155
|
+
|
|
156
|
+
### Serializers
|
|
157
|
+
|
|
158
|
+
- #### getSerializers (function)
|
|
159
|
+
##### arguments
|
|
160
|
+
- client
|
|
161
|
+
##### types
|
|
162
|
+
- youtube
|
|
163
|
+
- figure
|
|
164
|
+
- slideshow
|
|
165
|
+
|
|
166
|
+
## License
|
|
167
|
+
|
|
168
|
+
MIT © [mjh-framework](https://github.com/mjh-framework)
|
package/dist/cjs/AuthWrapper.js
CHANGED
|
@@ -1767,7 +1767,7 @@ client$1.Provider;
|
|
|
1767
1767
|
|
|
1768
1768
|
var client = client$1.default;
|
|
1769
1769
|
|
|
1770
|
-
var css = ".AuthWrapper-module_loginBox__3l-BE {\
|
|
1770
|
+
var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
|
|
1771
1771
|
var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
|
|
1772
1772
|
styleInject_es.styleInject(css);
|
|
1773
1773
|
|
|
@@ -13,21 +13,21 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
|
|
14
14
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
15
|
|
|
16
|
-
/*
|
|
17
|
-
Example usage - targetedonc.com/latest-conference
|
|
18
|
-
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] {
|
|
19
|
-
...,
|
|
20
|
-
title,
|
|
21
|
-
summary,
|
|
22
|
-
thumbnail,
|
|
23
|
-
url,
|
|
24
|
-
published,
|
|
25
|
-
documentGroup->,
|
|
26
|
-
contentCategory->,
|
|
27
|
-
'pageNumber': ${currentPage}
|
|
28
|
-
}`
|
|
29
|
-
|
|
30
|
-
const posts = await client.fetch(query, params)
|
|
16
|
+
/*
|
|
17
|
+
Example usage - targetedonc.com/latest-conference
|
|
18
|
+
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] {
|
|
19
|
+
...,
|
|
20
|
+
title,
|
|
21
|
+
summary,
|
|
22
|
+
thumbnail,
|
|
23
|
+
url,
|
|
24
|
+
published,
|
|
25
|
+
documentGroup->,
|
|
26
|
+
contentCategory->,
|
|
27
|
+
'pageNumber': ${currentPage}
|
|
28
|
+
}`
|
|
29
|
+
|
|
30
|
+
const posts = await client.fetch(query, params)
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -17,7 +17,7 @@ var index$1 = require('./index-eadd5035.js');
|
|
|
17
17
|
var main = require('./main-f1c77adb.js');
|
|
18
18
|
var entities = require('./entities-df1aed86.js');
|
|
19
19
|
var ADInfeed = require('./ADInfeed-bce0ba07.js');
|
|
20
|
-
var Pagination = require('./Pagination-
|
|
20
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
21
21
|
var Spinner = require('react-bootstrap/Spinner');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -41,6 +41,10 @@ require('./toNumber-5e1fac58.js');
|
|
|
41
41
|
require('./Beam.js');
|
|
42
42
|
require('./stringify-f7a37a8d.js');
|
|
43
43
|
require('./Segment.js');
|
|
44
|
+
require('react-paginate');
|
|
45
|
+
require('react-bootstrap/Button');
|
|
46
|
+
require('./index.esm-8647570b.js');
|
|
47
|
+
require('./iconBase-be4097c0.js');
|
|
44
48
|
|
|
45
49
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
46
50
|
|
|
@@ -392,7 +396,8 @@ var DeckContent = function (_React$Component) {
|
|
|
392
396
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
393
397
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
394
398
|
currentPage: this.state.currentPage,
|
|
395
|
-
onPageChange: this.handlePageChange
|
|
399
|
+
onPageChange: this.handlePageChange,
|
|
400
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
396
401
|
}),
|
|
397
402
|
React__default['default'].createElement(
|
|
398
403
|
'style',
|
package/dist/cjs/DeckContent.js
CHANGED
|
@@ -182,14 +182,14 @@ var DeckContent = function (_React$Component) {
|
|
|
182
182
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
183
183
|
|
|
184
184
|
// please leave this for later debug purpose : Yong Jun.
|
|
185
|
-
/* console.log('page change reported', {
|
|
186
|
-
currentPage: currentPage,
|
|
187
|
-
pageNumber: pageNumber,
|
|
188
|
-
pathname: pathname,
|
|
189
|
-
path: path,
|
|
190
|
-
newPath: newPath,
|
|
191
|
-
firstPage: pageNumber === 1,
|
|
192
|
-
queryString: queryString
|
|
185
|
+
/* console.log('page change reported', {
|
|
186
|
+
currentPage: currentPage,
|
|
187
|
+
pageNumber: pageNumber,
|
|
188
|
+
pathname: pathname,
|
|
189
|
+
path: path,
|
|
190
|
+
newPath: newPath,
|
|
191
|
+
firstPage: pageNumber === 1,
|
|
192
|
+
queryString: queryString
|
|
193
193
|
}) */
|
|
194
194
|
|
|
195
195
|
if (pageview) {
|
|
@@ -18,7 +18,7 @@ var get = require('./get-5839e5b5.js');
|
|
|
18
18
|
var main = require('./main-f1c77adb.js');
|
|
19
19
|
var urlFor = require('./urlFor.js');
|
|
20
20
|
var entities = require('./entities-df1aed86.js');
|
|
21
|
-
var Pagination = require('./Pagination-
|
|
21
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
22
22
|
require('./_commonjsHelpers-06173234.js');
|
|
23
23
|
require('./core.get-iterator-method-5643aa10.js');
|
|
24
24
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -36,6 +36,10 @@ require('./isSymbol-03abbdf0.js');
|
|
|
36
36
|
require('./eq-5fc26c07.js');
|
|
37
37
|
require('./slicedToArray-067dd3bc.js');
|
|
38
38
|
require('./index-d48b231c.js');
|
|
39
|
+
require('react-paginate');
|
|
40
|
+
require('react-bootstrap/Button');
|
|
41
|
+
require('./index.esm-8647570b.js');
|
|
42
|
+
require('./iconBase-be4097c0.js');
|
|
39
43
|
|
|
40
44
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
41
45
|
|
|
@@ -311,7 +315,8 @@ var DeckQueue = function (_React$Component) {
|
|
|
311
315
|
pageCount: Math.ceil(totalDataCount / itemsPerPage),
|
|
312
316
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
313
317
|
currentPage: currentPage,
|
|
314
|
-
onPageChange: this.handlePageChange
|
|
318
|
+
onPageChange: this.handlePageChange,
|
|
319
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
315
320
|
}),
|
|
316
321
|
React__default['default'].createElement(
|
|
317
322
|
'style',
|
package/dist/cjs/EventsDeck.js
CHANGED
|
@@ -256,23 +256,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
256
256
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
257
257
|
setAccessToken(cventAccessToken);
|
|
258
258
|
} else {
|
|
259
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
260
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
261
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
262
|
-
fetch(url, {
|
|
263
|
-
headers: {
|
|
264
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
265
|
-
Authorization: `Basic ${encodedData}`
|
|
266
|
-
},
|
|
267
|
-
method: 'POST',
|
|
268
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
269
|
-
})
|
|
270
|
-
.then((response) => response.json())
|
|
271
|
-
.then((json) => {
|
|
272
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
273
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
274
|
-
setAccessToken(json.access_token)
|
|
275
|
-
})
|
|
259
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
260
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
261
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
262
|
+
fetch(url, {
|
|
263
|
+
headers: {
|
|
264
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
265
|
+
Authorization: `Basic ${encodedData}`
|
|
266
|
+
},
|
|
267
|
+
method: 'POST',
|
|
268
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
269
|
+
})
|
|
270
|
+
.then((response) => response.json())
|
|
271
|
+
.then((json) => {
|
|
272
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
273
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
274
|
+
setAccessToken(json.access_token)
|
|
275
|
+
})
|
|
276
276
|
.catch((e) => console.log(e))*/
|
|
277
277
|
// hello
|
|
278
278
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -24,7 +24,7 @@ var urlFor = require('./urlFor.js');
|
|
|
24
24
|
var main = require('./main-f1c77adb.js');
|
|
25
25
|
var AuthorComponent = require('./AuthorComponent-39b37d84.js');
|
|
26
26
|
var PublicationFeature = require('./PublicationFeature-5ccf9b13.js');
|
|
27
|
-
var Pagination = require('./Pagination-
|
|
27
|
+
var Pagination = require('./Pagination-4a929dd5.js');
|
|
28
28
|
var Spinner = require('react-bootstrap/Spinner');
|
|
29
29
|
require('./_commonjsHelpers-06173234.js');
|
|
30
30
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -49,6 +49,9 @@ require('./Segment.js');
|
|
|
49
49
|
require('./eq-5fc26c07.js');
|
|
50
50
|
require('./index-d48b231c.js');
|
|
51
51
|
require('react-bootstrap/Button');
|
|
52
|
+
require('react-paginate');
|
|
53
|
+
require('./index.esm-8647570b.js');
|
|
54
|
+
require('./iconBase-be4097c0.js');
|
|
52
55
|
|
|
53
56
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
54
57
|
|
|
@@ -666,7 +669,8 @@ var GridContent = function (_React$Component) {
|
|
|
666
669
|
pageCount: Math.ceil(this.state.totalDataCount / this.state.itemsPerPage),
|
|
667
670
|
pageRangeDisplayed: main.main_43 ? 3 : 9,
|
|
668
671
|
currentPage: this.state.currentPage,
|
|
669
|
-
onPageChange: this.handlePageChange
|
|
672
|
+
onPageChange: this.handlePageChange,
|
|
673
|
+
needLargePaginateButtons: this.props.needLargePaginateButtons
|
|
670
674
|
}),
|
|
671
675
|
React__default['default'].createElement(
|
|
672
676
|
'style',
|
package/dist/cjs/HamMagazine.js
CHANGED
|
@@ -38,15 +38,15 @@ var Navbar__default = /*#__PURE__*/_interopDefaultLegacy(Navbar);
|
|
|
38
38
|
var NavDropdown__default = /*#__PURE__*/_interopDefaultLegacy(NavDropdown);
|
|
39
39
|
|
|
40
40
|
var HamMagazine = function HamMagazine(props) {
|
|
41
|
-
/*
|
|
42
|
-
Example Nav with acceptable props
|
|
43
|
-
<MagazineNav
|
|
44
|
-
showLogin
|
|
45
|
-
logo={props.settings.logo}
|
|
46
|
-
dataObject={props.cache.mainNavCache}
|
|
47
|
-
website={website}
|
|
48
|
-
subNav={props.cache.subNavCache}
|
|
49
|
-
/>
|
|
41
|
+
/*
|
|
42
|
+
Example Nav with acceptable props
|
|
43
|
+
<MagazineNav
|
|
44
|
+
showLogin
|
|
45
|
+
logo={props.settings.logo}
|
|
46
|
+
dataObject={props.cache.mainNavCache}
|
|
47
|
+
website={website}
|
|
48
|
+
subNav={props.cache.subNavCache}
|
|
49
|
+
/>
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
require('./moment-aca40de1.js');
|
|
5
5
|
var urlFor = require('./urlFor.js');
|
|
6
|
-
var index_esm = require('./index.esm-
|
|
6
|
+
var index_esm = require('./index.esm-8647570b.js');
|
|
7
7
|
require('./_commonjsHelpers-06173234.js');
|
|
8
8
|
require('./slicedToArray-067dd3bc.js');
|
|
9
9
|
require('./web.dom.iterable-d98303e0.js');
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -73,35 +73,35 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
73
73
|
|
|
74
74
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
75
75
|
|
|
76
|
-
/* usage
|
|
77
|
-
import Settings, { Ads } from '../../../../settings'
|
|
78
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
79
|
-
import client from '../../../../client'
|
|
80
|
-
import moment from 'moment'
|
|
81
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
82
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
83
|
-
|
|
84
|
-
const Issue = (props) => {
|
|
85
|
-
const { pubIssue, cache } = props
|
|
86
|
-
const targeting = {
|
|
87
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
88
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
89
|
-
}
|
|
90
|
-
return (
|
|
91
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
92
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
93
|
-
</Shell>
|
|
94
|
-
)
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
Issue.getInitialProps = async (ctx) => {
|
|
98
|
-
const { query } = ctx
|
|
99
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
100
|
-
)
|
|
101
|
-
return { pubIssue }
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export default Issue
|
|
76
|
+
/* usage
|
|
77
|
+
import Settings, { Ads } from '../../../../settings'
|
|
78
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
79
|
+
import client from '../../../../client'
|
|
80
|
+
import moment from 'moment'
|
|
81
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
82
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
83
|
+
|
|
84
|
+
const Issue = (props) => {
|
|
85
|
+
const { pubIssue, cache } = props
|
|
86
|
+
const targeting = {
|
|
87
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
88
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
89
|
+
}
|
|
90
|
+
return (
|
|
91
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
92
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
93
|
+
</Shell>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
Issue.getInitialProps = async (ctx) => {
|
|
98
|
+
const { query } = ctx
|
|
99
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
100
|
+
)
|
|
101
|
+
return { pubIssue }
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export default Issue
|
|
105
105
|
*/
|
|
106
106
|
|
|
107
107
|
var IssueLanding = function IssueLanding(props) {
|