* fixed attachment statistics for sqlite
* Split attachment path into internal and external path, so the external source URL can be retained after a file is downloaded
* Make internal and external path for attachments nullable, to make clear that they have no internal or external path
* Added migrations for nullable columns for postgres and mysql
* Added migration for nullable internal and external pathes for sqlite
* Added translations
* Fixed upload error
* Restrict length of filename badge in attachment edit view
* Improved margins with badges in attachment edit
* Added a link to view external version from attachment edit
* Let media_url stay in API attachments responses for backward compatibility
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
* added capability to scan digikey barcodes and open the local part page based on the digikey part number or manufacturer part number
* had replaced one too many doublequotes
* Generalized interpretation of format06 barcodes, added ids for mouser
* Renamed vendor_barcode to user_barcode in entities
* Added a own class to parse EIGP114 barcodes
* Added tests to EIGP114Barcode parser
* Refactored code
* Changed BarcodeRedirector to support the new Barcode EIGP114BarcodeScanResult class
* Added possibility to just show all information contained in a barcode
* Dont require trailer for EIGP114 barcodes, as digikey does not seem to put them onto their barcodes
* Fixed inspection issues
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
* added button to show existing part with same manufacturer and mpn in provider list
* added button to edit existing part in provider list
* added docstring and comments
* replaced unnecessary double quotes
* Introduced a new twig variable localPart to split up the result
* Highlight a row, if the part is already existing
* Made buttons translatable
* Improved styling of the buttons and added a badge to show a hint
* Extracted database queries for part matching into its own service and optimized the query reducing the required queries by factor 2
* Allow to find existing parts via the stored providerReference
This should allow the database to more quickly find entries
* Allow to use part name and manufacturer alternative names for mapping
* Added a button to update a local part from the info provider and moved some buttons into dropdown menu
---------
Co-authored-by: jona <a@b.c>
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
This fixes issue #701. For the search field this was caused by algolia/autocomplete lib, which do not support multiple autocomplete fields on a single page. If initailly loaded on the homepage, which features a second autocomplete, this one "steals" the input listening, and the one in the navbar do not close anymore when clicking outside.
Custom code which triggers the closing of the autocomplete manually when clicking outside, was added as a workaround.