Scott Lahteine
9ab2ba29b9
Update temperature message regex
2021-03-14 09:20:53 -05:00
Gina Häußge
f64abb22b3
🐛 Fix file name validation never validating
2021-03-12 18:13:11 +01:00
Gina Häußge
89273598ae
⚡ ️ Don't calculate last modified twice
2021-03-12 18:12:38 +01:00
Gina Häußge
90f1a44c2d
🔊 Increase timings logging
...
Now can also log on entering the decorated function.
2021-03-12 18:11:59 +01:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +01:00
Gina Häußge
cf2ce1e88b
♻️ Default to JSON api errors for blueprints as well
...
Behaviour can be overwritten via BluePrintPlugin
.get_blueprint_api_prefixes.
2021-03-10 21:54:36 +01:00
Gina Häußge
b1596f30d9
♻️ Use flask.abort where it makes sense
...
And use a custom error handler to return json error responses on API
endpoints.
2021-03-10 21:37:51 +01:00
Gina Häußge
e66497756a
✨ logging: bulk download logs
...
Implements #3746
2021-03-09 16:40:49 +01:00
Gina Häußge
62f03e371f
🥅 Fail fast on invalid file names
2021-03-09 14:47:58 +01:00
Gina Häußge
a441e48906
🥅 Don't return input params in error messages
...
While we always escape errors in the frontend, other clients or plugins
might not and thus this could cause XSS issues.
2021-03-09 14:47:43 +01:00
Gina Häußge
07c1d53a44
🥅 logging: Don't manage anything but .log files
...
You never know what people might do.
2021-03-09 14:47:29 +01:00
Gina Häußge
ab59bd4421
♻️ Fix a deprecation warning
...
Closes #4030
2021-03-09 11:05:43 +01:00
Gina Häußge
084625fe7c
♻️ pmgr: Split API endpoint
...
api/plugin/pluginmanager has been deprecated in favor of
plugin/pluginmanager/plugins, plugin/pluginmanager/orphans and
plugin/pluginmanager/repository. Additionally, there's now
plugin/pluginmanager/plugin/<key> to retrieve info for a specific plugin
by its identifier.
Repository and orphans are only fetched on opening of the Settings
dialog, plugins and notifications on login with required permissions.
All list endpoints make use of ETag headers.
The former simple API endpoint api/plugin/pluginmanager has been left in
the code for now but marked as deprecated. Same goes for the clientJS
API.
Implements #4035
2021-03-04 18:37:30 +01:00
Gina Häußge
25cf537931
♻️ gcv: Better idenitifiers in settings dialog
2021-03-04 12:54:19 +01:00
Gina Häußge
e79c41abf9
🐛 acn: fix wrong local storage identifier
2021-03-04 12:53:47 +01:00
Gina Häußge
4c4570e2e1
🐛 GCode analysis & viewer: Assume bed at Z 0.0
...
People might not actually always have a home command in their GCODE
files, so let's just depend on the so far pretty universal truth that
printers have a bed at z=0 and that is just always the lowest Z of a
printed object. And just in case, let's make this value configurable
because the printer gods only know what some people might come up with
in terms of experimental printer mechanics that end up with negative z
coordinates or a bed at z=100.
Closes #4036
2021-03-04 12:49:13 +01:00
Gina Häußge
ffea45ce54
🐛 Fix ETag header format
...
Better fix for the problem targeted by #4029 . Huge thanks to @encetamasb
for the heads-up!
2021-03-03 12:37:54 +01:00
Gina Häußge
b7e2796e60
Merge pull request #4031 from martellaj/martellaj/plugin-default-sort
2021-03-03 10:40:06 +01:00
k
d6e1868569
minor fix for M117 with no args
2021-02-28 12:29:37 -06:00
Joe Martella
28ecef207e
Changes default sorting of plugin manager to "popularity"
2021-02-27 06:29:13 +00:00
Gina Häußge
fe7541c784
Merge pull request #4017 from LazeMSS/GcodeViewerHidePrime
2021-02-23 17:47:20 +01:00
Gina Häußge
ac2e25f6d6
♻️ skipUntilthis => skipUntilThis
...
Also made some comparisons a bit more resilient.
2021-02-23 17:06:13 +01:00
LazeMSS
0dc452e445
✨ Add support for skipping gcode in the gcode viewer
2021-02-23 17:06:12 +01:00
Gina Häußge
97b6f25cfd
Merge branch 'pr/3916' into maintenance
2021-02-23 11:32:55 +01:00
Gina Häußge
fec2f9b83e
🐛 Further firmware line parser fixes
...
Something like _KEY should never get recognized as a key.
2021-02-23 11:32:36 +01:00
Gina Häußge
d0f6bf3e06
🐛 Allow numbers, but not at the start
2021-02-22 18:53:45 +01:00
Gina Häußge
6cfbf33d08
🐛 Fix get_comparable_version
...
Apparently not all versions of pkg_resources have a release field on
Version. So let's create that ourselves instead.
2021-02-17 15:11:09 +01:00
Gina Häußge
55b08f6b5b
✨ backup: allow retore of backups from newer patch versions
...
E.g. backups from 1.6.3 can be applied on 1.6.2. However, 1.6.x still
won't be possible to restore under 1.5.x or earlier.
2021-02-17 14:05:40 +01:00
Gina Häußge
c00fe8fda2
Merge branch 'improve/backup-max-size' into maintenance
2021-02-16 19:13:10 +01:00
Gina Häußge
32fd4df542
✨ backup: add warning about max upload size
...
Closes #3993
2021-02-16 19:12:52 +01:00
LazeMSS
0297a68536
Center Viewport on gcode viewer is cased wrong
2021-02-16 19:12:52 +01:00
Gina Häußge
8a0f6171ad
🎨 Output json/yaml with 2 space indentation
2021-02-15 19:16:50 +01:00
Gina Häußge
c005aa6692
Merge pull request #4015 from LazeMSS/GcodeViewerCenterFix
...
Center Viewport on gcode viewer is cased wrong
2021-02-11 10:30:03 +01:00
Gina Häußge
1eefa99c97
Merge pull request #4014 from LazeMSS/LazeMSSFixes
...
A small css bug that causes a lot of havoc in the styles when trying …
2021-02-11 10:22:36 +01:00
Gina Häußge
c773c256c1
🎨 Fix formatting
2021-02-11 10:18:22 +01:00
LazeMSS
4b02482349
Center Viewport on gcode viewer is cased wrong
2021-02-11 10:08:54 +01:00
Gina Häußge
740287528a
✨ swu: New py2 specific check overlay
...
Also: compatible flag. Will allow us to flag future updates as
incompatible via the plugin repository.
2021-02-10 11:28:05 +01:00
LazeMSS
3b05e15e13
A small css bug that causes a lot of havoc in the styles when trying to change skin
2021-02-09 22:43:11 +01:00
Gina Häußge
0904f9917d
🐛 Login: ignore disconnect on page reload
...
Closes #3938
2021-02-09 16:09:49 +01:00
Gina Häußge
9176730e5e
Merge remote-tracking branch 'origin/maintenance' into maintenance
2021-02-08 18:22:25 +01:00
Gina Häußge
3a90b394c0
🚨 let => var & actually use the sorting result
2021-02-08 18:21:01 +01:00
Gina Häußge
473d72f516
🗑 Better backwards compatibility with ancient browsers
...
Added an ES6 polyfill, fixed some minor issues in less.js, put less.js
into lib bundle again.
Further steps should be taken to ensure the core JS files stay ES5
compliant with regards to the use of arrow functions, let, const and so
on, at least the versions bundled into the webassets.
Closes #3920
2021-02-08 18:13:58 +01:00
Gina Häußge
8a08127b52
Merge pull request #3997 from LazeMSS/LazeMSSFixes
...
Fixed invalid html for video
2021-02-08 17:10:49 +01:00
Gina Häußge
2913eb5fd8
🥅 Only minify non-minified JS
...
If the file ends on ".min.js" we'll keep our hands off of it.
Closes #4007
2021-02-08 14:21:39 +01:00
Gina Häußge
0b029d8338
⬆️ Upgrade FirmwareCheck dep to 2021.2.4
2021-02-04 17:46:10 +01:00
LazeMSS
96aead40dc
Fixed invalid html for video
2021-02-02 18:03:31 +01:00
Gina Häußge
dc2b63ba81
🥅 comm: treat sd file names case sensitive
...
Just in case some firmware variant decides to go for case sensitivity
here (shouldn't usually happen since this should always be 8.3 names,
but people tinker...) we treat the SD file names case sensitively again.
Closes #3994
2021-02-02 15:57:16 +01:00
Gina Häußge
cdb1aaf6bc
🚸 Hide link to systeminfo if not accessible
...
Only users with SYSTEM permission can access it, so we should not
show users without that a link to the dialog that will be hidden then
anyway.
2021-02-01 16:13:31 +01:00
Gina Häußge
f81aa14b89
🚸 Clarify that OctoPrint does not control the webcam
2021-02-01 12:20:50 +01:00
Gina Häußge
55291b6bfd
✨ Add cli to generate system info bundle
...
To print the system info:
octoprint systeminfo
To export a system info bundle:
octoprint systeminfo <targetpath>
e.g.
octoprint systeminfo .
2021-01-29 15:37:24 +01:00