Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/XW-119/config #186

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 73 additions & 1 deletion pwa/src/services/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any> | undefined => {
switch (themeOrDomainName) {
Expand All @@ -33,8 +43,30 @@ export const getConfig = (themeOrDomainName: string): Record<string, any> | 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;
}
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions pwa/static/configFiles/albrandswaard.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/barendrecht.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/buren.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/hoeksche-waard.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/lansingerland.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/ridderkerk.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/rijssen-holten.json
Original file line number Diff line number Diff line change
@@ -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.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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/stede-broec.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/texel.json
Original file line number Diff line number Diff line change
@@ -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"
}
12 changes: 12 additions & 0 deletions pwa/static/configFiles/waddinxveen..json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading