From 7b1ff60adc0abffd54e3db43d812a86f898b2981 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 09:11:02 +0100 Subject: [PATCH 001/114] new docker-compose --- .gitignore | 7 +- docker-compose.yml | 21 +++++ docker/Dockerfile | 69 ++++++++++++++++ docker/config/moonraker.conf.example | 14 ++++ docker/config/printer.cfg.example | 117 +++++++++++++++++++++++++++ docker/linux.config | 25 ++++++ docker/run | 8 ++ docker/simulavr.config | 50 ++++++++++++ docker/start-container | 6 ++ package-lock.json | 86 ++++++++++++++++---- 10 files changed, 387 insertions(+), 16 deletions(-) create mode 100644 docker-compose.yml create mode 100644 docker/Dockerfile create mode 100644 docker/config/moonraker.conf.example create mode 100644 docker/config/printer.cfg.example create mode 100644 docker/linux.config create mode 100755 docker/run create mode 100644 docker/simulavr.config create mode 100644 docker/start-container diff --git a/.gitignore b/.gitignore index 58d00568..f472abc9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,10 @@ temp .version .versions .changelog +.idea package-lock.json -*.local \ No newline at end of file +*.local +docker/gcode +docker/logs +docker/config/*.cfg +docker/config/*.conf diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..97a57694 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.8" +services: + application: + build: + context: ./docker + dockerfile: Dockerfile + image: mainsail-stack/1 + volumes: + - ./:/home/node/mainsail + - ./docker/config:/home/node/printer_config + - ./docker/logs:/tmp/logs + - ./docker/gcode:/home/node/gcode + container_name: ${APP_NAME}-stack + ports: + - 8080:8080 + - 7125:7125 + networks: + - dev_net +networks: + dev_net: + driver: bridge diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..5d74c9ab --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,69 @@ +FROM node:buster AS base + +RUN apt-get update +RUN apt-get install -y sudo cmake swig git virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0 +RUN mkdir /src +WORKDIR /src +RUN wget http://download.savannah.nongnu.org/releases/simulavr/libsim_1.1.0_amd64.deb +RUN apt install /src/libsim_1.1.0_amd64.deb +#RUN wget http://download.savannah.nongnu.org/releases/simulavr/simulavr_1.1.0_amd64.deb +#RUN apt install /src/simulavr_1.1.0_amd64.deb +#RUN wget http://download.savannah.nongnu.org/releases/simulavr/python3-simulavr_1.1.0_amd64.deb +#RUN apt install /src/python3-simulavr_1.1.0_amd64.deb + +COPY start-container /usr/local/bin/start-container +RUN chmod +x /usr/local/bin/start-container +RUN echo 'node ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/node && \ + chown node:node -R ./ +RUN ln -s /bin/true /bin/systemctl +USER node +WORKDIR /home/node +RUN git clone https://github.com/Arksine/moonraker +WORKDIR /home/node/moonraker +RUN sed -E 's/check_klipper\(\)/check_klipper() { return 0; }\nold()/' /home/node/moonraker/scripts/install-moonraker.sh > /home/node/moonraker/scripts/install-moonraker2.sh +RUN chmod +x /home/node/moonraker/scripts/install-moonraker2.sh +RUN /home/node/moonraker/scripts/install-moonraker2.sh +WORKDIR /home/node +RUN git clone https://github.com/KevinOConnor/klipper +WORKDIR /home/node/klipper +COPY simulavr.config /home/node/klipper/.config +RUN make +RUN cp /home/node/klipper/out/klipper.elf /home/node/klipper/simulavr.elf +RUN rm /home/node/klipper/.config +COPY linux.config /home/node/klipper/.config +RUN make clean +RUN make + +WORKDIR /home/node/ +RUN git clone https://git.savannah.nongnu.org/git/simulavr.git +WORKDIR /home/node/simulavr +RUN make python +RUN make build + +#RUN groupadd --force -g 1000 pi +#RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1000 pi + + +RUN chmod +x /home/node/klipper/scripts/install-debian.sh +RUN /home/node/klipper/scripts/install-debian.sh +RUN sudo rm -f /bin/systemctl + +FROM base + +#RUN mkdir /home/node/printer_config +#RUN mkdir /home/node/gcode + + +EXPOSE 8080 + + +#COPY config/printer.cfg /home/node/printer_config/printer.cfg +#COPY config/moonraker.conf /home/node/printer_config/moonraker.conf + +#RUN sudo chown node:node -hR /home/node/printer_config +#RUN sudo chown node:node -hR /home/node/gcode +#RUN sudo chown node:node -hR /tmp/logs + +WORKDIR /home/node/mainsail + +ENTRYPOINT ["start-container"] diff --git a/docker/config/moonraker.conf.example b/docker/config/moonraker.conf.example new file mode 100644 index 00000000..3e6507f7 --- /dev/null +++ b/docker/config/moonraker.conf.example @@ -0,0 +1,14 @@ +# moonraker.conf + +[server] +host: 0.0.0.0 +port: 7125 +enable_debug_logging: True +config_path: /home/node/printer_config/ + +[authorization] +enabled: True +trusted_clients: + 0.0.0.0/0 +cors_domains: + * diff --git a/docker/config/printer.cfg.example b/docker/config/printer.cfg.example new file mode 100644 index 00000000..e1fbebd9 --- /dev/null +++ b/docker/config/printer.cfg.example @@ -0,0 +1,117 @@ +[virtual_sdcard] +path: ~/gcode + +[pause_resume] +[display_status] + +[mcu] +serial: /tmp/pseudoserial +pin_map: arduino +baud: 250000 + +[stepper_x] +step_pin: PD7 +dir_pin: !PC5 +enable_pin: !PD6 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PC2 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_y] +step_pin: PC6 +dir_pin: !PC7 +enable_pin: !PD6 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PC3 +position_endstop: 0 +position_max: 235 +homing_speed: 50 + +[stepper_z] +step_pin: PB3 +dir_pin: PB2 +enable_pin: !PA5 +microsteps: 16 +rotation_distance: 8 +endstop_pin: ^PC4 +position_endstop: 0.0 +position_max: 250 + +[extruder] +max_extrude_only_distance: 100.0 +step_pin: PB1 +dir_pin: !PB0 +enable_pin: !PD6 +microsteps: 16 +rotation_distance: 33.683 +nozzle_diameter: 0.400 +filament_diameter: 1.750 +heater_pin: PD5 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PA7 +control: pid +# tuned for stock hardware with 200 degree Celsius target +pid_Kp: 21.527 +pid_Ki: 1.063 +pid_Kd: 108.982 +min_temp: 0 +max_temp: 250 +min_extrude_temp: 50 + +[heater_bed] +heater_pin: PD4 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PA6 +control: pid +# tuned for stock hardware with 50 degree Celsius target +pid_Kp: 54.027 +pid_Ki: 0.770 +pid_Kd: 948.182 +min_temp: 0 +max_temp: 130 + +[fan] +pin: PB4 + +[heater_fan nozzle_fan] +pin: PB5 +off_below: 0.0 +shutdown_speed: 1.0 +max_power: 1.0 + +[controller_fan mcu_fan] +pin: PB6 +off_below: 0.2 +shutdown_speed: 1.0 +max_power: 1.0 + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +#[display] +#lcd_type: st7920 +#cs_pin: PA3 +#sclk_pin: PA1 +#sid_pin: PC1 +#encoder_pins: ^PD2, ^PD3 +#click_pin: ^!PC0 + +# The print bed can move so far to the front, that the nozzle can reach the +# plastic cover of the print bed heater cable (only when the bed is moved by +# hand). By homing the Y axis before the X axis, it is ensured the nozzle will +# not melt through the plastic part. +# BEWARE: You will lose the ability to home axes individually. The printer will +# always home all axes for every G28 command. +#[homing_override] +#gcode: +# G28 Y0 +# G28 X0 +# G28 Z0 diff --git a/docker/linux.config b/docker/linux.config new file mode 100644 index 00000000..92f7c633 --- /dev/null +++ b/docker/linux.config @@ -0,0 +1,25 @@ +CONFIG_LOW_LEVEL_OPTIONS=y +# CONFIG_MACH_AVR is not set +# CONFIG_MACH_ATSAM is not set +# CONFIG_MACH_ATSAMD is not set +# CONFIG_MACH_LPC176X is not set +# CONFIG_MACH_STM32 is not set +# CONFIG_MACH_PRU is not set +CONFIG_MACH_LINUX=y +# CONFIG_MACH_SIMU is not set +CONFIG_STEP_DELAY=2 +CONFIG_BOARD_DIRECTORY="linux" +CONFIG_CLOCK_FREQ=50000000 +CONFIG_LINUX_SELECT=y +CONFIG_USB_VENDOR_ID=0x1d50 +CONFIG_USB_DEVICE_ID=0x614e +CONFIG_USB_SERIAL_NUMBER="12345" +# CONFIG_CUSTOM_STEP_DELAY is not set +CONFIG_INITIAL_PINS="" +CONFIG_HAVE_GPIO=y +CONFIG_HAVE_GPIO_ADC=y +CONFIG_HAVE_GPIO_SPI=y +CONFIG_HAVE_GPIO_I2C=y +CONFIG_HAVE_GPIO_HARD_PWM=y +CONFIG_HAVE_GPIO_BITBANGING=y +CONFIG_INLINE_STEPPER_HACK=y diff --git a/docker/run b/docker/run new file mode 100755 index 00000000..ec41c8f6 --- /dev/null +++ b/docker/run @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +export APP_NAME=mainsail + +export USERID=${USERID:-$UID} +export GRPID=${GRPID:-$(id -g)} + +docker-compose "$@" diff --git a/docker/simulavr.config b/docker/simulavr.config new file mode 100644 index 00000000..2cb3dfed --- /dev/null +++ b/docker/simulavr.config @@ -0,0 +1,50 @@ +CONFIG_LOW_LEVEL_OPTIONS=y +CONFIG_MACH_AVR=y +# CONFIG_MACH_ATSAM is not set +# CONFIG_MACH_ATSAMD is not set +# CONFIG_MACH_LPC176X is not set +# CONFIG_MACH_STM32 is not set +# CONFIG_MACH_PRU is not set +# CONFIG_MACH_LINUX is not set +# CONFIG_MACH_SIMU is not set +CONFIG_AVR_SELECT=y +CONFIG_STEP_DELAY=-1 +CONFIG_BOARD_DIRECTORY="avr" +# CONFIG_MACH_atmega2560 is not set +# CONFIG_MACH_atmega1280 is not set +# CONFIG_MACH_at90usb1286 is not set +# CONFIG_MACH_at90usb646 is not set +# CONFIG_MACH_atmega32u4 is not set +# CONFIG_MACH_atmega1284p is not set +CONFIG_MACH_atmega644p=y +# CONFIG_MACH_atmega328p is not set +# CONFIG_MACH_atmega328 is not set +# CONFIG_MACH_atmega168 is not set +CONFIG_MCU="atmega644p" +CONFIG_AVRDUDE_PROTOCOL="arduino" +# CONFIG_AVR_FREQ_16000000 is not set +CONFIG_AVR_FREQ_20000000=y +# CONFIG_AVR_FREQ_8000000 is not set +CONFIG_CLOCK_FREQ=20000000 +CONFIG_AVR_CLKPR=-1 +CONFIG_AVR_STACK_SIZE=256 +CONFIG_AVR_WATCHDOG=y +CONFIG_SERIAL=y +CONFIG_AVR_SERIAL_UART0=y +# CONFIG_AVR_SERIAL_UART1 is not set +CONFIG_SERIAL_PORT=0 +CONFIG_SIMULAVR=y +CONFIG_SERIAL_BAUD=250000 +CONFIG_USB_VENDOR_ID=0x1d50 +CONFIG_USB_DEVICE_ID=0x614e +CONFIG_USB_SERIAL_NUMBER="12345" +# CONFIG_CUSTOM_STEP_DELAY is not set +CONFIG_INITIAL_PINS="" +CONFIG_HAVE_GPIO=y +CONFIG_HAVE_GPIO_ADC=y +CONFIG_HAVE_GPIO_SPI=y +CONFIG_HAVE_GPIO_I2C=y +CONFIG_HAVE_GPIO_HARD_PWM=y +CONFIG_HAVE_GPIO_BITBANGING=y +CONFIG_HAVE_STRICT_TIMING=y +CONFIG_INLINE_STEPPER_HACK=y diff --git a/docker/start-container b/docker/start-container new file mode 100644 index 00000000..67608fe6 --- /dev/null +++ b/docker/start-container @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & +/home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds & +/home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf & +npm install +npm run serve diff --git a/package-lock.json b/package-lock.json index 439f71c4..2d595366 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,11 @@ { "name": "mainsail", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "mainsail", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { "axios": "^0.21.1", "core-js": "^3.8.2", @@ -2281,7 +2280,6 @@ "thread-loader": "^2.1.3", "url-loader": "^2.2.0", "vue-loader": "^15.9.2", - "vue-loader-v16": "npm:vue-loader@^16.1.0", "vue-style-loader": "^4.1.2", "webpack": "^4.0.0", "webpack-bundle-analyzer": "^3.8.0", @@ -2580,7 +2578,6 @@ "merge-source-map": "^1.1.0", "postcss": "^7.0.14", "postcss-selector-parser": "^6.0.2", - "prettier": "^1.18.2", "source-map": "~0.6.1", "vue-template-es2015-compiler": "^1.9.0" }, @@ -4311,7 +4308,6 @@ "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", - "fsevents": "~2.1.2", "glob-parent": "~5.1.0", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", @@ -6699,8 +6695,7 @@ "esprima": "^4.0.1", "estraverse": "^4.2.0", "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" + "optionator": "^0.8.1" }, "optionalDependencies": { "source-map": "~0.6.1" @@ -7811,9 +7806,75 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.11.tgz", "integrity": "sha512-+ux3lx6peh0BpvY0JebGyZoiR4D+oYzdPZMKJwkZ+sFkNJzpL7tXc/wehS49gUAxg3tmMHPHZkA8JU2rhhgDHw==", "bundleDependencies": [ - "node-pre-gyp" + "node-pre-gyp", + "abbrev", + "ansi-regex", + "aproba", + "are-we-there-yet", + "balanced-match", + "brace-expansion", + "chownr", + "code-point-at", + "concat-map", + "console-control-strings", + "core-util-is", + "debug", + "deep-extend", + "delegates", + "detect-libc", + "fs-minipass", + "fs.realpath", + "gauge", + "glob", + "has-unicode", + "iconv-lite", + "ignore-walk", + "inflight", + "inherits", + "ini", + "is-fullwidth-code-point", + "isarray", + "minimatch", + "minimist", + "minipass", + "minizlib", + "mkdirp", + "ms", + "needle", + "nopt", + "npm-bundled", + "npm-normalize-package-bin", + "npm-packlist", + "npmlog", + "number-is-nan", + "object-assign", + "once", + "os-homedir", + "os-tmpdir", + "osenv", + "path-is-absolute", + "process-nextick-args", + "rc", + "readable-stream", + "rimraf", + "safe-buffer", + "safer-buffer", + "sax", + "semver", + "set-blocking", + "signal-exit", + "string_decoder", + "string-width", + "strip-ansi", + "strip-json-comments", + "tar", + "util-deprecate", + "wide-align", + "wrappy", + "yallist" ], "dev": true, + "hasInstallScript": true, "optional": true, "dependencies": { "bindings": "^1.5.0", @@ -13516,9 +13577,6 @@ "version": "1.23.0", "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.23.0.tgz", "integrity": "sha512-c29LVsqOaLbBHuIbsTxaKENh1N2EQBOHaWv7gkHN4dgRbxSREqDnDbtFJYdpPauS4YCplMSNCABQ6Eeor69bAA==", - "dependencies": { - "clipboard": "^2.0.0" - }, "optionalDependencies": { "clipboard": "^2.0.0" } @@ -17589,8 +17647,7 @@ "dependencies": { "chokidar": "^3.4.1", "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0", - "watchpack-chokidar2": "^2.0.0" + "neo-async": "^2.5.0" }, "optionalDependencies": { "watchpack-chokidar2": "^2.0.0" @@ -17806,7 +17863,6 @@ "anymatch": "^2.0.0", "async-each": "^1.0.1", "braces": "^2.3.2", - "fsevents": "^1.2.7", "glob-parent": "^3.1.0", "inherits": "^2.0.3", "is-binary-path": "^1.0.0", From 7e471ab99503e992c308986d8584cc6ced79d862 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 10:02:30 +0100 Subject: [PATCH 002/114] fix default config for beeing able to "print" with simulavr --- .gitignore | 1 + docker/config/printer.cfg.example | 82 +++++++++++++++++++++++++++---- 2 files changed, 73 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index f472abc9..2903f32b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ docker/gcode docker/logs docker/config/*.cfg docker/config/*.conf +docker/*.json diff --git a/docker/config/printer.cfg.example b/docker/config/printer.cfg.example index e1fbebd9..8848211e 100644 --- a/docker/config/printer.cfg.example +++ b/docker/config/printer.cfg.example @@ -19,6 +19,7 @@ endstop_pin: ^PC2 position_endstop: 0 position_max: 235 homing_speed: 50 +homing_retract_dist: 0 [stepper_y] step_pin: PC6 @@ -30,6 +31,7 @@ endstop_pin: ^PC3 position_endstop: 0 position_max: 235 homing_speed: 50 +homing_retract_dist: 0 [stepper_z] step_pin: PB3 @@ -40,6 +42,7 @@ rotation_distance: 8 endstop_pin: ^PC4 position_endstop: 0.0 position_max: 250 +homing_retract_dist: 0 [extruder] max_extrude_only_distance: 100.0 @@ -53,11 +56,7 @@ filament_diameter: 1.750 heater_pin: PD5 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA7 -control: pid -# tuned for stock hardware with 200 degree Celsius target -pid_Kp: 21.527 -pid_Ki: 1.063 -pid_Kd: 108.982 +control: watermark min_temp: 0 max_temp: 250 min_extrude_temp: 50 @@ -66,11 +65,7 @@ min_extrude_temp: 50 heater_pin: PD4 sensor_type: EPCOS 100K B57560G104F sensor_pin: PA6 -control: pid -# tuned for stock hardware with 50 degree Celsius target -pid_Kp: 54.027 -pid_Ki: 0.770 -pid_Kd: 948.182 +control: watermark min_temp: 0 max_temp: 130 @@ -115,3 +110,70 @@ max_z_accel: 100 # G28 Y0 # G28 X0 # G28 Z0 + +[gcode_macro PAUSE] +rename_existing: BASE_PAUSE +default_parameter_X: 230 #edit to your park position +default_parameter_Y: 230 #edit to your park position +default_parameter_Z: 10 #edit to your park position +default_parameter_E: 1 #edit to your retract length +gcode: + SAVE_GCODE_STATE NAME=PAUSE_state + BASE_PAUSE + G91 + G1 E-{E} F2100 + G1 Z{Z} + G90 + G1 X{X} Y{Y} F6000 +[gcode_macro RESUME] +rename_existing: BASE_RESUME +default_parameter_E: 1 #edit to your retract length +gcode: + G91 + G1 E{E} F2100 + G90 + RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1 + BASE_RESUME +[gcode_macro CANCEL_PRINT] +rename_existing: BASE_CANCEL_PRINT +gcode: + TURN_OFF_HEATERS + CLEAR_PAUSE + SDCARD_RESET_FILE + BASE_CANCEL_PRINT + +[gcode_macro START_PRINT] +default_parameter_BED_TEMP: 103.3 +default_parameter_EXTRUDER_TEMP: 103.3 +gcode: +# Start bed heating + M140 S103.3 +# Use absolute coordinates + G90 +# Reset the G-Code Z offset (adjust Z offset if needed) + SET_GCODE_OFFSET Z=0.0 +# Home the printer + G28 +# Move the nozzle near the bed + G1 Z5 F3000 +# Move the nozzle very close to the bed + G1 Z0.15 F300 +# Wait for bed to reach temperature + M190 S103.3 +# Set and wait for nozzle to reach temperature + M109 S103.3 + +[gcode_macro END_PRINT] +gcode: +# Turn off bed, extruder, and fan + M140 S0 + M104 S0 + M106 S0 +# Move nozzle away from print while retracting + G91 + G1 X-2 Y-2 E-3 F300 +# Raise nozzle by 10mm + G1 Z10 F3000 + G90 +# Disable steppers + M84 From 81541d33f77cf44210814d612cd38a02a90a8d93 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 10:33:12 +0100 Subject: [PATCH 003/114] new respect off_below and max_power for fans --- .gitignore | 2 + package-lock.json | 452 +++++++------------ src/components/panels/MiscellaneousPanel.vue | 12 +- src/inputs/MiscellaneousSlider.vue | 14 +- src/store/printer/getters.js | 11 +- 5 files changed, 194 insertions(+), 297 deletions(-) diff --git a/.gitignore b/.gitignore index 2903f32b..feb8f665 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ docker/logs docker/config/*.cfg docker/config/*.conf docker/*.json + +docker/config/.mainsail.json diff --git a/package-lock.json b/package-lock.json index 2d595366..9a1f35ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7886,19 +7886,17 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -7907,19 +7905,17 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/are-we-there-yet": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -7929,19 +7925,17 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -7951,19 +7945,17 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz", "integrity": "sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -7972,37 +7964,33 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/debug": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "ms": "^2.1.1" } @@ -8011,10 +7999,9 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=4.0.0" } @@ -8023,19 +8010,17 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "Apache-2.0", - "optional": true, "bin": { "detect-libc": "bin/detect-libc.js" }, @@ -8047,10 +8032,9 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "minipass": "^2.6.0" } @@ -8059,19 +8043,17 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -8087,10 +8069,9 @@ "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -8110,19 +8091,17 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -8134,10 +8113,9 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "minimatch": "^3.0.4" } @@ -8146,10 +8124,9 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -8159,19 +8136,17 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/ini": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "engines": { "node": "*" } @@ -8180,10 +8155,9 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "number-is-nan": "^1.0.0" }, @@ -8195,19 +8169,17 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -8219,19 +8191,17 @@ "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/minipass": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -8241,10 +8211,9 @@ "version": "1.3.3", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "minipass": "^2.9.0" } @@ -8253,10 +8222,9 @@ "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "minimist": "0.0.8" }, @@ -8268,19 +8236,17 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/needle": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz", "integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -8297,10 +8263,9 @@ "version": "0.14.0", "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz", "integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "BSD-3-Clause", - "optional": true, "dependencies": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -8321,10 +8286,9 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "abbrev": "1", "osenv": "^0.1.4" @@ -8337,10 +8301,9 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "npm-normalize-package-bin": "^1.0.1" } @@ -8349,19 +8312,17 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/npm-packlist": { "version": "1.4.7", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.7.tgz", "integrity": "sha512-vAj7dIkp5NhieaGZxBJB8fF4R0078rqsmhJcAfXZ6O7JJhjhPK96n5Ry1oZcfLXgfun0GWTZPOxaEyqv8GBykQ==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -8371,10 +8332,9 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -8386,10 +8346,9 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8398,10 +8357,9 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8410,10 +8368,9 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "wrappy": "1" } @@ -8422,10 +8379,9 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8434,10 +8390,9 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8446,10 +8401,9 @@ "version": "0.1.5", "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -8459,10 +8413,9 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8471,19 +8424,17 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "optional": true, "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -8498,19 +8449,17 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/readable-stream": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -8525,10 +8474,9 @@ "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "glob": "^7.1.3" }, @@ -8540,37 +8488,33 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "bin": { "semver": "bin/semver" } @@ -8579,28 +8523,25 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safe-buffer": "~5.1.0" } @@ -8609,10 +8550,9 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -8626,10 +8566,9 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "ansi-regex": "^2.0.0" }, @@ -8641,10 +8580,9 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -8653,10 +8591,9 @@ "version": "4.4.13", "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -8674,19 +8611,17 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/fsevents/node_modules/wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, + "extraneous": true, "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "string-width": "^1.0.2 || 2" } @@ -8695,19 +8630,17 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/fsevents/node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, + "extraneous": true, "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/function-bind": { "version": "1.1.1", @@ -25927,32 +25860,28 @@ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "are-we-there-yet": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -25963,16 +25892,14 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -25983,48 +25910,42 @@ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.3.tgz", "integrity": "sha512-i70fVHhmV3DtTl6nqvZOnIjbY0Pe4kAUjwHj8z0zAdgBtYrJyYwLKCCuRBQ5ppkyL0AkN7HKRnETdmdp1zqNXw==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "code-point-at": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "debug": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "ms": "^2.1.1" } @@ -26034,32 +25955,28 @@ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "fs-minipass": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz", "integrity": "sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "minipass": "^2.6.0" } @@ -26069,16 +25986,14 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "gauge": { "version": "2.7.4", "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -26095,8 +26010,7 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -26111,16 +26025,14 @@ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -26130,8 +26042,7 @@ "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.3.tgz", "integrity": "sha512-m7o6xuOaT1aqheYHKf8W6J5pYH85ZI9w077erOzLje3JsB1gkafkAhHHY19dqjulgIZHFm32Cp5uNZgcQqdJKw==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "minimatch": "^3.0.4" } @@ -26141,8 +26052,7 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -26153,24 +26063,21 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "ini": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "number-is-nan": "^1.0.0" } @@ -26180,16 +26087,14 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "brace-expansion": "^1.1.7" } @@ -26199,16 +26104,14 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "minipass": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.9.0.tgz", "integrity": "sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -26219,8 +26122,7 @@ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", "integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "minipass": "^2.9.0" } @@ -26230,8 +26132,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "minimist": "0.0.8" } @@ -26241,16 +26142,14 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "needle": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz", "integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -26262,8 +26161,7 @@ "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz", "integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -26282,8 +26180,7 @@ "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -26294,8 +26191,7 @@ "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.1.1.tgz", "integrity": "sha512-gqkfgGePhTpAEgUsGEgcq1rqPXA+tv/aVBlgEzfXwA1yiUJF7xtEt3CtVwOjNYQOVknDk0F20w58Fnm3EtG0fA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "npm-normalize-package-bin": "^1.0.1" } @@ -26305,16 +26201,14 @@ "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz", "integrity": "sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "npm-packlist": { "version": "1.4.7", "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.7.tgz", "integrity": "sha512-vAj7dIkp5NhieaGZxBJB8fF4R0078rqsmhJcAfXZ6O7JJhjhPK96n5Ry1oZcfLXgfun0GWTZPOxaEyqv8GBykQ==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -26325,8 +26219,7 @@ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -26339,24 +26232,21 @@ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "wrappy": "1" } @@ -26366,24 +26256,21 @@ "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "osenv": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -26394,24 +26281,21 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -26424,8 +26308,7 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true } } }, @@ -26434,8 +26317,7 @@ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -26451,8 +26333,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "glob": "^7.1.3" } @@ -26462,56 +26343,49 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "signal-exit": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "safe-buffer": "~5.1.0" } @@ -26521,8 +26395,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -26534,8 +26407,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "ansi-regex": "^2.0.0" } @@ -26545,16 +26417,14 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "tar": { "version": "4.4.13", "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.13.tgz", "integrity": "sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -26570,16 +26440,14 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "bundled": true, - "dev": true, - "optional": true, + "extraneous": true, "requires": { "string-width": "^1.0.2 || 2" } @@ -26589,16 +26457,14 @@ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "bundled": true, - "dev": true, - "optional": true + "extraneous": true }, "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "bundled": true, - "dev": true, - "optional": true + "extraneous": true } } }, diff --git a/src/components/panels/MiscellaneousPanel.vue b/src/components/panels/MiscellaneousPanel.vue index fb3bd68c..30f3f31b 100644 --- a/src/components/panels/MiscellaneousPanel.vue +++ b/src/components/panels/MiscellaneousPanel.vue @@ -35,7 +35,17 @@
- + +
diff --git a/src/inputs/MiscellaneousSlider.vue b/src/inputs/MiscellaneousSlider.vue index f1383008..9ab10015 100644 --- a/src/inputs/MiscellaneousSlider.vue +++ b/src/inputs/MiscellaneousSlider.vue @@ -9,7 +9,7 @@ - mdi-fan + mdi-fan {{ convertName(this.name) }} {{ Math.round(value*100) }} % @@ -19,7 +19,7 @@ @@ -78,6 +78,16 @@ required: false, default: 1 }, + max: { + type: Number, + required: false, + default: 1.0 + }, + min: { + type: Number, + required: false, + default: 0.0 + } }, methods: { convertName: convertName, diff --git a/src/store/printer/getters.js b/src/store/printer/getters.js index 6415ea60..1e093593 100644 --- a/src/store/printer/getters.js +++ b/src/store/printer/getters.js @@ -233,6 +233,8 @@ export default { let power = 'speed' in value ? value.speed : ('value' in value ? value.value : 0) let pwm = controllable let scale = 1 + let off_below = 0.0 + let max_power = 1.0 if (nameSplit[0].toLowerCase() === "fan") scale = 255 @@ -253,6 +255,9 @@ export default { ) scale = state.configfile.config[key].scale } } + if (state.configfile.config[key].off_below) off_below = parseFloat(state.configfile.config[key].off_below) + + if (state.configfile.config[key].max_power) max_power = parseFloat(state.configfile.config[key].max_power) output.push({ name: name, @@ -262,12 +267,16 @@ export default { pwm: pwm, scale: scale, object: value, + off_below: off_below, + max_power: max_power, config: state.configfile.config[key] }) } } } + console.log(output); + return output.sort((a, b) => { if (a.type === "fan") return -1 if (b.type === "fan") return 1 @@ -508,4 +517,4 @@ export default { checkConfigMacroCancel: state => { return Object.keys(state.configfile.config).findIndex(key => key.toLowerCase() === 'gcode_macro cancel_print') !== -1; }, -} \ No newline at end of file +} From 9a84111fb3e7f0b7d92843cc26eb59e2bb2f5ba9 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 10:34:16 +0100 Subject: [PATCH 004/114] removed console.log --- src/store/printer/getters.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/store/printer/getters.js b/src/store/printer/getters.js index 1e093593..0c7d7bd9 100644 --- a/src/store/printer/getters.js +++ b/src/store/printer/getters.js @@ -275,8 +275,6 @@ export default { } } - console.log(output); - return output.sort((a, b) => { if (a.type === "fan") return -1 if (b.type === "fan") return 1 From a167a14f123d00a121ca873ae06ec9c910b464ae Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 11:04:42 +0100 Subject: [PATCH 005/114] new docs for development docker and standalone --- docs/development/docker.md | 43 ++++++++++++++++++++++++++++++++++ docs/development/index.md | 11 +++++++++ docs/development/standalone.md | 25 ++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 docs/development/docker.md create mode 100644 docs/development/index.md create mode 100644 docs/development/standalone.md diff --git a/docs/development/docker.md b/docs/development/docker.md new file mode 100644 index 00000000..2642a242 --- /dev/null +++ b/docs/development/docker.md @@ -0,0 +1,43 @@ +--- +layout: default +title: Docker +parent: Development +has_children: false +permalink: /development/docker +description: >- +Setup docker and docker-compose for quick full stack mainsail development with simulavr without any real printer +--- + +# {{ page.title }} +{{ page.description }} + +# Setup +Install docker and docker-compose on your desired machine. + +####Debian/Ubuntu +```shell +sudo apt install docker docker-compose +``` +####Mac +https://docs.docker.com/docker-for-mac/install/ +####Windows +https://docs.docker.com/docker-for-windows/install/ + +# Start +1. Look into the docker/config folder. Copy the ".example" without the "example ending". +2. Edit the configs to your likings. They are inital setup for a minimal setup environment with simulavr. +3. In the root directory of mainsail run +```shell +docker/run up +``` + +# Development +For development its sometimes needed to restart the simulavr process. +For this run: +```shell +docker exec -it mainsail-stack bash +``` +in the spawnin shell run: +```shell +~/restart-services.sh +``` diff --git a/docs/development/index.md b/docs/development/index.md new file mode 100644 index 00000000..6989a499 --- /dev/null +++ b/docs/development/index.md @@ -0,0 +1,11 @@ +--- +layout: default +title: Development +nav_order: 15 +has_children: true +permalink: /development +description: development guide +--- + +# {{ page.title }} +{{ page.description }} diff --git a/docs/development/standalone.md b/docs/development/standalone.md new file mode 100644 index 00000000..7ad5f4bd --- /dev/null +++ b/docs/development/standalone.md @@ -0,0 +1,25 @@ +--- +layout: default +title: Standalone +parent: Development +has_children: false +permalink: /development/standalone +description: >- +Setup the project and start developing with your local printer(s) +--- + +# {{ page.title }} +{{ page.description }} + +# Setup +Make a copy of the '.env.development.local.example' and omit the .example. +In the new file edit it to refect your desired printer: +```dotenv +VUE_APP_HOSTNAME=192.168.0.15 #for your printer with moonraker running on 192.168.0.15 +``` +In moonraker you need to add your local ip at the cors_domains: +```yaml +cors_domains: + http:// +``` +access the local running dev environment with `http://`. From 7c07db946dcfd4b4c1aab2de289670d64d97aded Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 14:52:09 +0100 Subject: [PATCH 006/114] fix composer with two containers now, added documentation and more docker/run commands --- docker-compose.yml | 24 ++++++--- docker/Dockerfile | 65 ++----------------------- docker/api/Dockerfile | 62 +++++++++++++++++++++++ docker/{ => api}/linux.config | 0 docker/{start-container => api/run-api} | 4 +- docker/{ => api}/simulavr.config | 0 docker/run | 15 ++++-- docker/start-npm | 3 ++ docs/development/docker.md | 11 ++--- 9 files changed, 104 insertions(+), 80 deletions(-) create mode 100644 docker/api/Dockerfile rename docker/{ => api}/linux.config (100%) rename docker/{start-container => api/run-api} (86%) rename docker/{ => api}/simulavr.config (100%) create mode 100644 docker/start-npm diff --git a/docker-compose.yml b/docker-compose.yml index 97a57694..f1c4d4e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,19 +1,31 @@ version: "3.8" services: + api: + build: + context: ./docker + dockerfile: api/Dockerfile + image: mainsail-stack-api/1 + volumes: + - ./docker/config:/home/node/printer_config + - ./docker/logs:/tmp/logs + - ./docker/gcode:/home/node/gcode + container_name: ${APP_NAME}-stack-api + ports: + - 7125:7125 + networks: + - dev_net application: build: context: ./docker dockerfile: Dockerfile - image: mainsail-stack/1 + image: mainsail-stack-npm/1 volumes: - ./:/home/node/mainsail - - ./docker/config:/home/node/printer_config - - ./docker/logs:/tmp/logs - - ./docker/gcode:/home/node/gcode - container_name: ${APP_NAME}-stack + container_name: ${APP_NAME}-stack-npm ports: - 8080:8080 - - 7125:7125 + depends_on: + - api networks: - dev_net networks: diff --git a/docker/Dockerfile b/docker/Dockerfile index 5d74c9ab..9df71a89 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,69 +1,12 @@ FROM node:buster AS base -RUN apt-get update -RUN apt-get install -y sudo cmake swig git virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0 -RUN mkdir /src -WORKDIR /src -RUN wget http://download.savannah.nongnu.org/releases/simulavr/libsim_1.1.0_amd64.deb -RUN apt install /src/libsim_1.1.0_amd64.deb -#RUN wget http://download.savannah.nongnu.org/releases/simulavr/simulavr_1.1.0_amd64.deb -#RUN apt install /src/simulavr_1.1.0_amd64.deb -#RUN wget http://download.savannah.nongnu.org/releases/simulavr/python3-simulavr_1.1.0_amd64.deb -#RUN apt install /src/python3-simulavr_1.1.0_amd64.deb - -COPY start-container /usr/local/bin/start-container -RUN chmod +x /usr/local/bin/start-container -RUN echo 'node ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/node && \ - chown node:node -R ./ -RUN ln -s /bin/true /bin/systemctl -USER node -WORKDIR /home/node -RUN git clone https://github.com/Arksine/moonraker -WORKDIR /home/node/moonraker -RUN sed -E 's/check_klipper\(\)/check_klipper() { return 0; }\nold()/' /home/node/moonraker/scripts/install-moonraker.sh > /home/node/moonraker/scripts/install-moonraker2.sh -RUN chmod +x /home/node/moonraker/scripts/install-moonraker2.sh -RUN /home/node/moonraker/scripts/install-moonraker2.sh -WORKDIR /home/node -RUN git clone https://github.com/KevinOConnor/klipper -WORKDIR /home/node/klipper -COPY simulavr.config /home/node/klipper/.config -RUN make -RUN cp /home/node/klipper/out/klipper.elf /home/node/klipper/simulavr.elf -RUN rm /home/node/klipper/.config -COPY linux.config /home/node/klipper/.config -RUN make clean -RUN make - -WORKDIR /home/node/ -RUN git clone https://git.savannah.nongnu.org/git/simulavr.git -WORKDIR /home/node/simulavr -RUN make python -RUN make build - -#RUN groupadd --force -g 1000 pi -#RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1000 pi - - -RUN chmod +x /home/node/klipper/scripts/install-debian.sh -RUN /home/node/klipper/scripts/install-debian.sh -RUN sudo rm -f /bin/systemctl - -FROM base - -#RUN mkdir /home/node/printer_config -#RUN mkdir /home/node/gcode - - EXPOSE 8080 +COPY start-npm /usr/local/bin/start-npm +RUN chmod +x /usr/local/bin/start-npm -#COPY config/printer.cfg /home/node/printer_config/printer.cfg -#COPY config/moonraker.conf /home/node/printer_config/moonraker.conf - -#RUN sudo chown node:node -hR /home/node/printer_config -#RUN sudo chown node:node -hR /home/node/gcode -#RUN sudo chown node:node -hR /tmp/logs +USER node WORKDIR /home/node/mainsail -ENTRYPOINT ["start-container"] +ENTRYPOINT ["start-npm"] diff --git a/docker/api/Dockerfile b/docker/api/Dockerfile new file mode 100644 index 00000000..c593ee1b --- /dev/null +++ b/docker/api/Dockerfile @@ -0,0 +1,62 @@ +FROM debian:buster AS base + +RUN groupadd --force -g 1000 node +RUN useradd -ms /bin/bash --no-user-group -g 1000 -u 1000 node + +RUN apt-get update +RUN apt-get install -y sudo wget cmake swig git virtualenv python-dev libffi-dev build-essential libncurses-dev libusb-dev avrdude gcc-avr binutils-avr avr-libc dfu-util libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0 +RUN mkdir /src +WORKDIR /src +RUN wget http://download.savannah.nongnu.org/releases/simulavr/libsim_1.1.0_amd64.deb +RUN apt install /src/libsim_1.1.0_amd64.deb +#RUN wget http://download.savannah.nongnu.org/releases/simulavr/simulavr_1.1.0_amd64.deb +#RUN apt install /src/simulavr_1.1.0_amd64.deb +#RUN wget http://download.savannah.nongnu.org/releases/simulavr/python3-simulavr_1.1.0_amd64.deb +#RUN apt install /src/python3-simulavr_1.1.0_amd64.deb + +RUN cat /etc/passwd + +RUN echo 'node ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/node && \ + chown node:node -R ./ +#RUN mv /bin/systemctl /bin/systemctl.bak +RUN ln -s /bin/true /bin/systemctl + +USER node + +WORKDIR /home/node +RUN git clone https://github.com/KevinOConnor/klipper +WORKDIR /home/node/klipper +COPY api/simulavr.config /home/node/klipper/.config +RUN make +RUN cp /home/node/klipper/out/klipper.elf /home/node/klipper/simulavr.elf +RUN rm /home/node/klipper/.config +COPY api/linux.config /home/node/klipper/.config +RUN make clean +RUN make +RUN chmod +x /home/node/klipper/scripts/install-debian.sh +RUN /home/node/klipper/scripts/install-debian.sh + +WORKDIR /home/node +RUN git clone https://github.com/Arksine/moonraker +WORKDIR /home/node/moonraker +RUN sed -E 's/check_klipper\(\)/check_klipper() { return 0; }\nold()/' /home/node/moonraker/scripts/install-moonraker.sh > /home/node/moonraker/scripts/install-moonraker2.sh +RUN chmod +x /home/node/moonraker/scripts/install-moonraker2.sh +RUN /home/node/moonraker/scripts/install-moonraker2.sh + +RUN sudo rm -f /bin/systemctl +#RUN sudo mv /bin/systemctl.bak /bin/systemctl + +WORKDIR /home/node/ +RUN git clone https://git.savannah.nongnu.org/git/simulavr.git +WORKDIR /home/node/simulavr +RUN make python +RUN make build + +USER root + +COPY api/run-api /usr/local/bin/run-api +RUN chmod +x /usr/local/bin/run-api + +USER node + +ENTRYPOINT ["run-api"] diff --git a/docker/linux.config b/docker/api/linux.config similarity index 100% rename from docker/linux.config rename to docker/api/linux.config diff --git a/docker/start-container b/docker/api/run-api similarity index 86% rename from docker/start-container rename to docker/api/run-api index 67608fe6..c82b6496 100644 --- a/docker/start-container +++ b/docker/api/run-api @@ -2,5 +2,5 @@ PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & /home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds & /home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf & -npm install -npm run serve +echo "Starting ..." >> /tmp/logs/klippy.log +tail -f /tmp/logs/klippy.log diff --git a/docker/simulavr.config b/docker/api/simulavr.config similarity index 100% rename from docker/simulavr.config rename to docker/api/simulavr.config diff --git a/docker/run b/docker/run index ec41c8f6..f80a9d68 100755 --- a/docker/run +++ b/docker/run @@ -2,7 +2,14 @@ export APP_NAME=mainsail -export USERID=${USERID:-$UID} -export GRPID=${GRPID:-$(id -g)} - -docker-compose "$@" +if [ $# -gt 0 ]; then + if [ "$1" == "restart" ]; then + docker-compose restart "$2" + elif [ "$1" == "bash" ]; then + docker exec -it "$APP_NAME-stack-$2" bash + else + docker-compose "$@" + fi +else + docker-compose ps +fi diff --git a/docker/start-npm b/docker/start-npm new file mode 100644 index 00000000..301c11b6 --- /dev/null +++ b/docker/start-npm @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +npm install +npm run serve diff --git a/docs/development/docker.md b/docs/development/docker.md index 2642a242..070a60a6 100644 --- a/docs/development/docker.md +++ b/docs/development/docker.md @@ -32,12 +32,9 @@ docker/run up ``` # Development -For development its sometimes needed to restart the simulavr process. -For this run: +####Commands ```shell -docker exec -it mainsail-stack bash -``` -in the spawnin shell run: -```shell -~/restart-services.sh +docker/run ps #showing running containers +docker/run restart #restarting container +docker/run bash #spawning bash shell inside container ``` From 46728ded75d316d8c41bce9e9fdc15c816236afa Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Mon, 22 Feb 2021 15:03:41 +0100 Subject: [PATCH 007/114] added .theme for docker env to gitignore --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index feb8f665..f0867a1b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,5 @@ docker/gcode docker/logs docker/config/*.cfg docker/config/*.conf -docker/*.json - docker/config/.mainsail.json +docker/config/.theme From a3d449757782be88d51da7374c91ea63869e2356 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 19:37:16 +0100 Subject: [PATCH 008/114] hide color color col in temperatures panel if the chart is hidden Signed-off-by: Stefan Dej --- src/components/panels/ToolsPanel.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/panels/ToolsPanel.vue b/src/components/panels/ToolsPanel.vue index 89282e59..bc72ea29 100644 --- a/src/components/panels/ToolsPanel.vue +++ b/src/components/panels/ToolsPanel.vue @@ -75,7 +75,7 @@ Name - Color + Color State Current Target @@ -87,7 +87,7 @@ mdi-{{ heater.icon }} {{ convertName(heater.name) }} - +
{{ heater.target > 0 ? (heater.power !== null ? (heater.power > 0 ? (heater.power * 100).toFixed(0)+'%' : "0%") : "active") : "off" }} @@ -107,7 +107,7 @@ mdi-fan
{{ convertName(fan.name) }} - +
{{ fan.target > 0 && fan.speed > 0 ? (fan.speed * 100).toFixed(0)+"%" : (fan.target > 0 ? "standby" : "off") }} @@ -129,7 +129,7 @@ {{ convertName(sensor.name) }} - +
  From 306d5107199c81efa3104b25410e79c24905f49f Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 19:48:55 +0100 Subject: [PATCH 009/114] fix axis label in tempchart Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index e66517b5..245e3e85 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -118,7 +118,7 @@ export default { }, yAxis: [ { - name: '[°C] Temperature', + name: 'Temperature [°C]', type: 'value', min: 0, max: 300, From 1217927faeeb73839956604c9d05256512d853c7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 19:50:13 +0100 Subject: [PATCH 010/114] redesign color points in temperature panel Signed-off-by: Stefan Dej --- src/components/panels/ToolsPanel.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/panels/ToolsPanel.vue b/src/components/panels/ToolsPanel.vue index bc72ea29..44972270 100644 --- a/src/components/panels/ToolsPanel.vue +++ b/src/components/panels/ToolsPanel.vue @@ -12,10 +12,12 @@ } .datasetColorSymbol { - width: 15px; - height: 15px; + width: 10px; + height: 10px; border-style: solid; border-width: 1px; + cursor: pointer; + border-radius: 50%; } @@ -88,7 +90,7 @@
{{ convertName(heater.name) }} -
+
{{ heater.target > 0 ? (heater.power !== null ? (heater.power > 0 ? (heater.power * 100).toFixed(0)+'%' : "0%") : "active") : "off" }} @@ -108,7 +110,7 @@ {{ convertName(fan.name) }} -
+
{{ fan.target > 0 && fan.speed > 0 ? (fan.speed * 100).toFixed(0)+"%" : (fan.target > 0 ? "standby" : "off") }} @@ -130,7 +132,7 @@ {{ convertName(sensor.name) }} -
+
  From 389c16287863044c8d4bdbe6b97da2b88a3fa8c8 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 20:34:02 +0100 Subject: [PATCH 011/114] feature: save last setting of ExtruderPanel.vue in .mainsail.json Signed-off-by: Stefan Dej --- src/components/panels/ExtruderPanel.vue | 37 +++++++++++++++---------- src/store/gui/index.js | 2 ++ 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/components/panels/ExtruderPanel.vue b/src/components/panels/ExtruderPanel.vue index 640d7150..1fef72f4 100644 --- a/src/components/panels/ExtruderPanel.vue +++ b/src/components/panels/ExtruderPanel.vue @@ -9,13 +9,13 @@ Feed amount in mm: - {{ amount }} + {{ amount }} Feedrate in mm/s: - {{ rate }} + {{ rate }}
@@ -34,15 +34,6 @@ import Vue from "vue"; export default { - components: { - - }, - data: function() { - return { - feedAmount: 25, - feedrate: 5, - } - }, computed: { ...mapState({ loadings: state => state.socket.loadings, @@ -65,23 +56,39 @@ get() { return [...this.feedrates].sort((a,b) => { return b-a }) } + }, + currentFeedAmount: { + get() { + return parseFloat(this.$store.state.gui.dashboard.extruder.feedamount) + }, + set(newVal) { + return this.$store.dispatch('gui/setSettings', { dashboard: { extruder: { feedamount: newVal } } }) + } + }, + currentFeedRate: { + get() { + return parseFloat(this.$store.state.gui.dashboard.extruder.feedrate) + }, + set(newVal) { + return this.$store.dispatch('gui/setSettings', { dashboard: { extruder: { feedrate: newVal } } }) + } } }, methods: { setFeedAmount(value) { - this.feedAmount = value; + this.currentFeedAmount = value; }, setFeedrate(value) { - this.feedrate = value; + this.currentFeedRate = value; }, sendRetract() { - let gcode = "M83\nG1 E-"+this.feedAmount+" F"+(this.feedrate * 60); + let gcode = "M83\nG1 E-"+this.currentFeedAmount+" F"+(this.currentFeedRate * 60); this.$store.commit('server/addEvent', { message: gcode, type: 'command' }); this.$store.commit('socket/addLoading', { name: 'btnRetract' }); Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "socket/removeLoading", { name: 'btnRetract' }); }, sendDetract() { - let gcode = "M83\nG1 E"+this.feedAmount+" F"+(this.feedrate * 60); + let gcode = "M83\nG1 E"+this.currentFeedAmount+" F"+(this.currentFeedRate * 60); this.$store.commit('server/addEvent', { message: gcode, type: 'command' }); this.$store.commit('socket/addLoading', { name: 'btnDetract' }); Vue.prototype.$socket.sendObj('printer.gcode.script', { script: gcode }, "socket/removeLoading", { name: 'btnDetract' }); diff --git a/src/store/gui/index.js b/src/store/gui/index.js index 4e3bf7f4..08efea7f 100644 --- a/src/store/gui/index.js +++ b/src/store/gui/index.js @@ -20,7 +20,9 @@ export function getDefaultState() { stepsZ: [ 25, 1, 0.1 ], }, extruder: { + feedamount: 25, feedamounts: [ 50, 25, 10, 5, 1 ], + feedrate: 5, feedrates: [ 60, 30, 15, 5, 1 ], } }, From 14195daa5a7bfd1173de856812f30438f67e04da Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 22:19:43 +0100 Subject: [PATCH 012/114] optimize dataset color and chart hover Signed-off-by: Stefan Dej --- src/components/charts/TempChart.vue | 12 ++++----- src/components/panels/ToolsPanel.vue | 12 ++++----- src/store/printer/tempHistory/actions.js | 29 ++++++++++++++++++++-- src/store/printer/tempHistory/mutations.js | 2 +- 4 files changed, 40 insertions(+), 15 deletions(-) diff --git a/src/components/charts/TempChart.vue b/src/components/charts/TempChart.vue index 245e3e85..e9ae9a4e 100644 --- a/src/components/charts/TempChart.vue +++ b/src/components/charts/TempChart.vue @@ -57,11 +57,11 @@ export default { if (mainDataset) output += "" output += convertName(dataset.seriesName)+":" @@ -260,7 +260,7 @@ export default { methods: { createChart() { if (document.getElementById("tempchart") && this.chart === null) { - this.chart = echarts.init(document.getElementById("tempchart"), null, {renderer: 'svg'}) + this.chart = echarts.init(document.getElementById("tempchart"), null, {renderer: 'canvas'}) this.chart.setOption(this.chartOptions) } else setTimeout(() => { this.createChart() diff --git a/src/components/panels/ToolsPanel.vue b/src/components/panels/ToolsPanel.vue index 44972270..1afd75a8 100644 --- a/src/components/panels/ToolsPanel.vue +++ b/src/components/panels/ToolsPanel.vue @@ -12,10 +12,10 @@ } .datasetColorSymbol { - width: 10px; - height: 10px; + width: 8px; + height: 8px; border-style: solid; - border-width: 1px; + border-width: 0px; cursor: pointer; border-radius: 50%; } @@ -90,7 +90,7 @@ {{ convertName(heater.name) }} -
+
{{ heater.target > 0 ? (heater.power !== null ? (heater.power > 0 ? (heater.power * 100).toFixed(0)+'%' : "0%") : "active") : "off" }} @@ -110,7 +110,7 @@ {{ convertName(fan.name) }} -
+
{{ fan.target > 0 && fan.speed > 0 ? (fan.speed * 100).toFixed(0)+"%" : (fan.target > 0 ? "standby" : "off") }} @@ -132,7 +132,7 @@ {{ convertName(sensor.name) }} -
+
  diff --git a/src/store/printer/tempHistory/actions.js b/src/store/printer/tempHistory/actions.js index 990dfffb..ec58701e 100644 --- a/src/store/printer/tempHistory/actions.js +++ b/src/store/printer/tempHistory/actions.js @@ -43,9 +43,16 @@ export default { lineStyle: { color: rootGetters["gui/getDatasetValue"]({ name: name, type: 'color' }) || color, width: 2, - opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: 'temperature' })) ? 1 : 0 + opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: 'temperature' })) ? 0.9 : 0 }, symbol: 'none', + emphasis: { + lineStyle: { + color: rootGetters["gui/getDatasetValue"]({ name: name, type: 'color' }) || color, + width: 2, + opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: 'temperature' })) ? 0.9 : 0 + } + }, data: [], } @@ -74,6 +81,16 @@ export default { color: datasetTemperature.lineStyle.color, opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: 'target' })) ? 0.1 : 0 }, + emphasis: { + lineStyle: { + color: datasetTemperature.lineStyle.color, + width: 0, + }, + areaStyle: { + color: datasetTemperature.lineStyle.color, + opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: 'target' })) ? 0.1 : 0 + }, + }, symbol: 'none', data: [], } @@ -102,7 +119,15 @@ export default { color: datasetTemperature.lineStyle.color, width: 1, type: 'dotted', - opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: additionalType })) ? 1 : 0 + opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: additionalType })) ? 0.9 : 0 + }, + emphasis: { + lineStyle: { + color: datasetTemperature.lineStyle.color, + width: 1, + type: 'dotted', + opacity: (rootGetters["gui/getDatasetValue"]({ name: name, type: additionalType })) ? 0.9 : 0 + }, }, symbol: 'none', data: [], diff --git a/src/store/printer/tempHistory/mutations.js b/src/store/printer/tempHistory/mutations.js index 453958f9..d47cd021 100644 --- a/src/store/printer/tempHistory/mutations.js +++ b/src/store/printer/tempHistory/mutations.js @@ -59,7 +59,7 @@ export default { if (payload.type === "target" && 'areaStyle' in state.series[datasetIndex]) { Vue.set(state.series[datasetIndex].areaStyle, 'opacity', payload.value ? 0.1 : 0) } else if ('lineStyle' in state.series[datasetIndex]) { - Vue.set(state.series[datasetIndex].lineStyle, 'opacity', payload.value) + Vue.set(state.series[datasetIndex].lineStyle, 'opacity', payload.value ? 0.9 : 0) } } }, From 5b2dad6c32a367db3767e45140f42e74e48cee50 Mon Sep 17 00:00:00 2001 From: Rejdukien Date: Sun, 14 Feb 2021 17:41:26 +0100 Subject: [PATCH 013/114] PyImageStreamer websocket support --- .../panels/Settings/WebcamPanel.vue | 13 +++ src/components/panels/WebcamPanel.vue | 95 +++++++++++++++++-- 2 files changed, 98 insertions(+), 10 deletions(-) diff --git a/src/components/panels/Settings/WebcamPanel.vue b/src/components/panels/Settings/WebcamPanel.vue index 2fef7043..0d44a726 100644 --- a/src/components/panels/Settings/WebcamPanel.vue +++ b/src/components/panels/Settings/WebcamPanel.vue @@ -43,6 +43,11 @@ + + + + + @@ -107,6 +112,14 @@ return this.$store.dispatch('gui/setSettings', { webcam: { bool: showNav } }); } }, + boolWebsocket: { + get() { + return this.$store.state.gui.webcam.boolWebsocket; + }, + set(useWebsocket) { + return this.$store.dispatch('gui/setSettings', { webcam: { boolWebsocket: useWebsocket } }); + } + }, }, methods: { diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index 43e0271d..45f85a33 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -8,7 +8,7 @@ - mdi-webcamWebcam + mdi-webcam{{subHeading}} @@ -23,12 +23,27 @@ export default { data: function() { return { - refresh: Math.ceil(Math.random() * Math.pow(10, 12)) - } + refresh: Math.ceil(Math.random() * Math.pow(10, 12)), + connection: "", + imageData: "", + + request_start_time: performance.now(), + start_time: performance.now(), + time: 1, + request_time: 0, + time_smoothing: 0.9, + request_time_smoothing: 0.2, + target_fps: 24 + }; }, created: function () { document.addEventListener("focus", () => this.handleRefreshChange(), false); document.addEventListener("visibilitychange", this.handleRefreshChange, false); + + if(this.webcamConfig.boolWebsocket) { + this.connect(); + } + }, components: { @@ -37,14 +52,28 @@ ...mapState({ 'webcamConfig': state => state.gui.webcam }), - url() { - let basicUrl = this.webcamConfig.url - if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" - const params = new URLSearchParams(basicUrl) - params.set('bypassCache', ""+this.refresh) - return decodeURIComponent(params.toString()) + subHeading() { + return "Webcam" + (this.webcamConfig.boolWebsocket ? " - FPS: " + Math.round(1000 / this.time) : ""); }, + + url() { + if(!this.webcamConfig.boolWebsocket) { + let basicUrl = this.webcamConfig.url + if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" + + const params = new URLSearchParams(basicUrl) + params.set('bypassCache', ""+this.refresh) + return decodeURIComponent(params.toString()) + } else { + return this.imageData; + /*return 'data:image/jpeg;base64,' + btoa( + new Uint8Array(this.blobData) + .reduce((data, byte) => data.String.fromCharCode(byte), '') + )*/ + } + }, + webcamStyle() { let transforms = ''; if (this.webcamConfig.flipX) { @@ -69,7 +98,53 @@ if (!document.hidden) { this.refresh = Math.ceil(Math.random() * Math.pow(10, 12)) } - } + }, + + connect() { + var wsProtocol = (location.protocol === "https:") ? "wss://" : "ws://"; + this.connection = new WebSocket(wsProtocol + this.webcamConfig.url) + this.connection.binaryType = 'arraybuffer'; + + console.log(wsProtocol + this.webcamConfig.url); + console.log(this.connection); + + this.connection.onmessage = (event) => { + var arrayBuffer = event.data; + /*this.blobUrl = 'data:image/jpeg;base64,' + btoa( + new Uint8Array(arrayBuffer) + .reduce((data, byte) => data.String.fromCharCode(byte), '') + );*/ + //this.imageData = 'data:image/jpeg;base64,' + arrayBuffer; + this.imageData = window.URL.createObjectURL(new Blob([new Uint8Array(arrayBuffer)], {type: "image/jpeg"})); + console.log(this.imageData); + + + var end_time = performance.now(); + var current_time = end_time - this.start_time; + // smooth with moving average + this.time = (this.time * this.time_smoothing) + (current_time * (1.0 - this.time_smoothing)); + this.start_time = end_time; + + var current_request_time = performance.now() - this.request_start_time; + // smooth with moving average + this.request_time = (this.request_time * this.request_time_smoothing) + (current_request_time * (1.0 - this.request_time_smoothing)); + var timeout = Math.max(0, this.target_time - this.request_time); + + setTimeout(this.requestImage(), timeout); + }; + + + this.connection.onopen = () => { + console.log("Connection to websocket was established"); + this.start_time = performance.now(); + this.requestImage(); + } + }, + + requestImage() { + this.request_start_time = performance.now(); + this.connection.send('more'); + }, } } \ No newline at end of file From b204373dd9778db3350cb776b701e090c0177bd9 Mon Sep 17 00:00:00 2001 From: Rejdukien Date: Sun, 14 Feb 2021 19:45:46 +0100 Subject: [PATCH 014/114] Change from websockets to regular pull-based approach --- package.json | 1 + .../panels/Settings/WebcamPanel.vue | 25 ++++-- src/components/panels/WebcamPanel.vue | 90 +++++++++---------- src/main.js | 2 + 4 files changed, 65 insertions(+), 53 deletions(-) diff --git a/package.json b/package.json index 7c3eaf6e..8880531c 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "vue-context": "^6.0.0", "vue-github-api": "^0.1.7", "vue-headful": "^2.1.0", + "vue-observe-visibility": "^1.0.0", "vue-plotly": "^1.1.0", "vue-prism-editor": "^1.2.2", "vue-resource": "^1.5.1", diff --git a/src/components/panels/Settings/WebcamPanel.vue b/src/components/panels/Settings/WebcamPanel.vue index 0d44a726..33a0f036 100644 --- a/src/components/panels/Settings/WebcamPanel.vue +++ b/src/components/panels/Settings/WebcamPanel.vue @@ -45,9 +45,14 @@ - + + + + + + @@ -69,6 +74,8 @@ return this.$store.state.gui.webcam.url; }, set(url) { + if(this.$store.state.gui.webcam.adaptiveFps) + url = url.replace("action=stream", "action=snapshot"); return this.$store.dispatch('gui/setSettings', { webcam: { url } }); } }, @@ -112,14 +119,22 @@ return this.$store.dispatch('gui/setSettings', { webcam: { bool: showNav } }); } }, - boolWebsocket: { + adaptiveFps: { get() { - return this.$store.state.gui.webcam.boolWebsocket; + return this.$store.state.gui.webcam.adaptiveFps; }, - set(useWebsocket) { - return this.$store.dispatch('gui/setSettings', { webcam: { boolWebsocket: useWebsocket } }); + set(useAdaptiveFps) { + return this.$store.dispatch('gui/setSettings', { webcam: { adaptiveFps: useAdaptiveFps } }); } }, + targetFps: { + get() { + return this.$store.state.gui.webcam.targetFps; + }, + set(fps) { + return this.$store.dispatch('gui/setSettings', { webcam: { targetFps: fps } }); + } + } }, methods: { diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index 45f85a33..25a8e4f7 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -5,14 +5,14 @@ @@ -29,19 +29,19 @@ request_start_time: performance.now(), start_time: performance.now(), - time: 1, + time: 0, request_time: 0, - time_smoothing: 0.9, - request_time_smoothing: 0.2, - target_fps: 24 + time_smoothing: 0.6, + request_time_smoothing: 0.1, + isVisible: true, }; }, created: function () { document.addEventListener("focus", () => this.handleRefreshChange(), false); document.addEventListener("visibilitychange", this.handleRefreshChange, false); - if(this.webcamConfig.boolWebsocket) { - this.connect(); + if(this.webcamConfig.adaptiveFps) { + this.requestMjpeg(); } }, @@ -54,11 +54,11 @@ }), subHeading() { - return "Webcam" + (this.webcamConfig.boolWebsocket ? " - FPS: " + Math.round(1000 / this.time) : ""); + return "Webcam" + (this.webcamConfig.adaptiveFps ? " - FPS: " + Math.round(1000 / this.time) : ""); }, url() { - if(!this.webcamConfig.boolWebsocket) { + if(!this.webcamConfig.adaptiveFps) { let basicUrl = this.webcamConfig.url if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" @@ -100,51 +100,45 @@ } }, - connect() { - var wsProtocol = (location.protocol === "https:") ? "wss://" : "ws://"; - this.connection = new WebSocket(wsProtocol + this.webcamConfig.url) - this.connection.binaryType = 'arraybuffer'; + onLoad() { + var end_time = performance.now(); + var current_time = end_time - this.start_time; + this.time = (this.time * this.time_smoothing) + (current_time * (1.0 - this.time_smoothing)); + this.start_time = end_time; - console.log(wsProtocol + this.webcamConfig.url); - console.log(this.connection); - - this.connection.onmessage = (event) => { - var arrayBuffer = event.data; - /*this.blobUrl = 'data:image/jpeg;base64,' + btoa( - new Uint8Array(arrayBuffer) - .reduce((data, byte) => data.String.fromCharCode(byte), '') - );*/ - //this.imageData = 'data:image/jpeg;base64,' + arrayBuffer; - this.imageData = window.URL.createObjectURL(new Blob([new Uint8Array(arrayBuffer)], {type: "image/jpeg"})); - console.log(this.imageData); + var target_time = 1000/this.webcamConfig.targetFps + var current_request_time = performance.now() - this.request_start_time; + this.request_time = (this.request_time * this.request_time_smoothing) + (current_request_time * (1.0 - this.request_time_smoothing)); + var timeout = Math.max(0, target_time - this.request_time); - var end_time = performance.now(); - var current_time = end_time - this.start_time; - // smooth with moving average - this.time = (this.time * this.time_smoothing) + (current_time * (1.0 - this.time_smoothing)); - this.start_time = end_time; - - var current_request_time = performance.now() - this.request_start_time; - // smooth with moving average - this.request_time = (this.request_time * this.request_time_smoothing) + (current_request_time * (1.0 - this.request_time_smoothing)); - var timeout = Math.max(0, this.target_time - this.request_time); - - setTimeout(this.requestImage(), timeout); - }; - - - this.connection.onopen = () => { - console.log("Connection to websocket was established"); - this.start_time = performance.now(); - this.requestImage(); - } + this.$nextTick(() => { + console.log(end_time + " " + timeout); + setTimeout(this.requestMjpeg, timeout); + }) }, - requestImage() { + requestMjpeg() { + if(!this.isVisible) + return; this.request_start_time = performance.now(); - this.connection.send('more'); + let basicUrl = this.webcamConfig.url + if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" + + const params = new URLSearchParams(basicUrl) + params.set('bypassCache', ""+ this.refresh + (Math.random() * 1000)) + + this.$nextTick(() => { + this.imageData = decodeURIComponent(params.toString()) + }) }, + + visibilityChanged(isVisible, entry) { + this.isVisible = isVisible; + console.log(entry); + if(isVisible) + this.requestMjpeg(); + } } } \ No newline at end of file diff --git a/src/main.js b/src/main.js index 1e72a08b..cc22b74a 100644 --- a/src/main.js +++ b/src/main.js @@ -7,10 +7,12 @@ import './components' import store from './store' import router from './plugins/router' import vueHeadful from 'vue-headful'; +import VueObserveVisibility from 'vue-observe-visibility'; Vue.config.productionTip = false; Vue.use(VueResource); +Vue.use(VueObserveVisibility); Vue.http.headers.common['Content-Type'] = 'application/json'; Vue.http.headers.common['Access-Control-Allow-Origin'] = '*'; Vue.http.headers.common['Accept'] = 'application/json, text/plain, */*'; From cbd9d6ea75d2a11fc1f411ce74de5ae552d7ba9d Mon Sep 17 00:00:00 2001 From: Rejdukien Date: Mon, 15 Feb 2021 16:19:44 +0100 Subject: [PATCH 015/114] Cleanup and change from switch to select element Signed-off-by: Rejdukien --- .../panels/Settings/WebcamPanel.vue | 20 ++++++++++--------- src/components/panels/WebcamPanel.vue | 14 +++++-------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/panels/Settings/WebcamPanel.vue b/src/components/panels/Settings/WebcamPanel.vue index 33a0f036..f64cf61d 100644 --- a/src/components/panels/Settings/WebcamPanel.vue +++ b/src/components/panels/Settings/WebcamPanel.vue @@ -45,10 +45,10 @@ - + - + @@ -65,7 +65,11 @@ }, data: function() { return { - rotationEnabled: false + rotationEnabled: false, + serviceMethodItems: [ + { value: 0, text: 'MJPEG-Streamer' }, + { value: 1, text: 'MJPEG-Streamer (Adaptive)' }, + ] } }, computed: { @@ -74,8 +78,6 @@ return this.$store.state.gui.webcam.url; }, set(url) { - if(this.$store.state.gui.webcam.adaptiveFps) - url = url.replace("action=stream", "action=snapshot"); return this.$store.dispatch('gui/setSettings', { webcam: { url } }); } }, @@ -119,12 +121,12 @@ return this.$store.dispatch('gui/setSettings', { webcam: { bool: showNav } }); } }, - adaptiveFps: { + serviceMethod: { get() { - return this.$store.state.gui.webcam.adaptiveFps; + return this.$store.state.gui.webcam.serviceMethod; }, - set(useAdaptiveFps) { - return this.$store.dispatch('gui/setSettings', { webcam: { adaptiveFps: useAdaptiveFps } }); + set(selectedMethod) { + return this.$store.dispatch('gui/setSettings', { webcam: { serviceMethod: selectedMethod } }); } }, targetFps: { diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index 25a8e4f7..85897d57 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -40,7 +40,7 @@ document.addEventListener("focus", () => this.handleRefreshChange(), false); document.addEventListener("visibilitychange", this.handleRefreshChange, false); - if(this.webcamConfig.adaptiveFps) { + if(this.webcamConfig.serviceMethod == 1) { this.requestMjpeg(); } @@ -54,11 +54,11 @@ }), subHeading() { - return "Webcam" + (this.webcamConfig.adaptiveFps ? " - FPS: " + Math.round(1000 / this.time) : ""); + return "Webcam" + (this.webcamConfig.serviceMethod == 1 ? " - FPS: " + Math.round(1000 / this.time) : ""); }, url() { - if(!this.webcamConfig.adaptiveFps) { + if(!this.webcamConfig.serviceMethod) { let basicUrl = this.webcamConfig.url if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" @@ -67,10 +67,6 @@ return decodeURIComponent(params.toString()) } else { return this.imageData; - /*return 'data:image/jpeg;base64,' + btoa( - new Uint8Array(this.blobData) - .reduce((data, byte) => data.String.fromCharCode(byte), '') - )*/ } }, @@ -121,6 +117,7 @@ requestMjpeg() { if(!this.isVisible) return; + this.request_start_time = performance.now(); let basicUrl = this.webcamConfig.url if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" @@ -133,9 +130,8 @@ }) }, - visibilityChanged(isVisible, entry) { + visibilityChanged(isVisible) { this.isVisible = isVisible; - console.log(entry); if(isVisible) this.requestMjpeg(); } From 2be28ab46327a1657b7601df3be423b3d90c51a7 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 22 Feb 2021 23:26:00 +0100 Subject: [PATCH 016/114] cleanup adaptive mjpeg-streamer functions Signed-off-by: Stefan Dej --- package-lock.json | 15 +++++- .../panels/Settings/WebcamPanel.vue | 34 ++++++------ src/components/panels/WebcamPanel.vue | 53 ++++++++++--------- src/store/gui/index.js | 2 + 4 files changed, 59 insertions(+), 45 deletions(-) diff --git a/package-lock.json b/package-lock.json index 439f71c4..95845edf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mainsail", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mainsail", - "version": "1.2.0", + "version": "1.3.0", "dependencies": { "axios": "^0.21.1", "core-js": "^3.8.2", @@ -19,6 +19,7 @@ "vue-context": "^6.0.0", "vue-github-api": "^0.1.7", "vue-headful": "^2.1.0", + "vue-observe-visibility": "^1.0.0", "vue-plotly": "^1.1.0", "vue-prism-editor": "^1.2.2", "vue-resource": "^1.5.1", @@ -17397,6 +17398,11 @@ "integrity": "sha1-M7QHd3VMZDJXPBIMw4CLvRDUfwQ=", "dev": true }, + "node_modules/vue-observe-visibility": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/vue-observe-visibility/-/vue-observe-visibility-1.0.0.tgz", + "integrity": "sha512-s5TFh3s3h3Mhd3jaz3zGzkVHKHnc/0C/gNr30olO99+yw2hl3WBhK3ng3/f9OF+qkW4+l7GkmwfAzDAcY3lCFg==" + }, "node_modules/vue-plotly": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/vue-plotly/-/vue-plotly-1.1.0.tgz", @@ -35152,6 +35158,11 @@ } } }, + "vue-observe-visibility": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/vue-observe-visibility/-/vue-observe-visibility-1.0.0.tgz", + "integrity": "sha512-s5TFh3s3h3Mhd3jaz3zGzkVHKHnc/0C/gNr30olO99+yw2hl3WBhK3ng3/f9OF+qkW4+l7GkmwfAzDAcY3lCFg==" + }, "vue-plotly": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/vue-plotly/-/vue-plotly-1.1.0.tgz", diff --git a/src/components/panels/Settings/WebcamPanel.vue b/src/components/panels/Settings/WebcamPanel.vue index f64cf61d..f33ce99f 100644 --- a/src/components/panels/Settings/WebcamPanel.vue +++ b/src/components/panels/Settings/WebcamPanel.vue @@ -12,7 +12,17 @@ - + + + + + + + + + + + - - - - - - - - - - @@ -66,9 +66,9 @@ data: function() { return { rotationEnabled: false, - serviceMethodItems: [ - { value: 0, text: 'MJPEG-Streamer' }, - { value: 1, text: 'MJPEG-Streamer (Adaptive)' }, + serviceItems: [ + { value: 'mjpegstreamer', text: 'MJPEG-Streamer' }, + { value: 'mjpegstreamer-adaptive', text: 'Adaptive MJPEG-Streamer (experimental)' }, ] } }, @@ -121,12 +121,12 @@ return this.$store.dispatch('gui/setSettings', { webcam: { bool: showNav } }); } }, - serviceMethod: { + service: { get() { - return this.$store.state.gui.webcam.serviceMethod; + return this.$store.state.gui.webcam.service; }, set(selectedMethod) { - return this.$store.dispatch('gui/setSettings', { webcam: { serviceMethod: selectedMethod } }); + return this.$store.dispatch('gui/setSettings', { webcam: { service: selectedMethod } }); } }, targetFps: { diff --git a/src/components/panels/WebcamPanel.vue b/src/components/panels/WebcamPanel.vue index 85897d57..f28fc6c7 100644 --- a/src/components/panels/WebcamPanel.vue +++ b/src/components/panels/WebcamPanel.vue @@ -8,7 +8,10 @@ - mdi-webcam{{subHeading}} + + mdi-webcam Webcam + (FPS: {{ currentFPS }}) + @@ -34,14 +37,15 @@ time_smoothing: 0.6, request_time_smoothing: 0.1, isVisible: true, + currentFPS: 0, }; }, created: function () { document.addEventListener("focus", () => this.handleRefreshChange(), false); document.addEventListener("visibilitychange", this.handleRefreshChange, false); - if(this.webcamConfig.serviceMethod == 1) { - this.requestMjpeg(); + if(this.webcamConfig.service === 'mjpegstreamer-adaptive') { + this.requestMjpeg() } }, @@ -53,20 +57,16 @@ 'webcamConfig': state => state.gui.webcam }), - subHeading() { - return "Webcam" + (this.webcamConfig.serviceMethod == 1 ? " - FPS: " + Math.round(1000 / this.time) : ""); - }, - url() { - if(!this.webcamConfig.serviceMethod) { + if(this.webcamConfig.service === 'mjpegstreamer-adaptive') { + return this.imageData; + } else { let basicUrl = this.webcamConfig.url if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" const params = new URLSearchParams(basicUrl) params.set('bypassCache', ""+this.refresh) return decodeURIComponent(params.toString()) - } else { - return this.imageData; } }, @@ -97,43 +97,44 @@ }, onLoad() { - var end_time = performance.now(); - var current_time = end_time - this.start_time; - this.time = (this.time * this.time_smoothing) + (current_time * (1.0 - this.time_smoothing)); - this.start_time = end_time; + const end_time = performance.now() + const current_time = end_time - this.start_time + this.time = (this.time * this.time_smoothing) + (current_time * (1.0 - this.time_smoothing)) + this.start_time = end_time - var target_time = 1000/this.webcamConfig.targetFps + const target_time = 1000/this.webcamConfig.targetFps - var current_request_time = performance.now() - this.request_start_time; - this.request_time = (this.request_time * this.request_time_smoothing) + (current_request_time * (1.0 - this.request_time_smoothing)); - var timeout = Math.max(0, target_time - this.request_time); + const current_request_time = performance.now() - this.request_start_time + this.request_time = (this.request_time * this.request_time_smoothing) + (current_request_time * (1.0 - this.request_time_smoothing)) + const timeout = Math.max(0, target_time - this.request_time) this.$nextTick(() => { - console.log(end_time + " " + timeout); - setTimeout(this.requestMjpeg, timeout); + setTimeout(this.requestMjpeg, timeout) }) }, requestMjpeg() { - if(!this.isVisible) - return; + if(!this.isVisible) return - this.request_start_time = performance.now(); + this.request_start_time = performance.now() let basicUrl = this.webcamConfig.url + basicUrl = basicUrl.replace("action=stream", "action=snapshot") if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" const params = new URLSearchParams(basicUrl) params.set('bypassCache', ""+ this.refresh + (Math.random() * 1000)) + + this.currentFPS = Math.round(1000 / this.time) + this.$nextTick(() => { this.imageData = decodeURIComponent(params.toString()) }) }, visibilityChanged(isVisible) { - this.isVisible = isVisible; - if(isVisible) - this.requestMjpeg(); + this.isVisible = isVisible + if(isVisible) this.requestMjpeg() } } } diff --git a/src/store/gui/index.js b/src/store/gui/index.js index 08efea7f..9ea8da63 100644 --- a/src/store/gui/index.js +++ b/src/store/gui/index.js @@ -27,6 +27,8 @@ export function getDefaultState() { } }, webcam: { + service: 'mjpegstreamer', + targetFps: 25, url: "", rotate: false, rotateDegrees: 90, From baa4d9b4166f035f4458dcf62ad6ece597257707 Mon Sep 17 00:00:00 2001 From: dewi-ny-je <2866139+dewi-ny-je@users.noreply.github.com> Date: Mon, 22 Feb 2021 23:34:28 +0100 Subject: [PATCH 017/114] Added infor about presets gcode Specified that gcode is executed after the temperatures are set. --- docs/quicktips/presets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quicktips/presets.md b/docs/quicktips/presets.md index 9ee2f55a..41f6a23d 100644 --- a/docs/quicktips/presets.md +++ b/docs/quicktips/presets.md @@ -16,7 +16,7 @@ In Mainsails interface settings you will find a section called "Preheat Presets" ### Preheat -Enter a name \(e.g. name, color and type of filament\) and the temperatures obtained. You can disable individual heaters and even specify a custom gcode for the preheat phase. +Enter a name \(e.g. name, color and type of filament\) and the temperatures obtained. You can disable individual heaters and even specify a custom gcode for the preheat phase. The gcode will be executed after the selected temperatures are set. ![](../assets/img/quicktips/presets/preheat.png) From 8047b7703c0b750e8f8e415b4b7f387e5eb85f4c Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Tue, 23 Feb 2021 09:13:41 +0100 Subject: [PATCH 018/114] new fan config is accounting for off_below and max_power --- docker/api/run-api | 2 +- src/inputs/MiscellaneousSlider.vue | 29 ++++++++++++++++++++++------- src/store/printer/getters.js | 16 ++++++++-------- 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/docker/api/run-api b/docker/api/run-api index c82b6496..98d49ee9 100644 --- a/docker/api/run-api +++ b/docker/api/run-api @@ -1,5 +1,5 @@ #!/usr/bin/env bash -PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & +PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -r .2 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & /home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds & /home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf & echo "Starting ..." >> /tmp/logs/klippy.log diff --git a/src/inputs/MiscellaneousSlider.vue b/src/inputs/MiscellaneousSlider.vue index 9ab10015..482dd6eb 100644 --- a/src/inputs/MiscellaneousSlider.vue +++ b/src/inputs/MiscellaneousSlider.vue @@ -9,7 +9,7 @@ - mdi-fan + mdi-fan {{ convertName(this.name) }} {{ Math.round(value*100) }} % @@ -18,7 +18,7 @@ Date: Tue, 23 Feb 2021 10:09:19 +0100 Subject: [PATCH 019/114] added port to documentation --- docs/development/standalone.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/development/standalone.md b/docs/development/standalone.md index 7ad5f4bd..16e0c578 100644 --- a/docs/development/standalone.md +++ b/docs/development/standalone.md @@ -20,6 +20,6 @@ VUE_APP_HOSTNAME=192.168.0.15 #for your printer with moonraker running on 192.16 In moonraker you need to add your local ip at the cors_domains: ```yaml cors_domains: - http:// + http://: ``` -access the local running dev environment with `http://`. +access the local running dev environment with `http://:`. From b8e7bab442a23109c3dce02db58e2e12f272930c Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Tue, 23 Feb 2021 19:06:31 +0100 Subject: [PATCH 020/114] fixed for klipper parsed settings object --- src/store/printer/getters.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/store/printer/getters.js b/src/store/printer/getters.js index d85a737f..eec64bf5 100644 --- a/src/store/printer/getters.js +++ b/src/store/printer/getters.js @@ -246,18 +246,18 @@ export default { key in state.configfile.settings ) { if ( - 'pwm' in state.configfile.settings[key] && - state.configfile.settings[key].pwm.toLowerCase() === "true" - ) pwm = true + 'pwm' in state.configfile.settings[key] + ) pwm = state.configfile.settings[key].pwm if ( 'scale' in state.configfile.settings[key] ) scale = state.configfile.settings[key].scale } } - if (state.configfile.settings[key].off_below) off_below = parseFloat(state.configfile.settings[key].off_below) + + if (state.configfile.settings[key].off_below) off_below = state.configfile.settings[key].off_below - if (state.configfile.settings[key].max_power) max_power = parseFloat(state.configfile.settings[key].max_power) + if (state.configfile.settings[key].max_power) max_power = state.configfile.settings[key].max_power output.push({ name: name, From 12a89c93a92fd9fb9efe401f41f9d7450f5f8d59 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Tue, 23 Feb 2021 22:51:34 +0100 Subject: [PATCH 021/114] fixed scaling, always 100% max, internal scaling to "correct" klipper value --- docker/api/run-api | 2 +- package-lock.json | 14 +++--- package.json | 2 +- src/inputs/MiscellaneousSlider.vue | 73 +++++++++++++++++------------- src/store/printer/getters.js | 2 +- 5 files changed, 52 insertions(+), 41 deletions(-) diff --git a/docker/api/run-api b/docker/api/run-api index 98d49ee9..c82b6496 100644 --- a/docker/api/run-api +++ b/docker/api/run-api @@ -1,5 +1,5 @@ #!/usr/bin/env bash -PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -r .2 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & +PYTHONPATH="/home/node/simulavr/build/pysimulavr/" /home/node/klipper/scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 /home/node/klipper/simulavr.elf & /home/node/klippy-env/bin/python /home/node/klipper/klippy/klippy.py /home/node/printer_config/printer.cfg -l /tmp/logs/klippy.log -a /tmp/klippy_uds & /home/node/moonraker-env/bin/python /home/node/moonraker/moonraker/moonraker.py -l /tmp/logs/moonraker.log -c /home/node/printer_config/moonraker.conf & echo "Starting ..." >> /tmp/logs/klippy.log diff --git a/package-lock.json b/package-lock.json index 9a1f35ce..4c261263 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "vue-resource": "^1.5.1", "vue-simple-upload": "^0.1.6", "vue-toast-notification": "^0.6.0", - "vuetify": "^2.4.2", + "vuetify": "^2.4.5", "vuex": "^3.6.2" }, "devDependencies": { @@ -17485,9 +17485,9 @@ } }, "node_modules/vuetify": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.4.2.tgz", - "integrity": "sha512-8W1928Fv6GKwLiOThutYf2wtD5C9+vcCavlI8NT0YxNOVvluoL8xrep8mGGwDsCkay+4LzaAX92owKeNi3kpWg==", + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.4.5.tgz", + "integrity": "sha512-P4bN9xwyU91Iq1iW/XBCzgVMQ9fHG0HgJeiPDRoHzC0fX6ZPYBZIN6xPCuoG7zLyGSSoc6JnQqnO7H5mPEsVuA==", "funding": { "type": "github", "url": "https://github.com/sponsors/johnleider" @@ -35161,9 +35161,9 @@ "requires": {} }, "vuetify": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.4.2.tgz", - "integrity": "sha512-8W1928Fv6GKwLiOThutYf2wtD5C9+vcCavlI8NT0YxNOVvluoL8xrep8mGGwDsCkay+4LzaAX92owKeNi3kpWg==", + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.4.5.tgz", + "integrity": "sha512-P4bN9xwyU91Iq1iW/XBCzgVMQ9fHG0HgJeiPDRoHzC0fX6ZPYBZIN6xPCuoG7zLyGSSoc6JnQqnO7H5mPEsVuA==", "requires": {} }, "vuetify-loader": { diff --git a/package.json b/package.json index 7c3eaf6e..8d6a6df6 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "vue-resource": "^1.5.1", "vue-simple-upload": "^0.1.6", "vue-toast-notification": "^0.6.0", - "vuetify": "^2.4.2", + "vuetify": "^2.4.5", "vuex": "^3.6.2" }, "devDependencies": { diff --git a/src/inputs/MiscellaneousSlider.vue b/src/inputs/MiscellaneousSlider.vue index 482dd6eb..390aabaa 100644 --- a/src/inputs/MiscellaneousSlider.vue +++ b/src/inputs/MiscellaneousSlider.vue @@ -19,10 +19,19 @@ + :thumb-color="value >= min ? undefined : 'red'" + :color="value >= min ? undefined : 'red'" + :thumb-label="value >= min ? undefined : true" + @start="sliding = true" + @end="sendCmd()" + hide-details + > + + @@ -58,15 +58,15 @@ }), url() { - if(this.webcamConfig.service === 'mjpegstreamer-adaptive') { - return this.imageData; - } else { + if (this.webcamConfig.service === 'mjpegstreamer' && this.webcamConfig.url.indexOf("?") !== -1) { let basicUrl = this.webcamConfig.url - if (basicUrl && basicUrl.indexOf("?") === -1) basicUrl += "?" - const params = new URLSearchParams(basicUrl) params.set('bypassCache', ""+this.refresh) return decodeURIComponent(params.toString()) + } else if (this.webcamConfig.service === 'mjpegstreamer-adaptive') { + return this.imageData + } else { + return this.webcamConfig.url } }, From c2eeabe165120897c560859dfb138e4cf725aa86 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 24 Feb 2021 23:12:29 +0100 Subject: [PATCH 031/114] fix layout Signed-off-by: Stefan Dej --- docs/development/docker.md | 18 +++++++++--------- docs/development/standalone.md | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/development/docker.md b/docs/development/docker.md index a33aa5d6..aaa9f7cb 100644 --- a/docs/development/docker.md +++ b/docs/development/docker.md @@ -5,25 +5,25 @@ parent: Development has_children: false permalink: /development/docker description: >- -Setup docker and docker-compose for quick full stack mainsail development with simulavr without any real printer + Setup docker and docker-compose for quick full stack mainsail development with simulavr without any real printer --- # {{ page.title }} {{ page.description }} -# Setup +## Setup Install docker and docker-compose on your desired machine. -####Debian/Ubuntu +###Debian/Ubuntu ```shell sudo apt install docker docker-compose ``` -####Mac +###Mac https://docs.docker.com/docker-for-mac/install/ -####Windows +###Windows https://docs.docker.com/docker-for-windows/install/ -# Start +## Start 1. Look into the docker/config folder. Copy the ".example" without the "example ending". 2. Edit the configs to your likings. They are inital setup for a minimal setup environment with simulavr. 3. In the root directory of mainsail run @@ -31,8 +31,8 @@ https://docs.docker.com/docker-for-windows/install/ docker/run up ``` -# Development -####Commands +## Development +###Commands ```shell docker/run ps # showing running containers docker/run restart # restarting container @@ -41,6 +41,6 @@ docker/run restart # restarting container docker/run bash # spawning bash shell inside container ``` Restarting the api container will happen a lot, because simulavr WILL crash a lot! Timings within simulavr are not precise and klipper will bug alot about that. -# Todo +## Todo 1. The current implementation of simulavr/moonraker/klipper is kinda naiv, because docker wont run with systemd. I will fix that in later versions of the docker container, so you can restart specific containers and omit simulavr and bind a real connected printer for example. diff --git a/docs/development/standalone.md b/docs/development/standalone.md index 8be336e4..77f0431b 100644 --- a/docs/development/standalone.md +++ b/docs/development/standalone.md @@ -5,13 +5,13 @@ parent: Development has_children: false permalink: /development/standalone description: >- -Setup the project and start developing with your local printer(s) + Setup the project and start developing with your local printer(s) --- # {{ page.title }} {{ page.description }} -# Setup +## Setup Make a copy of the '.env.development.local.example' and omit the .example. In the new file edit it to refect your desired printer: ```dotenv @@ -24,7 +24,7 @@ cors_domains: ``` access the local running dev environment with `http://:`. -####Nodejs Environment >= v15.9.0 +###Nodejs Environment >= v15.9.0 Linux ```shell curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - @@ -36,7 +36,7 @@ sudo apt-get install -y nodejs For other package-managers look here: https://nodejs.org/en/download/package-manager/ -# Start +## Start ```shell npm install # only once and if you updated/installed packages npm run serve # starting current build with hot module reloading From fe1f659c514dcbe1815e9feb3f185079ed051d48 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 24 Feb 2021 23:29:45 +0100 Subject: [PATCH 032/114] fix layout of docs Signed-off-by: Stefan Dej --- docs/development/docker.md | 8 ++++---- docs/development/standalone.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/development/docker.md b/docs/development/docker.md index aaa9f7cb..95013196 100644 --- a/docs/development/docker.md +++ b/docs/development/docker.md @@ -14,13 +14,13 @@ description: >- ## Setup Install docker and docker-compose on your desired machine. -###Debian/Ubuntu +### Debian/Ubuntu ```shell sudo apt install docker docker-compose ``` -###Mac +### Mac https://docs.docker.com/docker-for-mac/install/ -###Windows +### Windows https://docs.docker.com/docker-for-windows/install/ ## Start @@ -32,7 +32,7 @@ docker/run up ``` ## Development -###Commands +### Commands ```shell docker/run ps # showing running containers docker/run restart # restarting container diff --git a/docs/development/standalone.md b/docs/development/standalone.md index 77f0431b..69e0b382 100644 --- a/docs/development/standalone.md +++ b/docs/development/standalone.md @@ -24,7 +24,7 @@ cors_domains: ``` access the local running dev environment with `http://:`. -###Nodejs Environment >= v15.9.0 +### Nodejs Environment >= v15.9.0 Linux ```shell curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - From 8b7756aea7aea943ed2959a5808550dec4e86a80 Mon Sep 17 00:00:00 2001 From: lixxbox Date: Thu, 25 Feb 2021 20:25:49 +0100 Subject: [PATCH 033/114] fix typo --- docs/customizing/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/customizing/index.md b/docs/customizing/index.md index f7f5fde1..acde1942 100644 --- a/docs/customizing/index.md +++ b/docs/customizing/index.md @@ -18,5 +18,5 @@ are not yet listed below, please create a FR (feature request) on Github. - [change favicon](favicon.md) - [upload custom.css](custom-css.md) -### cooming soon -- change primary color (all blue buttons atm) \ No newline at end of file +### coming soon +- change primary color (all blue buttons atm) From 85bd5279f55857892e6e74eaccaac1e6388d42a7 Mon Sep 17 00:00:00 2001 From: lixxbox Date: Thu, 25 Feb 2021 21:37:03 +0100 Subject: [PATCH 034/114] docs: theme warning fix --- docs/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_config.yml b/docs/_config.yml index a9622621..1bd27685 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -2,7 +2,7 @@ title: "Mainsail" tagline: A web interface for Klipper description: Mainsail is a lightweight & responsive web interface for the Klipper 3D printer firmware. It communicates with Moonraker (Klipper-API) from Arksine. logo: "/assets/img/logo-mainsail.png" -theme: just-the-docs +# theme: just-the-docs remote_theme: pmarsceill/just-the-docs color_scheme: "mainsail" search_enabled: true From d953cab29cab922284fed55da856f9737a8bb120 Mon Sep 17 00:00:00 2001 From: Eike Ahmels Date: Fri, 26 Feb 2021 08:52:55 +0100 Subject: [PATCH 035/114] new dynamic range on tool slider --- docker/start-npm | 4 +- src/components/panels/MiscellaneousPanel.vue | 9 +- .../panels/Settings/LimitsPanel.vue | 18 +-- src/inputs/ToolSlider.vue | 108 +++++++++++++++--- 4 files changed, 107 insertions(+), 32 deletions(-) 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..06874e36 100644 --- a/src/components/panels/MiscellaneousPanel.vue +++ b/src/components/panels/MiscellaneousPanel.vue @@ -17,15 +17,15 @@ @@ -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 || state.printer.configfile.settings.printer.max_accel / 2, + max_square_corner_velocity: state => state.printer.configfile.settings.printer.square_corner_velocity || 5, }), }, watch: { diff --git a/src/inputs/ToolSlider.vue b/src/inputs/ToolSlider.vue index 356f76f3..8f6f24fa 100644 --- a/src/inputs/ToolSlider.vue +++ b/src/inputs/ToolSlider.vue @@ -10,15 +10,36 @@ {{ label }} + + mdi-restart + - {{ value }} {{ unit }} + + + {{ value }} {{ unit }} +