Skip to content
Snippets Groups Projects
Commit 3ffdc83b authored by Nico Vermaas's avatar Nico Vermaas
Browse files

initial commit

parents
No related branches found
No related tags found
No related merge requests found
# production environment
FROM nginx:latest
COPY build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
# ADEX-GUI
Astron Data Explorer - GUI
\ No newline at end of file
This diff is collapsed.
{
"name": "alta-query",
"version": "0.9.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"@fortawesome/react-fontawesome": "^0.1.7",
"react": "^16.11.0",
"react-bootstrap": "^1.0.0-beta.14",
"react-data-table-component": "^3.9.0",
"react-dom": "^16.11.0",
"react-jsonschema-form": "^2.0.0-alpha.1",
"react-jsonschema-form-layout-grid": "^2.1.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.2.0",
"styled-components": "^4.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
\ No newline at end of file
public/favicon.ico

32.2 KiB

public/favicon64.ico

16.1 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="favicon" href="http:/uilennest.net/astroview/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="ADEX"
content="Astron ADEX"
/>
<link rel="apple-touch-icon" href="logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<title>Astron ADEX</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
public/logo192.png

8.38 KiB

public/logo512.png

22.4 KiB

{
"short_name": "ADEX",
"name": "Astron Data Explorer",
"homepage": "http://sdc.astron.nl/adex",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
.App {
text-align: center;
}
.App-logo {
height: 60vmin;
}
.App-header {
background-color: #282c34;
min-height: 90vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: inherit;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #09d3ac;
}
.Observations-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: inherit;
font-size: calc(10px + 2vmin);
color: white;
}
.card-img-top {
width: 30vh;
height: 15vw;
object-fit: cover;
background-color: darkgrey;
}
.card-dataproduct {
display: flex;
object-fit: cover;
background-color: lightgrey;
}
.card-query {
display: inline;
align-items: flex-start;
justify-content: inherit;
background-color: lightgrey;
}
\ No newline at end of file
import React from 'react';
import './App.css';
import { StoreProvider } from './Store';
import { reducer, initialState } from './reducers/GlobalStateReducer';
import Main from './components/Main';
// This is the App, only application global stuff goes here, like the global state provider.
export default function App () {
return (
<StoreProvider initialState={initialState} reducer={reducer}>
<Main />
</StoreProvider>
);
}
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
ReactDOM.unmountComponentAtNode(div);
});
import React, {createContext, useContext, useReducer} from 'react';
// based on https://medium.com/simply/state-management-with-react-hooks-and-context-api-at-10-lines-of-code-baf6be8302c
export const Store = createContext();
export const StoreProvider = ({reducer, initialState, children}) =>(
<Store.Provider value={useReducer(reducer, initialState)}>
{children}
</Store.Provider>
);
export const useGlobalReducer = () => useContext(Store)
src/assets/adex_logo.png

17.1 KiB

src/assets/alta_icon.ico

318 B

src/assets/alta_logo.jpg

42.7 KiB

src/assets/astron_data_logo.png

6.38 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment