From 5553c291afe936d46cb581d4807289941c5571bf Mon Sep 17 00:00:00 2001 From: Tendo Martin Date: Thu, 26 Sep 2024 00:57:34 +0300 Subject: [PATCH] make default favicon overridable --- docker-compose.yml | 4 ++-- frontend/Dockerfile | 5 +++-- frontend/favicon.ico | Bin 0 -> 4365 bytes frontend/spa-build-config.json | 4 +++- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 frontend/favicon.ico diff --git a/docker-compose.yml b/docker-compose.yml index e0d1340f4..0ae45851e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,8 +16,8 @@ services: environment: SPA_PATH: /openmrs/spa API_URL: /openmrs - OMRS_PAGE_TITLE: UVI-EMR - OMRS_FAVICON: + OMRS_PAGE_TITLE: + OMRS_FAVICON: $SPA_PATH/frontend/favicon.ico SPA_CONFIG_URLS: /openmrs/spa/config-core_demo.json SPA_DEFAULT_LOCALE: healthcheck: diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ca2ccdc9d..bcf060b66 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -6,6 +6,7 @@ FROM --platform=$BUILDPLATFORM node:18-alpine as dev ARG APP_SHELL_VERSION=next ARG OMRS_PAGE_TITLE=OpenMRS +ARG OMRS_FAVICON=/frontend/favicon.ico RUN mkdir -p /app WORKDIR /app @@ -15,7 +16,7 @@ COPY spa-build-config.json . ARG CACHE_BUST RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa -RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa --page-title ${OMRS_PAGE_TITLE:-UVI-EMR} +RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa --page-title ${OMRS_PAGE_TITLE:-UVI-EMR0000} RUN if [ ! -f ./spa/index.html ]; then echo 'Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.'; exit 1; fi @@ -40,4 +41,4 @@ 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"] +CMD ["nodeman", "/usr/local/bin/startup.sh"] diff --git a/frontend/favicon.ico b/frontend/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..f6c805d7ca1e4e60087668a367fe515ebc1248e5 GIT binary patch literal 4365 zcmd^?XHZk!y2p125Fi#h2uL6SLz9klLXqk#hy@e_D5!K$x>6z~f*>M9KtVuylSG;{ z>0Nz6igZD$5Cns?05SXIlsR+m{c_H|AMbr;{%iK0y=JZboBy+(XBIdPP65#X8!Ib} zm4yukgR!%-aU9`2dISzXa)O)ZIPXazgy=~j5fL#7d9)Z(4kaQYr7kU}sHCc@ia=}X zYAEZ-tEehN*xA{Sz>f$XJu0XyE+Ve{KMt@J;9>)MfnF#C2{3U%pj;5J6Os!65EjVa z0{BNjn4ruotS~lq4mc;k1c5@Cn4v5z%*>3LVT^A8GZzcDxRL=YkM&I$@*b~pL{bhL z%CMr1@8TduLdD59lAVKJK=6c+CZ=ZQ7MCtxv9Y~+&CdDO z?K>{6Zti~m0f9lm_a8(>;~&MuK8{N!JWokYd+{_;cwzhY6_o({^5CHmj9LD%}pnu`vV(>6A zGeenSf8~KN1u+EWVrCInV&yilhTXi!gH(=S<26jmsc2(Isa&M+Ir$E9@Jp!9NpAiX z>2E~;8BpZ^is+v}|KtHDfg?}|!!RfpfC0A1Qn^i0pE#s)AO3%k>Nf5;x#93bx_t(= zT3-N?5*RgHBATLCK6g6Es9L}->(wqrfK8;~RR!}xWZ2OlM`jRM00CPNAX&Y?I4sBYgl#N5S5N>Reno0+t&5_>EN~LVLQBI z#eKctNr}pJgQbs1k%XzoQ(07cwPE#FOOtB$OK~yEE)Zj0Tl0t3#=O8k1X-nXP`&c0 zX&o2Hwn0G^pEk%gr!LgNprz@9Y2W^=^5A$&7GN)Yqu;1Env{(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C7b$YY3{eTA8}PG8ua$k<-`22 zU->wm^E4Q1_LZFp00BxB?Iy!*h8_;$Hr4vf*5wjVud28^4+!UTOBJ648v6PKdai`a zj?%PdH%~VQFQ8AuZ$1NoRx3p8a>KP|1#0@$Bd)2O^@3X$xvz$MnyzAx@)lTff5|E7 zbA9>QE_k6c)pk!{&^=i=0}n^_mYvdH1Oz!@=!iJ)ngv~4C;vH@l3Dg|w%jbgtix}x z!DL?VsYMx!_NzDH2W0KOn-@|KI~z2Xdw{;+P{ zOYHuJgofGYTLcGu4%K#EFB* z(t@@~?nJC{&oBDt#|#% zjsE5KjdR!QMA;WKf)@qFM$~3QEoZD^7T;fJC|f1_uqygZ>Fs~T9u2ybrt0l$sY7ft z=Dm{4Yi$htJ6#*zfj7zQYJU`tiJVtSNji?AnbrilZH9ENL|Ba1Lxt0M2>XhBZG+ZQ zCXU=P%FhE`!ax8X)j7L0UiZ5tj^DgeoLg-%iBxCY@FG}vt@Zz}2mwy~1^NZp8UO$Q literal 0 HcmV?d00001 diff --git a/frontend/spa-build-config.json b/frontend/spa-build-config.json index 68c3ce8f9..52eadcd8e 100644 --- a/frontend/spa-build-config.json +++ b/frontend/spa-build-config.json @@ -6,5 +6,7 @@ "importmap": "$SPA_PATH/importmap.json", "routes": "$SPA_PATH/routes.registry.json", "supportOffline": false, - "pageTitle": "UVI-EMR" + "pageTitle": "$OMRS_PAGE_TITLE", + "favicon":"$SPA_PATH/frontend/favicon.ico" + }