From ea27f493dcb69f2d242de7eeec3b1f960c468fcb Mon Sep 17 00:00:00 2001 From: Lencodes Date: Tue, 14 Nov 2023 12:01:32 +0100 Subject: [PATCH] IMPLEMENT feedback and fallback theme --- pwa/src/services/getConfig.ts | 3 +++ pwa/static/configFiles/conduction.json | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pwa/static/configFiles/conduction.json diff --git a/pwa/src/services/getConfig.ts b/pwa/src/services/getConfig.ts index e080f707..8c31a7ab 100644 --- a/pwa/src/services/getConfig.ts +++ b/pwa/src/services/getConfig.ts @@ -1,8 +1,11 @@ +import Conduction from "./../../static/configFiles/conduction.json"; import Epe from "./../../static/configFiles/epe.json"; export const getConfig = (domain: string): Record | undefined => { switch (domain) { case "open.epe.nl": return Epe as Record; + default: + return Conduction as Record; } }; diff --git a/pwa/static/configFiles/conduction.json b/pwa/static/configFiles/conduction.json new file mode 100644 index 00000000..d0940ff4 --- /dev/null +++ b/pwa/static/configFiles/conduction.json @@ -0,0 +1,11 @@ +{ + "GATSBY_API_BASE_URL": "https://api.gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "conduction-theme", + "GATSBY_FAVICON_URL": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICAgd2lkdGg9IjcxLjAwMDAwMHB0IiBoZWlnaHQ9IjcwLjAwMDAwMHB0IiB2aWV3Qm94PSIwIDAgNzEuMDAwMDAwIDcwLjAwMDAwMCIKICAgICBwcmVzZXJ2ZUFz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GATSBY_JUMBOTRON_IMAGE_URL": "https://www.conduction.nl/wp-content/uploads/2021/07/cropped-Conduction_HOME_0000_afb1-1.png", + "GATSBY_FOOTER_LOGO_HREF": "https://www.conduction.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/pwa/src/templates/templateParts/footer/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "", + "GATSBY_OIDN_NUMBER": "" +}