From 198aa04c2ef3fc1909c73bb7da8a46df73e8c614 Mon Sep 17 00:00:00 2001 From: Chi Bong Ho Date: Mon, 11 Mar 2024 14:49:57 -0400 Subject: [PATCH] (feat) O3-2948 Add frontend config to RefApp --- README.md | 2 ++ docker-compose.yml | 2 +- frontend/Dockerfile | 1 + frontend/config-core_demo.json | 5 +++++ 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 frontend/config-core_demo.json diff --git a/README.md b/README.md index 0ec4072f3..309a5c932 100644 --- a/README.md +++ b/README.md @@ -56,4 +56,6 @@ To help us keep track of things, we ask that you suffix any files you add with e those that should be part of the core package. For example, a form named `test_form.json` would become `test_core-core_demo.json`. +Frontend configuration can be found in `frontend/config-core_demo.json`. + Thanks! diff --git a/docker-compose.yml b/docker-compose.yml index f7cf5dac0..2989cd45c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,7 @@ services: environment: SPA_PATH: /openmrs/spa API_URL: /openmrs - SPA_CONFIG_URLS: + SPA_CONFIG_URLS: config-core_demo.json SPA_DEFAULT_LOCALE: healthcheck: test: ["CMD", "curl", "-f", "http://localhost/"] diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 1cff5ca95..2e35ff873 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -36,5 +36,6 @@ RUN chmod +x /usr/local/bin/startup.sh COPY nginx.conf /etc/nginx/nginx.conf COPY --from=dev /app/spa /usr/share/nginx/html +COPY config-core_demo.json /usr/share/nginx/html CMD ["/usr/local/bin/startup.sh"] diff --git a/frontend/config-core_demo.json b/frontend/config-core_demo.json new file mode 100644 index 000000000..50fa5e4b7 --- /dev/null +++ b/frontend/config-core_demo.json @@ -0,0 +1,5 @@ +{ + "@openmrs/esm-styleguide": { + "Brand color #1": "#005d5d" + } +}