Skip to content

Commit

Permalink
Merge pull request #168 from DataCloud-project/frontend-hotfix
Browse files Browse the repository at this point in the history
Frontend hotfix
  • Loading branch information
goranbs authored Oct 25, 2024
2 parents e894c5b + c6eec31 commit 5cdd94b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion frontend/src/routes/projects/analytics3/dag.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
});
</script>

/* eslint-disable */
<svg bind:this={svgElement}></svg>

<div class="card p-4 variant-filled-secondary" data-popup="popupHover">
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/utils/keycloak.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ function parseSimPipeEnvironment(): {
const port = localhostMatch[2];
// added 5173 to support deployment of frontend in dev mode
// eslint-disable-next-line unicorn/prefer-ternary
if (port === ':8088' || port === ':5173') {
if (port === ':8088') {
console.log('localhost:', localhostMatch[1], 'port:', port);
graphqlUrl = 'http://localhost:8086/graphql';
} else if (port === ':5173') {
console.log('localhost:', localhostMatch[1], 'port:', port);
graphqlUrl = 'http://localhost:9000/graphql';
} else {
console.log("localhost match didn't match any known port", port);
graphqlUrl = 'http://localhost:9000/graphql';
console.log('Using default graphqlUrl', graphqlUrl);
}
}
} else {
Expand Down

0 comments on commit 5cdd94b

Please sign in to comment.