Skip to content

Commit 66dc40e

Browse files
committed
Merge branch 'master' of github.com:isaacphysics/isaac-react-app into feature/fasttrack-graphics
2 parents b60c6e9 + 91ee011 commit 66dc40e

File tree

210 files changed

+10934
-3118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+10934
-3118
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_API_VERSION=v2.10.3
1+
REACT_APP_API_VERSION=v2.10.5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
bundle-stats-*.json
78

89
# testing
910
/coverage

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ FROM nginx:stable
33
ARG API_VERSION
44
ARG SUBJECT
55

6-
COPY ./build-$SUBJECT/ /usr/share/nginx/html
76
COPY nginx.conf /etc/nginx/nginx.conf
8-
EXPOSE 80
7+
COPY ./build-$SUBJECT/ /usr/share/nginx/html
98

109
LABEL apiVersion=$API_VERSION

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# isaac-cs-app
1+
# isaac-react-app
22

3-
[![Build Status](https://travis-ci.com/isaacphysics/isaac-cs-app.svg?branch=master)](https://travis-ci.com/isaacphysics/isaac-cs-app)
4-
[![codecov](https://codecov.io/gh/isaacphysics/isaac-cs-app/branch/master/graph/badge.svg)](https://codecov.io/gh/isaacphysics/isaac-cs-app)
5-
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/isaacphysics/isaac-cs-app.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/isaacphysics/isaac-cs-app/context:javascript)
3+
[![Build Status](https://travis-ci.com/isaacphysics/isaac-react-app.svg?branch=master)](https://travis-ci.com/isaacphysics/isaac-react-app)
4+
[![codecov](https://codecov.io/gh/isaacphysics/isaac-react-app/branch/master/graph/badge.svg)](https://codecov.io/gh/isaacphysics/isaac-react-app)
5+
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/isaacphysics/isaac-react-app.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/isaacphysics/isaac-react-app/context:javascript)
66

7-
`isaac-cs-app` is the front end interface for the [Isaac Computer Science project](https://isaaccomputerscience.org/about) and, soon, the [Isaac Physics project](https://isaacphysics.org/about). Together with [`isaac-api`](https://github.com/ucam-cl-dtg/isaac-api), it forms the core stack of the Isaac platform.
7+
`isaac-react-app` is the front end interface for the [Isaac Computer Science project](https://isaaccomputerscience.org/about) and, soon, the [Isaac Physics project](https://isaacphysics.org/about). Together with [`isaac-api`](https://github.com/ucam-cl-dtg/isaac-api), it forms the core stack of the Isaac platform.
88

99
The web interface is a [React app](https://github.com/facebook/create-react-app), served by [nginx](https://nginx.org/en/) in [Docker](https://www.docker.com/).
1010
The front-end application was initially generated from [create-react-app](https://github.com/facebook/create-react-app).

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e # Exit on failure
44

55
if test -z "$1"; then
6-
read -p "isaac-cs-app version to build (e.g. v1.3.0 or ['master']): " VERSION_TO_DEPLOY
6+
read -p "isaac-react-app version to build (e.g. v1.3.0 or ['master']): " VERSION_TO_DEPLOY
77
VERSION_TO_DEPLOY=${VERSION_TO_DEPLOY:-master}
88
else
99
VERSION_TO_DEPLOY="$1"
@@ -17,8 +17,8 @@ rm -rf $BUILD_DIR
1717
mkdir -p $BUILD_DIR
1818
cd $BUILD_DIR
1919

20-
git clone -b $VERSION_TO_DEPLOY --depth 1 https://github.com/isaacphysics/isaac-cs-app.git
21-
cd isaac-cs-app
20+
git clone -b $VERSION_TO_DEPLOY --depth 1 https://github.com/isaacphysics/isaac-react-app.git
21+
cd isaac-react-app
2222

2323
# Determine segue version to use. Honest.
2424
if [[ $VERSION_TO_DEPLOY == v* ]]; then
@@ -45,7 +45,7 @@ docker push "docker.isaacscience.org/isaac-cs-app:${VERSION_TO_DEPLOY}"
4545
docker push "docker.isaacscience.org/isaac-phy-app:${VERSION_TO_DEPLOY}"
4646

4747
cd ..
48-
rm -rf isaac-cs-app
48+
rm -rf isaac-react-app
4949

5050
git clone -b $SEGUE_VERSION --depth 1 https://github.com/isaacphysics/isaac-api.git
5151
cd isaac-api

config/env.js

Lines changed: 0 additions & 93 deletions
This file was deleted.

config/paths.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

config/webpack.config.common.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ module.exports = (isProd) => {
1515
return {
1616
mode: isProd ? "production" : "development",
1717

18+
devServer: {
19+
headers: {
20+
"Content-Security-Policy-Report-Only": "default-src 'self' https://cdn.isaacphysics.org https://cdn.isaaccomputerscience.org localhost:8080 https://www.google-analytics.com https://maps.googleapis.com; object-src 'none'; frame-src 'self' https://anvil.works https://*.anvil.app https://www.youtube-nocookie.com; img-src 'self' localhost:8080 data: https://cdn.isaacphysics.org https://cdn.isaaccomputerscience.org https://www.google-analytics.com https://i.ytimg.com https://maps.googleapis.com https://maps.gstatic.com; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://cdn.isaacphysics.org https://cdn.isaaccomputerscience.org https://fonts.gstatic.com;",
21+
"Feature-Policy": "geolocation 'none'; camera 'none'; microphone 'none'; accelerometer 'none';",
22+
"X-Clacks-Overhead": "GNU Terry Pratchett",
23+
},
24+
},
25+
1826
output: {
1927
publicPath: "/",
2028
pathinfo: !isProd,
@@ -52,7 +60,7 @@ module.exports = (isProd) => {
5260
],
5361
},
5462
{
55-
test: /node_modules[\/\\](query-string|split-on-first|strict-uri-encode)[\/\\].*\.js$/,
63+
test: /node_modules[\/\\](query-string|split-on-first|strict-uri-encode|d3.*)[\/\\].*\.js$/,
5664
use: [
5765
{
5866
loader: 'babel-loader',

config/webpack.config.cs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ module.exports = env => {
3131
new CopyWebpackPlugin([{
3232
from: resolve('public/manifest-cs.json'),
3333
to: 'manifest-cs.json',
34+
}, {
35+
from: resolve('public/unsupported_browsers/unsupported-cs.html'),
36+
to: 'unsupported_browser.html',
37+
}, {
38+
from: resolve('public/unsupported_browsers/unsupported-cs.js'),
39+
to: 'unsupported_browser.js',
3440
}]),
3541
],
3642
};

0 commit comments

Comments
 (0)