Web Dev Solutions

Catalin Mititiuc

From f021368a6697c6b064aa8da208cdf60265f4bfe0 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 4 May 2024 10:25:22 -0700 Subject: WIP: add fullscreen and download save abilities --- node | 11 ++++++++++- public/assets/images/test.svg | 4 ---- public/index.html | 6 ++++-- server.cjs | 3 +++ src/index.js | 27 +++++++++++++++++++++++---- test/integration/page.test.js | 32 ++++++++++++++++++++++++++++++-- test/map1.svg | 4 ++++ 7 files changed, 74 insertions(+), 13 deletions(-) delete mode 100644 public/assets/images/test.svg create mode 100644 test/map1.svg diff --git a/node b/node index aab7db9..49dd29e 100755 --- a/node +++ b/node @@ -1,4 +1,13 @@ #!/usr/bin/env bash -docker run --rm --init -it -v $PWD:/usr/src/app btroops node $@ +user_id=$(id -u) +image=btroops +if [[ $1 == run && $2 == test* ]] +then + port=3005 +else + port=8080 +fi + +docker run --rm --init -it -v $PWD:/usr/src/app -u $user_id:$user_id -p $port:$port $image node $@ diff --git a/public/assets/images/test.svg b/public/assets/images/test.svg deleted file mode 100644 index 49bfa9b..0000000 --- a/public/assets/images/test.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/public/index.html b/public/index.html index 7b45d65..ef33865 100644 --- a/public/index.html +++ b/public/index.html @@ -104,7 +104,7 @@ Loading... - +
Distance: - @@ -120,7 +120,9 @@ - + + + Prone: