@mjhls/mjh-framework 1.0.998-D4S-2830v2 → 1.0.998-D4S-2830v3
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.1000
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -122,6 +122,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
122
122
|
)
|
|
123
123
|
),
|
|
124
124
|
resources[active].length > 0 ? resources[active].map(function (r) {
|
|
125
|
+
var destination = r.destination ? r.destination : '';
|
|
125
126
|
return React__default['default'].createElement(
|
|
126
127
|
'div',
|
|
127
128
|
{ key: r._id, className: 'resource' },
|
|
@@ -130,7 +131,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
130
131
|
{ id: 'thumb' },
|
|
131
132
|
React__default['default'].createElement(
|
|
132
133
|
'a',
|
|
133
|
-
{ href:
|
|
134
|
+
{ href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
134
135
|
React__default['default'].createElement('img', { src: r.thumbnail })
|
|
135
136
|
)
|
|
136
137
|
),
|
|
@@ -139,7 +140,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
139
140
|
{ id: 'details' },
|
|
140
141
|
React__default['default'].createElement(
|
|
141
142
|
'a',
|
|
142
|
-
{ href:
|
|
143
|
+
{ href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
143
144
|
React__default['default'].createElement(
|
|
144
145
|
'p',
|
|
145
146
|
{ id: 'title' },
|
|
@@ -199,7 +200,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
199
200
|
),
|
|
200
201
|
React__default['default'].createElement(
|
|
201
202
|
Button__default['default'],
|
|
202
|
-
{ id: 'cta', variant: 'secondary', href:
|
|
203
|
+
{ id: 'cta', variant: 'secondary', href: destination, target: '_blank', rel: checkSisterSite.checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
203
204
|
cta
|
|
204
205
|
)
|
|
205
206
|
)
|
|
@@ -115,6 +115,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
115
115
|
)
|
|
116
116
|
),
|
|
117
117
|
resources[active].length > 0 ? resources[active].map(function (r) {
|
|
118
|
+
var destination = r.destination ? r.destination : '';
|
|
118
119
|
return React__default.createElement(
|
|
119
120
|
'div',
|
|
120
121
|
{ key: r._id, className: 'resource' },
|
|
@@ -123,7 +124,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
123
124
|
{ id: 'thumb' },
|
|
124
125
|
React__default.createElement(
|
|
125
126
|
'a',
|
|
126
|
-
{ href:
|
|
127
|
+
{ href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
127
128
|
React__default.createElement('img', { src: r.thumbnail })
|
|
128
129
|
)
|
|
129
130
|
),
|
|
@@ -132,7 +133,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
132
133
|
{ id: 'details' },
|
|
133
134
|
React__default.createElement(
|
|
134
135
|
'a',
|
|
135
|
-
{ href:
|
|
136
|
+
{ href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
136
137
|
React__default.createElement(
|
|
137
138
|
'p',
|
|
138
139
|
{ id: 'title' },
|
|
@@ -192,7 +193,7 @@ var ExternalResources = function ExternalResources(props) {
|
|
|
192
193
|
),
|
|
193
194
|
React__default.createElement(
|
|
194
195
|
Button,
|
|
195
|
-
{ id: 'cta', variant: 'secondary', href:
|
|
196
|
+
{ id: 'cta', variant: 'secondary', href: destination, target: '_blank', rel: checkSisterSite(destination) ? '' : 'noopener noreferrer' },
|
|
196
197
|
cta
|
|
197
198
|
)
|
|
198
199
|
)
|