diff --git a/docker/Dockerfile b/docker/Dockerfile index 9df71a89..dabadbaf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,6 +2,9 @@ FROM node:buster AS base EXPOSE 8080 +RUN apt-get update +RUN apt-get install -y zip + COPY start-npm /usr/local/bin/start-npm RUN chmod +x /usr/local/bin/start-npm diff --git a/docker/run b/docker/run index f80a9d68..319be3f3 100755 --- a/docker/run +++ b/docker/run @@ -7,6 +7,8 @@ if [ $# -gt 0 ]; then docker-compose restart "$2" elif [ "$1" == "bash" ]; then docker exec -it "$APP_NAME-stack-$2" bash + elif [ "$1" == "npm-build" ]; then + docker exec "$APP_NAME-stack-npm" npm run build else docker-compose "$@" fi diff --git a/docker/start-npm b/docker/start-npm index 301c11b6..754492ed 100644 --- a/docker/start-npm +++ b/docker/start-npm @@ -1,3 +1,5 @@ #!/usr/bin/env bash -npm install +if [ ! -d 'node_modules' ]; then + npm ci +fi npm run serve diff --git a/src/components/panels/MiscellaneousPanel.vue b/src/components/panels/MiscellaneousPanel.vue index e03880f4..c9c01292 100644 --- a/src/components/panels/MiscellaneousPanel.vue +++ b/src/components/panels/MiscellaneousPanel.vue @@ -23,7 +23,7 @@ Print Settings - + @@ -65,6 +65,6 @@ ...mapGetters([ 'printer/getMiscellaneous', ]), - }, + } } diff --git a/src/components/panels/Settings/LimitsPanel.vue b/src/components/panels/Settings/LimitsPanel.vue index dd0e07d1..da207d7e 100644 --- a/src/components/panels/Settings/LimitsPanel.vue +++ b/src/components/panels/Settings/LimitsPanel.vue @@ -5,13 +5,13 @@ mdi-speedometerMachine Limits - + - + - + - + @@ -33,11 +33,11 @@ current_accel: state => state.printer.toolhead.max_accel, current_accel_to_decel: state => state.printer.toolhead.max_accel_to_decel, current_square_corner_velocity: state => state.printer.toolhead.square_corner_velocity, - config: state => state.printer.configfile.config, - max_velocity: state => parseInt(state.printer.configfile.config.printer.max_velocity) || 0, - max_accel: state => parseInt(state.printer.configfile.config.printer.max_accel) || 0, - max_accel_to_decel: state => parseInt(state.printer.configfile.config.printer.max_accel_to_decel) || parseInt(state.printer.configfile.config.printer.max_accel) / 2, - max_square_corner_velocity: state => parseInt(state.printer.configfile.config.printer.square_corner_velocity) || 5, + config: state => state.printer.configfile.settings, + max_velocity: state => state.printer.configfile.settings.printer.max_velocity, + max_accel: state => state.printer.configfile.settings.printer.max_accel, + max_accel_to_decel: state => state.printer.configfile.settings.printer.max_accel_to_decel, + max_square_corner_velocity: state => state.printer.configfile.settings.printer.square_corner_velocity, }), }, watch: { diff --git a/src/inputs/ToolSlider.vue b/src/inputs/ToolSlider.vue index 356f76f3..b7e5fcbb 100644 --- a/src/inputs/ToolSlider.vue +++ b/src/inputs/ToolSlider.vue @@ -10,15 +10,27 @@ {{ label }} + + mdi-restart + - {{ value }} {{ unit }} + + {{ value }} {{ unit }} +