diff --git a/.gitignore b/.gitignore index d64a54a..036508b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # backups *~ # docker generated things -_citation.txt +_citation.* config.mk secrets/ docker-compose.yml diff --git a/Makefile b/Makefile index c170aa7..d8af9d6 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,16 @@ MAIL_API_KEY_PATH=secrets/mail_api_key BUILD_CONSTANTS_PATH=app/store/modules/_constants.js BUILD_ID=$(shell git describe --tags --abbrev=1) CITATION_TXT_FILE=_citation.txt +CITATION_BIB_FILE=_citation.bib $(CITATION_TXT_FILE): docker run --rm -v $(PWD):/app citationcff/cffconvert -f apalike -o $(CITATION_TXT_FILE) + docker run --rm -v $(PWD):/app citationcff/cffconvert -f bibtex -o $(CITATION_BIB_FILE) .PHONY: $(BUILD_CONSTANTS_PATH) $(BUILD_CONSTANTS_PATH): app/store/modules/_constants.js.template config.mk $(CITATION_TXT_FILE) - echo 'export const CITATION_TXT = "$(shell cat _citation.txt)";' > $(BUILD_CONSTANTS_PATH) + echo 'export const CITATION_TXT = "$(shell cat ${CITATION_TXT_FILE})";' > $(BUILD_CONSTANTS_PATH) + echo 'export const CITATION_BIB = "$(shell cat ${CITATION_BIB_FILE})";' >> $(BUILD_CONSTANTS_PATH) envsubst < app/store/modules/_constants.js.template >> $(BUILD_CONSTANTS_PATH) echo 'export const BUILD_ID = "${BUILD_ID}";' >> $(BUILD_CONSTANTS_PATH) diff --git a/app/Dockerfile b/app/Dockerfile index 178f58b..c1110a4 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM node:lts-bullseye +FROM node:lts-bookworm ENV NODE_OPTIONS="--openssl-legacy-provider" diff --git a/app/components/TermsOfUse.vue b/app/components/TermsOfUse.vue index 51ac15e..8b5278c 100644 --- a/app/components/TermsOfUse.vue +++ b/app/components/TermsOfUse.vue @@ -36,6 +36,7 @@

Example Citation

{{ citationText }}
+
{{ citationBibTex }}

Contact us

@@ -66,7 +67,7 @@