From aa4e218961592a59e3ca51c51c73dc71cd2a5ecd Mon Sep 17 00:00:00 2001 From: JustinGeorgi <77952587+JustinGeorgi@users.noreply.github.com> Date: Fri, 31 May 2024 10:53:08 -0700 Subject: [PATCH] Add a "Add from template" page for the semantic model (#2105) This adds a button and new sub page to the semantic model. On that sub-page the user can select from a few different basic templates for semantic locations which can then be automatically created and added to the model. There are a few options for customization: 1) The user can select a custom prefix that will be applied to all the items to fit or establish a desired naming scheme. 2) The user can optionally deselect extra pieces of the model that are not appropriate to their needs. --------- Also-by: Florian Hotze Signed-off-by: Justin Georgi --- .../settings/model/add-from-template.vue | 640 ++++++++++++++++++ .../web/src/pages/settings/model/model.vue | 27 +- 2 files changed, 665 insertions(+), 2 deletions(-) create mode 100644 bundles/org.openhab.ui/web/src/pages/settings/model/add-from-template.vue diff --git a/bundles/org.openhab.ui/web/src/pages/settings/model/add-from-template.vue b/bundles/org.openhab.ui/web/src/pages/settings/model/add-from-template.vue new file mode 100644 index 0000000000..7836fe707d --- /dev/null +++ b/bundles/org.openhab.ui/web/src/pages/settings/model/add-from-template.vue @@ -0,0 +1,640 @@ + + + + + diff --git a/bundles/org.openhab.ui/web/src/pages/settings/model/model.vue b/bundles/org.openhab.ui/web/src/pages/settings/model/model.vue index 08602a53dc..f4c0632f82 100644 --- a/bundles/org.openhab.ui/web/src/pages/settings/model/model.vue +++ b/bundles/org.openhab.ui/web/src/pages/settings/model/model.vue @@ -61,7 +61,15 @@ - + + + + + Add Locations from Template + + + + @@ -227,6 +235,7 @@