@mjhls/mjh-framework 1.0.316 → 1.0.318
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/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/{YoutubeGroup-22a738f1.js → YoutubeGroup-24ec8af9.js} +4 -2
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/index.js +68 -13
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/{YoutubeGroup-b45c9d82.js → YoutubeGroup-13d88f43.js} +4 -2
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/index.js +69 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ var Router = require('next/router');
|
|
|
18
18
|
var Router__default = _interopDefault(Router);
|
|
19
19
|
require('react-dom');
|
|
20
20
|
require('./index-fa0fb52c.js');
|
|
21
|
-
var YoutubeGroup = require('./YoutubeGroup-
|
|
21
|
+
var YoutubeGroup = require('./YoutubeGroup-24ec8af9.js');
|
|
22
22
|
var index_esm = require('./index.esm-340d3792.js');
|
|
23
23
|
|
|
24
24
|
var VideoSeriesListing = function (_React$Component) {
|
|
@@ -527,8 +527,10 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
527
527
|
|
|
528
528
|
if (direction === 'next') {
|
|
529
529
|
scrollDirection = scrollOffset + numberOfSlidesToScroll;
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
// console.log('(scrollOffset + viewableWidth + 10): ',(scrollOffset + viewableWidth + 10) )
|
|
531
|
+
// console.log('innerSlider.current.offsetWidth ',innerSlider.current.offsetWidth )
|
|
532
|
+
//the +10 is for the margin on the last time
|
|
533
|
+
if (scrollOffset + viewableWidth + 10 >= innerSlider.current.offsetWidth) {
|
|
532
534
|
scrollDirection = 0;
|
|
533
535
|
}
|
|
534
536
|
}
|
package/dist/cjs/YoutubeGroup.js
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var ThumbnailCard = require('./ThumbnailCard.js');
|
|
|
41
41
|
var TaxonomyCard = require('./TaxonomyCard-22b72261.js');
|
|
42
42
|
require('./react-social-icons-cd0d9d3b.js');
|
|
43
43
|
var GroupDeck = require('./GroupDeck.js');
|
|
44
|
-
var YoutubeGroup = require('./YoutubeGroup-
|
|
44
|
+
var YoutubeGroup = require('./YoutubeGroup-24ec8af9.js');
|
|
45
45
|
var reactBootstrap = require('react-bootstrap');
|
|
46
46
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
47
47
|
var index_esm = require('./index.esm-340d3792.js');
|
|
@@ -72,7 +72,6 @@ var DropdownButton = _interopDefault(require('react-bootstrap/DropdownButton'));
|
|
|
72
72
|
var Dropdown = _interopDefault(require('react-bootstrap/Dropdown'));
|
|
73
73
|
var Ustream = require('./Ustream-3a3c56b8.js');
|
|
74
74
|
var useSWR = _interopDefault(require('swr'));
|
|
75
|
-
var Iron = _interopDefault(require('@hapi/iron'));
|
|
76
75
|
var Local = _interopDefault(require('passport-local'));
|
|
77
76
|
var mysql = _interopDefault(require('mysql'));
|
|
78
77
|
|
|
@@ -2023,6 +2022,16 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2023
2022
|
Row,
|
|
2024
2023
|
null,
|
|
2025
2024
|
data && data.map(function (row, index) {
|
|
2025
|
+
|
|
2026
|
+
var speakerInfo = [];
|
|
2027
|
+
if (row.customFields) {
|
|
2028
|
+
speakerInfo = row.customFields.filter(function (x) {
|
|
2029
|
+
if (x.name == 'KOL or Featured Speaker') {
|
|
2030
|
+
return x;
|
|
2031
|
+
}
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2026
2035
|
var description = row.description,
|
|
2027
2036
|
start = row.start,
|
|
2028
2037
|
end = row.end,
|
|
@@ -2099,12 +2108,47 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2099
2108
|
)
|
|
2100
2109
|
),
|
|
2101
2110
|
description && React__default.createElement(
|
|
2102
|
-
|
|
2103
|
-
|
|
2111
|
+
React__default.Fragment,
|
|
2112
|
+
null,
|
|
2104
2113
|
React__default.createElement(
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
React__default.createElement(
|
|
2114
|
+
Row,
|
|
2115
|
+
{ style: { marginTop: '8px' } },
|
|
2116
|
+
React__default.createElement(
|
|
2117
|
+
Col,
|
|
2118
|
+
null,
|
|
2119
|
+
React__default.createElement('p', { dangerouslySetInnerHTML: { __html: description } })
|
|
2120
|
+
)
|
|
2121
|
+
)
|
|
2122
|
+
),
|
|
2123
|
+
speakerInfo && speakerInfo.length > 0 && React__default.createElement(
|
|
2124
|
+
React__default.Fragment,
|
|
2125
|
+
null,
|
|
2126
|
+
React__default.createElement(
|
|
2127
|
+
Row,
|
|
2128
|
+
{ style: { marginTop: '8px' } },
|
|
2129
|
+
React__default.createElement(
|
|
2130
|
+
Col,
|
|
2131
|
+
null,
|
|
2132
|
+
React__default.createElement(
|
|
2133
|
+
'h6',
|
|
2134
|
+
{ style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2135
|
+
'SPEAKER'
|
|
2136
|
+
),
|
|
2137
|
+
speakerInfo.map(function (info) {
|
|
2138
|
+
return React__default.createElement(
|
|
2139
|
+
'p',
|
|
2140
|
+
{ style: { marginBottom: '0' } },
|
|
2141
|
+
info.value.map(function (speaker, index) {
|
|
2142
|
+
return React__default.createElement(
|
|
2143
|
+
'span',
|
|
2144
|
+
{ key: index, className: 'kol-speaker' },
|
|
2145
|
+
speaker,
|
|
2146
|
+
info.value.length > index + 1 ? ', ' : ''
|
|
2147
|
+
);
|
|
2148
|
+
})
|
|
2149
|
+
);
|
|
2150
|
+
})
|
|
2151
|
+
)
|
|
2108
2152
|
)
|
|
2109
2153
|
)
|
|
2110
2154
|
)
|
|
@@ -18146,23 +18190,34 @@ var authCookies = /*#__PURE__*/Object.freeze({
|
|
|
18146
18190
|
getTokenCookie: getTokenCookie
|
|
18147
18191
|
});
|
|
18148
18192
|
|
|
18149
|
-
var TOKEN_SECRET = ',Qjn4rG\'Is=&wx,EXd<AYW|<{THTrspDkKJV5J{@@=?zDh,OX6Ky=0&T"L419;)';
|
|
18150
|
-
|
|
18151
18193
|
function encryptSession(session) {
|
|
18152
|
-
|
|
18194
|
+
var buffer = new Buffer(AdSlot._JSON$stringify(session));
|
|
18195
|
+
return buffer.toString('base64');
|
|
18196
|
+
//return jwt.sign(session, TOKEN_SECRET)
|
|
18197
|
+
//return Iron.seal(session, TOKEN_SECRET, Iron.defaults)
|
|
18153
18198
|
}
|
|
18154
18199
|
|
|
18155
18200
|
var getSession = function () {
|
|
18156
18201
|
var _ref = AdSlot._asyncToGenerator( /*#__PURE__*/AdSlot.regenerator.mark(function _callee(req) {
|
|
18157
|
-
var token;
|
|
18202
|
+
var token, buff;
|
|
18158
18203
|
return AdSlot.regenerator.wrap(function _callee$(_context) {
|
|
18159
18204
|
while (1) {
|
|
18160
18205
|
switch (_context.prev = _context.next) {
|
|
18161
18206
|
case 0:
|
|
18162
18207
|
token = getTokenCookie(req);
|
|
18163
|
-
return _context.abrupt('return', token ? Iron.unseal(token, TOKEN_SECRET, Iron.defaults) : null);
|
|
18164
18208
|
|
|
18165
|
-
|
|
18209
|
+
if (!token) {
|
|
18210
|
+
_context.next = 4;
|
|
18211
|
+
break;
|
|
18212
|
+
}
|
|
18213
|
+
|
|
18214
|
+
buff = new Buffer(token, 'base64');
|
|
18215
|
+
return _context.abrupt('return', JSON.parse(buff.toString('utf8')));
|
|
18216
|
+
|
|
18217
|
+
case 4:
|
|
18218
|
+
return _context.abrupt('return', null);
|
|
18219
|
+
|
|
18220
|
+
case 5:
|
|
18166
18221
|
case 'end':
|
|
18167
18222
|
return _context.stop();
|
|
18168
18223
|
}
|
|
@@ -12,7 +12,7 @@ import 'next/link';
|
|
|
12
12
|
import { withRouter } from 'next/router';
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import './index-5f9f807a.js';
|
|
15
|
-
import { Y as YoutubeGroup } from './YoutubeGroup-
|
|
15
|
+
import { Y as YoutubeGroup } from './YoutubeGroup-13d88f43.js';
|
|
16
16
|
import { a as IoIosArrowForward } from './index.esm-536609db.js';
|
|
17
17
|
|
|
18
18
|
var VideoSeriesListing = function (_React$Component) {
|
|
@@ -522,8 +522,10 @@ var YoutubeGroup = function YoutubeGroup(props) {
|
|
|
522
522
|
|
|
523
523
|
if (direction === 'next') {
|
|
524
524
|
scrollDirection = scrollOffset + numberOfSlidesToScroll;
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
// console.log('(scrollOffset + viewableWidth + 10): ',(scrollOffset + viewableWidth + 10) )
|
|
526
|
+
// console.log('innerSlider.current.offsetWidth ',innerSlider.current.offsetWidth )
|
|
527
|
+
//the +10 is for the margin on the last time
|
|
528
|
+
if (scrollOffset + viewableWidth + 10 >= innerSlider.current.offsetWidth) {
|
|
527
529
|
scrollDirection = 0;
|
|
528
530
|
}
|
|
529
531
|
}
|
package/dist/esm/YoutubeGroup.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -36,8 +36,8 @@ export { T as TaxonomyCard } from './TaxonomyCard-7e9aae2d.js';
|
|
|
36
36
|
import './react-social-icons-a7d5c5c7.js';
|
|
37
37
|
import GroupDeck from './GroupDeck.js';
|
|
38
38
|
export { default as GroupDeck } from './GroupDeck.js';
|
|
39
|
-
import { g as getYoutubeId } from './YoutubeGroup-
|
|
40
|
-
export { Y as YoutubeGroup } from './YoutubeGroup-
|
|
39
|
+
import { g as getYoutubeId } from './YoutubeGroup-13d88f43.js';
|
|
40
|
+
export { Y as YoutubeGroup } from './YoutubeGroup-13d88f43.js';
|
|
41
41
|
import { Spinner as Spinner$1, Container as Container$1, Row as Row$1, Col as Col$1, Carousel, Table, Figure as Figure$1, Button as Button$1, ProgressBar, Card, Form } from 'react-bootstrap';
|
|
42
42
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
43
43
|
import { I as IoMdArrowDropdown } from './index.esm-536609db.js';
|
|
@@ -70,7 +70,6 @@ import Dropdown from 'react-bootstrap/Dropdown';
|
|
|
70
70
|
import { F as FaLongArrowAltRight } from './Ustream-c153a835.js';
|
|
71
71
|
export { U as Ustream } from './Ustream-c153a835.js';
|
|
72
72
|
import useSWR from 'swr';
|
|
73
|
-
import Iron from '@hapi/iron';
|
|
74
73
|
import Local from 'passport-local';
|
|
75
74
|
import mysql from 'mysql';
|
|
76
75
|
|
|
@@ -2021,6 +2020,16 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2021
2020
|
Row,
|
|
2022
2021
|
null,
|
|
2023
2022
|
data && data.map(function (row, index) {
|
|
2023
|
+
|
|
2024
|
+
var speakerInfo = [];
|
|
2025
|
+
if (row.customFields) {
|
|
2026
|
+
speakerInfo = row.customFields.filter(function (x) {
|
|
2027
|
+
if (x.name == 'KOL or Featured Speaker') {
|
|
2028
|
+
return x;
|
|
2029
|
+
}
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2024
2033
|
var description = row.description,
|
|
2025
2034
|
start = row.start,
|
|
2026
2035
|
end = row.end,
|
|
@@ -2097,12 +2106,47 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2097
2106
|
)
|
|
2098
2107
|
),
|
|
2099
2108
|
description && React__default.createElement(
|
|
2100
|
-
|
|
2101
|
-
|
|
2109
|
+
React__default.Fragment,
|
|
2110
|
+
null,
|
|
2102
2111
|
React__default.createElement(
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
React__default.createElement(
|
|
2112
|
+
Row,
|
|
2113
|
+
{ style: { marginTop: '8px' } },
|
|
2114
|
+
React__default.createElement(
|
|
2115
|
+
Col,
|
|
2116
|
+
null,
|
|
2117
|
+
React__default.createElement('p', { dangerouslySetInnerHTML: { __html: description } })
|
|
2118
|
+
)
|
|
2119
|
+
)
|
|
2120
|
+
),
|
|
2121
|
+
speakerInfo && speakerInfo.length > 0 && React__default.createElement(
|
|
2122
|
+
React__default.Fragment,
|
|
2123
|
+
null,
|
|
2124
|
+
React__default.createElement(
|
|
2125
|
+
Row,
|
|
2126
|
+
{ style: { marginTop: '8px' } },
|
|
2127
|
+
React__default.createElement(
|
|
2128
|
+
Col,
|
|
2129
|
+
null,
|
|
2130
|
+
React__default.createElement(
|
|
2131
|
+
'h6',
|
|
2132
|
+
{ style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem;' } },
|
|
2133
|
+
'SPEAKER'
|
|
2134
|
+
),
|
|
2135
|
+
speakerInfo.map(function (info) {
|
|
2136
|
+
return React__default.createElement(
|
|
2137
|
+
'p',
|
|
2138
|
+
{ style: { marginBottom: '0' } },
|
|
2139
|
+
info.value.map(function (speaker, index) {
|
|
2140
|
+
return React__default.createElement(
|
|
2141
|
+
'span',
|
|
2142
|
+
{ key: index, className: 'kol-speaker' },
|
|
2143
|
+
speaker,
|
|
2144
|
+
info.value.length > index + 1 ? ', ' : ''
|
|
2145
|
+
);
|
|
2146
|
+
})
|
|
2147
|
+
);
|
|
2148
|
+
})
|
|
2149
|
+
)
|
|
2106
2150
|
)
|
|
2107
2151
|
)
|
|
2108
2152
|
)
|
|
@@ -18144,23 +18188,34 @@ var authCookies = /*#__PURE__*/Object.freeze({
|
|
|
18144
18188
|
getTokenCookie: getTokenCookie
|
|
18145
18189
|
});
|
|
18146
18190
|
|
|
18147
|
-
var TOKEN_SECRET = ',Qjn4rG\'Is=&wx,EXd<AYW|<{THTrspDkKJV5J{@@=?zDh,OX6Ky=0&T"L419;)';
|
|
18148
|
-
|
|
18149
18191
|
function encryptSession(session) {
|
|
18150
|
-
|
|
18192
|
+
var buffer = new Buffer(_JSON$stringify(session));
|
|
18193
|
+
return buffer.toString('base64');
|
|
18194
|
+
//return jwt.sign(session, TOKEN_SECRET)
|
|
18195
|
+
//return Iron.seal(session, TOKEN_SECRET, Iron.defaults)
|
|
18151
18196
|
}
|
|
18152
18197
|
|
|
18153
18198
|
var getSession = function () {
|
|
18154
18199
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(req) {
|
|
18155
|
-
var token;
|
|
18200
|
+
var token, buff;
|
|
18156
18201
|
return regenerator.wrap(function _callee$(_context) {
|
|
18157
18202
|
while (1) {
|
|
18158
18203
|
switch (_context.prev = _context.next) {
|
|
18159
18204
|
case 0:
|
|
18160
18205
|
token = getTokenCookie(req);
|
|
18161
|
-
return _context.abrupt('return', token ? Iron.unseal(token, TOKEN_SECRET, Iron.defaults) : null);
|
|
18162
18206
|
|
|
18163
|
-
|
|
18207
|
+
if (!token) {
|
|
18208
|
+
_context.next = 4;
|
|
18209
|
+
break;
|
|
18210
|
+
}
|
|
18211
|
+
|
|
18212
|
+
buff = new Buffer(token, 'base64');
|
|
18213
|
+
return _context.abrupt('return', JSON.parse(buff.toString('utf8')));
|
|
18214
|
+
|
|
18215
|
+
case 4:
|
|
18216
|
+
return _context.abrupt('return', null);
|
|
18217
|
+
|
|
18218
|
+
case 5:
|
|
18164
18219
|
case 'end':
|
|
18165
18220
|
return _context.stop();
|
|
18166
18221
|
}
|