Skip to content

Commit a9102fd

Browse files
Patrick Schustertobifalk
Patrick Schuster
authored andcommitted
ui: Add Plotly graph import function for replay
Signed-off-by: Tobias Falkenstein <[email protected]>
1 parent 4ee6475 commit a9102fd

15 files changed

+5541
-548
lines changed

ui/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Prepare production build image
2-
FROM node:13.8.0-alpine3.11 AS production
2+
FROM node:14.16.1-alpine3.11 AS production
33

44
# Configure yarn
55
RUN yarn config set strict-ssl false
@@ -8,7 +8,7 @@ RUN yarn config set strict-ssl false
88
RUN yarn global add serve
99

1010
# Create build image
11-
FROM node:13.8.0-alpine3.11 AS base
11+
FROM node:14.16.1-alpine3.11 AS base
1212

1313
# Set working directory
1414
RUN mkdir /app
@@ -35,4 +35,4 @@ FROM production
3535
COPY --from=base /app/build /app
3636

3737
# Start server
38-
ENTRYPOINT ["serve", "-s", "app"]
38+
ENTRYPOINT ["serve", "-s", "-p", "5000", "app"]

ui/LICENSE-3RD-PARTY.txt

+1,902-68
Large diffs are not rendered by default.

ui/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
CLOE_ROOT := ..
5-
CLOE_VERSION := $(shell $(MAKE) -s -C ../ -f Makefile.package info-version)
5+
CLOE_VERSION := $(shell sed -rn "s/^ *\"version\": *\"(.*)\".*$$/\1/p" package.json)
66

77
HAS_GIT := $(shell [ -d ${CLOE_ROOT}/.git ] && echo "true")
88
ifeq (${HAS_GIT},true)
@@ -29,6 +29,8 @@ DOCKER_IMAGE := ${IMAGE_BASE}:${IMAGE_VERSION}
2929
DOCKER_RUN_ARGS := -p=5000:5000
3030
DOCKER_CONTEXT := .
3131

32+
CONTAINER_NAME := cloe-ui
33+
3234
.PHONY: help
3335
.DEFAULT: help
3436
help:
@@ -53,4 +55,4 @@ image:
5355
docker tag ${DOCKER_IMAGE} ${DOCKER_IMAGE}
5456

5557
run:
56-
docker run --rm ${DOCKER_RUN_ARGS} ${DOCKER_IMAGE}
58+
docker run --rm --name=${CONTAINER_NAME} ${DOCKER_RUN_ARGS} ${DOCKER_IMAGE}

ui/package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloe-ui",
3-
"version": "0.16.0",
3+
"version": "0.18.0-nightly-2021-11-10",
44
"cloe-compatibility": "0.16",
55
"license": "Apache-2.0",
66
"private": true,
@@ -16,8 +16,8 @@
1616
"jsonpath": "^1.0.2",
1717
"less": "^3.9.0",
1818
"mathjs": "^7.5.1",
19-
"node-sass": "^4.12.0",
20-
"pako": "^2.0.3",
19+
"node-sass": "^4.14.0",
20+
"plotly.js": "^2.2.1",
2121
"randomcolor": "^0.5.4",
2222
"react": "^16.8.6",
2323
"react-beautiful-dnd": "^11.0.4",
@@ -28,7 +28,8 @@
2828
"react-scripts": "^3.0.1",
2929
"react-scroll": "^1.7.12",
3030
"react-switch": "^5.0.1",
31-
"serve": "^11.2.0",
31+
"serve": "^13.0.2",
32+
"socket.io-client": "^4.1.3",
3233
"three": "^0.125.2",
3334
"three-orbit-controls": "^82.1.0",
3435
"three-spritetext": "^1.5.2"
@@ -98,5 +99,6 @@
9899
"arrowParens": "always",
99100
"semi": true,
100101
"tabWidth": 2
101-
}
102-
}
102+
},
103+
"proxy": "http://localhost:4000"
104+
}

ui/public/plotly.min.js

+58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)