@parameter1/base-cms-marko-web 3.8.0 → 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/browser-component.marko.js +86 -0
- package/components/document/components/body-wrapper.marko.js +33 -0
- package/components/document/components/error.marko.js +85 -0
- package/components/document/components/live-reload.marko.js +30 -0
- package/components/document/container.marko.js +54 -0
- package/components/document/index.marko.js +118 -0
- package/components/element/array.marko.js +67 -0
- package/components/element/block.marko.js +44 -0
- package/components/element/clear.marko.js +32 -0
- package/components/element/components/image.marko.js +62 -0
- package/components/element/components/text.marko.js +37 -0
- package/components/element/content/address1.marko.js +40 -0
- package/components/element/content/address2.marko.js +40 -0
- package/components/element/content/authors.marko.js +43 -0
- package/components/element/content/body.marko.js +62 -0
- package/components/element/content/byline.marko.js +41 -0
- package/components/element/content/city-state-zip.marko.js +40 -0
- package/components/element/content/contributors.marko.js +43 -0
- package/components/element/content/country.marko.js +40 -0
- package/components/element/content/embed-code.marko.js +41 -0
- package/components/element/content/end-date.marko.js +42 -0
- package/components/element/content/fax.marko.js +40 -0
- package/components/element/content/mobile.marko.js +40 -0
- package/components/element/content/name.marko.js +41 -0
- package/components/element/content/phone.marko.js +40 -0
- package/components/element/content/photographers.marko.js +43 -0
- package/components/element/content/public-email.marko.js +47 -0
- package/components/element/content/published.marko.js +42 -0
- package/components/element/content/short-name.marko.js +41 -0
- package/components/element/content/sidebars.marko.js +63 -0
- package/components/element/content/source.marko.js +40 -0
- package/components/element/content/sponsors.marko.js +43 -0
- package/components/element/content/start-date.marko.js +42 -0
- package/components/element/content/teaser.marko.js +41 -0
- package/components/element/content/title.marko.js +40 -0
- package/components/element/content/tollfree.marko.js +40 -0
- package/components/element/content/website.marko.js +51 -0
- package/components/element/date.marko.js +27 -0
- package/components/element/image/caption.marko.js +41 -0
- package/components/element/image/credit.marko.js +41 -0
- package/components/element/image/display-name.marko.js +40 -0
- package/components/element/img.marko.js +43 -0
- package/components/element/index.marko.js +47 -0
- package/components/element/link.marko.js +54 -0
- package/components/element/obj-array.marko.js +56 -0
- package/components/element/obj-date.marko.js +54 -0
- package/components/element/obj-nodes.marko.js +62 -0
- package/components/element/obj-text.marko.js +53 -0
- package/components/element/obj.marko.js +61 -0
- package/components/element/picture.marko.js +85 -0
- package/components/element/text.marko.js +76 -0
- package/components/element/website-section/name.marko.js +46 -0
- package/components/load-more/index.marko.js +119 -0
- package/components/load-more/trigger.marko.js +40 -0
- package/components/node/body.marko.js +112 -0
- package/components/node/element.marko.js +39 -0
- package/components/node/footer.marko.js +63 -0
- package/components/node/header.marko.js +63 -0
- package/components/node/image-inner-wrapper.marko.js +116 -0
- package/components/node/image-wrapper.marko.js +98 -0
- package/components/node/image.marko.js +93 -0
- package/components/node/index.marko.js +100 -0
- package/components/node-list/body.marko.js +50 -0
- package/components/node-list/element.marko.js +35 -0
- package/components/node-list/footer.marko.js +50 -0
- package/components/node-list/header.marko.js +50 -0
- package/components/node-list/index.marko.js +93 -0
- package/components/node-list/node.marko.js +49 -0
- package/components/node-list/nodes.marko.js +126 -0
- package/components/page/container.marko.js +46 -0
- package/components/page/description.marko.js +26 -0
- package/components/page/image.marko.js +122 -0
- package/components/page/layouts/content.marko.js +63 -0
- package/components/page/layouts/default.marko.js +61 -0
- package/components/page/layouts/website-section.marko.js +78 -0
- package/components/page/metadata/components/common.marko.js +108 -0
- package/components/page/metadata/content.marko.js +201 -0
- package/components/page/metadata/default.marko.js +29 -0
- package/components/page/metadata/website-section.marko.js +79 -0
- package/components/page/rel-canonical.marko.js +42 -0
- package/components/page/title.marko.js +46 -0
- package/components/page/wrapper.marko.js +63 -0
- package/components/resolve/page.marko.js +49 -0
- package/components/rss/website-section.marko.js +46 -0
- package/middleware/page-node/index.js +15 -2
- package/middleware/with-content.js +2 -0
- package/package.json +4 -4
@@ -0,0 +1,86 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/browser-component.marko",
|
6
|
+
marko_component = require("./browser-component.marko"),
|
7
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
8
|
+
module_defaultValue = require("@parameter1/base-cms-marko-core/utils/default-value"),
|
9
|
+
defaultValue = module_defaultValue.default || module_defaultValue,
|
10
|
+
module_baseCmsUtils_module = require("@parameter1/base-cms-utils"),
|
11
|
+
baseCmsUtils_module = module_baseCmsUtils_module.default || module_baseCmsUtils_module,
|
12
|
+
randomElementId = module_baseCmsUtils_module.randomElementId,
|
13
|
+
module_renderComponent = require("../utils/render-ssr-component"),
|
14
|
+
renderComponent = module_renderComponent.default || module_renderComponent,
|
15
|
+
marko_str = require("marko/src/runtime/helpers/to-string"),
|
16
|
+
marko_web_resolve_template = require("@parameter1/base-cms-marko-core/components/resolve.marko"),
|
17
|
+
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
18
|
+
marko_web_resolve_tag = marko_loadTag(marko_web_resolve_template),
|
19
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
20
|
+
marko_assign = require("marko/src/runtime/helpers/assign"),
|
21
|
+
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
22
|
+
|
23
|
+
function render(input, out, __component, component, state) {
|
24
|
+
var data = input;
|
25
|
+
|
26
|
+
const id = randomElementId({ prefix: 'vue' });
|
27
|
+
|
28
|
+
const tag = defaultValue(input.tag, "div");
|
29
|
+
|
30
|
+
const { name } = input;
|
31
|
+
|
32
|
+
const ssr = defaultValue(input.ssr, false);
|
33
|
+
|
34
|
+
const hydrate = ssr ? true : defaultValue(input.hydrate, false);
|
35
|
+
|
36
|
+
const skipWhenExists = defaultValue(input.skipWhenExists, false);
|
37
|
+
|
38
|
+
const props = JSON.stringify(input.props || {});
|
39
|
+
|
40
|
+
const contents = `CMSBrowserComponents.load({ el: '#${id}', name: '${name}', props: ${props}, hydrate: ${hydrate}, skipWhenExists: ${skipWhenExists} });`;
|
41
|
+
|
42
|
+
if (ssr) {
|
43
|
+
const { compiledVueComponents } = out.global;
|
44
|
+
|
45
|
+
const Component = compiledVueComponents[name];
|
46
|
+
|
47
|
+
if (!Component) throw new Error(`No compiled Vue template found for ${name}. Unable to render server-side.`);
|
48
|
+
|
49
|
+
marko_web_resolve_tag({
|
50
|
+
promise: renderComponent(Component, {
|
51
|
+
id: id,
|
52
|
+
props: input.props
|
53
|
+
}),
|
54
|
+
renderBody: function(out, { resolved: html }) {
|
55
|
+
out.w(marko_str(html));
|
56
|
+
}
|
57
|
+
}, out, __component, "0");
|
58
|
+
} else {
|
59
|
+
marko_dynamicTag(out, tag, function() {
|
60
|
+
return marko_assign({}, input.attrs, {
|
61
|
+
id: id,
|
62
|
+
class: input.class
|
63
|
+
});
|
64
|
+
}, function(out) {
|
65
|
+
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "2");
|
66
|
+
}, null, null, __component, "1");
|
67
|
+
}
|
68
|
+
|
69
|
+
out.w("<script class=\"component\"" +
|
70
|
+
marko_attr("data-name", name) +
|
71
|
+
">" +
|
72
|
+
marko_str(contents) +
|
73
|
+
"</script>");
|
74
|
+
}
|
75
|
+
|
76
|
+
marko_template._ = marko_renderer(render, {
|
77
|
+
___type: marko_componentType
|
78
|
+
}, marko_component);
|
79
|
+
|
80
|
+
marko_template.meta = {
|
81
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/browser-component.marko",
|
82
|
+
component: "./browser-component.marko",
|
83
|
+
tags: [
|
84
|
+
"@parameter1/base-cms-marko-core/components/resolve.marko"
|
85
|
+
]
|
86
|
+
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/body-wrapper.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
8
|
+
marko_attrs = require("marko/src/runtime/html/helpers/attrs");
|
9
|
+
|
10
|
+
function render(input, out, __component, component, state) {
|
11
|
+
var data = input;
|
12
|
+
|
13
|
+
if (input.enabled) {
|
14
|
+
out.w("<div" +
|
15
|
+
marko_attrs(input.attrs) +
|
16
|
+
">");
|
17
|
+
|
18
|
+
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "1");
|
19
|
+
|
20
|
+
out.w("</div>");
|
21
|
+
} else {
|
22
|
+
marko_dynamicTag(out, input.renderBody, null, null, null, null, __component, "2");
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
marko_template._ = marko_renderer(render, {
|
27
|
+
___implicit: true,
|
28
|
+
___type: marko_componentType
|
29
|
+
});
|
30
|
+
|
31
|
+
marko_template.meta = {
|
32
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/body-wrapper.marko"
|
33
|
+
};
|
@@ -0,0 +1,85 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/error.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_isDev = require("../../../utils/is-dev"),
|
8
|
+
isDev = module_isDev.default || module_isDev,
|
9
|
+
marko_web_page_title_template = require("../../page/title.marko"),
|
10
|
+
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
11
|
+
marko_web_page_title_tag = marko_loadTag(marko_web_page_title_template),
|
12
|
+
helpers_escape_xml = require("marko/src/runtime/html/helpers/escape-xml"),
|
13
|
+
marko_escapeXml = helpers_escape_xml.x,
|
14
|
+
marko_web_page_wrapper_template = require("../../page/wrapper.marko"),
|
15
|
+
marko_web_page_wrapper_tag = marko_loadTag(marko_web_page_wrapper_template),
|
16
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag");
|
17
|
+
|
18
|
+
function render(input, out, __component, component, state) {
|
19
|
+
var data = input;
|
20
|
+
|
21
|
+
const { document } = out.global;
|
22
|
+
|
23
|
+
const error = input.error || {};
|
24
|
+
|
25
|
+
marko_dynamicTag(out, document, function() {
|
26
|
+
return {
|
27
|
+
head: {
|
28
|
+
renderBody: function(out) {
|
29
|
+
marko_web_page_title_tag({
|
30
|
+
concatWith: "|",
|
31
|
+
value: (input.statusCode + " ") + input.statusMessage
|
32
|
+
}, out, __component, "2");
|
33
|
+
|
34
|
+
if (input.statusCode === 404) {
|
35
|
+
out.w("<meta name=\"robots\" content=\"noindex\">");
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
container: {
|
40
|
+
page: {
|
41
|
+
for: "error",
|
42
|
+
renderBody: function(out) {
|
43
|
+
marko_web_page_wrapper_tag({
|
44
|
+
blockName: "page-wrapper",
|
45
|
+
tag: "div",
|
46
|
+
sections: [
|
47
|
+
{
|
48
|
+
tag: "div",
|
49
|
+
renderBody: function(out) {
|
50
|
+
out.w("<h3>" +
|
51
|
+
marko_escapeXml(input.statusCode) +
|
52
|
+
" " +
|
53
|
+
marko_escapeXml(input.statusMessage) +
|
54
|
+
"</h3><h4>" +
|
55
|
+
marko_escapeXml(error.message) +
|
56
|
+
"</h4>");
|
57
|
+
|
58
|
+
if (isDev) {
|
59
|
+
out.w("<pre>" +
|
60
|
+
marko_escapeXml(error.stack) +
|
61
|
+
"</pre>");
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
]
|
66
|
+
}, out, __component, "6");
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
};
|
71
|
+
}, null, null, null, __component, "0");
|
72
|
+
}
|
73
|
+
|
74
|
+
marko_template._ = marko_renderer(render, {
|
75
|
+
___implicit: true,
|
76
|
+
___type: marko_componentType
|
77
|
+
});
|
78
|
+
|
79
|
+
marko_template.meta = {
|
80
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/error.marko",
|
81
|
+
tags: [
|
82
|
+
"../../page/title.marko",
|
83
|
+
"../../page/wrapper.marko"
|
84
|
+
]
|
85
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/live-reload.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_isDev = require("../../../utils/is-dev"),
|
8
|
+
isDev = module_isDev.default || module_isDev,
|
9
|
+
marko_attr = require("marko/src/runtime/html/helpers/attr");
|
10
|
+
|
11
|
+
function render(input, out, __component, component, state) {
|
12
|
+
var data = input;
|
13
|
+
|
14
|
+
const { LIVERELOAD_PORT, EXPOSED_HOST } = process.env;
|
15
|
+
|
16
|
+
if (isDev && LIVERELOAD_PORT) {
|
17
|
+
out.w("<script" +
|
18
|
+
marko_attr("src", ((("http://" + EXPOSED_HOST) + ":") + LIVERELOAD_PORT) + "/livereload.js") +
|
19
|
+
" async></script>");
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
marko_template._ = marko_renderer(render, {
|
24
|
+
___implicit: true,
|
25
|
+
___type: marko_componentType
|
26
|
+
});
|
27
|
+
|
28
|
+
marko_template.meta = {
|
29
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/document/components/live-reload.marko"
|
30
|
+
};
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/document/container.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
+
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
+
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
11
|
+
marko_assign = require("marko/src/runtime/helpers/assign"),
|
12
|
+
marko_web_page_container_template = require("../page/container.marko"),
|
13
|
+
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
14
|
+
marko_web_page_container_tag = marko_loadTag(marko_web_page_container_template);
|
15
|
+
|
16
|
+
function render(input, out, __component, component, state) {
|
17
|
+
var data = input;
|
18
|
+
|
19
|
+
const blockName = input.blockName || "document-container";
|
20
|
+
|
21
|
+
const tag = input.tag || "div";
|
22
|
+
|
23
|
+
const modifiers = [...getAsArray(input.modifiers)];
|
24
|
+
|
25
|
+
const classNames = [blockName, ...modifiers.map(mod => `${blockName}--${mod}`), input.class];
|
26
|
+
|
27
|
+
marko_dynamicTag(out, tag, function() {
|
28
|
+
return marko_assign({}, input.attrs, {
|
29
|
+
class: classNames
|
30
|
+
});
|
31
|
+
}, function(out) {
|
32
|
+
marko_dynamicTag(out, input.abovePage, null, null, null, null, __component, "1");
|
33
|
+
|
34
|
+
if (input.page) {
|
35
|
+
marko_web_page_container_tag(marko_assign({
|
36
|
+
tag: "main"
|
37
|
+
}, input.page), out, __component, "2");
|
38
|
+
}
|
39
|
+
|
40
|
+
marko_dynamicTag(out, input.belowPage, null, null, null, null, __component, "3");
|
41
|
+
}, null, null, __component, "0");
|
42
|
+
}
|
43
|
+
|
44
|
+
marko_template._ = marko_renderer(render, {
|
45
|
+
___implicit: true,
|
46
|
+
___type: marko_componentType
|
47
|
+
});
|
48
|
+
|
49
|
+
marko_template.meta = {
|
50
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/document/container.marko",
|
51
|
+
tags: [
|
52
|
+
"../page/container.marko"
|
53
|
+
]
|
54
|
+
};
|
@@ -0,0 +1,118 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/document/index.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
+
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
+
getAsObject = module_baseCmsObjectPath_module.getAsObject,
|
10
|
+
marko_attr = require("marko/src/runtime/html/helpers/attr"),
|
11
|
+
marko_forOf = require("marko/src/runtime/helpers/for-of"),
|
12
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
13
|
+
marko_assign = require("marko/src/runtime/helpers/assign"),
|
14
|
+
marko_web_document_container_template = require("./container.marko"),
|
15
|
+
marko_loadTag = require("marko/src/runtime/helpers/load-tag"),
|
16
|
+
marko_web_document_container_tag = marko_loadTag(marko_web_document_container_template),
|
17
|
+
live_reload_template = require("./components/live-reload.marko"),
|
18
|
+
live_reload_tag = marko_loadTag(live_reload_template),
|
19
|
+
body_wrapper_template = require("./components/body-wrapper.marko"),
|
20
|
+
body_wrapper_tag = marko_loadTag(body_wrapper_template),
|
21
|
+
init_components_tag = marko_loadTag(require("marko/src/core-tags/components/init-components-tag")),
|
22
|
+
await_reorderer_tag = marko_loadTag(require("marko/src/core-tags/core/await/reorderer-renderer")),
|
23
|
+
_preferred_script_location_tag = marko_loadTag(require("marko/src/core-tags/components/preferred-script-location-tag"));
|
24
|
+
|
25
|
+
function render(input, out, __component, component, state) {
|
26
|
+
var data = input;
|
27
|
+
|
28
|
+
const { config } = out.global;
|
29
|
+
|
30
|
+
const dir = input.dir || "ltr";
|
31
|
+
|
32
|
+
const lang = input.lang || config.website("language.code", "en-us");
|
33
|
+
|
34
|
+
const viewport = input.viewport || "width=device-width, initial-scale=1, shrink-to-fit=no";
|
35
|
+
|
36
|
+
const wrapper = getAsObject(input, "bodyWrapper");
|
37
|
+
|
38
|
+
out.w("<!doctype html><html" +
|
39
|
+
marko_attr("lang", lang) +
|
40
|
+
marko_attr("dir", dir) +
|
41
|
+
"><head><meta charset=\"utf-8\"><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"><meta name=\"viewport\"" +
|
42
|
+
marko_attr("content", viewport) +
|
43
|
+
">");
|
44
|
+
|
45
|
+
var $for$0 = 0;
|
46
|
+
|
47
|
+
marko_forOf(config.styles(), function(href) {
|
48
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
49
|
+
|
50
|
+
out.w("<link rel=\"stylesheet\"" +
|
51
|
+
marko_attr("href", href) +
|
52
|
+
">");
|
53
|
+
});
|
54
|
+
|
55
|
+
out.w("<script>\n (function(w) {\n w.markoCompQueue = w.markoCompQueue || [];\n var name = 'CMSBrowserComponents', methods = ['load', 'loadComponent'], queue = function(method) { return function() { w.markoCompQueue.push([method, arguments]) } };\n w[name] = w[name] || {};\n for (var i = 0; i < methods.length; i++) { var method = methods[i]; w[name][method] = w[name][method] || queue(method); }\n })(window);\n </script><script src=\"/dist/js/lazysizes/v5.3.2.js\" async></script><script>\n document.createElement( \"picture\" );\n </script><script src=\"https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.3/picturefill.min.js\" async></script>");
|
56
|
+
|
57
|
+
marko_dynamicTag(out, input.head, null, null, null, null, __component, "6");
|
58
|
+
|
59
|
+
out.w("</head><body>");
|
60
|
+
|
61
|
+
marko_dynamicTag(out, input.aboveWrapper, null, null, null, null, __component, "8");
|
62
|
+
|
63
|
+
body_wrapper_tag({
|
64
|
+
enabled: wrapper.enabled,
|
65
|
+
attrs: wrapper.attrs,
|
66
|
+
renderBody: function(out) {
|
67
|
+
marko_dynamicTag(out, input.aboveContainer, null, null, null, null, __component, "10");
|
68
|
+
|
69
|
+
if (input.container) {
|
70
|
+
marko_web_document_container_tag(marko_assign({
|
71
|
+
blockName: "document-container",
|
72
|
+
tag: "div"
|
73
|
+
}, input.container), out, __component, "11");
|
74
|
+
}
|
75
|
+
|
76
|
+
marko_dynamicTag(out, input.belowContainer, null, null, null, null, __component, "12");
|
77
|
+
|
78
|
+
live_reload_tag({}, out, __component, "13");
|
79
|
+
|
80
|
+
marko_dynamicTag(out, input.foot, null, null, null, null, __component, "14");
|
81
|
+
}
|
82
|
+
}, out, __component, "9");
|
83
|
+
|
84
|
+
marko_dynamicTag(out, input.belowWrapper, null, null, null, null, __component, "15");
|
85
|
+
|
86
|
+
marko_forOf(config.sources(), function(src) {
|
87
|
+
out.w("<script" +
|
88
|
+
marko_attr("src", src) +
|
89
|
+
"></script>");
|
90
|
+
});
|
91
|
+
|
92
|
+
out.w("<script>CMSBrowserComponents.init();</script>");
|
93
|
+
|
94
|
+
init_components_tag({}, out);
|
95
|
+
|
96
|
+
await_reorderer_tag({}, out, __component, "16");
|
97
|
+
|
98
|
+
_preferred_script_location_tag({}, out);
|
99
|
+
|
100
|
+
out.w("</body></html>");
|
101
|
+
}
|
102
|
+
|
103
|
+
marko_template._ = marko_renderer(render, {
|
104
|
+
___implicit: true,
|
105
|
+
___type: marko_componentType
|
106
|
+
});
|
107
|
+
|
108
|
+
marko_template.meta = {
|
109
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/document/index.marko",
|
110
|
+
tags: [
|
111
|
+
"./container.marko",
|
112
|
+
"./components/live-reload.marko",
|
113
|
+
"./components/body-wrapper.marko",
|
114
|
+
"marko/src/core-tags/components/init-components-tag",
|
115
|
+
"marko/src/core-tags/core/await/reorderer-renderer",
|
116
|
+
"marko/src/core-tags/components/preferred-script-location-tag"
|
117
|
+
]
|
118
|
+
};
|
@@ -0,0 +1,67 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/element/array.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
+
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
+
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
+
marko_forOf = require("marko/src/runtime/helpers/for-of"),
|
11
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
12
|
+
marko_assign = require("marko/src/runtime/helpers/assign");
|
13
|
+
|
14
|
+
function render(input, out, __component, component, state) {
|
15
|
+
var data = input;
|
16
|
+
|
17
|
+
const tag = input.tag === undefined ? "div" : input.tag;
|
18
|
+
|
19
|
+
const value = getAsArray(input, "value");
|
20
|
+
|
21
|
+
if (value.length) {
|
22
|
+
if (tag) {
|
23
|
+
marko_dynamicTag(out, tag, function() {
|
24
|
+
return marko_assign({}, input.attrs, {
|
25
|
+
class: input.class
|
26
|
+
});
|
27
|
+
}, function(out) {
|
28
|
+
var $for$0 = 0;
|
29
|
+
|
30
|
+
marko_forOf(value, function(v, index) {
|
31
|
+
var $keyScope$0 = "[" + (($for$0++) + "]");
|
32
|
+
|
33
|
+
marko_dynamicTag(out, input.renderBody, function() {
|
34
|
+
return {
|
35
|
+
value: v,
|
36
|
+
index: index,
|
37
|
+
length: value.length
|
38
|
+
};
|
39
|
+
}, null, null, null, __component, "1" + $keyScope$0);
|
40
|
+
});
|
41
|
+
}, null, null, __component, "0");
|
42
|
+
} else {
|
43
|
+
var $for$1 = 0;
|
44
|
+
|
45
|
+
marko_forOf(value, function(v, index) {
|
46
|
+
var $keyScope$1 = "[" + (($for$1++) + "]");
|
47
|
+
|
48
|
+
marko_dynamicTag(out, input.renderBody, function() {
|
49
|
+
return {
|
50
|
+
value: v,
|
51
|
+
index: index,
|
52
|
+
length: value.length
|
53
|
+
};
|
54
|
+
}, null, null, null, __component, "2" + $keyScope$1);
|
55
|
+
});
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
marko_template._ = marko_renderer(render, {
|
61
|
+
___implicit: true,
|
62
|
+
___type: marko_componentType
|
63
|
+
});
|
64
|
+
|
65
|
+
marko_template.meta = {
|
66
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/element/array.marko"
|
67
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/element/block.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
+
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
+
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
11
|
+
marko_assign = require("marko/src/runtime/helpers/assign");
|
12
|
+
|
13
|
+
function render(input, out, __component, component, state) {
|
14
|
+
var data = input;
|
15
|
+
|
16
|
+
const tag = input.tag || "div";
|
17
|
+
|
18
|
+
const blockName = input.name || "block";
|
19
|
+
|
20
|
+
const classNames = [blockName, ...getAsArray(input, "modifiers").map(mod => `${blockName}--${mod}`), input.class];
|
21
|
+
|
22
|
+
if (input.renderBody) {
|
23
|
+
marko_dynamicTag(out, tag, function() {
|
24
|
+
return marko_assign({}, input.attrs, {
|
25
|
+
class: classNames
|
26
|
+
});
|
27
|
+
}, function(out) {
|
28
|
+
marko_dynamicTag(out, input.renderBody, function() {
|
29
|
+
return {
|
30
|
+
"block-name": blockName
|
31
|
+
};
|
32
|
+
}, null, null, null, __component, "1");
|
33
|
+
}, null, null, __component, "0");
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
marko_template._ = marko_renderer(render, {
|
38
|
+
___implicit: true,
|
39
|
+
___type: marko_componentType
|
40
|
+
});
|
41
|
+
|
42
|
+
marko_template.meta = {
|
43
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/element/block.marko"
|
44
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/element/clear.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
marko_styleAttr = require("marko/src/runtime/html/helpers/style-attr");
|
8
|
+
|
9
|
+
function render(input, out, __component, component, state) {
|
10
|
+
var data = input;
|
11
|
+
|
12
|
+
const { value } = input;
|
13
|
+
|
14
|
+
if ([
|
15
|
+
"left",
|
16
|
+
"right",
|
17
|
+
"both"
|
18
|
+
].includes(value)) {
|
19
|
+
out.w("<div" +
|
20
|
+
marko_styleAttr(("clear: " + value) + ";") +
|
21
|
+
"></div>");
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
marko_template._ = marko_renderer(render, {
|
26
|
+
___implicit: true,
|
27
|
+
___type: marko_componentType
|
28
|
+
});
|
29
|
+
|
30
|
+
marko_template.meta = {
|
31
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/element/clear.marko"
|
32
|
+
};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/element/components/image.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
module_baseCmsObjectPath_module = require("@parameter1/base-cms-object-path"),
|
8
|
+
baseCmsObjectPath_module = module_baseCmsObjectPath_module.default || module_baseCmsObjectPath_module,
|
9
|
+
getAsArray = module_baseCmsObjectPath_module.getAsArray,
|
10
|
+
getAsObject = module_baseCmsObjectPath_module.getAsObject,
|
11
|
+
module_imageHeight = require("../../node/utils/image-height"),
|
12
|
+
imageHeight = module_imageHeight.default || module_imageHeight,
|
13
|
+
marko_mergeAttrs = require("marko/src/runtime/html/helpers/merge-attrs");
|
14
|
+
|
15
|
+
function render(input, out, __component, component, state) {
|
16
|
+
var data = input;
|
17
|
+
|
18
|
+
const { config } = out.global;
|
19
|
+
|
20
|
+
const { src, alt } = input;
|
21
|
+
|
22
|
+
const lazyload = config && config.lazyloadImages() && input.lazyload !== false
|
23
|
+
|
24
|
+
const srcset = getAsArray(input.srcset).join(", ") || null;
|
25
|
+
|
26
|
+
const classNames = [input.class];
|
27
|
+
|
28
|
+
if (lazyload) classNames.push("lazyload");
|
29
|
+
|
30
|
+
const attrs = getAsObject(input.attrs);
|
31
|
+
|
32
|
+
if (lazyload) {
|
33
|
+
out.w("<img" +
|
34
|
+
marko_mergeAttrs(attrs, {
|
35
|
+
src: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
36
|
+
srcset: null,
|
37
|
+
"data-src": src,
|
38
|
+
"data-srcset": srcset,
|
39
|
+
class: classNames,
|
40
|
+
alt: alt
|
41
|
+
}) +
|
42
|
+
">");
|
43
|
+
} else {
|
44
|
+
out.w("<img" +
|
45
|
+
marko_mergeAttrs(attrs, {
|
46
|
+
src: src,
|
47
|
+
srcset: srcset,
|
48
|
+
class: classNames,
|
49
|
+
alt: alt
|
50
|
+
}) +
|
51
|
+
">");
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
marko_template._ = marko_renderer(render, {
|
56
|
+
___implicit: true,
|
57
|
+
___type: marko_componentType
|
58
|
+
});
|
59
|
+
|
60
|
+
marko_template.meta = {
|
61
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/element/components/image.marko"
|
62
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Compiled using marko@4.20.2 - DO NOT EDIT
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var marko_template = module.exports = require("marko/src/html").t(__filename),
|
5
|
+
marko_componentType = "/@parameter1/base-cms-marko-web$3.11.0/components/element/components/text.marko",
|
6
|
+
marko_renderer = require("marko/src/runtime/components/renderer"),
|
7
|
+
marko_dynamicTag = require("marko/src/runtime/helpers/dynamic-tag"),
|
8
|
+
marko_str = require("marko/src/runtime/helpers/to-string"),
|
9
|
+
helpers_escape_xml = require("marko/src/runtime/html/helpers/escape-xml"),
|
10
|
+
marko_escapeXml = helpers_escape_xml.x;
|
11
|
+
|
12
|
+
function render(input, out, __component, component, state) {
|
13
|
+
var data = input;
|
14
|
+
|
15
|
+
const { value, renderBody, html } = input;
|
16
|
+
|
17
|
+
if (renderBody) {
|
18
|
+
marko_dynamicTag(out, renderBody, function() {
|
19
|
+
return {
|
20
|
+
value: value
|
21
|
+
};
|
22
|
+
}, null, null, null, __component, "0");
|
23
|
+
} else if (html) {
|
24
|
+
out.w(marko_str(value));
|
25
|
+
} else {
|
26
|
+
out.w(marko_escapeXml(value));
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
marko_template._ = marko_renderer(render, {
|
31
|
+
___implicit: true,
|
32
|
+
___type: marko_componentType
|
33
|
+
});
|
34
|
+
|
35
|
+
marko_template.meta = {
|
36
|
+
id: "/@parameter1/base-cms-marko-web$3.11.0/components/element/components/text.marko"
|
37
|
+
};
|