Oliver
fde4af7262
Merge pull request #2785 from SchrodingersGat/plugin-api-fix
...
Plugin api fix
2022-03-28 21:48:58 +11:00
Oliver Walters
89d0e41ebc
JS lint fix
2022-03-28 20:59:34 +11:00
Oliver Walters
13af1cb853
Hide label printing buttons of labels are not enabled
2022-03-28 20:44:33 +11:00
Oliver Walters
b62905d5c4
Add user setting to enable / disable label printing
2022-03-28 20:38:57 +11:00
Oliver Walters
05344a3675
Only check for label printing plugins if plugins are enabled
2022-03-28 20:36:34 +11:00
Oliver Walters
2ce5b7c896
Make plugins_enabled variable available to javascript code
2022-03-28 20:25:47 +11:00
Oliver Walters
c4ac7e1877
Add callback for search text entery
2022-03-28 20:24:07 +11:00
Oliver Walters
7d68b3209b
Add callbacks for search panel opening and closing
2022-03-28 10:18:49 +11:00
Oliver Walters
ffb89af9e5
Move search results panel into new template
2022-03-28 10:10:02 +11:00
Oliver Walters
ce396759a1
Add new javascript file (search.js)
...
- Empty, for now
2022-03-28 10:09:09 +11:00
Oliver Walters
2976545988
Adds a new "offcanvas" section for search results
2022-03-28 10:02:55 +11:00
Oliver
aed7a35312
Merge pull request #2782 from SchrodingersGat/floating-point-fixes
...
Fix floating point issues
2022-03-27 21:57:44 +11:00
Oliver Walters
441a947dbb
Fix another quantity
2022-03-27 21:06:11 +11:00
Oliver Walters
ab7eda9d2c
Add new button to navbar
2022-03-27 21:04:14 +11:00
Oliver Walters
ce323d80ea
Fix floating point issues
2022-03-27 20:29:59 +11:00
Oliver
dc8b986fc6
Merge pull request #2780 from SchrodingersGat/location-sort
...
Fix sorting for location column in part table
2022-03-27 12:48:34 +11:00
Oliver Walters
5b949b6f60
Fix sorting for location column in part table
2022-03-27 07:45:45 +11:00
Oliver
1bdebe1324
Merge pull request #2776 from SchrodingersGat/printer-dimensions
...
Supply label width and height to the label printing plugin
2022-03-26 16:57:11 +11:00
Oliver Walters
e18493a397
Supply label width and height to the label printing plugin
2022-03-26 13:43:48 +11:00
Oliver
223744eba1
Merge pull request #2775 from SchrodingersGat/print-error-tweak
...
Register notification against the plugin class, not the particular label
2022-03-26 11:25:55 +11:00
Oliver Walters
3e484317d2
Register notification against the plugin class, not the particular label
2022-03-25 23:49:15 +11:00
Oliver
b57c4591e5
Merge pull request #2774 from SchrodingersGat/setuptools-version
...
Pin setuptools version
2022-03-25 22:32:47 +11:00
Oliver Walters
fcfdec0ad6
Fix requirements.txt formatting
2022-03-25 21:47:38 +11:00
Oliver Walters
03eb5441c7
Pin setuptools version
...
- Recent update seems to have borked it
2022-03-25 21:43:10 +11:00
Oliver
db61c39400
Merge pull request #2773 from SchrodingersGat/plugin-api-permissions
...
Plugin api permissions
2022-03-25 17:21:32 +11:00
Oliver
6e30ec5603
PEP fix
2022-03-25 16:42:20 +11:00
Oliver
15a221509b
Bump API version
2022-03-25 16:40:30 +11:00
Oliver
052d9770ce
Override view permissions for plugin list API
...
- It is necessary for *any* logged in user to view this endpoint
- This is how the user determines which plugins are available (e.g. for label printing!)
2022-03-25 16:39:43 +11:00
Oliver
42f03296d2
Merge pull request #2772 from SchrodingersGat/print-failed
...
Send notification if printing fails
2022-03-25 16:22:30 +11:00
Oliver
9046c74628
Only send printing failed as a UI notification
2022-03-25 16:05:35 +11:00
Oliver
c1b408f8a3
Send notification if printing fails
...
If label printing fails (due to a plugin error) then the user is notified.
2022-03-25 15:57:32 +11:00
Oliver
5921964fdb
Merge pull request #2771 from SchrodingersGat/plugin-settings-fix
...
Ensure that kwargs are correctly passed through the settings chain
2022-03-25 14:53:22 +11:00
Oliver
011d97db3d
Tweak display of label printing plugins
2022-03-25 14:20:25 +11:00
Oliver
bc48a95844
PEP fixes
2022-03-25 14:13:02 +11:00
Oliver
5ee9af7f0e
Remove old "get_filters" function
...
- It was confusing!
- Manually filter where required
2022-03-25 14:10:05 +11:00
Oliver
63b5b95610
Ensure that kwargs are correctly passed through the settings chain
...
Problem: validate_unique fails
- Otherwise, the <plugin> object is not correctly passed
- Then, validate_unique fails
2022-03-25 13:43:19 +11:00
Oliver
fd03db4363
Merge pull request #2769 from SchrodingersGat/api-endpoint
...
Add 'plugins_enabled' information to the root API endpoint
2022-03-24 20:48:25 +11:00
Oliver Walters
acd796f127
Add 'plugins_enabled' information to the root API endpoint
2022-03-24 20:11:17 +11:00
Oliver
36665a7622
Merge pull request #2768 from SchrodingersGat/label-printing-plugin
...
Label printing plugin
2022-03-24 17:07:49 +11:00
Oliver
708ba566cb
URL fix
2022-03-24 16:44:46 +11:00
Oliver
b2b9ceec46
javascript fixes
2022-03-24 16:38:01 +11:00
Oliver
f24aa37f8f
Allow labels to be printed from the "incomplete build output" table
2022-03-24 16:34:47 +11:00
Oliver
2fc522ad15
Hard code url - it is not always available
2022-03-24 16:34:31 +11:00
Oliver
fcdd1eb55b
Remove old function call
2022-03-24 16:18:50 +11:00
Oliver
efc6af5f4c
PEP fixes
2022-03-24 16:18:08 +11:00
Oliver
f50dab22a6
fixes for label template
2022-03-24 16:17:04 +11:00
Oliver
6c25a5805d
Allow offloading of label printing to the configured plugin
2022-03-24 14:57:01 +11:00
Oliver
f1f07a1977
Extract plugin information from label printing request
2022-03-24 13:31:01 +11:00
Oliver
e62b6063bb
If printing plugins are available, let the user select them when printing
2022-03-24 13:20:26 +11:00
Oliver
86b5655c5f
Simplify new plugin class
2022-03-24 13:15:57 +11:00