From 17fc34704b5d7fb7d21f8e861c7e8c72e974a702 Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 24 Nov 2023 11:52:50 +0100 Subject: [PATCH 1/2] added openWoo config --- pwa/src/services/getConfig.ts | 74 +++++++++++++++++++++- pwa/static/configFiles/albrandswaard.json | 12 ++++ pwa/static/configFiles/barendrecht.json | 12 ++++ pwa/static/configFiles/buren.json | 12 ++++ pwa/static/configFiles/hoeksche-waard.json | 12 ++++ pwa/static/configFiles/lansingerland.json | 12 ++++ pwa/static/configFiles/ridderkerk.json | 12 ++++ pwa/static/configFiles/rijssen-holten.json | 13 ++++ pwa/static/configFiles/stede-broec.json | 12 ++++ pwa/static/configFiles/texel.json | 12 ++++ pwa/static/configFiles/waddinxveen..json | 12 ++++ 11 files changed, 194 insertions(+), 1 deletion(-) create mode 100644 pwa/static/configFiles/albrandswaard.json create mode 100644 pwa/static/configFiles/barendrecht.json create mode 100644 pwa/static/configFiles/buren.json create mode 100644 pwa/static/configFiles/hoeksche-waard.json create mode 100644 pwa/static/configFiles/lansingerland.json create mode 100644 pwa/static/configFiles/ridderkerk.json create mode 100644 pwa/static/configFiles/rijssen-holten.json create mode 100644 pwa/static/configFiles/stede-broec.json create mode 100644 pwa/static/configFiles/texel.json create mode 100644 pwa/static/configFiles/waddinxveen..json diff --git a/pwa/src/services/getConfig.ts b/pwa/src/services/getConfig.ts index bf1d97b6..53042ba5 100644 --- a/pwa/src/services/getConfig.ts +++ b/pwa/src/services/getConfig.ts @@ -7,6 +7,16 @@ import OpenWebconcept from "./../../static/configFiles/open-webconcept.json"; import Rotterdam from "./../../static/configFiles/rotterdam.json"; import Tubbergen from "./../../static/configFiles/tubbergen.json"; import Xxllnc from "./../../static/configFiles/xxllnc.json"; +import Barendrecht from "./../../static/configFiles/barendrecht.json"; +import Ridderkerk from "./../../static/configFiles/ridderkerk.json"; +import Buren from "./../../static/configFiles/buren.json"; +import Albrandswaard from "./../../static/configFiles/albrandswaard.json"; +import StedeBroec from "./../../static/configFiles/stede-broec.json"; +import Lansingerland from "./../../static/configFiles/lansingerland.json"; +import Waddinxveen from "./../../static/configFiles/waddinxveen..json"; +import RijssenHolten from "./../../static/configFiles/rijssen-holten.json"; +import HoekscheWaard from "./../../static/configFiles/hoeksche-waard.json"; +import Texel from "./../../static/configFiles/texel.json"; export const getConfig = (themeOrDomainName: string): Record | undefined => { switch (themeOrDomainName) { @@ -33,8 +43,30 @@ export const getConfig = (themeOrDomainName: string): Record | unde return Xxllnc; case "koophulpje.nl": case "open-webconcept-theme": - // case "localhost": // development purposes + case "localhost": // development purposes return OpenWebconcept; + + case "barendrecht": + return Barendrecht; + case "ridderkerk": + return Ridderkerk; + case "buren": + return Buren; + case "albrandswaard": + return Albrandswaard; + case "stedebroec": + return StedeBroec; + case "lansingerland": + return Lansingerland; + case "waddinxveen": + return Waddinxveen; + case "rijssen-holten": + return RijssenHolten; + case "hoeksche-waard": + return HoekscheWaard; + case "texel": + return Texel; + default: return Conduction; } @@ -45,6 +77,18 @@ export const availableThemes: { label: string; value: string }[] = [ label: "Koophulpje", value: "open-webconcept-theme", }, + { + label: "Albrandswaard", + value: "albrandswaard", + }, + { + label: "Barendrecht", + value: "barendrecht", + }, + { + label: "Buren", + value: "buren", + }, { label: "Conduction", value: "conduction-theme", @@ -57,6 +101,14 @@ export const availableThemes: { label: string; value: string }[] = [ label: "Epe", value: "epe-theme", }, + { + label: "Hoeksche Waard", + value: "hoeksche-waard", + }, + { + label: "Lansingerland", + value: "lansingerland", + }, { label: "Noaberkracht", value: "noaberkracht-theme", @@ -65,14 +117,34 @@ export const availableThemes: { label: string; value: string }[] = [ label: "Noordwijk", value: "noordwijk-theme", }, + { + label: "Ridderkerk", + value: "ridderkerk", + }, + { + label: "Rijssen-Holten", + value: "rijssen-holten", + }, { label: "Rotterdam", value: "rotterdam-theme", }, + { + label: "Stede Broec", + value: "stedebroec", + }, + { + label: "Texel", + value: "texel", + }, { label: "Tubbergen", value: "tubbergen-theme", }, + { + label: "Waddinxveen", + value: "waddinxveen", + }, { label: "XXLLNC", value: "xxllnc-theme", diff --git a/pwa/static/configFiles/albrandswaard.json b/pwa/static/configFiles/albrandswaard.json new file mode 100644 index 00000000..3aa79c8d --- /dev/null +++ b/pwa/static/configFiles/albrandswaard.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.albrandswaard.nl/wp-content/uploads/sites/2/2022/12/cropped-favicon-1-192x192.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Albrandswaard", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.albrandswaard.nl/wp-content/uploads/sites/2/2023/11/20230828_046M.Muus_-scaled.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.albrandswaard.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "albrandswaard" +} diff --git a/pwa/static/configFiles/barendrecht.json b/pwa/static/configFiles/barendrecht.json new file mode 100644 index 00000000..0f13bdd9 --- /dev/null +++ b/pwa/static/configFiles/barendrecht.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.barendrecht.nl/wp-content/uploads/2022/08/cropped-favicon-270x270.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Barendrecht", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.barendrecht.nl/wp-content/uploads/2023/01/16-9_ITF-6421-scaled.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.barendrecht.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "barendrecht" +} diff --git a/pwa/static/configFiles/buren.json b/pwa/static/configFiles/buren.json new file mode 100644 index 00000000..beb82d18 --- /dev/null +++ b/pwa/static/configFiles/buren.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.buren.nl/wp-content/uploads/2020/04/cropped-buren_logo-1-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Buren", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.buren.nl/wp-content/uploads/2020/04/waterberging.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.buren.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "buren" +} diff --git a/pwa/static/configFiles/hoeksche-waard.json b/pwa/static/configFiles/hoeksche-waard.json new file mode 100644 index 00000000..c2e3787b --- /dev/null +++ b/pwa/static/configFiles/hoeksche-waard.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.gemeentehw.nl/wp-content/uploads/2020/01/cropped-cropped-favicon-gemeente-hw-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Hoeksche Waard", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.gemeentehw.nl/wp-content/uploads/2023/09/293A8330-scaled.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.gemeentehw.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "hoeksche-waard" +} diff --git a/pwa/static/configFiles/lansingerland.json b/pwa/static/configFiles/lansingerland.json new file mode 100644 index 00000000..d5a3e611 --- /dev/null +++ b/pwa/static/configFiles/lansingerland.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.lansingerland.nl/wp-content/uploads/2020/11/cropped-LL-fav-192x192.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Lansingerland", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.lansingerland.nl/wp-content/uploads/2023/07/Achtergrond-foto-homepage-2-scaled.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.lansingerland.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "lansingerland" +} diff --git a/pwa/static/configFiles/ridderkerk.json b/pwa/static/configFiles/ridderkerk.json new file mode 100644 index 00000000..7a9cb2b6 --- /dev/null +++ b/pwa/static/configFiles/ridderkerk.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.ridderkerk.nl/wp-content/uploads/sites/3/2022/09/cropped-favicon-270x270.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Ridderkerk", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.ridderkerk.nl/wp-content/uploads/sites/3/2022/09/ridderkerk.png", + "GATSBY_FOOTER_LOGO_HREF": "https://www.ridderkerk.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "ridderkerk" +} diff --git a/pwa/static/configFiles/rijssen-holten.json b/pwa/static/configFiles/rijssen-holten.json new file mode 100644 index 00000000..144dd9d8 --- /dev/null +++ b/pwa/static/configFiles/rijssen-holten.json @@ -0,0 +1,13 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/cropped-favicon-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Rijsen-Holten", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/Europaplein_met_gemeentehuis-1536x768.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.rijssen-holten.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "rijssen-holten" + } + \ No newline at end of file diff --git a/pwa/static/configFiles/stede-broec.json b/pwa/static/configFiles/stede-broec.json new file mode 100644 index 00000000..9befb537 --- /dev/null +++ b/pwa/static/configFiles/stede-broec.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.stedebroec.nl/wp-content/uploads/2021/05/cropped-stedebroec-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Stede Broec", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.stedebroec.nl/wp-content/uploads/2023/10/D16_4044b-Large_HarrieKusters.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.stedebroec.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "stedebroec" +} diff --git a/pwa/static/configFiles/texel.json b/pwa/static/configFiles/texel.json new file mode 100644 index 00000000..3185c412 --- /dev/null +++ b/pwa/static/configFiles/texel.json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.texel.nl/wp-content/uploads/2021/05/cropped-cropped-favicon-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Texel", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.texel.nl/wp-content/uploads/2021/05/Molens-ERutten-scaled.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.texel.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "texel" +} diff --git a/pwa/static/configFiles/waddinxveen..json b/pwa/static/configFiles/waddinxveen..json new file mode 100644 index 00000000..74074190 --- /dev/null +++ b/pwa/static/configFiles/waddinxveen..json @@ -0,0 +1,12 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.waddinxveen.nl/wp-content/uploads/2022/10/cropped-favicon-192x192.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Waddinxveen", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.waddinxveen.nl/wp-content/uploads/2022/09/Gouweplein-Skyline-2048x1365.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.waddinxveen.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "waddinxveen" +} From 0beb5282c4b1e8e996c003d9e6a63acd085a8b52 Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 24 Nov 2023 11:53:36 +0100 Subject: [PATCH 2/2] cleanup --- pwa/static/configFiles/rijssen-holten.json | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pwa/static/configFiles/rijssen-holten.json b/pwa/static/configFiles/rijssen-holten.json index 144dd9d8..2733c425 100644 --- a/pwa/static/configFiles/rijssen-holten.json +++ b/pwa/static/configFiles/rijssen-holten.json @@ -1,13 +1,12 @@ { - "GATSBY_SHOW_THEME_SWITCHER": "false", - "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", - "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", - "GATSBY_FAVICON_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/cropped-favicon-32x32.png", - "GATSBY_ORGANISATION_NAME": "Gemeente Rijsen-Holten", - "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/Europaplein_met_gemeentehuis-1536x768.jpg", - "GATSBY_FOOTER_LOGO_HREF": "https://www.rijssen-holten.nl/", - "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", - "GATSBY_FOOTER_CONTENT_HEADER": "", - "GATSBY_OIDN_NUMBER": "rijssen-holten" - } - \ No newline at end of file + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "open-webconcept-theme", + "GATSBY_FAVICON_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/cropped-favicon-32x32.png", + "GATSBY_ORGANISATION_NAME": "Gemeente Rijsen-Holten", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://www.rijssen-holten.nl/wp-content/uploads/2022/01/Europaplein_met_gemeentehuis-1536x768.jpg", + "GATSBY_FOOTER_LOGO_HREF": "https://www.rijssen-holten.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "rijssen-holten" +}