@mjhls/mjh-framework 1.0.278 → 1.0.279
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/IssueDeck.js +12 -4
- package/dist/esm/IssueDeck.js +12 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/IssueDeck.js
CHANGED
|
@@ -57,7 +57,7 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
57
57
|
React__default.createElement(
|
|
58
58
|
Col,
|
|
59
59
|
{ md: 12, lg: 4, className: 'body-image' },
|
|
60
|
-
React__default.createElement(
|
|
60
|
+
row.issues.length > 0 ? React__default.createElement(
|
|
61
61
|
'a',
|
|
62
62
|
{ href: href + '/' + publication + '/' + row.identifier.current, style: { width: '100%' } },
|
|
63
63
|
row.thumbnail && React__default.createElement(
|
|
@@ -65,6 +65,14 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
65
65
|
{ height: imageHeight },
|
|
66
66
|
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name })
|
|
67
67
|
)
|
|
68
|
+
) : React__default.createElement(
|
|
69
|
+
'a',
|
|
70
|
+
null,
|
|
71
|
+
row.thumbnail && React__default.createElement(
|
|
72
|
+
index$2.LazyLoad,
|
|
73
|
+
{ height: imageHeight },
|
|
74
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name })
|
|
75
|
+
)
|
|
68
76
|
)
|
|
69
77
|
),
|
|
70
78
|
React__default.createElement(
|
|
@@ -117,18 +125,18 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
117
125
|
React__default.createElement(
|
|
118
126
|
Row,
|
|
119
127
|
null,
|
|
120
|
-
React__default.createElement(
|
|
128
|
+
row.issues.length > 0 && React__default.createElement(
|
|
121
129
|
'a',
|
|
122
130
|
{ href: href + '/' + publication + '/' + row.identifier.current },
|
|
123
131
|
React__default.createElement(
|
|
124
132
|
Button,
|
|
125
|
-
{ style: { marginTop: '20px' }, variant: 'secondary' },
|
|
133
|
+
{ style: { marginTop: '20px', marginRight: '1rem' }, variant: 'secondary' },
|
|
126
134
|
'View Issue'
|
|
127
135
|
)
|
|
128
136
|
),
|
|
129
137
|
row.pdf && row.pdf.asset && React__default.createElement(
|
|
130
138
|
'a',
|
|
131
|
-
{ href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px'
|
|
139
|
+
{ href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px' } },
|
|
132
140
|
'Download Issue'
|
|
133
141
|
)
|
|
134
142
|
)
|
package/dist/esm/IssueDeck.js
CHANGED
|
@@ -52,7 +52,7 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
52
52
|
React__default.createElement(
|
|
53
53
|
Col,
|
|
54
54
|
{ md: 12, lg: 4, className: 'body-image' },
|
|
55
|
-
React__default.createElement(
|
|
55
|
+
row.issues.length > 0 ? React__default.createElement(
|
|
56
56
|
'a',
|
|
57
57
|
{ href: href + '/' + publication + '/' + row.identifier.current, style: { width: '100%' } },
|
|
58
58
|
row.thumbnail && React__default.createElement(
|
|
@@ -60,6 +60,14 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
60
60
|
{ height: imageHeight },
|
|
61
61
|
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name })
|
|
62
62
|
)
|
|
63
|
+
) : React__default.createElement(
|
|
64
|
+
'a',
|
|
65
|
+
null,
|
|
66
|
+
row.thumbnail && React__default.createElement(
|
|
67
|
+
LazyLoad,
|
|
68
|
+
{ height: imageHeight },
|
|
69
|
+
React__default.createElement(Card.Img, { variant: 'top', src: renderCardImage(row.thumbnail), alt: row.name })
|
|
70
|
+
)
|
|
63
71
|
)
|
|
64
72
|
),
|
|
65
73
|
React__default.createElement(
|
|
@@ -112,18 +120,18 @@ var IssueDeck = function IssueDeck(props) {
|
|
|
112
120
|
React__default.createElement(
|
|
113
121
|
Row,
|
|
114
122
|
null,
|
|
115
|
-
React__default.createElement(
|
|
123
|
+
row.issues.length > 0 && React__default.createElement(
|
|
116
124
|
'a',
|
|
117
125
|
{ href: href + '/' + publication + '/' + row.identifier.current },
|
|
118
126
|
React__default.createElement(
|
|
119
127
|
Button,
|
|
120
|
-
{ style: { marginTop: '20px' }, variant: 'secondary' },
|
|
128
|
+
{ style: { marginTop: '20px', marginRight: '1rem' }, variant: 'secondary' },
|
|
121
129
|
'View Issue'
|
|
122
130
|
)
|
|
123
131
|
),
|
|
124
132
|
row.pdf && row.pdf.asset && React__default.createElement(
|
|
125
133
|
'a',
|
|
126
|
-
{ href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px'
|
|
134
|
+
{ href: row.pdf.asset.url, target: '_blank', className: 'btn btn-primary', style: { marginTop: '20px' } },
|
|
127
135
|
'Download Issue'
|
|
128
136
|
)
|
|
129
137
|
)
|