diff --git a/README.md b/README.md index 3019c3f..b5bfcf2 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Development command: `dotnet watch --project Management.Web/` ### Enable Image Support -You must set the `ENABLE_FILE_SYNC` environment variable to true. Images need to be available in the `/app/public/` directory in the container so that nextjs will serve them as static files. Images can also be set to public URL's on the web. +You must set the `NEXT_PUBLIC_ENABLE_FILE_SYNC` environment variable to true. Images need to be available in the `/app/public/` directory in the container so that nextjs will serve them as static files. Images can also be set to public URL's on the web. When an image is detected by canvas manager, it will upload the image to the canvas course and keep a lookup table of the original path/url of the image to the canvas course URL. diff --git a/build.sh b/build.sh index ff1622a..7ab2dad 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash MAJOR_VERSION="2" -MINOR_VERSION="5" +MINOR_VERSION="6" VERSION="$MAJOR_VERSION.$MINOR_VERSION" TAG_FLAG=false diff --git a/run.sh b/run.sh index c4a79b2..e3930ea 100755 --- a/run.sh +++ b/run.sh @@ -4,7 +4,7 @@ docker run -it --rm \ --name canvas-manager-2 \ -e TZ=America/Denver \ -e NODE_ENV=development \ - -e NEXT_PUBLIC_ENABLE_FILE_SYNC=true \ + -e "NEXT_PUBLIC_ENABLE_FILE_SYNC=true" \ -u 1000:1000 \ -p 3000:3000 \ -w /app \ @@ -16,6 +16,7 @@ docker run -it --rm \ -v ~/projects/faculty/1405/2025_spring_alex:/app/storage/1405 \ -v ~/projects/faculty/3840_Telemetry/2025_spring_alex/modules:/app/storage/telemetry \ -v ~/projects/faculty/4620_Distributed/2025Spring/modules:/app/storage/distributed \ + -v ~/projects/public:/app/public/images/public \ -v ~/projects/facultyFiles:/app/public/images/facultyFiles \ node \ sh -c " diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index aa72cf1..c1c2dd1 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -51,6 +51,7 @@ export default function Modal({ : " bg-opacity-0 -z-50 ") } onClick={modalControl.closeModal} + // if mouse up here, do not, if mouse down then still do >