Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add version info to footer (#66) #84

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading