Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
13927b8
Set Docker Compose project name.
mkrausko-cisco Nov 7, 2019
34baf40
jarouch-enzyme-jest The first initial work for testing
cxn-jpirko Sep 17, 2019
31723cc
jarouch-enzyme-jest snapshot for testing PlanetsContent
cxn-jpirko Sep 17, 2019
2225001
jarouch-enzyme-jest fix prettier and eslint
cxn-jpirko Sep 17, 2019
9ad3f67
Initial switch to styled-components; introduce SatellitesHeader compo…
mkrauskopf Sep 22, 2019
457949f
Migrate global styles to styled-components
mkrauskopf Sep 22, 2019
c5a71e1
TableComponent abstract class.
mkrauskopf Sep 22, 2019
4b5eb35
More works on styling
mkrauskopf Sep 22, 2019
c7eaae1
Upper-cased styled components; update the snapshot
mkrauskopf Sep 23, 2019
6684349
Upgrade to latest Material UI
mkrauskopf Sep 24, 2019
80f2318
Introduce MenuButton compoennt; improve styling code for headers
mkrauskopf Sep 24, 2019
8945ff4
Add @types/enzyme
mkrauskopf Sep 25, 2019
59007e4
Migre '.unit' CSS to styled components; + minor tweaks
mkrauskopf Sep 25, 2019
1a5824e
Fix React Router warnings about 'ForwardRef'. Upgrade/fix dependencies.
mkrauskopf Oct 2, 2019
2994fe4
Introduce separate components for external link and route buttons.
mkrauskopf Oct 3, 2019
c23607f
Fix location for PlanetsContent test.
mkrauskopf Oct 3, 2019
b4da2f7
Upgrade to React Scripts 3.2.0
mkrauskopf Oct 4, 2019
30e285d
Cool GitHub icon.
mkrauskopf Oct 6, 2019
6427dc3
sqash commits for transformation Homepage and Datasets page
cxn-jpirko Oct 27, 2019
4e5c5ee
Common style for Contents; lint & prettier fixes.
mkrauskopf Oct 27, 2019
c8a7842
Fix styling of Planets & Satellites header.
mkrauskopf Oct 29, 2019
7b52ef3
Fix the test snapshot for PlanetsContent.
mkrauskopf Oct 30, 2019
aa25858
Initial Dockerization.
mkrauskopf Oct 31, 2019
622b68a
Make Solar System table main page. Move the former one to About section.
mkrauskopf Nov 1, 2019
f4a266a
Introduce Docker Compose for easier usage.
mkrauskopf Nov 2, 2019
c971542
Isolate AboutPage component.
mkrauskopf Nov 2, 2019
bd198b0
Isolate DatasetsPage component.
mkrauskopf Nov 3, 2019
1dac545
Disable ESLint problem. Not sure how to fix that now.
mkrauskopf Nov 3, 2019
e9fbf4d
Isolate SolarSystemPage component.
mkrauskopf Nov 3, 2019
b9d928d
Move 'Page' styled component to 'pages' directory.
mkrauskopf Nov 3, 2019
ec22293
Move main 'App' component to 'components' directory.
mkrauskopf Nov 3, 2019
02ce5f0
Ged rid of index.less and generated index.css.
mkrauskopf Nov 3, 2019
dfa3282
Links styling tweaks.
mkrauskopf Nov 3, 2019
f3f7ccb
Style LinkButton in the same way as other links.
mkrauskopf Nov 3, 2019
9d62eb8
Bring back GitHub icon. Got lost, likely during rebase.
mkrauskopf Nov 3, 2019
7748576
Move React Virtualized styling to global styles.
mkrauskopf Nov 3, 2019
6fdf407
Get rid of last piece of LESS. Switch to Styled Components.
mkrauskopf Nov 3, 2019
52a4303
Merge remote-tracking branch 'upstream/master'
cxn-jpirko Nov 29, 2019
0ae1289
introduction-to-spacekit
cxn-jpirko Nov 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=ds-frontend
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-standard": "^4.0.0",
"prettier": "1.18.2"
"prettier": "1.18.2",
"spacekit": "https://github.com/typpo/spacekit"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,098 changes: 9,098 additions & 0 deletions public/solarSystemData/data/bsc5-short.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/solarSystemData/data/get_bsc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -e

pushd $(dirname $0) &>/dev/null

curl -o bsc5-short.json https://raw.githubusercontent.com/brettonw/YaleBrightStarCatalog/master/bsc5-short.json

python process_bsc.py bsc5-short.json > bsc_processed.json

#rm bsc5-short.json

popd &>/dev/null

218 changes: 218 additions & 0 deletions public/solarSystemData/data/planets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
[
{
"id": 1,
"name": "Mercury",
"mass": 0.33,
"diameter": 4879.0,
"density": 5427.0,
"gravity": 3.7,
"escapeVelocity": 4.3,
"rotationPeriod": 1407.6,
"lengthOfDay": 4222.6,
"distanceFromSun": 57.9,
"perihelion": 46.0,
"aphelion": 69.8,
"orbitalPeriod": 88.0,
"orbitalVelocity": 47.4,
"orbitalInclination": 7.0,
"orbitalEccentricity": 0.205,
"obliquityToOrbit": 0.034,
"meanTemperature": 167.0,
"surfacePressure": 0.0,
"numberOfMoons": 0,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 2,
"name": "Venus",
"mass": 4.87,
"diameter": 12104.0,
"density": 5243.0,
"gravity": 8.9,
"escapeVelocity": 10.4,
"rotationPeriod": -5832.5,
"lengthOfDay": 2802.0,
"distanceFromSun": 108.2,
"perihelion": 107.5,
"aphelion": 108.9,
"orbitalPeriod": 224.7,
"orbitalVelocity": 35.0,
"orbitalInclination": 3.4,
"orbitalEccentricity": 0.007,
"obliquityToOrbit": 177.4,
"meanTemperature": 464.0,
"surfacePressure": 92.0,
"numberOfMoons": 0,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 3,
"name": "Earth",
"mass": 5.97,
"diameter": 12756.0,
"density": 5514.0,
"gravity": 9.8,
"escapeVelocity": 11.2,
"rotationPeriod": 23.9,
"lengthOfDay": 24.0,
"distanceFromSun": 149.6,
"perihelion": 147.1,
"aphelion": 152.1,
"orbitalPeriod": 365.2,
"orbitalVelocity": 29.8,
"orbitalInclination": 0.0,
"orbitalEccentricity": 0.017,
"obliquityToOrbit": 23.4,
"meanTemperature": 15.0,
"surfacePressure": 1.0,
"numberOfMoons": 1,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 4,
"name": "Mars",
"mass": 0.642,
"diameter": 6792.0,
"density": 3933.0,
"gravity": 3.7,
"escapeVelocity": 5.0,
"rotationPeriod": 24.6,
"lengthOfDay": 24.7,
"distanceFromSun": 227.9,
"perihelion": 206.6,
"aphelion": 249.2,
"orbitalPeriod": 687.0,
"orbitalVelocity": 24.1,
"orbitalInclination": 1.9,
"orbitalEccentricity": 0.094,
"obliquityToOrbit": 25.2,
"meanTemperature": -65.0,
"surfacePressure": 0.01,
"numberOfMoons": 2,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 5,
"name": "Jupiter",
"mass": 1898.0,
"diameter": 142984.0,
"density": 1326.0,
"gravity": 23.1,
"escapeVelocity": 59.5,
"rotationPeriod": 9.9,
"lengthOfDay": 9.9,
"distanceFromSun": 778.6,
"perihelion": 740.5,
"aphelion": 816.6,
"orbitalPeriod": 4331.0,
"orbitalVelocity": 13.1,
"orbitalInclination": 1.3,
"orbitalEccentricity": 0.049,
"obliquityToOrbit": 3.1,
"meanTemperature": -110.0,
"surfacePressure": null,
"numberOfMoons": 79,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 6,
"name": "Saturn",
"mass": 568.0,
"diameter": 120536.0,
"density": 687.0,
"gravity": 9.0,
"escapeVelocity": 35.5,
"rotationPeriod": 10.7,
"lengthOfDay": 10.7,
"distanceFromSun": 1433.5,
"perihelion": 1352.6,
"aphelion": 1514.5,
"orbitalPeriod": 10747.0,
"orbitalVelocity": 9.7,
"orbitalInclination": 2.5,
"orbitalEccentricity": 0.057,
"obliquityToOrbit": 26.7,
"meanTemperature": -140.0,
"surfacePressure": null,
"numberOfMoons": 62,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 7,
"name": "Uranus",
"mass": 86.8,
"diameter": 51118.0,
"density": 1271.0,
"gravity": 8.7,
"escapeVelocity": 21.3,
"rotationPeriod": -17.2,
"lengthOfDay": 17.2,
"distanceFromSun": 2872.5,
"perihelion": 2741.3,
"aphelion": 3003.6,
"orbitalPeriod": 30589.0,
"orbitalVelocity": 6.8,
"orbitalInclination": 0.8,
"orbitalEccentricity": 0.046,
"obliquityToOrbit": 97.8,
"meanTemperature": -195.0,
"surfacePressure": null,
"numberOfMoons": 27,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 8,
"name": "Neptune",
"mass": 102.0,
"diameter": 49528.0,
"density": 1638.0,
"gravity": 11.0,
"escapeVelocity": 23.5,
"rotationPeriod": 16.1,
"lengthOfDay": 16.1,
"distanceFromSun": 4495.1,
"perihelion": 4444.5,
"aphelion": 4545.7,
"orbitalPeriod": 59800.0,
"orbitalVelocity": 5.4,
"orbitalInclination": 1.8,
"orbitalEccentricity": 0.011,
"obliquityToOrbit": 28.3,
"meanTemperature": -200.0,
"surfacePressure": null,
"numberOfMoons": 14,
"hasRingSystem": false,
"hasGlobalMagneticField": false
},
{
"id": 9,
"name": "Pluto",
"mass": 0.0146,
"diameter": 2370.0,
"density": 2095.0,
"gravity": 0.7,
"escapeVelocity": 1.3,
"rotationPeriod": -153.3,
"lengthOfDay": 153.3,
"distanceFromSun": 5906.4,
"perihelion": 4436.8,
"aphelion": 7375.9,
"orbitalPeriod": 90560.0,
"orbitalVelocity": 4.7,
"orbitalInclination": 17.2,
"orbitalEccentricity": 0.244,
"obliquityToOrbit": 122.5,
"meanTemperature": -225.0,
"surfacePressure": 1.0E-5,
"numberOfMoons": 5,
"hasRingSystem": false,
"hasGlobalMagneticField": false
}
]
24 changes: 24 additions & 0 deletions public/solarSystemData/data/process_bsc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python

import json
import sys

from astropy import units as u
from astropy.coordinates import Angle

lib = []
with open(sys.argv[1], 'r') as f:
lib = json.loads(f.read())

entries = []
for star in lib:
ra = float(Angle(star['RA']).to_string(decimal=True))
dec = float(Angle(star['Dec']).to_string(decimal=True))
if 'K' in star:
k = int(star['K'])
else:
k = -1
v = float(star['V'])
entries.append('[%f,%f,%d,%f]' % (ra, dec, k, v))

print '[%s]' % ',\n'.join(entries)
Loading