Skip to content
Snippets Groups Projects
Commit a4e501cd authored by Gareth Hughes's avatar Gareth Hughes
Browse files

Files needed for Batch analysis

parent 4119e269
Branches
No related tags found
1 merge request!89115 create batchapp
......@@ -6,6 +6,7 @@ import { BasketContextProvider } from "./contexts/BasketContext";
import { QueryContextProvider } from "./contexts/QueryContext";
import { IVOAContextProvider } from "./contexts/IVOAContext";
import { IDAContextProvider } from "./contexts/IDAContext";
import { BATCHContextProvider } from "./contexts/BATCHContext";
import { MAQContextProvider } from "./contexts/MAQContext";
// This is the App, only application global stuff goes here, like the global state provider.
......
.ida h2 {
color:gray;
}
.ida span {
overflow-wrap: break-word;
}
.ida ul {
counter-reset: li;
list-style: none;
padding: 0;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.workflow-li, .facility-li {
margin-bottom:20px;
width:60%;
border: 1px solid #ccc!important;
border-radius: 4px;
padding:15px;
}
.ida {
margin:50px;
width: 95%;
}
.ida .input-contain{
position: relative;
}
.search-large {
height: 5rem;
width: 60%;
border: 2px solid black;
border-radius: 1rem;
margin-bottom:30px;
}
.ida .search-large:focus{
outline: none;
border-color: blue;
}
.ida .search-large:focus + .placeholder-text .text, :not(input[value=""]) + .placeholder-text .text{
background-color: white;
font-size: 1.1rem;
color: black;
transform: translate(0, -170%);
}
.ida .search-large:focus + .placeholder-text .text{
border-color: blueviolet;
color: blue;
}
.ida .placeholder-text{
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border: 3px solid transparent;
background-color: transparent;
pointer-events: none;
display: flex;
align-items: center;
}
.ida .text{
font-size: 1.4rem;
padding: 0 0.5rem;
background-color: transparent;
transform: translate(0);
color: black;
transition: transform 0.15s ease-out, font-size 0.15s ease-out, background-color 0.2s ease-out, color 0.15s ease-out;
}
.ida .search-large, .placeholder-text{
font-size: 1.4rem;
padding: 0 1.2rem;
}
.ida @media (max-width: 40rem) {
input{
width: 70vw;
}
}
.workflow-checkbox {
margin-right:10px;
}
/* Customize the label (the container) */
.ida .container {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
font-size: 22px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default checkbox */
.container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Create a custom checkbox */
.checkmark {
float:right;
height: 25px;
width: 25px;
background-color: #eee;
}
/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
background-color: #ccc;
}
/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
background-color: #2196F3;
}
/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
.container .checkmark:after {
margin-left:8px;
margin-top:2px;
width: 8px;
height: 15px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.next-button {
margin-left:20px;
margin-top:20px;
width:180px;
height:40px;
float:right;
}
.skip-button {
margin-left:20px;
margin-top:20px;
width:180px;
height:40px;
float:right;
}
.back-button {
margin-right:30px;
width:50px;
height:40px;
line-height:1px;
font-size:22px;
}
.deploy-buttons {
float:right;
margin-top:20px;
}
.deploy-button {
width:180px;
height:40px;
}
.more-button {
width:100px;
height:40px;
}
.search-buttons {
width: 60%;
margin-bottom:80px;
}
.advanced-search {
border: 1px solid black;
padding-bottom: 20px;
border-radius: 5px;
padding-right:30px;
padding-left:30px;
}
.search-button {
float:right;
margin-right:20px;
}
.form {
display: table;
border-collapse: collapse;
padding: 0;
margin: 0;
}
.advanced-form > li {
display: table-row;
}
.advanced-form > li > div {
display: table-cell;
padding-bottom: 5px;
}
.advanced-form > li > div:first-child {
padding-right: 10px;
}
.advanced-float-right {
float:right;
}
.advanced-form-div {
width:50%;
margin-left:200px;
}
// Temp
import React, { useState, useEffect, useContext } from "react";
import axios from "axios";
import { Button, Form, Container } from "react-bootstrap";
import { IDAContext } from "../../contexts/IDAContext";
import { GlobalContext } from "../../contexts/GlobalContext";
import "../../assets/Batch.css";
import LoadingSpinner from "../LoadingSpinner";
export default function Batch() {
return (
<div className="App">
<div>
<br/>
<br/>
<br/>
<h2>Batch Goes Here! </h2>
<br/>
<br/>
<br/>
</div>
</div>
);
}
import React, { createContext, useState, useEffect, useContext } from "react";
import axios from "axios";
import { GlobalContext } from "./GlobalContext";
export const BATCHContext = createContext();
export function BATCHContextProvider({ children }) {
const { api_host } = useContext(GlobalContext);
const [batchSystemURL, setIdaSystemURL] = useState();
const [workflowURL, setWorkflowURL] = useState();
const [batchsystemsURL, setBatchsystemsURL] = useState();
const [list_of_workflows, setList_of_workflows] = useState();
const [list_of_batchSystems, setList_of_batchSystems] = useState();
return (
<BATCHContext.Provider
value={{
batchSystemURL,
setIdaSystemURL,
workflowURL,
setWorkflowURL,
batchsystemsURL,
setBatchsystemsURL,
list_of_workflows,
setList_of_workflows,
list_of_batchSystems,
setList_of_batchSystems
}}
>
{children}
</BATCHContext.Provider>
)
}
......@@ -13,10 +13,12 @@ import { BrowserRouter as Router } from "react-router-dom";
import NavBar from "../components/NavBar";
import Rucio from "../components/services/Rucio";
import Interactive from "../components/services/Interactive";
import Batch from "../components/services/Batch";
import MyBasketPage from "../components/basket/MyBasketPage";
import { IVOAContextProvider } from "../contexts/IVOAContext";
import { IDAContext } from "../contexts/IDAContext";
import { BATCHContext } from "../contexts/BATCHContext";
import { AladinSimpleContextProvider } from "../contexts/AladinSimpleContext";
import { AladinAdvancedContextProvider } from "../contexts/AladinAdvancedContext";
......@@ -48,6 +50,9 @@ export default function Routes() {
<Route exact path="/interactive">
<Interactive />
</Route>
<Route exact path="/batch">
<Batch />
</Route>
/*
<Route exact path="/vo-query">
<Redirect to="/archives/ivoa/query" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment