Skip to content

Commit

Permalink
feat: add version info to footer (#66) (#84)
Browse files Browse the repository at this point in the history
Co-authored-by: Fran McDade <franmcdade@Frans-MacBook-Pro.local>
  • Loading branch information
frano-m and Fran McDade authored Nov 21, 2024
1 parent 82a1b69 commit eb68aa1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build-catalog-source": "python3 catalog-build/build-sequencing-data.py && python3 catalog-build/build-assemblies.py && python3 catalog-build/build-annotations.py"
},
"dependencies": {
"@databiosphere/findable-ui": "15.0.0",
"@databiosphere/findable-ui": "15.0.2",
"@emotion/react": "^11.13.0",
"@emotion/styled": "^11.13.0",
"@mdx-js/loader": "^3.0.1",
Expand Down
8 changes: 6 additions & 2 deletions site-config/hprc-data-explorer/local/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import { rawSequencingDataEntityConfig } from "./index/rawSequencingDataEntityCo
const LOCALHOST = "http://localhost:3000";
const APP_TITLE = "HPRC Data Explorer";
const BROWSER_URL = LOCALHOST;
const GIT_HUB_REPO_URL =
"https://github.com/human-pangenomics/hprc-data-explorer";
const HOME_PAGE_PATH = ROUTE.RAW_SEQUENCING_DATA;

export function makeConfig(browserUrl: string): SiteConfig {
export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
return {
appTitle: APP_TITLE,
browserURL: browserUrl,
Expand All @@ -27,9 +29,11 @@ export function makeConfig(browserUrl: string): SiteConfig {
alignmentEntityConfig,
],
explorerTitle: APP_TITLE,
gitHubUrl,
layout: {
footer: {
Branding: "",
versionInfo: true,
},
header: {
logo: C.Logo({
Expand Down Expand Up @@ -70,6 +74,6 @@ export function makeConfig(browserUrl: string): SiteConfig {
};
}

const config: SiteConfig = makeConfig(BROWSER_URL);
const config: SiteConfig = makeConfig(BROWSER_URL, GIT_HUB_REPO_URL);

export default config;

0 comments on commit eb68aa1

Please sign in to comment.