@mjhls/mjh-framework 1.0.507 → 1.0.509
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/TemplateNormal.js +5 -0
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/esm/TemplateNormal.js +5 -0
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ var NavNative = require('./NavNative.js');
|
|
|
59
59
|
var NavNormal = require('./NavNormal.js');
|
|
60
60
|
var NavDvm = require('./NavDvm.js');
|
|
61
61
|
var HamMagazine = require('./HamMagazine.js');
|
|
62
|
+
var ADGutter = require('./ADGutter.js');
|
|
62
63
|
var AD728x90 = require('./AD728x90.js');
|
|
63
64
|
|
|
64
65
|
// Main
|
|
@@ -126,6 +127,9 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
126
127
|
if (website.sponsoredAd) {
|
|
127
128
|
website.sponsoredAd['targeting'] = adTargeting;
|
|
128
129
|
}
|
|
130
|
+
if (website.gutterAd) {
|
|
131
|
+
website.gutterAd['targeting'] = adTargeting;
|
|
132
|
+
}
|
|
129
133
|
function layout() {
|
|
130
134
|
switch (config.columns) {
|
|
131
135
|
case '1':
|
|
@@ -184,6 +188,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
184
188
|
React__default.createElement(AD728x90, { networkID: horizontalAD.networkID, adUnit: horizontalAD.adUnit, targeting: adTargeting })
|
|
185
189
|
)
|
|
186
190
|
),
|
|
191
|
+
website.gutterAd && !sponsoredFlag && React__default.createElement(ADGutter, { title: 'gutter-ad', gutterAd: website.gutterAd }),
|
|
187
192
|
React__default.createElement(
|
|
188
193
|
Container,
|
|
189
194
|
null,
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -18,7 +18,7 @@ var getQuery = function getQuery(type) {
|
|
|
18
18
|
case 'publication':
|
|
19
19
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
20
20
|
case 'issue':
|
|
21
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n &&
|
|
21
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && published <= $currentDate\n && references(^._id)] {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
|
|
22
22
|
case 'externalResources':
|
|
23
23
|
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
|
|
24
24
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -113,6 +113,7 @@ var NavNative = require('./NavNative.js');
|
|
|
113
113
|
var NavNormal = require('./NavNormal.js');
|
|
114
114
|
var NavDvm = require('./NavDvm.js');
|
|
115
115
|
var HamMagazine = require('./HamMagazine.js');
|
|
116
|
+
var ADGutter = require('./ADGutter.js');
|
|
116
117
|
var AD728x90 = require('./AD728x90.js');
|
|
117
118
|
var TemplateNormal = require('./TemplateNormal.js');
|
|
118
119
|
var AD300x250 = require('./AD300x250.js');
|
|
@@ -120,7 +121,6 @@ var AD300x250x600 = require('./AD300x250x600.js');
|
|
|
120
121
|
var ADFooter = require('./ADFooter.js');
|
|
121
122
|
var AdSlotsProvider = require('./AdSlotsProvider.js');
|
|
122
123
|
var ADFloatingFooter = require('./ADFloatingFooter.js');
|
|
123
|
-
var ADGutter = require('./ADGutter.js');
|
|
124
124
|
var ADWelcome = require('./ADWelcome.js');
|
|
125
125
|
require('react-bootstrap/Carousel');
|
|
126
126
|
var Feature = require('./Feature.js');
|
|
@@ -210,6 +210,7 @@ exports.NavNative = NavNative.NavNative;
|
|
|
210
210
|
exports.NavNormal = NavNormal.NavNormal;
|
|
211
211
|
exports.NavDvm = NavDvm.NavDvm;
|
|
212
212
|
exports.HamMagazine = HamMagazine.HamMagazine;
|
|
213
|
+
exports.ADGutter = ADGutter;
|
|
213
214
|
exports.AD728x90 = AD728x90;
|
|
214
215
|
exports.TemplateNormal = TemplateNormal;
|
|
215
216
|
exports.AD300x250 = AD300x250;
|
|
@@ -217,7 +218,6 @@ exports.AD300x250x600 = AD300x250x600;
|
|
|
217
218
|
exports.ADFooter = ADFooter;
|
|
218
219
|
exports.AdSlotsProvider = AdSlotsProvider;
|
|
219
220
|
exports.ADFloatingFooter = ADFloatingFooter;
|
|
220
|
-
exports.ADGutter = ADGutter;
|
|
221
221
|
exports.ADWelcome = ADWelcome;
|
|
222
222
|
exports.Feature = Feature;
|
|
223
223
|
exports.Breadcrumbs = Breadcrumbs;
|
|
@@ -53,6 +53,7 @@ import { NavNative } from './NavNative.js';
|
|
|
53
53
|
import { NavNormal } from './NavNormal.js';
|
|
54
54
|
import { NavDvm } from './NavDvm.js';
|
|
55
55
|
import { HamMagazine } from './HamMagazine.js';
|
|
56
|
+
import ADGutter from './ADGutter.js';
|
|
56
57
|
import AD728x90 from './AD728x90.js';
|
|
57
58
|
|
|
58
59
|
// Main
|
|
@@ -120,6 +121,9 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
120
121
|
if (website.sponsoredAd) {
|
|
121
122
|
website.sponsoredAd['targeting'] = adTargeting;
|
|
122
123
|
}
|
|
124
|
+
if (website.gutterAd) {
|
|
125
|
+
website.gutterAd['targeting'] = adTargeting;
|
|
126
|
+
}
|
|
123
127
|
function layout() {
|
|
124
128
|
switch (config.columns) {
|
|
125
129
|
case '1':
|
|
@@ -178,6 +182,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
178
182
|
React__default.createElement(AD728x90, { networkID: horizontalAD.networkID, adUnit: horizontalAD.adUnit, targeting: adTargeting })
|
|
179
183
|
)
|
|
180
184
|
),
|
|
185
|
+
website.gutterAd && !sponsoredFlag && React__default.createElement(ADGutter, { title: 'gutter-ad', gutterAd: website.gutterAd }),
|
|
181
186
|
React__default.createElement(
|
|
182
187
|
Container,
|
|
183
188
|
null,
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -16,7 +16,7 @@ var getQuery = function getQuery(type) {
|
|
|
16
16
|
case 'publication':
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
19
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n &&
|
|
19
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && published <= $currentDate\n && references(^._id)] {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
|
|
20
20
|
case 'externalResources':
|
|
21
21
|
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
|
|
22
22
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -109,6 +109,7 @@ export { NavNative } from './NavNative.js';
|
|
|
109
109
|
export { NavNormal } from './NavNormal.js';
|
|
110
110
|
export { NavDvm } from './NavDvm.js';
|
|
111
111
|
export { HamMagazine } from './HamMagazine.js';
|
|
112
|
+
export { default as ADGutter } from './ADGutter.js';
|
|
112
113
|
export { default as AD728x90 } from './AD728x90.js';
|
|
113
114
|
export { default as TemplateNormal } from './TemplateNormal.js';
|
|
114
115
|
export { default as AD300x250 } from './AD300x250.js';
|
|
@@ -116,7 +117,6 @@ export { default as AD300x250x600 } from './AD300x250x600.js';
|
|
|
116
117
|
export { default as ADFooter } from './ADFooter.js';
|
|
117
118
|
export { default as AdSlotsProvider } from './AdSlotsProvider.js';
|
|
118
119
|
export { default as ADFloatingFooter } from './ADFloatingFooter.js';
|
|
119
|
-
export { default as ADGutter } from './ADGutter.js';
|
|
120
120
|
export { default as ADWelcome } from './ADWelcome.js';
|
|
121
121
|
import 'react-bootstrap/Carousel';
|
|
122
122
|
export { default as Feature } from './Feature.js';
|