@parameter1/base-cms-marko-web 4.5.11 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/browser-component.marko.js +2 -2
- package/components/document/components/body-wrapper.marko.js +2 -2
- package/components/document/components/error.marko.js +2 -2
- package/components/document/components/live-reload.marko.js +2 -2
- package/components/document/components/polyfill.marko.js +2 -2
- package/components/document/container.marko.js +2 -2
- package/components/document/index.marko +15 -4
- package/components/document/index.marko.js +39 -21
- package/components/element/array.marko.js +2 -2
- package/components/element/audio.marko.js +2 -2
- package/components/element/block.marko.js +2 -2
- package/components/element/clear.marko.js +2 -2
- package/components/element/components/image.marko.js +2 -2
- package/components/element/components/text.marko.js +2 -2
- package/components/element/content/address1.marko.js +2 -2
- package/components/element/content/address2.marko.js +2 -2
- package/components/element/content/audio.marko.js +2 -2
- package/components/element/content/authors.marko.js +2 -2
- package/components/element/content/body.marko.js +2 -2
- package/components/element/content/byline.marko.js +2 -2
- package/components/element/content/city-state-zip.marko.js +2 -2
- package/components/element/content/contributors.marko.js +2 -2
- package/components/element/content/country.marko.js +2 -2
- package/components/element/content/embed-code.marko.js +2 -2
- package/components/element/content/end-date.marko.js +2 -2
- package/components/element/content/ends.marko.js +2 -2
- package/components/element/content/fax.marko.js +2 -2
- package/components/element/content/images.marko.js +2 -2
- package/components/element/content/mobile.marko.js +2 -2
- package/components/element/content/name.marko.js +2 -2
- package/components/element/content/phone.marko.js +2 -2
- package/components/element/content/photographers.marko.js +2 -2
- package/components/element/content/public-email.marko.js +2 -2
- package/components/element/content/published.marko.js +2 -2
- package/components/element/content/short-name.marko.js +2 -2
- package/components/element/content/sidebar-stubs.marko.js +2 -2
- package/components/element/content/sidebars.marko.js +2 -2
- package/components/element/content/source.marko.js +2 -2
- package/components/element/content/sponsors.marko.js +2 -2
- package/components/element/content/start-date.marko.js +2 -2
- package/components/element/content/starts.marko.js +2 -2
- package/components/element/content/teaser.marko.js +2 -2
- package/components/element/content/title.marko.js +2 -2
- package/components/element/content/tollfree.marko.js +2 -2
- package/components/element/content/transcript.marko.js +2 -2
- package/components/element/content/website.marko.js +2 -2
- package/components/element/date.marko.js +2 -2
- package/components/element/image/caption.marko.js +2 -2
- package/components/element/image/credit.marko.js +2 -2
- package/components/element/image/display-name.marko.js +2 -2
- package/components/element/image/slider.marko.js +2 -2
- package/components/element/img.marko.js +2 -2
- package/components/element/index.marko.js +2 -2
- package/components/element/link.marko.js +2 -2
- package/components/element/magazine-issue/description.marko.js +2 -2
- package/components/element/magazine-issue/digital-edition-url.marko.js +2 -2
- package/components/element/magazine-issue/name.marko.js +2 -2
- package/components/element/magazine-issue/pdf-url.marko.js +2 -2
- package/components/element/magazine-publication/cancel-url.marko.js +2 -2
- package/components/element/magazine-publication/change-address-url.marko.js +2 -2
- package/components/element/magazine-publication/description.marko.js +2 -2
- package/components/element/magazine-publication/einquiry-url.marko.js +2 -2
- package/components/element/magazine-publication/name.marko.js +2 -2
- package/components/element/magazine-publication/renewal-url.marko.js +2 -2
- package/components/element/magazine-publication/reprints-url.marko.js +2 -2
- package/components/element/magazine-publication/subscribe-url.marko.js +2 -2
- package/components/element/obj-array.marko.js +2 -2
- package/components/element/obj-audio.marko.js +2 -2
- package/components/element/obj-date.marko.js +2 -2
- package/components/element/obj-nodes.marko.js +2 -2
- package/components/element/obj-text.marko.js +2 -2
- package/components/element/obj.marko.js +2 -2
- package/components/element/picture.marko.js +2 -2
- package/components/element/text.marko.js +2 -2
- package/components/element/website-section/description.marko.js +2 -2
- package/components/element/website-section/hierarchy.marko.js +2 -2
- package/components/element/website-section/name.marko.js +2 -2
- package/components/load-more/index.marko.js +2 -2
- package/components/load-more/trigger.marko.js +2 -2
- package/components/node/body.marko.js +2 -2
- package/components/node/element.marko.js +2 -2
- package/components/node/footer.marko.js +2 -2
- package/components/node/header.marko.js +2 -2
- package/components/node/image-inner-wrapper.marko.js +2 -2
- package/components/node/image-wrapper.marko.js +2 -2
- package/components/node/image.marko.js +2 -2
- package/components/node/index.marko.js +2 -2
- package/components/node-list/body.marko.js +2 -2
- package/components/node-list/element.marko.js +2 -2
- package/components/node-list/footer.marko.js +2 -2
- package/components/node-list/header.marko.js +2 -2
- package/components/node-list/index.marko.js +2 -2
- package/components/node-list/node.marko.js +2 -2
- package/components/node-list/nodes.marko.js +2 -2
- package/components/page/container.marko.js +2 -2
- package/components/page/description.marko.js +2 -2
- package/components/page/image.marko.js +2 -2
- package/components/page/layouts/content.marko.js +2 -2
- package/components/page/layouts/default.marko.js +2 -2
- package/components/page/layouts/dynamic-page.marko.js +2 -2
- package/components/page/layouts/magazine-issue.marko.js +2 -2
- package/components/page/layouts/magazine-publication.marko.js +2 -2
- package/components/page/layouts/website-section.marko.js +2 -2
- package/components/page/metadata/components/common.marko.js +2 -2
- package/components/page/metadata/content.marko.js +2 -2
- package/components/page/metadata/default.marko.js +2 -2
- package/components/page/metadata/dynamic-page.marko.js +2 -2
- package/components/page/metadata/magazine-issue.marko.js +2 -2
- package/components/page/metadata/magazine-publication.marko.js +2 -2
- package/components/page/metadata/website-section.marko.js +2 -2
- package/components/page/rel-canonical.marko.js +2 -2
- package/components/page/title.marko.js +2 -2
- package/components/page/wrapper.marko.js +2 -2
- package/components/resolve/page.marko.js +2 -2
- package/components/rss/website-section.marko.js +2 -2
- package/config/core.js +20 -3
- package/config/dist-loader.js +26 -8
- package/express/index.js +3 -1
- package/express/purged-css.js +11 -0
- package/package.json +17 -17
- package/start-server.js +1 -1
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/container.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/container.marko"
|
46
46
|
};
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/description.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_attr = require("marko/dist/runtime/html/helpers/attr");
|
8
8
|
|
@@ -22,5 +22,5 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
25
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/description.marko"
|
26
26
|
};
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/image.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsImage_module = require("@parameter1/base-cms-image"),
|
8
8
|
baseCmsImage_module = module_baseCmsImage_module.default || module_baseCmsImage_module,
|
@@ -111,7 +111,7 @@ marko_template._ = marko_renderer(render, {
|
|
111
111
|
});
|
112
112
|
|
113
113
|
marko_template.meta = {
|
114
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
114
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/image.marko",
|
115
115
|
tags: [
|
116
116
|
"../element/image/display-name.marko",
|
117
117
|
"../element/img.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/content.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_content_page_metadata_template = require("../metadata/content.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
56
56
|
});
|
57
57
|
|
58
58
|
marko_template.meta = {
|
59
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
59
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/content.marko",
|
60
60
|
tags: [
|
61
61
|
"../metadata/content.marko"
|
62
62
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/default.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_default_page_metadata_template = require("../metadata/default.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -54,7 +54,7 @@ marko_template._ = marko_renderer(render, {
|
|
54
54
|
});
|
55
55
|
|
56
56
|
marko_template.meta = {
|
57
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
57
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/default.marko",
|
58
58
|
tags: [
|
59
59
|
"../metadata/default.marko"
|
60
60
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/dynamic-page.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_dynamic_page_metadata_template = require("../metadata/dynamic-page.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/dynamic-page.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/dynamic-page.marko"
|
58
58
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/magazine-issue.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_magazine_issue_page_metadata_template = require("../metadata/magazine-issue.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/magazine-issue.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/magazine-issue.marko"
|
58
58
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/magazine-publication.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
marko_web_magazine_publication_page_metadata_template = require("../metadata/magazine-publication.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -52,7 +52,7 @@ marko_template._ = marko_renderer(render, {
|
|
52
52
|
});
|
53
53
|
|
54
54
|
marko_template.meta = {
|
55
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
55
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/magazine-publication.marko",
|
56
56
|
tags: [
|
57
57
|
"../metadata/magazine-publication.marko"
|
58
58
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
});
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/layouts/website-section.marko",
|
74
74
|
tags: [
|
75
75
|
"../metadata/website-section.marko",
|
76
76
|
"../../rss/website-section.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/components/common.marko",
|
6
6
|
marko_component = require("./common.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
marko_web_page_title_template = require("../../title.marko"),
|
@@ -98,7 +98,7 @@ marko_template._ = marko_renderer(render, {
|
|
98
98
|
}, marko_component);
|
99
99
|
|
100
100
|
marko_template.meta = {
|
101
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
101
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/components/common.marko",
|
102
102
|
component: "./common.marko",
|
103
103
|
tags: [
|
104
104
|
"../../title.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/content.marko",
|
6
6
|
marko_component = require("./content.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -197,7 +197,7 @@ marko_template._ = marko_renderer(render, {
|
|
197
197
|
}, marko_component);
|
198
198
|
|
199
199
|
marko_template.meta = {
|
200
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
200
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/content.marko",
|
201
201
|
component: "./content.marko",
|
202
202
|
tags: [
|
203
203
|
"./components/common.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/default.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
common_template = require("./components/common.marko"),
|
8
8
|
marko_loadTag = require("marko/dist/runtime/helpers/load-tag"),
|
@@ -22,7 +22,7 @@ marko_template._ = marko_renderer(render, {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
marko_template.meta = {
|
25
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
25
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/default.marko",
|
26
26
|
tags: [
|
27
27
|
"./components/common.marko"
|
28
28
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/dynamic-page.marko",
|
6
6
|
marko_component = require("./dynamic-page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -75,7 +75,7 @@ marko_template._ = marko_renderer(render, {
|
|
75
75
|
}, marko_component);
|
76
76
|
|
77
77
|
marko_template.meta = {
|
78
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
78
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/dynamic-page.marko",
|
79
79
|
component: "./dynamic-page.marko",
|
80
80
|
tags: [
|
81
81
|
"./components/common.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/magazine-issue.marko",
|
6
6
|
marko_component = require("./magazine-issue.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -74,7 +74,7 @@ marko_template._ = marko_renderer(render, {
|
|
74
74
|
}, marko_component);
|
75
75
|
|
76
76
|
marko_template.meta = {
|
77
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
77
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/magazine-issue.marko",
|
78
78
|
component: "./magazine-issue.marko",
|
79
79
|
tags: [
|
80
80
|
"./components/common.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/magazine-publication.marko",
|
6
6
|
marko_component = require("./magazine-publication.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/magazine-publication.marko",
|
74
74
|
component: "./magazine-publication.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/website-section.marko",
|
6
6
|
marko_component = require("./website-section.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_gql = require("graphql-tag"),
|
@@ -70,7 +70,7 @@ marko_template._ = marko_renderer(render, {
|
|
70
70
|
}, marko_component);
|
71
71
|
|
72
72
|
marko_template.meta = {
|
73
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
73
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/metadata/website-section.marko",
|
74
74
|
component: "./website-section.marko",
|
75
75
|
tags: [
|
76
76
|
"./components/common.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/rel-canonical.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -38,5 +38,5 @@ marko_template._ = marko_renderer(render, {
|
|
38
38
|
});
|
39
39
|
|
40
40
|
marko_template.meta = {
|
41
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
41
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/rel-canonical.marko"
|
42
42
|
};
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/title.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
8
8
|
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/title.marko"
|
46
46
|
};
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/page/wrapper.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
8
|
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
@@ -56,7 +56,7 @@ marko_template._ = marko_renderer(render, {
|
|
56
56
|
});
|
57
57
|
|
58
58
|
marko_template.meta = {
|
59
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
59
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/page/wrapper.marko",
|
60
60
|
tags: [
|
61
61
|
"../element/index.marko"
|
62
62
|
]
|
@@ -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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/resolve/page.marko",
|
6
6
|
marko_component = require("./page.marko"),
|
7
7
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
8
8
|
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
@@ -41,7 +41,7 @@ marko_template._ = marko_renderer(render, {
|
|
41
41
|
}, marko_component);
|
42
42
|
|
43
43
|
marko_template.meta = {
|
44
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
44
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/resolve/page.marko",
|
45
45
|
component: "./page.marko",
|
46
46
|
tags: [
|
47
47
|
"@parameter1/base-cms-marko-core/components/resolve.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 = "/@parameter1/base-cms-marko-web$4.
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$4.6.0/components/rss/website-section.marko",
|
6
6
|
marko_renderer = require("marko/dist/runtime/components/renderer"),
|
7
7
|
module_url_module = require("url"),
|
8
8
|
url_module = module_url_module.default || module_url_module,
|
@@ -42,5 +42,5 @@ marko_template._ = marko_renderer(render, {
|
|
42
42
|
});
|
43
43
|
|
44
44
|
marko_template.meta = {
|
45
|
-
id: "/@parameter1/base-cms-marko-web$4.
|
45
|
+
id: "/@parameter1/base-cms-marko-web$4.6.0/components/rss/website-section.marko"
|
46
46
|
};
|
package/config/core.js
CHANGED
@@ -13,6 +13,7 @@ class CoreConfig extends AbstractConfig {
|
|
13
13
|
this.assetLoader = {
|
14
14
|
js: distLoader({ distDir, type: 'js', entry: 'browser/index.js' }),
|
15
15
|
css: distLoader({ distDir, type: 'css', entry: 'server/styles/index.scss' }),
|
16
|
+
purgedcss: distLoader({ distDir, type: 'purgedcss', entry: 'server/styles/index.scss' }),
|
16
17
|
};
|
17
18
|
}
|
18
19
|
|
@@ -63,9 +64,25 @@ class CoreConfig extends AbstractConfig {
|
|
63
64
|
return [js];
|
64
65
|
}
|
65
66
|
|
66
|
-
styles() {
|
67
|
-
const css = this.assetLoader.css();
|
68
|
-
return [css];
|
67
|
+
styles({ embedded = false } = {}) {
|
68
|
+
const css = this.assetLoader.css({ embedded });
|
69
|
+
return embedded ? css : [css];
|
70
|
+
}
|
71
|
+
|
72
|
+
purgedStyles({ embedded = false } = {}) {
|
73
|
+
try {
|
74
|
+
const purgedcss = this.assetLoader.purgedcss({ embedded });
|
75
|
+
return embedded ? purgedcss : [purgedcss];
|
76
|
+
} catch (e) {
|
77
|
+
const { message } = e;
|
78
|
+
if (/unable to load the asset manifest for type purgedcss/i.test(message) || /unable to extract an asset for type purgedcss/i.test(message)) {
|
79
|
+
process.emitWarning('The purged CSS assets have not been built! Falling back to normal styles', {
|
80
|
+
code: 'MISSING_PURGED_CSS_ASSETS',
|
81
|
+
});
|
82
|
+
return this.styles({ embedded });
|
83
|
+
}
|
84
|
+
throw e;
|
85
|
+
}
|
69
86
|
}
|
70
87
|
}
|
71
88
|
|
package/config/dist-loader.js
CHANGED
@@ -1,24 +1,42 @@
|
|
1
1
|
const path = require('path');
|
2
2
|
const { readFileSync } = require('fs');
|
3
3
|
|
4
|
+
const read = (file) => {
|
5
|
+
try {
|
6
|
+
return JSON.parse(readFileSync(file, 'utf8'));
|
7
|
+
} catch (e) {
|
8
|
+
if (e.code === 'ENOENT') return null;
|
9
|
+
throw e;
|
10
|
+
}
|
11
|
+
};
|
12
|
+
|
4
13
|
const loadFromManifest = ({ distDir, type, entry }) => {
|
5
14
|
const file = path.resolve(distDir, type, 'manifest.json');
|
6
|
-
const
|
7
|
-
|
15
|
+
const manifest = read(file);
|
16
|
+
if (!manifest) throw new Error(`Unable to load the asset manifest for type ${type}`);
|
8
17
|
const asset = manifest[entry];
|
9
18
|
if (!asset) throw new Error(`Unable to extract an asset for type ${type} using manifest entry ${entry}`);
|
10
|
-
return
|
19
|
+
return `${type}/${asset.file}`;
|
11
20
|
};
|
12
21
|
|
22
|
+
const load = ({ distDir, subDir }) => readFileSync(path.resolve(distDir, subDir), 'utf8');
|
23
|
+
|
13
24
|
module.exports = ({ distDir, type, entry }) => {
|
14
25
|
let file;
|
15
|
-
|
16
|
-
return () => {
|
26
|
+
let contents;
|
27
|
+
return ({ embedded } = {}) => {
|
28
|
+
const isDevelopment = process.env.NODE_ENV !== 'production';
|
17
29
|
// when on dev, always return the file from the manifest
|
18
30
|
// as it may have changed during build.
|
19
|
-
if (isDevelopment)
|
31
|
+
if (isDevelopment) {
|
32
|
+
const subDir = loadFromManifest({ distDir, type, entry });
|
33
|
+
if (!embedded) return `/dist/${subDir}`;
|
34
|
+
return load({ distDir, subDir });
|
35
|
+
}
|
20
36
|
// otherwise, only retrieve it once
|
21
|
-
if (!file) file = loadFromManifest({ distDir, type, entry })
|
22
|
-
return file;
|
37
|
+
if (!file) file = `/dist/${loadFromManifest({ distDir, type, entry })}`;
|
38
|
+
if (!embedded) return file;
|
39
|
+
if (!contents) contents = load({ distDir, subDir: file });
|
40
|
+
return contents;
|
23
41
|
};
|
24
42
|
};
|
package/express/index.js
CHANGED
@@ -11,6 +11,7 @@ const embeddedMedia = require('./embedded-media');
|
|
11
11
|
const loadObject = require('./load-object');
|
12
12
|
const loadDocument = require('./load-document');
|
13
13
|
const oembed = require('./oembed');
|
14
|
+
const purgedCSS = require('./purged-css');
|
14
15
|
const rss = require('./rss');
|
15
16
|
const sitemaps = require('./sitemaps');
|
16
17
|
const { version } = require('../package.json');
|
@@ -59,7 +60,7 @@ module.exports = (config = {}) => {
|
|
59
60
|
app.locals.tenantKey = tenantKey;
|
60
61
|
|
61
62
|
// Set the core config.
|
62
|
-
app.locals.config = new CoreConfig({ ...config.coreConfig, distDir });
|
63
|
+
app.locals.config = new CoreConfig({ ...config.coreConfig, rootDir, distDir });
|
63
64
|
|
64
65
|
// Set the website config to the app.
|
65
66
|
app.locals.site = new SiteConfig(config.siteConfig);
|
@@ -111,6 +112,7 @@ module.exports = (config = {}) => {
|
|
111
112
|
|
112
113
|
// Register the Marko middleware.
|
113
114
|
app.use(markoMiddleware());
|
115
|
+
app.use(purgedCSS());
|
114
116
|
app.use(cleanMarkoResponse());
|
115
117
|
|
116
118
|
// Serve static assets
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module.exports = () => (req, res, next) => {
|
2
|
+
res.locals.usePurgedCSS = ['cookies', 'query'].some((key) => {
|
3
|
+
const { __purgecss: purge } = req[key];
|
4
|
+
return purge && !['false', '0', 'null'].includes(purge);
|
5
|
+
});
|
6
|
+
res.locals.embedCSS = ['cookies', 'query'].some((key) => {
|
7
|
+
const { __embedcss: embed } = req[key];
|
8
|
+
return embed && !['false', '0', 'null'].includes(embed);
|
9
|
+
});
|
10
|
+
next();
|
11
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parameter1/base-cms-marko-web",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.6.0",
|
4
4
|
"description": "Core Marko+Express components for BaseCMS websites",
|
5
5
|
"author": "Jacob Bare <jacob@parameter1.com>",
|
6
6
|
"main": "index.js",
|
@@ -23,21 +23,21 @@
|
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
25
|
"@godaddy/terminus": "^4.11.2",
|
26
|
-
"@parameter1/base-cms-apollo-ssr": "^4.
|
27
|
-
"@parameter1/base-cms-dayjs": "^4.
|
28
|
-
"@parameter1/base-cms-embedded-media": "^4.0
|
29
|
-
"@parameter1/base-cms-express-apollo": "^4.
|
30
|
-
"@parameter1/base-cms-graphql-fragment-types": "^4.
|
31
|
-
"@parameter1/base-cms-html": "^4.
|
32
|
-
"@parameter1/base-cms-image": "^4.0
|
33
|
-
"@parameter1/base-cms-inflector": "^4.
|
34
|
-
"@parameter1/base-cms-marko-express": "^4.0
|
35
|
-
"@parameter1/base-cms-marko-node-require": "^4.
|
36
|
-
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.
|
37
|
-
"@parameter1/base-cms-object-path": "^4.
|
38
|
-
"@parameter1/base-cms-tenant-context": "^4.
|
39
|
-
"@parameter1/base-cms-utils": "^4.
|
40
|
-
"@parameter1/base-cms-web-common": "^4.
|
26
|
+
"@parameter1/base-cms-apollo-ssr": "^4.5.12",
|
27
|
+
"@parameter1/base-cms-dayjs": "^4.5.12",
|
28
|
+
"@parameter1/base-cms-embedded-media": "^4.6.0",
|
29
|
+
"@parameter1/base-cms-express-apollo": "^4.5.12",
|
30
|
+
"@parameter1/base-cms-graphql-fragment-types": "^4.5.12",
|
31
|
+
"@parameter1/base-cms-html": "^4.5.12",
|
32
|
+
"@parameter1/base-cms-image": "^4.6.0",
|
33
|
+
"@parameter1/base-cms-inflector": "^4.5.12",
|
34
|
+
"@parameter1/base-cms-marko-express": "^4.6.0",
|
35
|
+
"@parameter1/base-cms-marko-node-require": "^4.5.12",
|
36
|
+
"@parameter1/base-cms-marko-web-deferred-script-loader": "^4.5.12",
|
37
|
+
"@parameter1/base-cms-object-path": "^4.5.12",
|
38
|
+
"@parameter1/base-cms-tenant-context": "^4.5.12",
|
39
|
+
"@parameter1/base-cms-utils": "^4.5.12",
|
40
|
+
"@parameter1/base-cms-web-common": "^4.5.12",
|
41
41
|
"async": "^3.2.4",
|
42
42
|
"cheerio": "^1.0.0-rc.12",
|
43
43
|
"cookie-parser": "^1.4.6",
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"publishConfig": {
|
60
60
|
"access": "public"
|
61
61
|
},
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "53f8cf0ce1737f305d98ed29f9a7376945015007"
|
63
63
|
}
|
package/start-server.js
CHANGED
@@ -10,7 +10,7 @@ const { env } = process;
|
|
10
10
|
if (!process.env.LIVERELOAD_PORT) process.env.LIVERELOAD_PORT = 4010;
|
11
11
|
if (!process.env.EXPOSED_HOST) process.env.EXPOSED_HOST = env.HOST || 'localhost';
|
12
12
|
|
13
|
-
process.on('unhandledRejection', (e) => { throw e; });
|
13
|
+
process.on('unhandledRejection', (e) => setImmediate(() => { throw e; }));
|
14
14
|
|
15
15
|
const wait = (ms) => new Promise((resolve) => {
|
16
16
|
setTimeout(resolve, ms);
|