From 0995960d3f0f4cadb59c336387d1a380a9cfcd2e Mon Sep 17 00:00:00 2001 From: Stefan Van Dyck Date: Wed, 31 Jul 2024 15:16:21 +0200 Subject: [PATCH] #23: Quick fix for explore your area page --- docker/ala-hub/Dockerfile | 5 ++++- docker/ala-hub/alaBs.js | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 docker/ala-hub/alaBs.js diff --git a/docker/ala-hub/Dockerfile b/docker/ala-hub/Dockerfile index b197a7c8..11db6b2e 100644 --- a/docker/ala-hub/Dockerfile +++ b/docker/ala-hub/Dockerfile @@ -5,10 +5,13 @@ ARG VERSION=7.0.0 WORKDIR /project RUN git clone --branch ${VERSION} --depth 1 https://github.com/AtlasOfLivingAustralia/ala-hub.git /project -# TODO: ugly fix for config values being overwritten by ala defaults +# # TODO: ugly fix for config values being overwritten by ala defaults RUN sed -i '10d' grails-app/conf/application.yml RUN cat grails-app/conf/application.yml +# TODO: Fix explore your area not loading properly because of global +COPY alaBs.js /project/grails-app/assets/javascripts/alaBs.js + RUN --mount=type=cache,target=/home/gradle/.gradle/caches \ gradle build assemble --no-daemon \ -x test -x integrationTest \ diff --git a/docker/ala-hub/alaBs.js b/docker/ala-hub/alaBs.js new file mode 100644 index 00000000..ef51016e --- /dev/null +++ b/docker/ala-hub/alaBs.js @@ -0,0 +1,20 @@ +var BC_CONF = BC_CONF || {} +if (!BC_CONF.hasOwnProperty('contextPath')) { + BC_CONF.contextPath = "" +} +if (!BC_CONF.hasOwnProperty('locale')) { + BC_CONF.locale = "nl" +} + +/* + * This is a manifest file that'll be compiled into alaBs.js, which will include all the files + * listed below. + * + * Any JS file within this directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the top of the + * compiled file, but it's generally better to create a new file per style scope. + * + * // require bootstrap +//= require hubCore + */ \ No newline at end of file