* fix: show spool id as tooltip
Signed-off-by: Patrick Stainbrook <patrick@hohestadt.de>
* feat: rework spoolman change dialog to display spool ids
Signed-off-by: Patrick Stainbrook <patrick@hohestadt.de>
* refact: move digit calculation to SpoolmanChangeSpoolDialog
Signed-off-by: Patrick Stainbrook <patrick@hohestadt.de>
---------
Signed-off-by: Patrick Stainbrook <patrick@hohestadt.de>
This commit adds 'dev-dist' directory to .gitignore. 'dev-dist' is a folder that gets created when we build the application in development environment, it's not needed to be tracked as it only contains generated files.
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: add headlines to console tab settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(de): add DE locale for console filter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix deprecated substr function
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove unused import
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: hide toolhead, extruder and temperature panel if it is not available
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: wrap too long lines in notifications
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: regex to replace url to a link in notification description text
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: create mixin to convert webcam icons from string to icon
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: icons in interface settings to store names instead of SVG in moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: icons in webcam panel to convert string to icon
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: icons in farm printer panel to convert string to icon
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: init upload from global gcode file upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: global fileupload & fileupload status snackbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: implement cancel upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: update config file upload to global file upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: fix eslint issue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* lcoale: add fullscreenUpload to i18n
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: fix toast position with upload snackbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: fix IDE code analyzer issues
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: app favicon draw function
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* style: fix favicon source code
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: fix type in TheFullscreenUpload.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: fix type in TheFullscreenUpload.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: fullscreen upload dont work in firefox
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add icon to TheFullscreenUpload.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(en): remove blank line
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(en): add missing translation
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(de): add DE translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: check if panel exists before load
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* perf: just load lodash.kebabcase instead of full package
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: save necessary klipper settings in database
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: use klipper cache data as fallback for the gcode viewer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: update gcodeviewer klipper cache action
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: display gcodeviewer always in the navi
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: typo in klipper cache fallback in gcodeviewer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug output
Co-authored-by: pataar <pietering1@gmail.com>
* style: fix code format
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: pataar <pietering1@gmail.com>
until now all images were in the docs/assets folder.
From now on, an "img" folder should be created in the respective subfolders of the categories, where the images are contained. They are then "closer to the corresponding description".
The assets folder should only contain general graphics like logos.
until now, all features were listed under quicktips. for a better overview and in preparation for further descriptions, the pages will be split into quicktips and features.
* fix: truncate excessive decimal places
fix: add `toString` casting to labels
fix: disable spinner appropriately
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: allow smooth time with 3 decimal places
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: disable both spinners if input value triggers error
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add spinnerFactor prop
Simple multiplicator that can be used in combination with spinners to increase/decrease values with a different step size.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: smooth time step size of 0.001
fix: spinnerFactor of 10
Allows for manual input of numbers with 3 decimal places. Spinners will still increase/decrease by 0.01
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add hasSpinner prop
Allows for individually activating/disabling spinners on a number input field
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: add sane values as spinnerFactor for motion and fw retract spinners
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: nullish coalescing operator logic
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: input rules and move message text to locales
* fix: omit duplicate entries in comboxes
* fix: add key to button group
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: enable zSlider when tracking
* fix: set zSlider to max on start tracking
* fix: disable tracking when pressing CLEAR
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* chore: improve confirmation service host control visuals
* fix: add missing klipper restart condition
* i18n: improve wording of english and german translation
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* Update necessary-cfg for grammar and readability fixes
* Update homepage for typos, grammar and readability
* Update index.md in manual setup for readability
* Update for readability and make editing moonraker.conf a sub-chapter
* Update for readabiliy and grammar
* Update for readability and grammar
* Fix PR #478 with review feedback - fix Klipper pause / resume
* Fix typo (missing s in preset)
* Make call to action stronger, remove "it is" for "time to print!"
* Improve readability on front page
* Update Kiauh page for readability and gramma
* Review and update Update guides for spelling, grammar, readabilty and localization
* Review updates from yesterday and fix some errors from updating the docs
* Apply feedback to fix typos for PR#478
Signed-off-by Paul Cutler paul@paulcutler.org
* Update da.json
* locale: fix typo in translation name
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale: add last translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
It can occur, that a browser on Windows 10 reports a maxTouchPoints count of 256, even though the device is a desktop system without any touch functionality at all.
See also: https://stackoverflow.com/a/67909182
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add confirmation for klipper/service/host restart/stop when printer is printing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale: modify confirmation dialog names
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: en locale syntax
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: locale for service restart dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: reset dbCheckboxes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework moonraker db reset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add function to create a mainsail db backup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix type of dbCheckboxes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: first restore test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: restore db from json file
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: rework gui store issues
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: rework gui store issues with extruder panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rename gui/macrogroups to gui/macros and move back to mainsail namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: ignore simple hide macros settings in expert macro mode
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: init load bug
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rename gui/consolefilter to gui/console and move back to mainsail namespace and update gui/macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove old function in gui/macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/presets
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/gcodehistory
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add all gui restart actions in gui restart action
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/remoteprinters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: control store gets
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework reset moonraker db in interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework backup moonraker DB
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework restore moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: backup/restore moonraker db locale
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: backup/restore moonraker db locale, add tempchart
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: change tempchart settings wrong store path
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: add view locale to db backup/restore and delete old locale
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: use /config/.theme/default.json when reset moonraker db to fill in default values after reset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: use /config/.theme/default.json when mainsail will be loaded the first time
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add description to backup dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: save macrogroup update
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: editor highlight bug
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* New vesion based on changes in en version
ready for new release
* locale(hu): remove all unused keys
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* updated the 3 changes
Group and the 2 hidetimeleapse has been inserted.
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* fix: fix input layout on small devices
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: use col-sm class instead of sm property
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add moonraker job_queue module and create store module
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add jobqueue panel in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: remove workaround (pause queue at adding the first element)
this function was added in mooonraker
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: prevent unnecessary database traffic
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: no lock on elements without a slider
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* refactor: remove debug output in timelapse mutations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: use readable stream for Mjpegstreamer.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: use real webcam components in settings preview
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: initial upload of timelapse support
- add navipoint timelapse
- show filelist of timelapse
- display status and add important settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: hide frame count if its zero
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add timelapse option to start print dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: block "print start" dialog, if printer is printing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: simplify getConsoleFilterRules getter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add console filter for timelapse gcodes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: hide timelapse gcodes in console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: update timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: start timelapse settings in settings menu
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add rest of the timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* timelapse: rearrange and add missing settings (#364)
* timelapse: rearrange and add missing settings
* timelapse: missing locals
* timelapse: fixed typos and added get/setter of missing settings
* timelapse: added missing settings getDefaultState
* feature: added more options to start print dialog (#366)
* feature: cleanup print start dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: order timelapse settings and add headlines
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add timelapse blocked settings functions (if config exists in configfile)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: make settings dialog bigger to display timelapse (last line of settings) complete
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: remove headline "camera settings" in timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add missing settings and add setting descriptions (#397)
Note: "cameraOptions" are harcoded but should be taken from webcam config (more detail in the dev dc)
* refactor: update timelapse from develop
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update timelapse file manager
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: uppercase settings doesn't work with moonraker confighelper (#399)
* fix: uppercase settings doesn't work with moonraker confighelper
* fix: uppercase settings doesn't work with moonraker confighelper
* fix: uppercase settings doesn't work with moonraker confighelper
* refactor: fix camera type in timelapse store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix merge from develop
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: list of available webcams in timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: check if console exist before checking customFilters for convert to new namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add re-rendering option and add snackbar for rendering progress
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: display zip files in TimelapseFilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: video preview in timelapse
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: change icon for zip files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix(locale): add timelapse to en.json
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add no status message in TL status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add en locale for print start button in files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: FrY Sennberg <fryakatkop@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: close ui settings on ESC and change close icon to tile
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change font style in wide sidebar and extend width of wide menu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change menu style ui-settings-entry to dropdown
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: correct variablenames in locales
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: re-do menuStyle setting implementation
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(miniconsole): change collapse button to tile and remove empty cols and row in template
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: gui variables and button appearance in toolbars
* move some vars to configure gui appearance to variables.ts
* force buttons in bars to 100% height
* set icon button width to toolbar-heigth
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(heightmap): add autofocus and close on ESC to dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(throttledStates): bigger dropdownlist in favor of readability
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(confFiles): change imageviewer topbar to darkcolor and move close button to left
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: camera-dropdown visability condition
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(history): ad close on ESC on dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: button overhaul
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct navigation width and change variablenames
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: change more close buttons to tiles
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: close ui settings on ESC and change close icon to tile
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change font style in wide sidebar and extend width of wide menu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change menu style ui-settings-entry to dropdown
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: correct variablenames in locales
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: re-do menuStyle setting implementation
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: create store for seperate webcam namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update settings webcam and webcam panel to new namespace / store modules
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: types in webcam namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: hide webcam panel, if no webcam is in the db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug output in settings webcam tab
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: margin between DependenciesPanel.vue and next panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
these bugfixes:
> Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (#4)
dialog on unsaved changes. This can be disabled
if the user wishes to do so.
Also allows the user to configure if the editor can be
closed by hitting the "ESC" key.
* feature: add multiple macro management settings (simple/expert)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: create and remove Macrogroups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: edit function for macro groups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: create/edit/delete macrogroups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: init data in heightmap dont exist without bed_mesh
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: extract macro params (#392)
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* feat: finish macro management settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: macro management in dashboard settings and display panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: align of icons and text in settings dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: move gcode macros in seperate component
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: combine "show status lines" in edit macro groups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: display macrogroups and macros in paused state
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: macro group rights and display errors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove create macrogroup and just add new group without name
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: hide macrogroups when macromanagement is simple
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: change to Roboto-Mono font in console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: add robotoMono font
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update regex for extract params from macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: macro params regex update
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: hide params with '_' as first char
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: switch simple macros panel to macro-button component
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix padding of macro params dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add tooltips to macro management icon buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: filter not existing macrogroups in panellist
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: delete layout position when deleting macrogroup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Eike Ahmels <hui_buh-@gmx.net>
* Made service commands available through frontend
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
* FIX: docker systemctl workaround
* fixed systemctl problem, added delay for simulavr
* chore, removed unused stuff
* bump
* fixed olds paths and changed base image for faster builds
This fixes a bug where the webcam panel is collapsible even when navigated to the webcam page where the panel should not be collapsible.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feature: add 2D object map (testing)
* feature: 2D map for objects
* chore: update materialdesignicons
* feature: move exclude object map and list in a differnt dialog
* feature: add hover function to display hovered object in the map
* feature: colorize border of current object
* feature: click on object in map to cancel object
* feature: add mobile support for exclude object dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add 2D object map (testing)
* feature: 2D map for objects
* chore: update materialdesignicons
* feature: move exclude object map and list in a seperate dialog
* feature: add hover function to display hovered object in the map
* feature: colorize border of current object
* feature: click on object in map to cancel object
* feature: add mobile support for exclude object dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add exclude objects on the dashboard
* chore: fix ts issues from status panel
* chore: update gcodeviewer to v2.1.12
* feature: add object selection to gcode viewer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add klipper warnings panel on the dashboard
klipper pr for warnings: KevinOConner/klipper#4659
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: display KlipperWarningsPanel.vue only when klipper is ready
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add deprecated_value message to translations
feature: add link to mainsail docs for each entry
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix icon size in download log button
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* DOCU: changed some wordings and skipped terminal commands
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* feature: gcodeviewer (#322)
* Initial implementation of GCode Viewer in Mainsail
* Revert files.vue
* Reupdate files.vue
* Fix router
* Add render quality and force line mode settings
* Cache off canvas
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* Loading progress indicator
* Turn off loading progress after changing render quality.
* Failed render check.
* Added a live tracking button
* Work on settings
* Hide the loading required button earlier
* Added more settings.
* min and max feed coloring settings
* Set ZClipPlane for WebGL1 viewers
* Bed and Delta
* Force line rendering is saved
Addressed an issue where watchers could try to fire on a viewer that is not initialized
* Move loading progress bar
* Multiple UI Updates
Add Progress Color setting and persistence
Add z clip control - enabled when not tracking
Move loading progress bar into canvas area
* Update to package 1.0.6
* Pulled latest
* Update to @sindarius/gcodeviewer 2.0.4
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* Set tracking position to 0 when starting tracking.
* A timeout is needed to reset the visual
* Created forceRedraw to deal with a timing issue when starting tracking.
* Update to 2.0.6 package
* Revert "feature: gcodeviewer (#322)" (#341)
This reverts commit 673fd9f879.
Co-authored-by: Juan Rosario <pyroclasmx@yahoo.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): fix store theme files in farm printer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature(printerfarm): display dynamic mainsail-logo in printerfarm panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): fix image/webcam height to 3:2 ratio
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): disable webcam if printer is not connected
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): change button to "reconnect" when printer is not connected
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(controlpanel): align center for bar control buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Initial implementation of GCode Viewer in Mainsail
* Revert files.vue
* Reupdate files.vue
* Fix router
* Add render quality and force line mode settings
* Cache off canvas
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* Loading progress indicator
* Turn off loading progress after changing render quality.
* Failed render check.
* Added a live tracking button
* Work on settings
* Hide the loading required button earlier
* Added more settings.
* min and max feed coloring settings
* Set ZClipPlane for WebGL1 viewers
* Bed and Delta
* Force line rendering is saved
Addressed an issue where watchers could try to fire on a viewer that is not initialized
* Move loading progress bar
* Multiple UI Updates
Add Progress Color setting and persistence
Add z clip control - enabled when not tracking
Move loading progress bar into canvas area
* Update to package 1.0.6
* Pulled latest
* Update to @sindarius/gcodeviewer 2.0.4
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* Set tracking position to 0 when starting tracking.
* A timeout is needed to reset the visual
* Created forceRedraw to deal with a timing issue when starting tracking.
* Update to 2.0.6 package
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* feature: split control panel in components and add circle control panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: remove css namespace of SVG
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add button for QGL and Z-Tilt
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* clear debug status
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(ControlPanel): change - to en-dash for equal width of negative and positiv buttons in DWC-style ControlPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* hu json
updated hungarian translation, please check if all parameter is short enough.
thx
* locale(hu): remove unused keys
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Update hu.json
Just fixed the title.
* locale(hu): move translation to the right location
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(hu): move translation to the right location
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* Updated de.json to match latest locale layout
* Update de.json
reverted fixed names to englisch.
* Update de.json
removing comma from json object ends.
* Update de.json
additonal comma fix.
* Update de.json
Chart texts changed to old (v1.6) values
(GUI) Line breaking texts changed.
* Z-Offset Panel headline correction
Changed from Z-Tilt to Z-Offset
* Status Panel line break change
Change Speed text from "Geschwindigkeit" to "Tempo"
* minor text updates
Voreinstellungen --> presets
Z-Panel preset text change
* feature: add linux/bash like console style
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix not full console position
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: configable console height on dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: old variable name in MiniconsolePanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: console array cut on dashboard dont work with shell style
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* init test setup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: ts typos
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: better tab system
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add touch support for drag&drop and split components
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add panel filter to each viewport
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: mjpegstreamerAdaptive dont start with a wront image url
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add i18n support for dashboard settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* test new flow and velocity
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* test build for live speed & flow
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix ToolSlider.vue for printsettings and machine limits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* remove debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework MachineLimits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: live extruder, toolhead speed and position data in StatusPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* test vue-echarts and dataset>source instead of series>data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix disposed state of chart & delete update interval of settings page
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* init TS migation & dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: dashbaord console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add "disabled" status to the filament runout sensor on the dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix klipper restart process
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix status panel during a print
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert g-code files to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert history files to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert machine limits to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert update manager to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert endstops & logfiles to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix temp display in tools panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert machine > config files to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert select printer dialog to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert select printer menu to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert farm page to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix debug output of farm printer getters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix import webcam streams in farm view
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* better handling when changing printers
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert heightmap to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert heightmap to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Console QOL (#300)
* CHORE
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* NEW: console ts refactor, linux autocomplete, gui helplist, multiline
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: console autocomplete flood fix
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* fix merged console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fixed return of ConsoleTable.vue isCommand
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: add toast after creating file in ConfigFilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: file upload message
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add toolbar to files panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: disable scrollbars in TempChart.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: sidebar z-index and farm printer toolbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: sidebar & topbar z-index and farm printer toolbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* update toolbars in gcode-files and history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: new settings dialog (#302)
* create settings dialog and integrate general, console, control, marcos, presets, webcams
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: renamed webcam gui state variable
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: temperature_fan chamber in farm printers dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: only display RPM in tools panel, when its available
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: reading empty remote printers list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: loading additionalSensors in temp panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: bed_mesh loading
rework heightmap settings
save heightmap settings in moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add remote printers to settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix types
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add beforeDestroy to echarts
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add heightmap visualMap scaling and format tooltip
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: logo & primary color customizing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* remove keep-alive in app.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* round tempchart data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* normalize toolbar buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix series attributes & update echarts-gl
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix hostname in sidebar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework websocket loadings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix rework websocket loadings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Fixes for console QOL PR (#301)
* FIX: command help dialog added
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: console fixes
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* rework events store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: check customFilters if string or array
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: edit preset dont work (existing name check)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: save webcam with index 0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: tool combobox input dont work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: tooltip position & z-index
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix output name of filament sensor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* store performance updates and StatusPanel.vue optimizing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* console bugfixes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix icon-rotate in temperatures panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add auto-grow to console input fields
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix dialog action button colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix refreshMetadata of gcocde files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add multi fileupload to drag&drop upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert SystemPanel to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add init and getters for system panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add init and getters for system panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* finish SystemPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: raspberry throttled flags in topbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix type in TheThrottledStates.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add new editor (#307)
* init test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* theme test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: switch to codemirror editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix type in TheThrottledStates.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* reformat flags output and deactivate debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add types to throttle states
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* display "dirty" in the board firmware version string
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix mini console array cut
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* delete old comment
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix config files on small devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: display macro description in settings tab
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* change settings icons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rename dashboard panel & change slider text in settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* responsive optimations for settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix throttled state flags filter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Code highlighting for codemirror (#309)
* init test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* theme test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: switch to codemirror editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* NEW: klipper_config editor theme
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* NEW: code highlighting for codemirror
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* feature: hide/show jobs with special print status
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* redesign console help modal
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: default state of sidebar was wrong on mobile devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: mobile view interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: optimize mobile view interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: block empty console commands
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* push version number
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add current / max flow in status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add big gcode thumbnail to status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix favicon and setting tab names
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* cleanup old editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: add redirect for updates from 1.6.0 to 2.0.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Eike Ahmels <hui_buh-@gmx.net>
* Changed from Balena to RPI-Imager
Enhanced Docs accordingly
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Added 'include mainsail.cfg'
Fixed Typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Removed SSH Login, no need for that.
Fixed Typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Added some formatting
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* add home and temp check
* add missing lines
* update description property
* get VELOCITY parameter if specified
* remove gcode state
save and restore of the gcode state is already part of the base macros
* docs: just a few stylesheet adjustments
modified: docs/_sass/color_schemes/mainsail.scss
new file: docs/assets/img/alert.svg
new file: docs/assets/img/info.svg
new file: docs/assets/img/success.svg
new file: docs/assets/img/warning.svg
* docs: escape gcodes, so that it can be rendered.
modified: necessary-cfg.md
* language from js to json and new de language
* added translation to controlpanel, added translations
* de translation
fixed typo "rename"
* updated de translation
* fixes
* removed de.old
* updated de translation
* updated de local + deleted empty keys
* Update hu.json
Adding missing components, fixing doubled names (english+hungarian leftovers).
This is ready for release. Other changes after 0.16 release and live test will be requested.
* 2021 04 11 after todays changes up to date
also deleted previous problems, corrected the langage marks place, deleted not needed lines
* language from js to json and new de language
* added translation to controlpanel, added translations
* de translation
fixed typo "rename"
* updated de translation
* fixes
* removed de.old
* updated de translation
new file: assets/img/preview/Clippy2k.gif
new file: assets/img/preview/Mainsail2k.png
new file: assets/img/preview/Merlin2k.png
new file: assets/img/preview/Wallpaper2k.png
new file: assets/img/preview/logo2k.png
new file: assets/img/preview/menu2k.gif
new file: preview.md
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
If you are reading this document right now, you are probably considering contributing to Mainsail and making it better
than it is today. Thank you for taking that initiative! Before submitting your contribution, please take a moment and
make sure to read through our contribution guidelines:
- [Code of Conduct](https://github.com/mainsail-crew/mainsail/blob/develop/.github/CODE_OF_CONDUCT.md)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Submission Guidelines](#submit)
- [Submit an Issue](#submit-issue)
- [Submit a Pull Request](#submit-pr)
- [Financial Contributions](#financial)
- [Credits](https://docs.mainsail.xyz/credits)
## <a name="question"></a> Got a Question or Problem?
Please do not open issues for general support questions. We want to keep GitHub issues for bug reports and feature
requests. Instead, please visit us on [Discord](https://discord.gg/mainsail) to ask support-related questions.
Our Discord server is a much better place to ask general support questions. We take a right to close issues that are
requests for generic support and redirect people to Discord.
## <a name="issue"></a> Found a Bug?
If you find a bug in the source code or think that Mainsail is behaving odd in specific situations, you can help us fix
that issue by [submitting an issue](https://github.com/mainsail-crew/mainsail/issues/new?assignees=&labels=%E2%9A%A1+Type%3A+Bug&template=bug_report.yml).
If you have already fixed that issue, you can [submit a Pull Request](#submit-pr) with that fix.
## <a name="feature"></a> Missing a Feature?
You can request a new feature by [submitting a feature request](https://github.com/mainsail-crew/mainsail/issues/new?assignees=&labels=%F0%9F%92%A1+Type%3A+FR&template=feature_request.yml).
If you would like to implement a new feature, please consider the scope of the change. For changes requiring a lot of
work, it's best to outline a proposal first so it can be discussed. This allows us to prevent wasted time and effort and
discuss how to bring your proposed feature into the project.
## <a name="submit"></a> Submission Guidelines
### <a name="submit-issue"></a> Submitting an Issue
Before you submit an issue, please search the issue tracker if your problem may already exist. If a ticket already
covers your case, please refrain from opening a new ticket and instead contribute to the existing ticket. If you submit
an issue, please provide the required information and reproduction steps. We need those to be able to try and reproduce
the bug ourselves. Without proper instructions on how to reproduce the issue you are encountering, we might be unable to
fix a possible bug.
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
Before you work on a PR and submit it, please pay attention to the following guidelines:
1. Search the [pull requests](https://github.com/mainsail-crew/mainsail/pulls) for an open or closed PR related to your submission.
- You don't want to duplicate existing efforts or work on something unlikely to be merged into the project.
2. Do not submit PRs against the `master` branch. PRs need to be submitted against the `develop` branch.
4. If there is an issue describing the problem you're fixing or a discussion of a feature you are implementing, make sure to link it in the PRs body.
- You can also add `fix #<id>` or `fixes #<id>` in the PR body where `<id>` is the issue id.
- Example PR title, body and sign-off:
```
fix: incorrect handling of click event
This PR will fix #123.
Fixes correct handling of click event when button [X] is clicked.
Signed-off-by: James Smith <james.smith@myvalidemail.com>
```
5. If there is no issue describing the problem, create an issue first or provide a sufficient description of the bug/feature.
- Screenshots of your changes are welcome if you worked on UI-related code.
6. The title of the PR should follow the [commit message convention](https://www.conventionalcommits.org/en/v1.0.0/).
- If the PR consists of multiple commits, it's good practice to follow the convention, although that is not necessarily required.
- Upon merging, we will squash all commits of the PR into a single commit for a clean history and release changelogs.
7. Please sign off each commit and your PR. It must contain your real name and a current email address (see example in item 4).
- The sign-off should follow this pattern: `Signed-off-by: My Name <myemail@example.org>`
- The sign-off certifies that you agree with the [developer certificate of origin](https://github.com/mainsail-crew/mainsail/blob/develop/.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md).
- If you provide a translation, a sign-off is not necessarily required.
8. When opening a pull request, keep `Allow edits and access to secrets by maintainers` **enabled**.
Mainsail is a lightweight & responsive web interface for the [Klipper](https://github.com/KevinOConnor/klipper)
3D printer firmware. It communicates with the [Moonraker (Klipper-API)](https://github.com/arksine/moonraker) from [Arksine](https://github.com/arksine).
To begin using Mainsail start by [installing](https://meteyou.github.io/mainsail/setup/) it or read the [pages](https://meteyou.github.io/mainsail/) for more informations.
Visit [docs.mainsail.xyz/setup](https://docs.mainsail.xyz/setup) to get started with Mainsail.
For support join our discord server -> [https://discord.gg/skWTwTD](https://discord.gg/skWTwTD)
Mainsail is also available in remote mode on [http://my.mainsail.xyz](http://my.mainsail.xyz). Find
out [more](https://docs.mainsail.xyz/setup#mymainsailxyz).
## Documentation
Visit [docs.mainsail.xyz](https://docs.mainsail.xyz) to view the full documentation.
You can find the latest release notes [here](https://github.com/mainsail-crew/mainsail/releases).
- **Responsive Web Interface:** _Optimized for desktops, tablets and mobile devices_
- **Printer Farm:** _Supports multiple 3D printers_
- **[Localization](https://docs.mainsail.xyz/features/localization):** _Choose between 12 different languages_
- **File Manager:** _Delete, rename and upload your G-Code and config files_
- **File Editor:** _Edit G-Code and config files with syntax highlighting in your browser_
- **[Print History](https://docs.mainsail.xyz/features/history):** _See your previous prints and their status_
- **[Statistics](https://docs.mainsail.xyz/features/history):** _View how much time your printer has been in use and the number of jobs that have succeeded or failed_
- **Job Queue:** _Queue multiple jobs and add them directly from your slicer_
- **[Temperature Presets](https://docs.mainsail.xyz/features/presets):** _Manage different temperature presets for easy preheating_
- **[Bed Mesh Visualisation](https://docs.mainsail.xyz/features/bedmesh):** _View your bed using a 3D mesh graph_
- **G-Code Viewer:** _View a 3D render of your print and follow the progress_
- **Multi-Webcam Support:** _View your print from different angles with multiple webcams_
- **Timelapse Integration:** _Automatically record a timelapse of your print using [moonraker-timelapse](https://github.com/mainsail-crew/moonraker-timelapse)_
- **Power Control:** _Control power devices such as relays, TP-Link and Tasmota devices, and more_
- **Powerful Macro-Management:** _Manage your macros on a micro level_
- **[Configurable Dashboard](https://docs.mainsail.xyz/features/dashboard-organisation):** _Create your own personal dashboard_
- **[Theming Support](https://docs.mainsail.xyz/features/theming):** _Customizable user interface including logos, backgrounds, and custom CSS_
- **[Additional Sensors](https://docs.mainsail.xyz/quicktips/additional-sensors):** _Add extra sensors to the temperature graph_
- **Exclude Objects:** _Exclude parts of your print <sup>(not officially supported by Klipper yet)</sup>_
## Help and Support
Do you need help or just want to talk? Join our active community on [Discord](https://discord.gg/skWTwTD)!
Did you find a bug or did you thought of a feature?
Please create an [Issue](https://github.com/mainsail-crew/mainsail/issues) in GitHub and let us know.
**BIGTREETECH** is the official mainboard partner of Mainsail. BIGTREETECH is committed to developing innovative and competitive products to better serve the 3D printing community.
## Support Mainsail
Mainsail is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost
every day. To motivate him (☕🍺😜) there are several ways to support him:
- Read our [contributing guidelines](CONTRIBUTING.md) to get started,
or find us on [Discord](https://discord.gg/mainsail), we will take the time to guide you.
Looking for a first issue to tackle?
- We tag issues with [](https://github.com/mainsail-crew/mainsail/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) when we think they are well suited for people who are new to the codebase or OSS in general.
- [Talk to us](https://discord.gg/mainsail), we'll find something that suits your skills and learning interest.
## Credit, sources and inspiration
* [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
* [Eric Callahan (arksine)](https://github.com/Arksine) for [Moonraker (Klipper API)](https://github.com/Arksine/moonraker). Without Moonraker, Mainsail would not be possible.
* [lixxbox](https://github.com/lixxbox) for the Mainsail logo & Docs
* [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
* [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be possible.
- [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
- [Eric Callahan (arksine)](https://github.com/Arksine) for [Moonraker (Klipper API)](https://github.com/Arksine/moonraker). Without Moonraker, Mainsail would not be possible.
- [lixxbox](https://github.com/lixxbox) for the Mainsail logo & Docs
- [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
- [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be
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
remote_theme:pmarsceill/just-the-docs
color_scheme:"mainsail"
search_enabled:true
defaults:
-
scope:
path:""# an empty string here means all files in the project
NOTE: After saving, your browser may need a uncached reload to show the change (https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache)
Mainsail requires a minimum configuration to function properly. It should give you a warning at startup if the required parts are not found in your configuration.
## Required configuration
### virtual_sdcard
This allows gcode file uploads.
```yaml
[virtual_sdcard]
path:~/gcode_files
```
### display_status
This is required for messages in your status panel, if you don't have a `[display]` in your configuration.
```yaml
[display_status]
```
### pause / resume / cancel
This enables pause / resume in mainsail.
```yaml
[pause_resume]
```
## Macros
### for pause /resume / cancel functionality
These should be modified to your own needs.
```yaml
[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
```
```yaml
[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
```
```yaml
[gcode_macro CANCEL_PRINT]
rename_existing:BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
```
## Optional
### customize klipper default commands
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
Integrate additional sensors into the temperature graph. For example Raspberry Pi, MCU, BMExxx, HTU21D, LM75 and more..
---
# {{ page.title }}
{{ page.description }}
## Raspberry Pi temperature sensor
Append the following section to your printer.cfg:
```yaml
[temperature_sensor raspberry_pi]
sensor_type:rpi_temperature
min_temp:10
max_temp:100
```
## ATSAM, ATAMD, and STM32 temperature sensor
Append the following section to your printer.cfg:
```yaml
[temperature_sensor mcu_temp]
sensor_type:temperature_mcu
min_temp:0
max_temp:100
```
For more information on this topic and how to add additional sensors, please refer to [Klipper documentation](https://www.klipper3d.org/Config_Reference.html#builtin-micro-controller-temperature-sensor){:target="_blank"}.
Mainsail supports so-called presets. They are often used for preheat & cooldown, but also execute normal gcode.
---
# {{ page.title }}
{{ page.description }}
## Setup
In Mainsails interface settings you will find a section called "Preheat Presets". There you can set your presets via "ADD PRESET" and the following dialog.
### 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.

### Further Examples
#### Z-Offset
To quickly switch between different Z-offsets \(flexplates with smooth and textured surfaces\), you can create presets and deactivate the heaters.
As G-Code you simply enter `SET_GCODE_OFFSET Z=0.2`, of course with your determined offset.
You can find further information on this topic by checking out the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
The recommended way to install Mainsail on a Raspberry Pi is to use [MainsailOS](https://github.com/raymondh2/MainsailOS),
a pre-packaged disk image. If you are building a custom configuration, you may need to skip
these instructions and install Mainsail [manually](manual-setup/index.md).
1. Download the latest mainsailOS [Release](https://github.com/raymondh2/MainsailOS/releases)
2. Unzip the .img file from your download.
3. Use [BalenaEtcher](https://www.balena.io/etcher/) to write the .img on to an 8GB, or larger SDcard. *THIS WILL DESTROY ALL DATA ON YOUR CARD*.
_note: It is a good idea to use a premium SDcard from a reputable manufacturer such as Sandisk, Kingston or Samsung. Low end cards will often fail quickly when used in this application_
4. If you will be using wifi, edit the file `mainsailos-wpa-supplicant.txt` with your Wifi information. If you are having trouble seeing this file on the sdcard, try removing it and re-inserting it into your card reader.
5. Make sure that your MCU(s) is connected to your pi, If you will be using wired networking, also make sure your ethernet cable is connected.
5. Insert the SDcard into your Pi, and power on the Pi.
6. Find your pi on the network, and ssh into it, (Using PuTTY on Windows or the terminal on MacOS)
* If your network supports bonjour, the pi should show up as `mainsailos.local`
* If your network automatically assigns DNS hostnames, it may simply show up as `mainsailos`
* Failing these two options, you may need to check your router's DHCP server, and find out what IP address as been assigned to the device.
This is a guide to setting up Klipper, Moonraker & Mainsail on a Raspberry Pi with Raspberry Pi OS. Other SBCs and/or Linux distributions might work, but may require a customized installation script or configs.
The following commands will clone Klipper to an appropriate directory in HOME and run the setup script.
```bash
cd ~
git clone https://github.com/KevinOConnor/klipper
cd ~/klipper
./scripts/install-octopi.sh
```
### Configuration
After Klipper is installed, you will need to change the default location of the printer.cfg and add the UDS (unix domain socket). This is defined in the file `/etc/default/klipper`
and change the config location to `/home/pi/klipper_config/printer.cfg` and add `-a /tmp/klippy_uds` to define UDS.
```
KLIPPY_ARGS="/home/pi/klipper/klippy/klippy.py /home/pi/klipper_config/printer.cfg -l /tmp/klippy.log -a /tmp/klippy_uds"
```
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
You have to create the directories for your klipper configuration and the virtual_sdcard directory:
```bash
mkdir ~/klipper_config
mkdir ~/gcode_files
```
Move your printer.cfg to ~/klipper_config and check if the following entries are present in the config.
```ini
[virtual_sdcard]
# for gcode upload
path: ~/gcode_files
[display_status]
# for display messages in status panel
[pause_resume]
# for pause/resume functionality.
# Mainsail needs gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT` to make the buttons work.
```
> ℹ️ **These entries are very important.**
For the full functionality of mainsail, you should also define gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT`. You'll find further information in [this](../../necessary-cfg.md){: target="_blank"} document.
After your config is in place, restart klipper with `sudo service klipper restart`. Check the `/tmp/klippy.log` for errors, if Klipper starts correctly you can continue the guide.
Now you can check again the API if it works with the reverse proxy. Open the url http://\<printer-ip\>/printer/info in your browser. if you see a content like this:
Now it should be possible to open the interface: `http://<printer-ip>/`.
### Important macros
if you want to get the full experience with mainsail and klipper virtual_sdcard print, you should use these macros, or use them as templates for your own.
to use the hostname instate of the ip, you can install the avahi-daemon:
`sudo apt install avahi-daemon`
and you can config your hostname:
`sudo raspi-config`
in 2 Network Options > N1 Hostname you can edit your hostname of your raspberry pi. After a reboot you can use http://\<hostname\>.local/ to open the webinterface.
> ⚠️ **Please pay attention to the following steps!**
Misconfigured trusted_clients are a very common source of failure.
For Moonraker you'll need to create a separate config file.
`nano ~/klipper_config/moonraker.conf`
Insert the following part and modify `trusted_clients` according to arksines description below.
Also consider further IP ranges, e.g. when connecting via VPN. To determine your local ip `ip a` and `ifconfig -a` are common ways to do so on Linux and `ipconfig` on Windows.
> ℹ️ **This is a very basic config**
For more options and detailed explanations you should follow [arksines instructions](https://github.com/Arksine/moonraker/blob/master/docs/installation.md).
```
[server]
host: 0.0.0.0
config_path: ~/klipper_config
[authorization]
enabled: true
trusted_clients:
192.168.1.0/24
2a02:810d:9340:33f6::/64
[update_manager]
[update_manager client mainsail]
type: web
repo: meteyou/mainsail
path: ~/mainsail
```
> 🔥 **trusted_clients - read carefully** 🔥
A list of newline separated ip addresses and/or ip ranges that are
trusted. Trusted clients are given full access to the API. Both IPv4
and IPv6 addresses and ranges are supported. Ranges must be expressed
in CIDR notation (see http://ip.sb/cidr for more info).
For example, an entry of 192.168.1.0/24 will authorize IPs in the range of 192.168.1.1 -
192.168.1.254. Note that when specifying IPv4 ranges the last segment
of the ip address must be 0. The default is no clients or ranges are
trusted.
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
Restart Moonraker
```bash
sudo service moonraker restart
```
Open the following url with your printers IP in your browser
```
http://<printer-ip>:7125/printer/info
```
If everything has been set up successfully, a message like this should appear:
Loaded 100 of 589 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.