Skip to content

Commit

Permalink
restore Helmet, add Wrapper for flows, runs, task
Browse files Browse the repository at this point in the history
  • Loading branch information
nemeth-wias committed Jan 11, 2024
1 parent a276840 commit dc134f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/pages/f/[flowId].js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { CollapsibleDataTable, StringLimiter } from "../api/sizeLimiter";

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCogs, faTags } from "@fortawesome/free-solid-svg-icons";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -49,6 +50,9 @@ function Flow({ data }) {
let parameterCols = ["Name", "Description", "Type", "Default Value"];

return (
<Wrapper>
<Helmet title="OpenML Flows" />

<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -169,6 +173,7 @@ function Flow({ data }) {
{shortenName(data.name)}
</Typography> */}
</React.Fragment>
</Wrapper>
);
}

Expand Down
4 changes: 4 additions & 0 deletions app/src/pages/r/[runId].js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { faTags, faTrophy } from "@fortawesome/free-solid-svg-icons";
import { MetaTag } from "../../components/MetaItems";
import { CollapsibleDataTable } from "../api/sizeLimiter";
import { EvaluationDetail, FlowDetail, TagChip } from "../api/itemDetail";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -48,6 +49,8 @@ function Run({ data }) {
//ID counter for evaluations
var evaluationID = 0;
return (
<Wrapper>
<Helmet title="OpenML Runs" />
<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -140,6 +143,7 @@ function Run({ data }) {
</Grid>
</Grid>
</React.Fragment>
</Wrapper>
);
}

Expand Down
4 changes: 4 additions & 0 deletions app/src/pages/t/[taskId].js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
} from "@mui/material";
import { green } from "@mui/material/colors";
import { updateTag, TagChip } from "../api/itemDetail";
import Wrapper from "../../components/Wrapper";

export async function getStaticPaths() {
// No paths are pre-rendered
Expand Down Expand Up @@ -64,6 +65,8 @@ function Task({ data }) {
},
];
return (
<Wrapper>
<Helmet title="OpenML Tasks" />
<React.Fragment>
<Grid container spacing={6}>
<Grid item xs={12}>
Expand Down Expand Up @@ -137,6 +140,7 @@ function Task({ data }) {
</Grid>
</Grid>
</React.Fragment>
</Wrapper>
);
}

Expand Down

0 comments on commit dc134f4

Please sign in to comment.