@mjhls/mjh-framework 1.0.351 → 1.0.353
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/IssueContentDeck.js +45 -41
- package/dist/cjs/PublicationDeck.js +125 -38
- package/dist/cjs/index.js +105 -259
- package/dist/esm/IssueContentDeck.js +45 -41
- package/dist/esm/PublicationDeck.js +125 -38
- package/dist/esm/index.js +106 -260
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1800,20 +1800,13 @@ var clientId = process.env.CVENT_CLIENT_ID;
|
|
|
1800
1800
|
var clientSecret = process.env.CVENT_CLIENT_SECRET;
|
|
1801
1801
|
var corsProxy = 'https://cors-anywhere.herokuapp.com/';
|
|
1802
1802
|
var currentTime = momentTimezone$1().toISOString();
|
|
1803
|
-
var itemsPerPage =
|
|
1803
|
+
var itemsPerPage = 200;
|
|
1804
1804
|
|
|
1805
1805
|
var EventsDeck = function EventsDeck(_ref) {
|
|
1806
|
-
var
|
|
1807
|
-
autoScroll = _ref$autoScroll === undefined ? true : _ref$autoScroll,
|
|
1808
|
-
rightItems = _ref.rightItems,
|
|
1809
|
-
_ref$seoPaginate = _ref.seoPaginate,
|
|
1810
|
-
seoPaginate = _ref$seoPaginate === undefined ? true : _ref$seoPaginate,
|
|
1811
|
-
pageview = _ref.pageview,
|
|
1806
|
+
var rightItems = _ref.rightItems,
|
|
1812
1807
|
_ref$filter = _ref.filter,
|
|
1813
1808
|
filter = _ref$filter === undefined ? 'start gt \'' + currentTime + '\' and status eq \'Active\'' : _ref$filter;
|
|
1814
1809
|
|
|
1815
|
-
var router = Router.useRouter();
|
|
1816
|
-
|
|
1817
1810
|
var _useState = React.useState(true),
|
|
1818
1811
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
1819
1812
|
isLoading = _useState2[0],
|
|
@@ -1839,16 +1832,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1839
1832
|
scrolling = _useState10[0],
|
|
1840
1833
|
setScrolling = _useState10[1];
|
|
1841
1834
|
|
|
1842
|
-
var
|
|
1843
|
-
_useState12 = slicedToArray._slicedToArray(_useState11, 2),
|
|
1844
|
-
currentPage = _useState12[0],
|
|
1845
|
-
setCurrentPage = _useState12[1];
|
|
1846
|
-
|
|
1847
|
-
var currentPageRef = React.useRef(currentPage);
|
|
1848
|
-
|
|
1849
|
-
var getEvents = function getEvents(params) {
|
|
1850
|
-
var url = params.url;
|
|
1851
|
-
|
|
1835
|
+
var getEvents = function getEvents(url) {
|
|
1852
1836
|
fetch(url, {
|
|
1853
1837
|
headers: {
|
|
1854
1838
|
Accept: 'application/json',
|
|
@@ -1863,43 +1847,49 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1863
1847
|
}).then(function (events) {
|
|
1864
1848
|
setIsLoading(false);
|
|
1865
1849
|
if (events.data && events.data.length > 0) {
|
|
1866
|
-
var
|
|
1867
|
-
return
|
|
1868
|
-
|
|
1869
|
-
|
|
1850
|
+
var filteredEventsByTestMode = events.data.filter(function (event) {
|
|
1851
|
+
return event.testMode === false;
|
|
1852
|
+
});
|
|
1853
|
+
var sortedEventsByStartData = filteredEventsByTestMode.sort(function (a, b) {
|
|
1854
|
+
if (momentTimezone$1(a.start).isAfter(b.start)) {
|
|
1855
|
+
return 1;
|
|
1856
|
+
} else if (momentTimezone$1(a.start).isBefore(b.start)) {
|
|
1857
|
+
return -1;
|
|
1858
|
+
}
|
|
1859
|
+
return 0;
|
|
1870
1860
|
});
|
|
1871
1861
|
setData(function (prevData) {
|
|
1872
|
-
return [].concat(toConsumableArray._toConsumableArray(prevData), toConsumableArray._toConsumableArray(
|
|
1862
|
+
return [].concat(toConsumableArray._toConsumableArray(prevData), toConsumableArray._toConsumableArray(sortedEventsByStartData));
|
|
1873
1863
|
});
|
|
1874
1864
|
setNextPageLink(events.paging._links.next ? events.paging._links.next.href : null);
|
|
1875
|
-
|
|
1865
|
+
setScrolling(events.paging._links.next ? true : false);
|
|
1876
1866
|
} else {
|
|
1877
1867
|
setScrolling(false);
|
|
1878
1868
|
}
|
|
1869
|
+
}).catch(function (e) {
|
|
1870
|
+
console.error(e);
|
|
1879
1871
|
});
|
|
1880
1872
|
};
|
|
1881
1873
|
|
|
1882
1874
|
React.useEffect(function () {
|
|
1883
1875
|
// load initial data
|
|
1884
|
-
if (accessToken
|
|
1876
|
+
if (accessToken) {
|
|
1885
1877
|
var initailUrl = 'https://api-platform.cvent.com/event/v1/events/filter?limit=' + itemsPerPage;
|
|
1886
|
-
getEvents(
|
|
1878
|
+
getEvents(initailUrl);
|
|
1887
1879
|
}
|
|
1888
|
-
}, [accessToken,
|
|
1880
|
+
}, [accessToken, filter]);
|
|
1889
1881
|
|
|
1890
|
-
|
|
1882
|
+
var loadMore = function loadMore() {
|
|
1891
1883
|
// load more events
|
|
1892
|
-
if (accessToken && nextPageLink
|
|
1893
|
-
getEvents(
|
|
1884
|
+
if (accessToken && nextPageLink) {
|
|
1885
|
+
getEvents(nextPageLink);
|
|
1894
1886
|
}
|
|
1895
|
-
}
|
|
1887
|
+
};
|
|
1896
1888
|
|
|
1897
1889
|
React.useEffect(function () {
|
|
1898
1890
|
// reset state when filter changes
|
|
1899
1891
|
setIsLoading(true);
|
|
1900
1892
|
setData([]);
|
|
1901
|
-
setCurrentPage(1);
|
|
1902
|
-
currentPageRef.current = 1;
|
|
1903
1893
|
}, [filter]);
|
|
1904
1894
|
|
|
1905
1895
|
React.useEffect(function () {
|
|
@@ -1929,63 +1919,7 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1929
1919
|
}
|
|
1930
1920
|
}, []);
|
|
1931
1921
|
|
|
1932
|
-
var
|
|
1933
|
-
setCurrentPage(function (prevCurrentPage) {
|
|
1934
|
-
return prevCurrentPage + 1;
|
|
1935
|
-
});
|
|
1936
|
-
}, 0);
|
|
1937
|
-
|
|
1938
|
-
var changePageNumber = function changePageNumber(pageNumber) {
|
|
1939
|
-
if (seoPaginate) {
|
|
1940
|
-
var path = router.asPath;
|
|
1941
|
-
var qrIndex = path.indexOf('?');
|
|
1942
|
-
var pathname = router.pathname;
|
|
1943
|
-
var queryString = '';
|
|
1944
|
-
if (qrIndex > 0) {
|
|
1945
|
-
path = path.substring(1, qrIndex);
|
|
1946
|
-
|
|
1947
|
-
var partialQS = router.asPath.substring(qrIndex + 1);
|
|
1948
|
-
var partialQSArr = partialQS.split('&');
|
|
1949
|
-
|
|
1950
|
-
// exclude page=xxx from query string
|
|
1951
|
-
partialQSArr.map(function (item) {
|
|
1952
|
-
var itemArr = item.split('=');
|
|
1953
|
-
var key = itemArr[0];
|
|
1954
|
-
var val = itemArr[1];
|
|
1955
|
-
|
|
1956
|
-
if (key !== 'page') {
|
|
1957
|
-
queryString += (queryString.length === 0 ? '' : '&') + key + '=' + val;
|
|
1958
|
-
}
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1962
|
-
if (queryString.length > 0) {
|
|
1963
|
-
path += '?' + queryString;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
pageNumber = parseInt(pageNumber);
|
|
1967
|
-
|
|
1968
|
-
if (pageNumber !== currentPageRef.current) {
|
|
1969
|
-
debounce.lib_3.refresh();
|
|
1970
|
-
|
|
1971
|
-
currentPageRef.current = pageNumber;
|
|
1972
|
-
if (path[0] !== '/') {
|
|
1973
|
-
path = '/' + path;
|
|
1974
|
-
}
|
|
1975
|
-
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
1976
|
-
|
|
1977
|
-
if (pageview) {
|
|
1978
|
-
pageview(newPath);
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
router.push(pathname, newPath, {
|
|
1982
|
-
shallow: true
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
|
|
1988
|
-
var renderRegisterButton = function renderRegisterButton(links, closeAfter, timezone) {
|
|
1922
|
+
var renderRegisterButton = function renderRegisterButton(links) {
|
|
1989
1923
|
return React__default.createElement(
|
|
1990
1924
|
'a',
|
|
1991
1925
|
{ href: links.summary.href || '#', target: '_blank' },
|
|
@@ -1995,33 +1929,13 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1995
1929
|
'Register Now'
|
|
1996
1930
|
)
|
|
1997
1931
|
);
|
|
1998
|
-
// const now = moment().tz(timezone)
|
|
1999
|
-
// closeAfter = moment(closeAfter).tz(timezone)
|
|
2000
|
-
// const isRegister = moment(now).isBefore(closeAfter)
|
|
2001
|
-
// if (isRegister) {
|
|
2002
|
-
// return (
|
|
2003
|
-
// <a href={links.registration.href || '#'} target='_blank'>
|
|
2004
|
-
// <Button size='sm' className='event-registration-button'>
|
|
2005
|
-
// Register Now
|
|
2006
|
-
// </Button>
|
|
2007
|
-
// </a>
|
|
2008
|
-
// )
|
|
2009
|
-
// } else {
|
|
2010
|
-
// return (
|
|
2011
|
-
// <a href={links.summary.href || '#'} target='_blank'>
|
|
2012
|
-
// <Button size='sm' className='event-registration-button'>
|
|
2013
|
-
// Learn more
|
|
2014
|
-
// </Button>
|
|
2015
|
-
// </a>
|
|
2016
|
-
// )
|
|
2017
|
-
// }
|
|
2018
1932
|
};
|
|
2019
1933
|
|
|
2020
1934
|
var cardLoader = function cardLoader() {
|
|
2021
1935
|
var numberOfItemsBeforeAd = 5;
|
|
2022
1936
|
return React__default.createElement(
|
|
2023
|
-
|
|
2024
|
-
|
|
1937
|
+
Container,
|
|
1938
|
+
{ style: { padding: 1 } },
|
|
2025
1939
|
data && data.map(function (row, index) {
|
|
2026
1940
|
var speakerInfo = [];
|
|
2027
1941
|
if (row.customFields) {
|
|
@@ -2055,105 +1969,97 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2055
1969
|
return result;
|
|
2056
1970
|
}, '') : '';
|
|
2057
1971
|
|
|
2058
|
-
var pageNumber = row.pageNumber || 1;
|
|
2059
1972
|
return React__default.createElement(
|
|
2060
1973
|
React__default.Fragment,
|
|
2061
1974
|
{ key: index },
|
|
2062
1975
|
React__default.createElement(
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
} },
|
|
2068
|
-
React__default.createElement(
|
|
2069
|
-
Card,
|
|
1976
|
+
Card,
|
|
1977
|
+
null,
|
|
1978
|
+
isRegister && _links && React__default.createElement(
|
|
1979
|
+
Row,
|
|
2070
1980
|
null,
|
|
2071
|
-
|
|
2072
|
-
|
|
1981
|
+
React__default.createElement(
|
|
1982
|
+
Col,
|
|
2073
1983
|
null,
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
1984
|
+
renderRegisterButton(_links)
|
|
1985
|
+
)
|
|
1986
|
+
),
|
|
1987
|
+
discussionTopic && React__default.createElement(
|
|
1988
|
+
Row,
|
|
1989
|
+
null,
|
|
1990
|
+
React__default.createElement(
|
|
1991
|
+
Col,
|
|
2082
1992
|
null,
|
|
2083
|
-
React__default.createElement(
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
1993
|
+
React__default.createElement('h5', { className: 'topic', style: { fontWeight: '500', marginBottom: 0 }, dangerouslySetInnerHTML: { __html: discussionTopic } })
|
|
1994
|
+
)
|
|
1995
|
+
),
|
|
1996
|
+
start && timezone && React__default.createElement(
|
|
1997
|
+
Row,
|
|
1998
|
+
null,
|
|
1999
|
+
React__default.createElement(
|
|
2000
|
+
Col,
|
|
2091
2001
|
null,
|
|
2092
2002
|
React__default.createElement(
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
'p',
|
|
2097
|
-
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
2098
|
-
momentTimezone$1(start).tz(timezone).format('LLL')
|
|
2099
|
-
)
|
|
2003
|
+
'p',
|
|
2004
|
+
{ className: 'start-time', style: { padding: 0, margin: 0 } },
|
|
2005
|
+
momentTimezone$1(start).tz(timezone).format('LLL')
|
|
2100
2006
|
)
|
|
2101
|
-
)
|
|
2102
|
-
|
|
2103
|
-
|
|
2007
|
+
)
|
|
2008
|
+
),
|
|
2009
|
+
eventRegion && React__default.createElement(
|
|
2010
|
+
Row,
|
|
2011
|
+
null,
|
|
2012
|
+
React__default.createElement(
|
|
2013
|
+
Col,
|
|
2104
2014
|
null,
|
|
2105
2015
|
React__default.createElement(
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
'p',
|
|
2110
|
-
{ className: 'event-region', style: { padding: 0, margin: 0 } },
|
|
2111
|
-
eventRegion
|
|
2112
|
-
)
|
|
2016
|
+
'p',
|
|
2017
|
+
{ className: 'event-region', style: { padding: 0, margin: 0 } },
|
|
2018
|
+
eventRegion
|
|
2113
2019
|
)
|
|
2114
|
-
)
|
|
2115
|
-
|
|
2116
|
-
|
|
2020
|
+
)
|
|
2021
|
+
),
|
|
2022
|
+
venues && venues.length && venues[0].name && React__default.createElement(
|
|
2023
|
+
Row,
|
|
2024
|
+
null,
|
|
2025
|
+
React__default.createElement(
|
|
2026
|
+
Col,
|
|
2117
2027
|
null,
|
|
2118
2028
|
React__default.createElement(
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
'p',
|
|
2123
|
-
{ className: 'venue', style: { padding: 0, margin: 0 } },
|
|
2124
|
-
venues[0].name
|
|
2125
|
-
)
|
|
2029
|
+
'p',
|
|
2030
|
+
{ className: 'venue', style: { padding: 0, margin: 0 } },
|
|
2031
|
+
venues[0].name
|
|
2126
2032
|
)
|
|
2127
|
-
)
|
|
2128
|
-
|
|
2129
|
-
|
|
2033
|
+
)
|
|
2034
|
+
),
|
|
2035
|
+
speakerInfo && speakerInfo.length && React__default.createElement(
|
|
2036
|
+
Row,
|
|
2037
|
+
null,
|
|
2038
|
+
React__default.createElement(
|
|
2039
|
+
Col,
|
|
2130
2040
|
null,
|
|
2131
2041
|
React__default.createElement(
|
|
2132
|
-
|
|
2133
|
-
|
|
2042
|
+
'div',
|
|
2043
|
+
{ className: 'speaker-section', style: { border: '1px solid', borderRadius: '8px', padding: '8px' } },
|
|
2134
2044
|
React__default.createElement(
|
|
2135
|
-
'
|
|
2136
|
-
{ className: 'speaker-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
})
|
|
2154
|
-
);
|
|
2155
|
-
})
|
|
2156
|
-
)
|
|
2045
|
+
'h6',
|
|
2046
|
+
{ className: 'speaker-title', style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem' } },
|
|
2047
|
+
'SPEAKER'
|
|
2048
|
+
),
|
|
2049
|
+
speakerInfo.map(function (info, index) {
|
|
2050
|
+
return React__default.createElement(
|
|
2051
|
+
'p',
|
|
2052
|
+
{ key: index, style: { marginBottom: '0' } },
|
|
2053
|
+
info.value.map(function (speaker, index) {
|
|
2054
|
+
return React__default.createElement(
|
|
2055
|
+
'b',
|
|
2056
|
+
{ key: index, className: 'kol-speaker' },
|
|
2057
|
+
speaker,
|
|
2058
|
+
info.value.length > index + 1 ? ', ' : ''
|
|
2059
|
+
);
|
|
2060
|
+
})
|
|
2061
|
+
);
|
|
2062
|
+
})
|
|
2157
2063
|
)
|
|
2158
2064
|
)
|
|
2159
2065
|
)
|
|
@@ -2182,20 +2088,6 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2182
2088
|
);
|
|
2183
2089
|
};
|
|
2184
2090
|
|
|
2185
|
-
var renderManualPagination = function renderManualPagination() {
|
|
2186
|
-
var currentPage = 1;
|
|
2187
|
-
return React__default.createElement(
|
|
2188
|
-
'div',
|
|
2189
|
-
{ className: 'd-flex justify-content-between' },
|
|
2190
|
-
currentPage > 1 ,
|
|
2191
|
-
React__default.createElement(
|
|
2192
|
-
'a',
|
|
2193
|
-
{ href: '?page=' + (currentPage + 1) },
|
|
2194
|
-
'Next >>'
|
|
2195
|
-
)
|
|
2196
|
-
);
|
|
2197
|
-
};
|
|
2198
|
-
|
|
2199
2091
|
if (isLoading) {
|
|
2200
2092
|
return React__default.createElement(
|
|
2201
2093
|
'div',
|
|
@@ -2218,57 +2110,10 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2218
2110
|
return React__default.createElement(
|
|
2219
2111
|
'div',
|
|
2220
2112
|
{ className: 'cvent-events' },
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
visibilitySensor.InfiniteScroll,
|
|
2226
|
-
{ dataLength: data.length, next: loadMore, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
2227
|
-
React__default.createElement(
|
|
2228
|
-
Container,
|
|
2229
|
-
null,
|
|
2230
|
-
cardLoader()
|
|
2231
|
-
)
|
|
2232
|
-
),
|
|
2233
|
-
React__default.createElement(
|
|
2234
|
-
'noscript',
|
|
2235
|
-
null,
|
|
2236
|
-
renderManualPagination()
|
|
2237
|
-
)
|
|
2238
|
-
) : React__default.createElement(
|
|
2239
|
-
React__default.Fragment,
|
|
2240
|
-
null,
|
|
2241
|
-
React__default.createElement(
|
|
2242
|
-
Container,
|
|
2243
|
-
null,
|
|
2244
|
-
cardLoader()
|
|
2245
|
-
),
|
|
2246
|
-
React__default.createElement(
|
|
2247
|
-
'div',
|
|
2248
|
-
{ style: { padding: '0px 10px' } },
|
|
2249
|
-
scrolling ? React__default.createElement(
|
|
2250
|
-
'button',
|
|
2251
|
-
{
|
|
2252
|
-
style: { margin: 'auto', width: '100%' },
|
|
2253
|
-
onClick: function onClick(e) {
|
|
2254
|
-
loadMore();
|
|
2255
|
-
} },
|
|
2256
|
-
'Load More'
|
|
2257
|
-
) : React__default.createElement(
|
|
2258
|
-
'p',
|
|
2259
|
-
{ style: { textAlign: 'center' } },
|
|
2260
|
-
React__default.createElement(
|
|
2261
|
-
'b',
|
|
2262
|
-
null,
|
|
2263
|
-
'End of data'
|
|
2264
|
-
)
|
|
2265
|
-
)
|
|
2266
|
-
),
|
|
2267
|
-
React__default.createElement(
|
|
2268
|
-
'noscript',
|
|
2269
|
-
null,
|
|
2270
|
-
renderManualPagination()
|
|
2271
|
-
)
|
|
2113
|
+
React__default.createElement(
|
|
2114
|
+
visibilitySensor.InfiniteScroll,
|
|
2115
|
+
{ dataLength: data.length, next: loadMore, hasMore: scrolling, scrollThreshold: 0.9 },
|
|
2116
|
+
cardLoader()
|
|
2272
2117
|
)
|
|
2273
2118
|
);
|
|
2274
2119
|
} else {
|
|
@@ -16713,6 +16558,7 @@ var Article = function Article(props) {
|
|
|
16713
16558
|
);
|
|
16714
16559
|
}
|
|
16715
16560
|
}),
|
|
16561
|
+
React__default.createElement('div', { className: 'clearfix', style: { minHeight: '1px' } }),
|
|
16716
16562
|
React__default.createElement('hr', { className: 'article-seperater' })
|
|
16717
16563
|
);
|
|
16718
16564
|
};
|
|
@@ -16932,7 +16778,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
16932
16778
|
|
|
16933
16779
|
return React__default.createElement(
|
|
16934
16780
|
visibilitySensor.InfiniteScroll,
|
|
16935
|
-
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true },
|
|
16781
|
+
{ dataLength: queueData.length, next: loadmore, scrollThreshold: '60%', hasMore: true, style: { overflow: 'hidden' } },
|
|
16936
16782
|
queueData.map(function (article, index) {
|
|
16937
16783
|
if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
|
|
16938
16784
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
|
|
@@ -48,61 +48,65 @@ var PublicationDeckStack = function PublicationDeckStack(props) {
|
|
|
48
48
|
|
|
49
49
|
return React__default.createElement(
|
|
50
50
|
Col,
|
|
51
|
-
{ md: 12, lg: 12,
|
|
51
|
+
{ md: 12, lg: 12, key: index },
|
|
52
52
|
React__default.createElement(
|
|
53
53
|
Card,
|
|
54
54
|
{ style: { boxShadow: 'none', borderBottom: '1px solid #aaa', paddingBottom: '1rem' } },
|
|
55
55
|
React__default.createElement(
|
|
56
56
|
'a',
|
|
57
57
|
{ href: '/view/' + link },
|
|
58
|
-
coverImage && React__default.createElement(
|
|
59
|
-
LazyLoad,
|
|
60
|
-
{ height: imageHeight },
|
|
61
|
-
React__default.createElement(Card.Img, {
|
|
62
|
-
variant: 'right',
|
|
63
|
-
src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }),
|
|
64
|
-
alt: title,
|
|
65
|
-
style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '1rem', float: 'left', marginTop: '1rem', paddingBottom: '1rem' }
|
|
66
|
-
})
|
|
67
|
-
),
|
|
68
58
|
React__default.createElement(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
'span',
|
|
81
|
-
null,
|
|
82
|
-
title
|
|
83
|
-
),
|
|
84
|
-
React__default.createElement('br', null)
|
|
59
|
+
'div',
|
|
60
|
+
{ style: { display: 'flex', flex: '1 0 auto' } },
|
|
61
|
+
coverImage && React__default.createElement(
|
|
62
|
+
LazyLoad,
|
|
63
|
+
{ height: imageHeight },
|
|
64
|
+
React__default.createElement(Card.Img, {
|
|
65
|
+
variant: 'right',
|
|
66
|
+
src: renderCardImage({ coverImage: coverImage, imageHeight: imageHeight, imageWidth: imageWidth, client: client, Settings: Settings }),
|
|
67
|
+
alt: title,
|
|
68
|
+
style: { width: '170px', height: 'auto', objectFit: 'contain', padding: '0.25rem', float: 'left', paddingBottom: '1rem' }
|
|
69
|
+
})
|
|
85
70
|
),
|
|
86
71
|
React__default.createElement(
|
|
87
|
-
|
|
88
|
-
{ style: {
|
|
72
|
+
Card.Body,
|
|
73
|
+
{ style: { padding: '0.5rem' } },
|
|
74
|
+
section ? React__default.createElement(
|
|
75
|
+
Badge,
|
|
76
|
+
{ variant: 'success' },
|
|
77
|
+
section.name
|
|
78
|
+
) : '',
|
|
89
79
|
React__default.createElement(
|
|
90
|
-
|
|
91
|
-
{ style: { color: '#
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
'
|
|
98
|
-
author
|
|
80
|
+
Card.Title,
|
|
81
|
+
{ style: { color: '#121212', fontSize: '1.1rem' } },
|
|
82
|
+
React__default.createElement(
|
|
83
|
+
'span',
|
|
84
|
+
null,
|
|
85
|
+
title
|
|
86
|
+
),
|
|
87
|
+
React__default.createElement('br', null)
|
|
99
88
|
),
|
|
100
89
|
React__default.createElement(
|
|
101
|
-
'
|
|
102
|
-
|
|
103
|
-
|
|
90
|
+
'div',
|
|
91
|
+
{ style: { float: 'left' } },
|
|
92
|
+
React__default.createElement(
|
|
93
|
+
'p',
|
|
94
|
+
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
95
|
+
moment(published).format('MMMM DD, YYYY ')
|
|
96
|
+
),
|
|
97
|
+
author.length > 0 && React__default.createElement(
|
|
98
|
+
'p',
|
|
99
|
+
{ style: { color: '#484848', fontSize: '.9rem', fontWeight: '600' }, className: 'mb-0' },
|
|
100
|
+
'By ',
|
|
101
|
+
author
|
|
102
|
+
)
|
|
104
103
|
)
|
|
105
104
|
)
|
|
105
|
+
),
|
|
106
|
+
React__default.createElement(
|
|
107
|
+
'p',
|
|
108
|
+
{ style: { paddingLeft: '0.5rem' } },
|
|
109
|
+
summary
|
|
106
110
|
)
|
|
107
111
|
)
|
|
108
112
|
)
|