-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from opendatahub-io/prettier
Adding prettier automatic code formatting
- Loading branch information
Showing
9 changed files
with
255 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"printWidth": 100 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import React from 'react'; | ||
import '@patternfly/react-core/dist/styles/base.css'; | ||
import { | ||
Page, | ||
} from '@patternfly/react-core'; | ||
import Launcher from './Launcher/Launcher.js' | ||
import Header from './Header.js' | ||
import React from "react"; | ||
import "@patternfly/react-core/dist/styles/base.css"; | ||
import { Page } from "@patternfly/react-core"; | ||
import Launcher from "./Launcher/Launcher.js"; | ||
import Header from "./Header.js"; | ||
|
||
/** | ||
* This function wraps up the output from Launcher.js into a React Fragment and returns to the index page | ||
*/ | ||
/** | ||
* This function wraps up the output from Launcher.js into a React Fragment and returns to the index page | ||
*/ | ||
function App() { | ||
return ( | ||
<React.Fragment> | ||
<Page | ||
header={Header} | ||
> | ||
<Launcher /> | ||
</Page> | ||
<Page header={Header}> | ||
<Launcher /> | ||
</Page> | ||
</React.Fragment> | ||
)} | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import React from 'react'; | ||
import { | ||
PageHeader, | ||
Brand | ||
} from '@patternfly/react-core'; | ||
import imgLogo from './images/opendatahub.png' | ||
|
||
|
||
/** | ||
* It provides Page Header on top of the page | ||
*/ | ||
const Header = ( | ||
<PageHeader | ||
logo={<Brand src={imgLogo} alt="ODH Logo" className = "header"/>} | ||
/> | ||
); | ||
import React from "react"; | ||
import { PageHeader, Brand } from "@patternfly/react-core"; | ||
import imgLogo from "./images/opendatahub.png"; | ||
|
||
export default Header; | ||
/** | ||
* It provides Page Header on top of the page | ||
*/ | ||
const Header = <PageHeader logo={<Brand src={imgLogo} alt="ODH Logo" className="header" />} />; | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,100 @@ | ||
import React from 'react'; | ||
import { | ||
PageSection, | ||
PageSectionVariants, | ||
Grid, | ||
GridItem | ||
} from '@patternfly/react-core'; | ||
import OdhAppCard from './components/OdhAppCard'; | ||
import imgOpenShift from '../images/openshift.svg' | ||
import imgJupyter from '../images/jupyterhub.svg' | ||
import imgSpark from '../images/spark.png' | ||
import imgKubeFlow from '../images/kubeflow.png' | ||
import imgGrafana from '../images/grafana.png' | ||
import imgAirflow from '../images/airflow.png' | ||
import imgArgo from '../images/argo.png' | ||
import imgSeldon from '../images/seldon.jpg' | ||
import React from "react"; | ||
import { PageSection, PageSectionVariants, Grid, GridItem } from "@patternfly/react-core"; | ||
import OdhAppCard from "./components/OdhAppCard"; | ||
import imgOpenShift from "../images/openshift.svg"; | ||
import imgJupyter from "../images/jupyterhub.svg"; | ||
import imgSpark from "../images/spark.png"; | ||
import imgKubeFlow from "../images/kubeflow.png"; | ||
import imgGrafana from "../images/grafana.png"; | ||
import imgAirflow from "../images/airflow.png"; | ||
import imgArgo from "../images/argo.png"; | ||
import imgSeldon from "../images/seldon.jpg"; | ||
|
||
const odhApps = [ | ||
const odhApps = [ | ||
{ | ||
img: imgJupyter, | ||
altName: 'JupyterHub logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'Jupyter Notebooks provide a way of creating and sharing documents containing live code, visualisations', | ||
buttonName: 'Launch Jupyter' | ||
img: imgJupyter, | ||
altName: "JupyterHub logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"Jupyter Notebooks provide a way of creating and sharing documents containing live code, visualisations", | ||
buttonName: "Launch Jupyter", | ||
}, | ||
{ | ||
img: imgSpark, | ||
altName: 'Spark logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'Apache Spark is an open-source distributed general-purpose cluster-computing framework written in Scala', | ||
buttonName: 'Launch Spark' | ||
altName: "Spark logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"Apache Spark is an open-source distributed general-purpose cluster-computing framework written in Scala", | ||
buttonName: "Launch Spark", | ||
}, | ||
{ | ||
img: imgKubeFlow, | ||
altName: 'Kubeflow logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'The Kubeflow project is dedicated to making deployments of machine learning (ML) workflows on Kubernetes developed by Google in 2017', | ||
buttonName: 'Launch KubeFlow' | ||
altName: "Kubeflow logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"The Kubeflow project is dedicated to making deployments of machine learning (ML) workflows on Kubernetes developed by Google in 2017", | ||
buttonName: "Launch KubeFlow", | ||
}, | ||
{ | ||
img: imgOpenShift, | ||
altName: 'Openshift logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'OpenShift is a family of containerization software developed by Red Hat - flagship product is the OpenShift Container Platform', | ||
buttonName: 'Launch Openshift' | ||
altName: "Openshift logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"OpenShift is a family of containerization software developed by Red Hat - flagship product is the OpenShift Container Platform", | ||
buttonName: "Launch Openshift", | ||
}, | ||
{ | ||
img: imgGrafana, | ||
altName: 'Grafana logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'Grafana is a multi-platform open source analytics and interactive visualization web application written in Go', | ||
buttonName: 'Launch Grafana' | ||
altName: "Grafana logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"Grafana is a multi-platform open source analytics and interactive visualization web application written in Go", | ||
buttonName: "Launch Grafana", | ||
}, | ||
{ | ||
img: imgAirflow, | ||
altName: 'Airflow logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'Apache Airflow is a workflow automation and scheduling system that can be used to manage data pipelines', | ||
buttonName: 'Launch AirFlow' | ||
altName: "Airflow logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"Apache Airflow is a workflow automation and scheduling system that can be used to manage data pipelines", | ||
buttonName: "Launch AirFlow", | ||
}, | ||
{ | ||
img: imgArgo, | ||
altName: 'Argo logo', | ||
link: 'http://argo-portal-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/workflows', | ||
description: 'Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes', | ||
buttonName: 'Launch Argo' | ||
altName: "Argo logo", | ||
link: "http://argo-portal-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/workflows", | ||
description: | ||
"Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes", | ||
buttonName: "Launch Argo", | ||
}, | ||
{ | ||
img: imgSeldon, | ||
altName: 'Seldon logo', | ||
link: 'https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login', | ||
description: 'The Seldon orchestrates all ML deployments providing functionality for monitoring and operations of ML systems', | ||
buttonName: 'Launch Seldon' | ||
} | ||
|
||
]; | ||
altName: "Seldon logo", | ||
link: "https://jupyterhub-odhdemo.apps.hmf.q7z3.p1.openshiftapps.com/hub/login", | ||
description: | ||
"The Seldon orchestrates all ML deployments providing functionality for monitoring and operations of ML systems", | ||
buttonName: "Launch Seldon", | ||
}, | ||
]; | ||
|
||
function Launcher() { | ||
function Launcher() { | ||
return ( | ||
<PageSection variant={PageSectionVariants.light}> | ||
<Grid hasGutter className="gridItem"> | ||
{odhApps.map(a => <GridItem span={12} sm={12} md={6} lg={4} xl={3} key={a.altName}><OdhAppCard img={a.img} link={a.link} description={a.description} buttonName={a.buttonName} altName={a.altName}/></GridItem>)} | ||
</Grid> | ||
<Grid hasGutter className="gridItem"> | ||
{odhApps.map((a) => ( | ||
<GridItem span={12} sm={12} md={6} lg={4} xl={3} key={a.altName}> | ||
<OdhAppCard | ||
img={a.img} | ||
link={a.link} | ||
description={a.description} | ||
buttonName={a.buttonName} | ||
altName={a.altName} | ||
/> | ||
</GridItem> | ||
))} | ||
</Grid> | ||
</PageSection> | ||
)} | ||
); | ||
} | ||
|
||
export default Launcher; | ||
export default Launcher; |
Oops, something went wrong.