diff --git a/default.env b/default.env index d71718c7..bfb0e95d 100644 --- a/default.env +++ b/default.env @@ -27,6 +27,8 @@ COMPOSE_FILE=docker-compose.yaml:docker-compose.static-ingress.yaml # Fully qualified domain name; used to configure traefik ingress # SERVER_NAME=foo.cirg.uw.edu +VITE_VERSION_STRING= + ### ### Client environment variables: ### Variables with VITE_ prefix will be available to the client diff --git a/src/env.d.ts b/src/env.d.ts index 8a05826f..24d6b69a 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -9,6 +9,7 @@ interface ImportMetaEnv { readonly VITE_API_BASE: string readonly VITE_VIEWER_BASE: string readonly VITE_INTERMEDIATE_FHIR_SERVER_BASE: string + readonly VITE_VERSION_STRING: string readonly DEV_SERVER_PORT: number } diff --git a/src/lib/config.ts b/src/lib/config.ts index c01c901f..34929310 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -5,6 +5,8 @@ export const API_BASE = import.meta.env.VITE_API_BASE; export const INTERMEDIATE_FHIR_SERVER_BASE = import.meta.env.VITE_INTERMEDIATE_FHIR_SERVER_BASE; +export const VERSION_STRING = import.meta.env.VITE_VERSION_STRING; + export const SOF_HOSTS = [ // { // id: "epic-himss", diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a1943b05..7036eca2 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -22,6 +22,7 @@ Styles } from 'sveltestrap'; import { SHLClient, type SHLAdminParams } from '$lib/managementClient'; + import { VERSION_STRING } from '../lib/config'; const LOCAL_STORAGE_KEY = 'shlips_store_shls'; let shlStore = writable( @@ -192,7 +193,7 @@ document. SHLinks can be shared by copy/paste, or by presenting a QR code. Source code and license at https://github.com/uwcirg/shl-ips. + >. Site version: {VERSION_STRING}