Skip to content

Commit 546364d

Browse files
authoredSep 22, 2024··
Merge pull request #37 from uwcirg/add-version-string
Add version string support
2 parents 8241cde + 9a80070 commit 546364d

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎default.env

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ COMPOSE_FILE=docker-compose.yaml:docker-compose.static-ingress.yaml
2727
# Fully qualified domain name; used to configure traefik ingress
2828
# SERVER_NAME=foo.cirg.uw.edu
2929

30+
VITE_VERSION_STRING=
31+
3032
###
3133
### Client environment variables:
3234
### Variables with VITE_ prefix will be available to the client

‎src/env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface ImportMetaEnv {
99
readonly VITE_API_BASE: string
1010
readonly VITE_VIEWER_BASE: string
1111
readonly VITE_INTERMEDIATE_FHIR_SERVER_BASE: string
12+
readonly VITE_VERSION_STRING: string
1213
readonly DEV_SERVER_PORT: number
1314
}
1415

‎src/lib/config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export const API_BASE = import.meta.env.VITE_API_BASE;
55

66
export const INTERMEDIATE_FHIR_SERVER_BASE = import.meta.env.VITE_INTERMEDIATE_FHIR_SERVER_BASE;
77

8+
export const VERSION_STRING = import.meta.env.VITE_VERSION_STRING;
9+
810
export const SOF_HOSTS = [
911
// {
1012
// id: "epic-himss",

‎src/routes/+layout.svelte

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Styles
2323
} from 'sveltestrap';
2424
import { SHLClient, type SHLAdminParams } from '$lib/managementClient';
25+
import { VERSION_STRING } from '../lib/config';
2526
2627
const LOCAL_STORAGE_KEY = 'shlips_store_shls';
2728
let shlStore = writable<SHLAdminParams[]>(
@@ -192,7 +193,7 @@
192193
document. SHLinks can be shared by copy/paste, or by presenting a QR code. Source code and license at
193194
<a href="https://github.com/uwcirg/shl-ips" target="_blank" rel="noreferrer"
194195
>https://github.com/uwcirg/shl-ips</a
195-
>.
196+
>. Site version: {VERSION_STRING}
196197
</footer>
197198
</Col>
198199
</Row>

0 commit comments

Comments
 (0)
Please sign in to comment.