Gina Häußge
b4f265d9f6
🎨 pre-commit: Update all repos
2022-02-09 18:02:41 +01:00
Charlie Powell
28c0e10940
🐛 Fix less build under Less v4 (#4404 )
...
* 🐛 Fix bootstrap 2 for less v2+
Seen in https://stackoverflow.com/questions/26628309/less-v2-does-not-compile-twitters-bootstrap-2-x
* 🐛 Fix bootstrap 2 for less v4
All division now needs parentheses (default option), unless extra commandline options used.
* 🔨 Build all less under v4
2022-02-07 17:47:50 +01:00
Gina Häußge
7fb9df9940
♻️ Migrate code base to Python 3 only
...
* pyupgrade
* various new codemods
* manual removal of Py2/3 compat imports
* manual adjustment of docs, examples, tests
* to_str is now the new to_unicode, deprecated
redirection to to_bytes has been removed
* to_native_str has been redirected to point to
to_str
* to_unicode has been redirected to point to
to_str
* atomic_write refactored to use
NamedTemporaryDirectory
* various other fixes/refactorings all over the
place
2022-02-01 12:57:01 +01:00
Flaviu Tamas
f3c0c29f69
Use C YAML loader when possible
...
This is a lot faster:
before _get_options: .339, .317, .220, .321, .315
after _get_options: .037, .106, .037, .145, .089
2021-09-13 16:16:53 +02:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +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
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
3a90b394c0
🚨 let => var & actually use the sorting result
2021-02-08 18:21:01 +01:00
Gina Häußge
be5d4907ef
Merge pull request #3953 from eyal0/save_logging_levels_on_change_only
...
Save logging levels on change only
2021-01-18 10:32:31 +01:00
Gina Häußge
37fa52c47a
Merge pull request #3956 from eyal0/difference_instead_of_without
...
Use _.difference instead of _.without for arrays
2021-01-18 10:31:54 +01:00
eyal0
74facf9373
Merge branch 'empty_new_logger' into auto_add_logger
2021-01-13 14:54:43 -07:00
eyal0
f7a1f0b69f
Use optionsCaption instead of making a fake component
2021-01-13 14:53:33 -07:00
eyal0
b667257ecd
Automatically add logger when one is selected
...
When a user choose a new logger, we can assume that the intent is to
eventually add it to the list, so just do that.
This fixes #3947
2021-01-13 13:47:09 -07:00
eyal0
bf3461f9f1
Use _.difference instead of _.without for arrays
...
This fixes #3955
2021-01-13 13:26:51 -07:00
eyal0
56c516aa9a
Reset changed flag after reloading the settings.
...
This fixes #3952
2021-01-13 12:54:41 -07:00
eyal0
99decf0d66
Merge branch 'reload_logging_settings' into auto_add_logger
2021-01-13 12:09:01 -07:00
eyal0
85919a1df5
Add empty component to availableLoggers list
...
This fixes #3950
2021-01-13 12:06:03 -07:00
eyal0
f8d8af8cc4
Reload logging settings when settings are viewed.
...
This fixes #3948
2021-01-13 11:43:31 -07:00
cp2004
065b87d694
⬆️ Upgrade FontAwesome to 5.15.1
...
This is not a breaking change, due to the inclusion of the v4-shims. All icons should aim to use fontawesome 5 styles, full guide on breaking changes can be found at:
https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4
I've aimed to update all icons I could find, but due to the compatibility layer if there are a couple missed, they still all work fine.
2020-10-22 20:31:23 +01:00
Gina Häußge
6b44909f21
🎨 Add prettier for js, less, yaml, json, ...
2020-10-07 18:53:49 +02:00
Gina Häußge
b5be8f3eae
🎨 Add codemods to pre-commit, fix flake8
2020-10-07 16:27:11 +02:00
Gina Häußge
fbfb34df58
🎨 Switch to use of isort
2020-10-07 13:15:52 +02:00
Gina Häußge
1f93b2355a
🎨 Switch to black formatting
2020-10-07 13:13:06 +02:00
Gina Häußge
af60fd6428
🎨 Change dict constructors to literals
2020-10-06 14:57:47 +02:00
Gina Häußge
22ce8e4c24
✨ New plugin timings logging feature
...
If enabled (via Settings > Server > Debug options) this will write two
new files to the logging dir, plugintimings.log and plugintimings.csv,
which contain timing information for each and every hook or
implementation call on plugins registered with OctoPrint. This should
be helpful to debug any kind of performance issues caused by third
party plugins. It should also be a valuable tool to debug performance
issues with bundled plugins.
As requested in #1241
2020-09-30 13:58:47 +02:00
Gina Häußge
c0495d22c9
🐛 Remove default submit from settings forms
...
We only want explicitly defined form behaviour.
Otherwise stuff might be triggered by hitting
the enter key that should not be triggered.
Closes #3740
2020-09-23 11:25:32 +02:00
Gina Häußge
727c69bb3f
🐛 logging: Fix request frequency & serial.log update
2020-06-26 19:08:24 +02:00
Gina Häußge
331cc3614a
🚸 UI indicator that serial.log is active
2020-06-26 11:13:14 +02:00
Gina Häußge
eef51b1cb9
🐛 Mark all bundled plugins py3 compatible
...
That somehow got forgotten. Wasn't needed since bundled always get
loaded, however now that we display that kind of information in the
plugin manager it should reflect reality.
2020-06-10 15:02:46 +02:00
Gina Häußge
453ef0cb97
♻ Remove implicit blueprint protection in favour of explicit one
2020-02-25 17:03:29 +01:00
Gina Häußge
21127bcf2a
Merge branch 'maintenance' into devel
2019-10-23 12:30:06 +02:00
Gina Häußge
7ee9bc32eb
☔ Aggressive escaping
2019-10-09 15:51:38 +02:00
Gina Häußge
3b556e9d79
Merge branch 'maintenance' into devel
2019-09-17 17:34:34 +02:00
Gina Häußge
72eef3e224
🐛 Escape single/double quotes in l10n strings
...
Closes #3270
2019-09-13 15:42:59 +02:00
Gina Häußge
920283cf87
Merge branch 'devel' into pr/3032
...
# Conflicts:
# src/octoprint/access/groups.py
# src/octoprint/static/css/octoprint.css
2019-02-05 17:08:24 +01:00
Gina Häußge
c71972c0f8
♻ Explicitly add admin group to plugin permissions
...
Admin only access by default for these was implied by not having them
added to one of the three major default groups, making it explicit is
more clear though.
2019-02-05 15:58:15 +01:00
Matthias Urlichs
e8b9f385b4
"has_key" is deprecated
2019-02-04 20:54:54 +01:00
Matthias Urlichs
8956e7a173
actually purge logger entries
2019-02-03 15:55:49 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Gina Häußge
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +01:00
Matthias Urlichs
7fcc3551ca
We need text mode for JSON and YAML
2019-01-28 14:14:23 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
41fab8a36c
atomic_write: use keyword for mode argument
...
this will allow us to define atomic_write as keyword-only
as soon as py2 compatibility is dropped.
2019-01-27 17:42:36 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
Matthias Urlichs
670ca15997
Merge remote-tracking branch 'origin/maintenance' into py23
2019-01-27 17:28:46 +01:00
Matthias Urlichs
f993f744ba
Merge commit 'c623e90ebc59b90b4f4cf582ab8185b2872acff4'; commit 'f416e96414f33fb31afdf4dfbf3c863e3db35543'; commit '9ecf39febe31a44e5f5db28249ebbf006ac1580c'; commit '582b03f21fe3d808bf4e11bbba90af54b6651b34'; commit 'f5c8b04958170f19f1806b1722bf5e857ded3dce'; commit '36818057a3b4769a77731f3be8bc661437db7132'; commit 'd987cb23c119132b287f70f1c979aac8c9fff7d2' into py23
2019-01-27 17:10:01 +01:00
Gina Häußge
83530ec7b9
Logging: deletion confirmation & bulk delete
...
Implements #2962
2019-01-15 15:09:42 +01:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00