From 91f8772d2e81ab9e4f2673eddb23f87fe6f19b16 Mon Sep 17 00:00:00 2001 From: "Harry Ross [SSW]" Date: Mon, 11 Sep 2023 17:21:45 +1000 Subject: [PATCH 1/2] Added new image format --- menu.json | 12 ++++++------ schema.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/menu.json b/menu.json index 7d38488..5b88613 100644 --- a/menu.json +++ b/menu.json @@ -2,7 +2,7 @@ "menuItems": [ { "text": "Services", - "groupImageUrl": "Menu-Banner-Services.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Services.png", "children": [ { "text": "All Services", @@ -293,7 +293,7 @@ }, { "text": "Products", - "groupImageUrl": "Menu-Banner-Products.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Products.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/products", @@ -396,7 +396,7 @@ }, { "text": "Training", - "groupImageUrl": "Menu-Banner-Training.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Training.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/ssw/Events/?upcomingeventsonly=false", @@ -521,7 +521,7 @@ }, { "text": "User Group", - "groupImageUrl": "Menu-Banner-UserGroup.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-UserGroup.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/ssw/NETUG", @@ -597,7 +597,7 @@ }, { "text": "Rules", - "groupImageUrl": "Menu-Banner-Standards.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Standards.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/rules/", @@ -664,7 +664,7 @@ }, { "text": "About Us", - "groupImageUrl": "Menu-Banner-AboutUs.png", + "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-AboutUs.png", "children": [ { "text": "Why Us", diff --git a/schema.json b/schema.json index bb9a446..e3455c5 100644 --- a/schema.json +++ b/schema.json @@ -37,7 +37,7 @@ "type": "string", "default": "", "examples": [ - "Menu-Banner-Services.png" + "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-AboutUs.png" ], "pattern": "^.*$" }, From 004e58119f1ae87d0b6a5cbb142b844c8fac3dbd Mon Sep 17 00:00:00 2001 From: "Harry Ross [SSW]" Date: Fri, 15 Sep 2023 14:49:42 +1000 Subject: [PATCH 2/2] Added new key value for web hosted images --- menu.json | 18 ++++++++++++------ schema.json | 10 ++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/menu.json b/menu.json index d273396..62f7a43 100644 --- a/menu.json +++ b/menu.json @@ -2,7 +2,8 @@ "menuItems": [ { "text": "Services", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Services.png", + "groupImageUrl": "Menu-Banner-Services.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Services.png", "children": [ { "text": "All Services", @@ -293,7 +294,8 @@ }, { "text": "Products", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Products.png", + "groupImageUrl": "Menu-Banner-Products.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Products.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/products", @@ -396,7 +398,8 @@ }, { "text": "Training", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Training.png", + "groupImageUrl": "Menu-Banner-Training.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Training.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/events", @@ -521,7 +524,8 @@ }, { "text": "User Group", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-UserGroup.png", + "groupImageUrl": "Menu-Banner-UserGroup.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-UserGroup.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/ssw/NETUG", @@ -597,7 +601,8 @@ }, { "text": "Rules", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Standards.png", + "groupImageUrl": "Menu-Banner-Standards.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-Standards.png", "children": [ { "navigateUrl": "https://www.ssw.com.au/rules/", @@ -664,7 +669,8 @@ }, { "text": "About Us", - "groupImageUrl": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-AboutUs.png", + "groupImageUrl": "Menu-Banner-AboutUs.png", + "groupImageUrlWeb": "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-AboutUs.png", "children": [ { "text": "Why Us", diff --git a/schema.json b/schema.json index e3455c5..24ddc8d 100644 --- a/schema.json +++ b/schema.json @@ -36,6 +36,16 @@ "title": "Groupimageurl", "type": "string", "default": "", + "examples": [ + "Menu-Banner-AboutUs.png" + ], + "pattern": "^.*$" + }, + "groupImageUrlWeb": { + "$id": "#root/menuItems/items/groupImageUrlWeb", + "title": "Groupimageurlweb", + "type": "string", + "default": "", "examples": [ "https://raw.githubusercontent.com/SSWConsulting/SSW.MegaMenu/main/lib/assets/images/Menu-Banner-AboutUs.png" ],