Closes#4621
Individual commits:
* User names with extra spaces are invalid
* fix return value formatting
* API: Add user name validation
* Core Wizard: Add error message
Add 'invalid user name' error message
* Fix colon typo
* Fix style
* Fix import
* fix error state in core wizard
separately handle invalid user name
* fix isort style error
* Fix API validation
python strings use strip()
* add user name validation to settings
* Correct spelling of username
* implemented foosel's requested changes
changed checks from invalidUsername to validUsername everywhere
standardized the requirements for valid user names
* introduced providedUsername function
ensures user name field doesn't start in an error state
Co-authored-by: Frederik <stuff+git@fredo.org>
- Use "M20 L T" (if CAPABILITY_EXTENDED_M20 is available) which gives
us long file names but also file timestamps.
- Wire up that timestamp into "date" field which gives us "Uploaded: ...
ago" for files on SD card. Sorting by upload date also works.
- Implementing this also fixes parsing of response to (for example
manually sent) "M20 T" command. Octoprint assumed that third entry
in response is always long file name while with M20 T it is timestamp.
- Add conversion routines between M20 T timestamp and unix timestamp. Wire
up that conversion in virtual printer.
See also https://reprap.org/wiki/G-code#M20:_List_SD_card
* Initial work for temperature markings
* Made markings label always stay on graph
* Made the markings persist after reload
* Added myself to authors
* Fixed prettier issues
* Made markings types lower case and added Done marking
* Code cleanup
* Made markings expire after a while
* Code cleanup
* Some CSS changes & make it optional
Co-authored-by: Gina Häußge <gina@octoprint.org>
* Adding shutdown action command.
* Add myself
* Add error handling.
* First attempt at systemcommands module
* Fix pre-commit issues
* Fix pre-commit issues
* Add log message.
* Update src/octoprint/systemcommands/__init__.py
* Renamed __call, simplified code.
* Inject systemcommands into plugins
* Use underscore between words in dict.
* ♻️ systemcommands -> system_command_manager
* ♻️ Switch places that make sense to system_commands_manager
Also switch SCM to use CommandlineCaller instead of
reinventing the wheel, same for other places.
* 🔒️ Don't enable support for action:shutdown by default
It could be abused by malicious firmware and/or GCODE
somehow tricked on the user, so let's play it safe
and make it something the user has to consciously enable.
* 📝 Add missing documentation
Co-authored-by: Gina Häußge <gina@octoprint.org>
This allows browsers and other clients to calculate download progress
and detect if the download fails (they get less data than expected).
This is most useful when downloading multiple timelapses due to their
potential size.
This is a backport of PR #4313
By highlighting every fifth grid line in the GCode Viewer, people
can better see spatial relations. Plus, it looks a bit like
engineering grid paper!
For #4179
Co-authored-by: Adam Wolf <adamwolf@feelslikebunring.com>
Co-authored-by: Gina Häußge <gina@octoprint.org>
Adding the `unselect` right next to where the `select` is implemented.
There are two ways of unselecting, 1) using the selected filename,
2) using special word `current`
POST /api/files/local/whistle_v2.gcode
POST /api/files/local/current