Skip to content

Commit

Permalink
feat: add version info to footer (#166) (#185)
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 20, 2024
1 parent 86c7c93 commit 3fbb881
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 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 @@ -14,7 +14,7 @@
"build-brc-db": "esrun files/build-catalog.ts"
},
"dependencies": {
"@databiosphere/findable-ui": "15.0.0",
"@databiosphere/findable-ui": "15.0.2",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mdx-js/loader": "^3.0.1",
Expand Down
9 changes: 6 additions & 3 deletions site-config/brc-analytics/local/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import { genomeEntityConfig } from "./index/genomeEntityConfig";
const LOCALHOST = "http://localhost:3000";
const APP_TITLE = "BRC Analytics";
const BROWSER_URL = LOCALHOST;
const GIT_HUB_REPO_URL = "https://github.com/galaxyproject/brc-analytics";

/**
* Make site config object.
* @param browserUrl - Browser URL.
*
* @param gitHubUrl - GitHub URL.
* @remarks
* The `genomeEntityConfig` is typecast to `EntityConfig<BRCDataCatalogGenome>`
* because the `SiteConfig` interface from the `@databiosphere/findable-ui` package expects
Expand All @@ -25,7 +26,7 @@ const BROWSER_URL = LOCALHOST;
*
* @returns site config.
*/
export function makeConfig(browserUrl: string): SiteConfig {
export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
return {
appTitle: APP_TITLE,
browserURL: browserUrl,
Expand All @@ -34,6 +35,7 @@ export function makeConfig(browserUrl: string): SiteConfig {
},
entities: [genomeEntityConfig as EntityConfig<BRCDataCatalogGenome>],
explorerTitle: APP_TITLE,
gitHubUrl,
layout: {
floating,
footer: {
Expand All @@ -48,6 +50,7 @@ export function makeConfig(browserUrl: string): SiteConfig {
url: "https://pathogendatanetwork.org/",
},
],
versionInfo: true,
},
header: {
logo: C.Logo({
Expand All @@ -72,6 +75,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 3fbb881

Please sign in to comment.