Skip to content

Commit

Permalink
Merge pull request #37 from uwcirg/add-version-string
Browse files Browse the repository at this point in the history
Add version string support
  • Loading branch information
daniellrgn authored Sep 22, 2024
2 parents 8241cde + 9a80070 commit 546364d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions default.env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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<SHLAdminParams[]>(
Expand Down Expand Up @@ -192,7 +193,7 @@
document. SHLinks can be shared by copy/paste, or by presenting a QR code. Source code and license at
<a href="https://github.com/uwcirg/shl-ips" target="_blank" rel="noreferrer"
>https://github.com/uwcirg/shl-ips</a
>.
>. Site version: {VERSION_STRING}
</footer>
</Col>
</Row>
Expand Down

0 comments on commit 546364d

Please sign in to comment.