@mindful-web/marko-web-theme-monorail-magazine 1.0.1 → 1.11.0
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/components/blocks/magazine-archived-issue.marko.js +2 -2
- package/components/blocks/magazine-current-issue.marko.js +2 -2
- package/components/blocks/magazine-issue-cards.marko.js +2 -2
- package/components/blocks/magazine-issues.marko.js +2 -2
- package/components/blocks/magazine-latest-issue.marko.js +2 -2
- package/components/blocks/magazine-publication-card.marko.js +2 -2
- package/components/blocks/magazine-publications.marko.js +2 -2
- package/components/flows/magazine-issue-archive.marko.js +2 -2
- package/components/flows/magazine-latest-issue.marko.js +2 -2
- package/components/layouts/magazine-index.marko +58 -0
- package/components/layouts/magazine-index.marko.js +189 -0
- package/components/layouts/magazine-issue.marko +111 -0
- package/components/layouts/magazine-issue.marko.js +313 -0
- package/components/layouts/magazine-publication.marko +118 -0
- package/components/layouts/magazine-publication.marko.js +294 -0
- package/components/layouts/marko.json +11 -0
- package/components/marko.json +1 -0
- package/components/nodes/magazine-issue-archive.marko.js +2 -2
- package/components/nodes/magazine-latest-issue.marko.js +2 -2
- package/components/publication-buttons.marko.js +2 -2
- package/components/publication-links.marko.js +2 -2
- package/graphql/fragments/magazine-issue-mail-year.js +9 -0
- package/package.json +4 -3
- package/routes/index.js +5 -0
- package/scss/index.scss +7 -0
- package/templates/index.marko +2 -26
- package/templates/index.marko.js +11 -77
- package/templates/issue.marko +2 -95
- package/templates/issue.marko.js +10 -257
- package/templates/publication.marko +2 -60
- package/templates/publication.marko.js +10 -167
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-archived-issue.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -51,7 +51,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
marko_template.meta = {
|
|
54
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
54
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-archived-issue.marko",
|
|
55
55
|
tags: [
|
|
56
56
|
"@mindful-web/marko-web/components/node/index.marko"
|
|
57
57
|
]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-current-issue.marko",
|
|
6
6
|
marko_component = require("./magazine-current-issue.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -108,7 +108,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
108
108
|
}, marko_component);
|
|
109
109
|
|
|
110
110
|
marko_template.meta = {
|
|
111
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
111
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-current-issue.marko",
|
|
112
112
|
component: "./magazine-current-issue.marko",
|
|
113
113
|
tags: [
|
|
114
114
|
"@mindful-web/marko-web/components/element/magazine-issue/name.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-issue-cards.marko",
|
|
6
6
|
marko_component = require("./magazine-issue-cards.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
@@ -84,7 +84,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
84
84
|
}, marko_component);
|
|
85
85
|
|
|
86
86
|
marko_template.meta = {
|
|
87
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
87
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-issue-cards.marko",
|
|
88
88
|
component: "./magazine-issue-cards.marko",
|
|
89
89
|
tags: [
|
|
90
90
|
"@mindful-web/marko-web-theme-monorail/components/query-total-count.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-issues.marko",
|
|
6
6
|
marko_component = require("./magazine-issues.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -139,7 +139,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
139
139
|
}, marko_component);
|
|
140
140
|
|
|
141
141
|
marko_template.meta = {
|
|
142
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
142
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-issues.marko",
|
|
143
143
|
component: "./magazine-issues.marko",
|
|
144
144
|
tags: [
|
|
145
145
|
"@mindful-web/marko-web/components/element/link.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-latest-issue.marko",
|
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
7
7
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
8
8
|
objectPath_module = module_objectPath_module.default || module_objectPath_module,
|
|
@@ -88,7 +88,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
marko_template.meta = {
|
|
91
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
91
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-latest-issue.marko",
|
|
92
92
|
tags: [
|
|
93
93
|
"@mindful-web/marko-web/components/element/magazine-issue/name.marko",
|
|
94
94
|
"../publication-buttons.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-publication-card.marko",
|
|
6
6
|
marko_component = require("./magazine-publication-card.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -115,7 +115,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
115
115
|
}, marko_component);
|
|
116
116
|
|
|
117
117
|
marko_template.meta = {
|
|
118
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
118
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-publication-card.marko",
|
|
119
119
|
component: "./magazine-publication-card.marko",
|
|
120
120
|
tags: [
|
|
121
121
|
"./magazine-latest-issue.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-publications.marko",
|
|
6
6
|
marko_component = require("./magazine-publications.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -78,7 +78,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
78
78
|
}, marko_component);
|
|
79
79
|
|
|
80
80
|
marko_template.meta = {
|
|
81
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
81
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/blocks/magazine-publications.marko",
|
|
82
82
|
component: "./magazine-publications.marko",
|
|
83
83
|
tags: [
|
|
84
84
|
"@mindful-web/marko-web/components/element/magazine-publication/name.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/flows/magazine-issue-archive.marko",
|
|
6
6
|
marko_component = require("./magazine-issue-archive.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -46,7 +46,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
46
46
|
}, marko_component);
|
|
47
47
|
|
|
48
48
|
marko_template.meta = {
|
|
49
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
49
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/flows/magazine-issue-archive.marko",
|
|
50
50
|
component: "./magazine-issue-archive.marko",
|
|
51
51
|
tags: [
|
|
52
52
|
"../nodes/magazine-issue-archive.marko",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
-
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/flows/magazine-latest-issue.marko",
|
|
6
6
|
marko_component = require("./magazine-latest-issue.marko"),
|
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
8
|
module_objectPath_module = require("@mindful-web/object-path"),
|
|
@@ -60,7 +60,7 @@ marko_template._ = marko_renderer(render, {
|
|
|
60
60
|
}, marko_component);
|
|
61
61
|
|
|
62
62
|
marko_template.meta = {
|
|
63
|
-
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.0
|
|
63
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/flows/magazine-latest-issue.marko",
|
|
64
64
|
component: "./magazine-latest-issue.marko",
|
|
65
65
|
tags: [
|
|
66
66
|
"../nodes/magazine-latest-issue.marko",
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import defaultValue from "@mindful-web/marko-core/utils/default-value";
|
|
2
|
+
import publicationListFragment from "@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/magazine-publication-list";
|
|
3
|
+
import latestIssueFragment from "@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/latest-issue";
|
|
4
|
+
|
|
5
|
+
$ const { site, req } = out.global;
|
|
6
|
+
|
|
7
|
+
$ const type = "magazines";
|
|
8
|
+
$ const title = "Magazine Archives";
|
|
9
|
+
$ const description = site.get("magazines.description");
|
|
10
|
+
$ const publicationIds = site.getAsArray("magazine.publicationIds");
|
|
11
|
+
$ const requiresCoverImage = defaultValue(input.requiresCoverImage, true);
|
|
12
|
+
|
|
13
|
+
<marko-web-default-page-layout title=title description=description type=type>
|
|
14
|
+
<@head>
|
|
15
|
+
<if(input.head)>
|
|
16
|
+
<${input.head} />
|
|
17
|
+
</if>
|
|
18
|
+
<else>
|
|
19
|
+
<marko-web-gtm-default-context|{ context }| type=type>
|
|
20
|
+
<marko-web-gtm-push data=context />
|
|
21
|
+
</marko-web-gtm-default-context>
|
|
22
|
+
<marko-web-p1-events-track-static-route-view path=req.path />
|
|
23
|
+
</else>
|
|
24
|
+
</@head>
|
|
25
|
+
<@page>
|
|
26
|
+
<marko-web-page-wrapper class="mb-block">
|
|
27
|
+
<if(input.leaderboard)>
|
|
28
|
+
<@section|{ aliases }| modifiers=["first"]>
|
|
29
|
+
<${input.leaderboard} aliases=aliases />
|
|
30
|
+
</@section>
|
|
31
|
+
</if>
|
|
32
|
+
<@section>
|
|
33
|
+
<div class="row">
|
|
34
|
+
<div class="col">
|
|
35
|
+
<h1 class="page-wrapper__title">${title}</h1>
|
|
36
|
+
<if(description)>
|
|
37
|
+
<p class="page-wrapper__deck">${description}</p>
|
|
38
|
+
</if>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<for|id| of=publicationIds>
|
|
42
|
+
<marko-web-query|{ nodes }| name="magazine-publications" params={ publicationIds: [id], queryFragmet: publicationListFragment }>
|
|
43
|
+
<for|publication| of=nodes>
|
|
44
|
+
<marko-web-query|{ node: latestIssue }| name="magazine-latest-issue" params={ publicationId: publication.id, requiresCoverImage, queryFragment: latestIssueFragment }>
|
|
45
|
+
<theme-magazine-publication-card-block publication-id=publication.id issue-id=latestIssue.id latest-issue={ buttons: ["archives"] } />
|
|
46
|
+
</marko-web-query>
|
|
47
|
+
</for>
|
|
48
|
+
</marko-web-query>
|
|
49
|
+
</for>
|
|
50
|
+
</@section>
|
|
51
|
+
</marko-web-page-wrapper>
|
|
52
|
+
</@page>
|
|
53
|
+
<if(input.belowPage)>
|
|
54
|
+
<@below-page>
|
|
55
|
+
<${input.belowPage} />
|
|
56
|
+
</@below-page>
|
|
57
|
+
</if>
|
|
58
|
+
</marko-web-default-page-layout>
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var marko_template = module.exports = require("marko/dist/html").t(__filename),
|
|
5
|
+
marko_componentType = "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/layouts/magazine-index.marko",
|
|
6
|
+
marko_component = require("./magazine-index.marko"),
|
|
7
|
+
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
|
8
|
+
module_defaultValue = require("@mindful-web/marko-core/utils/default-value"),
|
|
9
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
|
10
|
+
module_publicationListFragment = require("@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/magazine-publication-list"),
|
|
11
|
+
publicationListFragment = module_publicationListFragment.default || module_publicationListFragment,
|
|
12
|
+
module_latestIssueFragment = require("@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/latest-issue"),
|
|
13
|
+
latestIssueFragment = module_latestIssueFragment.default || module_latestIssueFragment,
|
|
14
|
+
marko_dynamicTag = require("marko/dist/runtime/helpers/dynamic-tag"),
|
|
15
|
+
marko_web_gtm_push_template = require("@mindful-web/marko-web-gtm/components/push.marko"),
|
|
16
|
+
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
|
17
|
+
marko_web_gtm_push_tag = marko_loadTag(marko_web_gtm_push_template),
|
|
18
|
+
marko_web_gtm_default_context_template = require("@mindful-web/marko-web-gtm/components/context/default.marko"),
|
|
19
|
+
marko_web_gtm_default_context_tag = marko_loadTag(marko_web_gtm_default_context_template),
|
|
20
|
+
marko_web_p1_events_track_static_route_view_template = require("@mindful-web/marko-web-p1-events/components/track-static-route-view.marko"),
|
|
21
|
+
marko_web_p1_events_track_static_route_view_tag = marko_loadTag(marko_web_p1_events_track_static_route_view_template),
|
|
22
|
+
marko_loadNestedTag = require("marko/dist/runtime/helpers/load-nested-tag"),
|
|
23
|
+
marko_web_page_wrapper_section_nested_tag = marko_loadNestedTag("sections", 1),
|
|
24
|
+
helpers_escape_xml = require("marko/dist/runtime/html/helpers/escape-xml"),
|
|
25
|
+
marko_escapeXml = helpers_escape_xml.x,
|
|
26
|
+
marko_forOf = require("marko/dist/runtime/helpers/for-of"),
|
|
27
|
+
theme_magazine_publication_card_block_template = require("../blocks/magazine-publication-card.marko"),
|
|
28
|
+
theme_magazine_publication_card_block_tag = marko_loadTag(theme_magazine_publication_card_block_template),
|
|
29
|
+
marko_web_query_template = require("@mindful-web/marko-core/components/queries/index.marko"),
|
|
30
|
+
marko_web_query_tag = marko_loadTag(marko_web_query_template),
|
|
31
|
+
marko_mergeNestedTagsHelper = require("marko/dist/runtime/helpers/merge-nested-tags"),
|
|
32
|
+
marko_web_page_wrapper_template = require("@mindful-web/marko-web/components/page/wrapper.marko"),
|
|
33
|
+
marko_web_page_wrapper_tag = marko_loadTag(marko_web_page_wrapper_template),
|
|
34
|
+
marko_web_default_page_layout_template = require("@mindful-web/marko-web/components/page/layouts/default.marko"),
|
|
35
|
+
marko_web_default_page_layout_tag = marko_loadTag(marko_web_default_page_layout_template);
|
|
36
|
+
|
|
37
|
+
function render(input, out, __component, component, state) {
|
|
38
|
+
var data = input;
|
|
39
|
+
|
|
40
|
+
const { site, req } = out.global;
|
|
41
|
+
|
|
42
|
+
const type = "magazines";
|
|
43
|
+
|
|
44
|
+
const title = "Magazine Archives";
|
|
45
|
+
|
|
46
|
+
const description = site.get("magazines.description");
|
|
47
|
+
|
|
48
|
+
const publicationIds = site.getAsArray("magazine.publicationIds");
|
|
49
|
+
|
|
50
|
+
const requiresCoverImage = defaultValue(input.requiresCoverImage, true);
|
|
51
|
+
|
|
52
|
+
marko_web_default_page_layout_tag({
|
|
53
|
+
title: title,
|
|
54
|
+
description: description,
|
|
55
|
+
type: type,
|
|
56
|
+
head: {
|
|
57
|
+
renderBody: function(out) {
|
|
58
|
+
if (input.head) {
|
|
59
|
+
marko_dynamicTag(out, input.head, null, null, null, null, __component, "2");
|
|
60
|
+
} else {
|
|
61
|
+
marko_web_gtm_default_context_tag({
|
|
62
|
+
type: type,
|
|
63
|
+
renderBody: function(out, { context }) {
|
|
64
|
+
marko_web_gtm_push_tag({
|
|
65
|
+
name: "dataLayer",
|
|
66
|
+
data: context
|
|
67
|
+
}, out, __component, "4");
|
|
68
|
+
}
|
|
69
|
+
}, out, __component, "3");
|
|
70
|
+
|
|
71
|
+
marko_web_p1_events_track_static_route_view_tag({
|
|
72
|
+
path: req.path
|
|
73
|
+
}, out, __component, "5");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
page: {
|
|
78
|
+
renderBody: function(out) {
|
|
79
|
+
marko_web_page_wrapper_tag(marko_mergeNestedTagsHelper({
|
|
80
|
+
blockName: "page-wrapper",
|
|
81
|
+
tag: "div",
|
|
82
|
+
class: "mb-block",
|
|
83
|
+
renderBody: function(out, $nestedTagmarko_web_page_wrapper$0) {
|
|
84
|
+
if (input.leaderboard) {
|
|
85
|
+
marko_web_page_wrapper_section_nested_tag({
|
|
86
|
+
tag: "div",
|
|
87
|
+
modifiers: [
|
|
88
|
+
"first"
|
|
89
|
+
],
|
|
90
|
+
renderBody: function(out, { aliases }) {
|
|
91
|
+
marko_dynamicTag(out, input.leaderboard, function() {
|
|
92
|
+
return {
|
|
93
|
+
aliases: aliases
|
|
94
|
+
};
|
|
95
|
+
}, null, null, null, __component, "9");
|
|
96
|
+
}
|
|
97
|
+
}, $nestedTagmarko_web_page_wrapper$0);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
marko_web_page_wrapper_section_nested_tag({
|
|
101
|
+
tag: "div",
|
|
102
|
+
renderBody: function(out) {
|
|
103
|
+
out.w("<div class=\"row\"><div class=\"col\"><h1 class=\"page-wrapper__title\">" +
|
|
104
|
+
marko_escapeXml(title) +
|
|
105
|
+
"</h1>");
|
|
106
|
+
|
|
107
|
+
if (description) {
|
|
108
|
+
out.w("<p class=\"page-wrapper__deck\">" +
|
|
109
|
+
marko_escapeXml(description) +
|
|
110
|
+
"</p>");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
out.w("</div></div>");
|
|
114
|
+
|
|
115
|
+
var $for$0 = 0;
|
|
116
|
+
|
|
117
|
+
marko_forOf(publicationIds, function(id) {
|
|
118
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
|
119
|
+
|
|
120
|
+
marko_web_query_tag({
|
|
121
|
+
collapsible: true,
|
|
122
|
+
name: "magazine-publications",
|
|
123
|
+
params: {
|
|
124
|
+
publicationIds: [
|
|
125
|
+
id
|
|
126
|
+
],
|
|
127
|
+
queryFragmet: publicationListFragment
|
|
128
|
+
},
|
|
129
|
+
renderBody: function(out, { nodes }) {
|
|
130
|
+
var $for$1 = 0;
|
|
131
|
+
|
|
132
|
+
marko_forOf(nodes, function(publication) {
|
|
133
|
+
var $keyScope$1 = "[" + ((($for$1++) + $keyScope$0) + "]");
|
|
134
|
+
|
|
135
|
+
marko_web_query_tag({
|
|
136
|
+
collapsible: true,
|
|
137
|
+
name: "magazine-latest-issue",
|
|
138
|
+
params: {
|
|
139
|
+
publicationId: publication.id,
|
|
140
|
+
requiresCoverImage: requiresCoverImage,
|
|
141
|
+
queryFragment: latestIssueFragment
|
|
142
|
+
},
|
|
143
|
+
renderBody: function(out, { node: latestIssue }) {
|
|
144
|
+
theme_magazine_publication_card_block_tag({
|
|
145
|
+
publicationId: publication.id,
|
|
146
|
+
issueId: latestIssue.id,
|
|
147
|
+
latestIssue: {
|
|
148
|
+
buttons: [
|
|
149
|
+
"archives"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}, out, __component, "17" + $keyScope$1);
|
|
153
|
+
}
|
|
154
|
+
}, out, __component, "16" + $keyScope$1);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}, out, __component, "15" + $keyScope$0);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}, $nestedTagmarko_web_page_wrapper$0);
|
|
161
|
+
}
|
|
162
|
+
}), out, __component, "7");
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
belowPage: input.belowPage && {
|
|
166
|
+
renderBody: function(out) {
|
|
167
|
+
marko_dynamicTag(out, input.belowPage, null, null, null, null, __component, "19");
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}, out, __component, "0");
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
marko_template._ = marko_renderer(render, {
|
|
174
|
+
e_: marko_componentType
|
|
175
|
+
}, marko_component);
|
|
176
|
+
|
|
177
|
+
marko_template.meta = {
|
|
178
|
+
id: "/@mindful-web/marko-web-theme-monorail-magazine$1.11.0/components/layouts/magazine-index.marko",
|
|
179
|
+
component: "./magazine-index.marko",
|
|
180
|
+
tags: [
|
|
181
|
+
"@mindful-web/marko-web-gtm/components/push.marko",
|
|
182
|
+
"@mindful-web/marko-web-gtm/components/context/default.marko",
|
|
183
|
+
"@mindful-web/marko-web-p1-events/components/track-static-route-view.marko",
|
|
184
|
+
"../blocks/magazine-publication-card.marko",
|
|
185
|
+
"@mindful-web/marko-core/components/queries/index.marko",
|
|
186
|
+
"@mindful-web/marko-web/components/page/wrapper.marko",
|
|
187
|
+
"@mindful-web/marko-web/components/page/layouts/default.marko"
|
|
188
|
+
]
|
|
189
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import issueFragment from "@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/magazine-issue-archive";
|
|
2
|
+
import contentListFragment from "@mindful-web/marko-web-theme-monorail-magazine/graphql/fragments/magazine-content-feed-block";
|
|
3
|
+
|
|
4
|
+
$ const { pagination: p, i18n, req } = out.global;
|
|
5
|
+
$ const { id, pageNode } = input;
|
|
6
|
+
|
|
7
|
+
<marko-web-magazine-issue-page-layout id=id>
|
|
8
|
+
<@head>
|
|
9
|
+
<if(input.head)>
|
|
10
|
+
<${input.head} />
|
|
11
|
+
</if>
|
|
12
|
+
<else>
|
|
13
|
+
<marko-web-gtm-magazine-publication-context|{ context }| id=id>
|
|
14
|
+
<marko-web-gtm-push data=context />
|
|
15
|
+
</marko-web-gtm-magazine-publication-context>
|
|
16
|
+
<marko-web-p1-events-track-static-route-view path=req.path />
|
|
17
|
+
</else>
|
|
18
|
+
</@head>
|
|
19
|
+
<@page>
|
|
20
|
+
<marko-web-resolve-page|{ data: issue }| node=pageNode>
|
|
21
|
+
<marko-web-page-wrapper class="mb-block">
|
|
22
|
+
<if(input.leaderboard)>
|
|
23
|
+
<@section|{ aliases }| modifiers=["first"]>
|
|
24
|
+
<${input.leaderboard} aliases=aliases />
|
|
25
|
+
</@section>
|
|
26
|
+
</if>
|
|
27
|
+
<@section>
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col">
|
|
30
|
+
<theme-breadcrumbs modifiers=["website-section"]>
|
|
31
|
+
<@item><marko-web-link href="/magazine">Magazine</marko-web-link></@item>
|
|
32
|
+
<@item><marko-web-magazine-publication-name tag=null obj=issue.publication link=true /></@item>
|
|
33
|
+
</theme-breadcrumbs>
|
|
34
|
+
<h1 class="page-wrapper__title">
|
|
35
|
+
${issue.name}
|
|
36
|
+
</h1>
|
|
37
|
+
<if(issue.description)>
|
|
38
|
+
<p class="page-wrapper__deck">${issue.description}</p>
|
|
39
|
+
</if>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</@section>
|
|
43
|
+
|
|
44
|
+
<@section|{ aliases }|>
|
|
45
|
+
<div class="row">
|
|
46
|
+
<div class="col-lg-4" style="padding-top: 11px;">
|
|
47
|
+
<theme-magazine-latest-issue-block node=issue with-title=false class="sticky-top" />
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-lg-8">
|
|
50
|
+
$ const contentQueryName = "magazine-scheduled-content";
|
|
51
|
+
$ const contentQueryParams = { issueId: id, queryFragment: contentListFragment };
|
|
52
|
+
$ const perPage = 12;
|
|
53
|
+
<theme-section-feed-block query-name=contentQueryName query-params=contentQueryParams>
|
|
54
|
+
<@query-params ...contentQueryParams limit=perPage skip=p.skip({ perPage }) />
|
|
55
|
+
<@header>
|
|
56
|
+
In This Issue <if(p.page !== 1)>(Page ${p.page})</if>
|
|
57
|
+
</@header>
|
|
58
|
+
<@after>
|
|
59
|
+
<theme-section-feed-block|{ totalCount }| alias=`/magazine/${issue.id}` count-only=true query-name=contentQueryName query-params=contentQueryParams>
|
|
60
|
+
<theme-pagination-controls
|
|
61
|
+
per-page=perPage
|
|
62
|
+
total-count=totalCount
|
|
63
|
+
path=`/magazine/${issue.id}`
|
|
64
|
+
/>
|
|
65
|
+
</theme-section-feed-block>
|
|
66
|
+
</@after>
|
|
67
|
+
</theme-section-feed-block>
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</@section>
|
|
71
|
+
|
|
72
|
+
<@section>
|
|
73
|
+
<marko-web-query|{ nodes }| name="magazine-active-issues"
|
|
74
|
+
params={
|
|
75
|
+
publicationId: issue.publication.id,
|
|
76
|
+
excludeIssueIds: [issue.id],
|
|
77
|
+
queryFragment: issueFragment,
|
|
78
|
+
limit: 12,
|
|
79
|
+
requiresCoverImage: true
|
|
80
|
+
}
|
|
81
|
+
>
|
|
82
|
+
<marko-web-node-list
|
|
83
|
+
inner-justified=true
|
|
84
|
+
flush-x=true
|
|
85
|
+
flush-y=false
|
|
86
|
+
modifiers=["issue-archives"]
|
|
87
|
+
collapsible=false
|
|
88
|
+
>
|
|
89
|
+
<@header>
|
|
90
|
+
${i18n("Past Issues")}
|
|
91
|
+
</@header>
|
|
92
|
+
<@body>
|
|
93
|
+
<theme-magazine-issue-archive-flow nodes=nodes flush=true />
|
|
94
|
+
</@body>
|
|
95
|
+
<@footer>
|
|
96
|
+
<marko-web-magazine-publication-name tag=null obj=issue.publication link={ class: "btn btn-primary" }>
|
|
97
|
+
${i18n("View All Past Issues")}
|
|
98
|
+
</marko-web-magazine-publication-name>
|
|
99
|
+
</@footer>
|
|
100
|
+
</marko-web-node-list>
|
|
101
|
+
</marko-web-query>
|
|
102
|
+
</@section>
|
|
103
|
+
</marko-web-page-wrapper>
|
|
104
|
+
</marko-web-resolve-page>
|
|
105
|
+
</@page>
|
|
106
|
+
<if(input.belowPage)>
|
|
107
|
+
<@below-page>
|
|
108
|
+
<${input.belowPage} />
|
|
109
|
+
</@below-page>
|
|
110
|
+
</if>
|
|
111
|
+
</marko-web-magazine-issue-page-layout>
|