Skip to content

Commit

Permalink
exposomekg ui: initial work on node page
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Nov 28, 2024
1 parent a2691ec commit 503c642
Show file tree
Hide file tree
Showing 12 changed files with 501 additions and 767 deletions.
3 changes: 2 additions & 1 deletion dataload/configs/subgraph_configs/src/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"mondo:0000001",
"efo:0000408",
"chebi:36080",
"chebi:24431"
"chebi:24431",
"biolink:ChemicalEntity"
],
"additional_equivalence_groups": [
["grebi:name", "ols:label", "rdfs:label", "monarch:name", "impc:name", "reactome:displayName", "dcterms:title", "ncit:Preferred_Name", "robokop:name"],
Expand Down
3 changes: 2 additions & 1 deletion webapp/grebi_ui/dev_server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import nocache from 'nocache'
let server = express()

server.use(nocache())
server.set('etag', false)

if(process.env.GREBI_DEV_BACKEND_PROXY_URL === undefined) {
throw new Error('please set GREBI_DEV_BACKEND_PROXY_URL before running dev server')
Expand All @@ -30,7 +31,7 @@ server.use(/^\/api.*/, async (req, res) => {
})


server.use(express.static('dist'))
server.use(express.static('dist', { etag: false }))

server.get(/^(?!\/api).*$/, (req, res) => {
res.sendFile(process.cwd() + '/dist/index.html')
Expand Down
2 changes: 1 addition & 1 deletion webapp/grebi_ui/src/app/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function getPaginated<ResType>(
res.page || 0,
res.numElements || 0,
res.totalPages || 0,
res.totalElements || 0,
res.total || 0,
res.content || [],
res.facetFieldToCounts || new Map()
);
Expand Down
Loading

0 comments on commit 503c642

Please sign in to comment.