Skip to content

Commit

Permalink
Merge pull request #277 from ConductionNL/development
Browse files Browse the repository at this point in the history
Development to main, week 10
  • Loading branch information
remko48 authored Mar 11, 2024
2 parents 639fccd + 0b7ea34 commit b30ea47
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 192 deletions.
389 changes: 197 additions & 192 deletions pwa/src/services/getConfig.ts
Original file line number Diff line number Diff line change
@@ -1,192 +1,197 @@
import Conduction from "./../../static/configFiles/conduction.json";
import Dinkelland from "./../../static/configFiles/dinkelland.json";
import Epe from "./../../static/configFiles/epe.json";
import Noaberkracht from "./../../static/configFiles/noaberkracht.json";
import Noordwijk from "./../../static/configFiles/noordwijk.json";
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";
import Zutphen from "./../../static/configFiles/zutphen.json";
import Sloterburg from "./../../static/configFiles/sloterburg.json";
import Gouda from "./../../static/configFiles/gouda.json";
import Zuiddrecht from "./../../static/configFiles/zuiddrecht.json";
import { TGroupedSelectOption } from "@conduction/components/lib/components/formFields/select/select";

export const getConfig = (themeOrDomainName: string): Record<string, any> | undefined => {
switch (themeOrDomainName) {
case "open.epe.nl":
case "epe.koophulpje.nl":
case "epe.openwoo.app":
case "epe-theme":
return Epe;

case "open.noordwijk.nl":
case "noordwijk.koophulpje.nl":
case "noordwijk.openwoo.app":
case "noordwijk-theme":
return Noordwijk;

case "open.rotterdam.nl":
case "rotterdam.koophulpje.nl":
case "rotterdam.openwoo.app":
case "rotterdam-theme":
return Rotterdam;

case "open.noaberkracht.nl":
case "noaberkracht.koophulpje.nl":
case "noaberkracht.openwoo.app":
case "noaberkracht-theme":
return Noaberkracht;

case "open.tubbergen.nl":
case "tubbergen.koophulpje.nl":
case "tubbergen.openwoo.app":
case "tubbergen-theme":
return Tubbergen;

case "open.dinkelland.nl":
case "dinkelland.koophulpje.nl":
case "dinkelland.openwoo.app":
case "dinkelland-theme":
return Dinkelland;

case "open.xxllnc.nl":
case "xxllnc.koophulpje.nl":
case "xxllnc.openwoo.app":
case "xxllnc-theme":
return Xxllnc;

case "open.zutphen.nl":
case "zutphen.koophulpje.nl":
case "zutphen.openwoo.app":
case "zutphen-theme":
return Zutphen;

case "open.zuiddrecht.nl":
case "zuiddrecht.koophulpje.nl":
case "zuiddrecht.openwoo.app":
case "zuiddrecht-theme":
return Zuiddrecht;

case "open.sloterburg.nl":
case "sloterburg.koophulpje.nl":
case "sloterburg.openwoo.app":
case "sloterburg-theme":
return Sloterburg;

case "open.gouda.nl":
case "gouda.koophulpje.nl":
case "gouda.openwoo.app":
case "gouda-theme":
return Gouda;

case "koophulpje.nl":
case "open-webconcept-theme":
case "openwoo.app":
// case "localhost": // development purposes
return OpenWebconcept;

case "barendrecht":
case "barendrecht.koophulpje.nl":
case "barendrecht.openwoo.app":
return Barendrecht;

case "ridderkerk":
case "ridderkerk.koophulpje.nl":
case "ridderkerk.openwoo.app":
return Ridderkerk;

case "buren":
case "buren.koophulpje.nl":
case "buren.openwoo.app":
return Buren;

case "albrandswaard":
case "albrandswaard.koophulpje.nl":
case "albrandswaard.openwoo.app":
return Albrandswaard;

case "stedebroec":
case "stedebroec.koophulpje.nl":
case "stedebroec.openwoo.app":
return StedeBroec;

case "lansingerland":
case "lansingerland.koophulpje.nl":
case "lansingerland.openwoo.app":
return Lansingerland;

case "waddinxveen":
case "waddinxveen.koophulpje.nl":
case "waddinxveen.openwoo.app":
return Waddinxveen;

case "rijssen-holten":
case "rijssen-holten.koophulpje.nl":
case "rijssen-holten.openwoo.app":
return RijssenHolten;

case "hoeksche-waard":
case "hoeksche-waard.koophulpje.nl":
case "hoeksche-waard.openwoo.app":
return HoekscheWaard;

case "texel":
case "texel.koophulpje.nl":
case "texel.openwoo.app":
return Texel;

default:
return OpenWebconcept;
}
};

export const availableThemes: TGroupedSelectOption[] = [
{
label: "Alle overheidsorganisaties",
options: [
{ label: "Alle overheidsorganisaties", value: "open-webconcept-theme" },
// { label: "Conduction", value: "conduction-theme" },
// { label: "XXLLNC", value: "xxllnc-theme" },
],
},
{
label: "Gemeenten",
options: [
{ label: "Albrandswaard", value: "albrandswaard" },
{ label: "Barendrecht", value: "barendrecht" },
{ label: "Buren", value: "buren" },
{ label: "Dinkelland", value: "dinkelland-theme" },
{ label: "Epe", value: "epe-theme" },
{ label: "Gouda", value: "gouda-theme" },
{ label: "Hoeksche Waard", value: "hoeksche-waard" },
{ label: "Lansingerland", value: "lansingerland" },
{ label: "Noordwijk", value: "noordwijk-theme" },
{ label: "Ridderkerk", value: "ridderkerk" },
{ label: "Rijssen-Holten", value: "rijssen-holten" },
{ label: "Rotterdam", value: "rotterdam-theme" },
{ label: "Sloterburg", value: "sloterburg-theme" },
{ label: "Stede Broec", value: "stedebroec" },
{ label: "Texel", value: "texel" },
{ label: "Tubbergen", value: "tubbergen-theme" },
{ label: "Waddinxveen", value: "waddinxveen" },
{ label: "Zuiddrecht", value: "zuiddrecht-theme" },
{ label: "Zutphen", value: "zutphen-theme" },
],
},
{
label: "Regionale samenwerkingsorganen",
options: [{ label: "Noaberkracht", value: "noaberkracht-theme" }],
},
];
import Conduction from "./../../static/configFiles/conduction.json";
import Dinkelland from "./../../static/configFiles/dinkelland.json";
import Epe from "./../../static/configFiles/epe.json";
import Noaberkracht from "./../../static/configFiles/noaberkracht.json";
import Noordwijk from "./../../static/configFiles/noordwijk.json";
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 Localhost from "./../../static/configFiles/localhost.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";
import Zutphen from "./../../static/configFiles/zutphen.json";
import Sloterburg from "./../../static/configFiles/sloterburg.json";
import Gouda from "./../../static/configFiles/gouda.json";
import Zuiddrecht from "./../../static/configFiles/zuiddrecht.json";
import { TGroupedSelectOption } from "@conduction/components/lib/components/formFields/select/select";

export const getConfig = (themeOrDomainName: string): Record<string, any> | undefined => {
switch (themeOrDomainName) {
case "open.epe.nl":
case "epe.koophulpje.nl":
case "epe.openwoo.app":
case "epe-theme":
return Epe;

case "open.noordwijk.nl":
case "noordwijk.koophulpje.nl":
case "noordwijk.openwoo.app":
case "noordwijk-theme":
return Noordwijk;

case "open.rotterdam.nl":
case "rotterdam.koophulpje.nl":
case "rotterdam.openwoo.app":
case "rotterdam-theme":
return Rotterdam;

case "open.noaberkracht.nl":
case "noaberkracht.koophulpje.nl":
case "noaberkracht.openwoo.app":
case "noaberkracht-theme":
return Noaberkracht;

case "open.tubbergen.nl":
case "tubbergen.koophulpje.nl":
case "tubbergen.openwoo.app":
case "tubbergen-theme":
return Tubbergen;

case "open.dinkelland.nl":
case "dinkelland.koophulpje.nl":
case "dinkelland.openwoo.app":
case "dinkelland-theme":
return Dinkelland;

case "open.xxllnc.nl":
case "xxllnc.koophulpje.nl":
case "xxllnc.openwoo.app":
case "xxllnc-theme":
return Xxllnc;

case "open.zutphen.nl":
case "zutphen.koophulpje.nl":
case "zutphen.openwoo.app":
case "zutphen-theme":
return Zutphen;

case "open.zuiddrecht.nl":
case "zuiddrecht.koophulpje.nl":
case "zuiddrecht.openwoo.app":
case "zuiddrecht-theme":
return Zuiddrecht;

case "open.sloterburg.nl":
case "sloterburg.koophulpje.nl":
case "sloterburg.openwoo.app":
case "sloterburg-theme":
return Sloterburg;

case "open.gouda.nl":
case "gouda.koophulpje.nl":
case "gouda.openwoo.app":
case "gouda-theme":
return Gouda;

case "koophulpje.nl":
case "open-webconcept-theme":
case "openwoo.app":
// case "localhost": // development purposes
return OpenWebconcept;

case "barendrecht":
case "barendrecht.koophulpje.nl":
case "barendrecht.openwoo.app":
return Barendrecht;

case "ridderkerk":
case "ridderkerk.koophulpje.nl":
case "ridderkerk.openwoo.app":
return Ridderkerk;

case "buren":
case "buren.koophulpje.nl":
case "buren.openwoo.app":
return Buren;

case "albrandswaard":
case "albrandswaard.koophulpje.nl":
case "albrandswaard.openwoo.app":
return Albrandswaard;

case "stedebroec":
case "stedebroec.koophulpje.nl":
case "stedebroec.openwoo.app":
return StedeBroec;

case "lansingerland":
case "lansingerland.koophulpje.nl":
case "lansingerland.openwoo.app":
return Lansingerland;

case "waddinxveen":
case "waddinxveen.koophulpje.nl":
case "waddinxveen.openwoo.app":
return Waddinxveen;

case "rijssen-holten":
case "rijssen-holten.koophulpje.nl":
case "rijssen-holten.openwoo.app":
return RijssenHolten;

case "hoeksche-waard":
case "hoeksche-waard.koophulpje.nl":
case "hoeksche-waard.openwoo.app":
return HoekscheWaard;

case "texel":
case "texel.koophulpje.nl":
case "texel.openwoo.app":
return Texel;

case "localhost":
return Localhost;

default:
return OpenWebconcept;
}
};

export const availableThemes: TGroupedSelectOption[] = [
{
label: "Alle overheidsorganisaties",
options: [
{ label: "Alle overheidsorganisaties", value: "open-webconcept-theme" },
// { label: "Conduction", value: "conduction-theme" },
// { label: "XXLLNC", value: "xxllnc-theme" },
],
},
{
label: "Gemeenten",
options: [
{ label: "Albrandswaard", value: "albrandswaard" },
{ label: "Barendrecht", value: "barendrecht" },
{ label: "Buren", value: "buren" },
{ label: "Dinkelland", value: "dinkelland-theme" },
{ label: "Epe", value: "epe-theme" },
{ label: "Gouda", value: "gouda-theme" },
{ label: "Hoeksche Waard", value: "hoeksche-waard" },
{ label: "Lansingerland", value: "lansingerland" },
{ label: "Localhost", value: "localhost" },
{ label: "Noordwijk", value: "noordwijk-theme" },
{ label: "Ridderkerk", value: "ridderkerk" },
{ label: "Rijssen-Holten", value: "rijssen-holten" },
{ label: "Rotterdam", value: "rotterdam-theme" },
{ label: "Sloterburg", value: "sloterburg-theme" },
{ label: "Stede Broec", value: "stedebroec" },
{ label: "Texel", value: "texel" },
{ label: "Tubbergen", value: "tubbergen-theme" },
{ label: "Waddinxveen", value: "waddinxveen" },
{ label: "Zuiddrecht", value: "zuiddrecht-theme" },
{ label: "Zutphen", value: "zutphen-theme" },
],
},
{
label: "Regionale samenwerkingsorganen",
options: [{ label: "Noaberkracht", value: "noaberkracht-theme" }],
},
];
Loading

0 comments on commit b30ea47

Please sign in to comment.