diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91bc4adb..31a2f09f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
### Added
+- DeployBaseTemplates task that deploys base templates with pages, areas, interactive flows and other options.
+
### Changed
### Fixed
diff --git a/migration-examples/hierarchy/index.html b/migration-examples/hierarchy/index.html
index be962983..0abee186 100644
--- a/migration-examples/hierarchy/index.html
+++ b/migration-examples/hierarchy/index.html
@@ -183,6 +183,10 @@
color: #40a02b;
}
+ .label.base_template {
+ color: #8839ef;
+ }
+
.label mark {
background: var(--hl);
padding: 0 2px;
@@ -247,6 +251,8 @@
+
+
@@ -289,6 +295,7 @@
const variableStructuresChkbox = /** @type {HTMLInputElement} */ (document.getElementById("variableStructures"));
const attachmentsChkbox = /** @type {HTMLInputElement} */ (document.getElementById("attachments"));
const imagesChkbox = /** @type {HTMLInputElement} */ (document.getElementById("images"));
+ const baseTemplatesChkbox = /** @type {HTMLInputElement} */ (document.getElementById("baseTemplates"));
function refresh() {
indexes = buildIndexes(data);
@@ -307,6 +314,7 @@
variableStructuresChkbox.addEventListener("change", refresh);
attachmentsChkbox.addEventListener("change", refresh);
imagesChkbox.addEventListener("change", refresh);
+ baseTemplatesChkbox.addEventListener("change", refresh);
treeEl.addEventListener("click", onTreeClick);
@@ -489,6 +497,9 @@
case 'VARIABLE_STRUCTURE': {
return variableStructuresChkbox.checked;
};
+ case 'BASE_TEMPLATE': {
+ return baseTemplatesChkbox.checked;
+ };
}
}
@@ -916,6 +927,7 @@
addBucket(root.images, "IMAGE");
addBucket(root.variables, "VARIABLE");
addBucket(root.variableStructures, "VARIABLE_STRUCTURE");
+ addBucket(root.baseTemplates, "BASE_TEMPLATE");
return { nodeByKey, childrenByKey, parentsByKey };
}
@@ -967,6 +979,9 @@
case 'VARIABLE_STRUCTURE': {
return root.variableStructures[ref.id];
};
+ case 'BASE_TEMPLATE': {
+ return root.baseTemplates[ref.id];
+ };
}
}
@@ -1012,6 +1027,10 @@
label = "VS"
break;
};
+ case 'BASE_TEMPLATE': {
+ label = "BT"
+ break;
+ };
}
let eid = id;
@@ -1040,6 +1059,7 @@
* @property {Object.} images
* @property {Object.} variables
* @property {Object.} variableStructures
+ * @property {Object.} baseTemplates
*/
/**
@@ -1073,7 +1093,8 @@
* | 'ATTACHMENT'
* | 'IMAGE'
* | 'VARIABLE'
- * | 'VARIABLE_STRUCTURE'} ChildType
+ * | 'VARIABLE_STRUCTURE'
+ * | 'BASE_TEMPLATE'} ChildType
*/