Pasquale D'Orsi
1cc1530b20
OEMSecrets provider interface v.1.0 ( #679 )
...
* OEMSecrets provider interface v.1.0
New class for interacting with the OEMSecrets (https://www.oemsecrets.com ) API version 3.0.1.
* Refactored info provider to be stateless and independent from session, optimized Part-DB API usage, and fixed PHPStan issues.
Refactored info provider to be stateless and independent from session, now use Psr\Cache, fixed issues identified by PHPStan, additional minor enhancements and bug fixes.
* Prefix cache keys with oemsecrets_ to avoid key collissions
* Use uniqid with more entropy to reduce probability of collisions
* Made $resultData local as it is only used inside searchByKeyword
* Use the parameter name $id from interface declaration for getDetails to avoid problems with named arguments
* Use unicode modifier for preg_match to avoid problems when parameters contain non-unicode strings
* Various small code quality improvements
* Try to retrieve the part from the API in getDetails, if the DTO was not cached before
* Improved code formatting
* Channged OEMSecret default country to DE to be consistent with other default values
* Do not call gc_collect_cycles in the loop to process the results, but only after all processBatch calls
---------
Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2024-09-09 00:59:44 +02:00
Jan Böhmer
98597fb3aa
Use new repository pathes (Part-DB-server) instead of the Part-DB-symfony ones
2024-09-08 20:05:06 +02:00
Jan Böhmer
283a445198
Use jbtronics/translation-editor bundle instead of php-translation/symfony-bundle for profiler translation editing
...
This new bundle has less dependencies and less overhead
2024-09-08 20:03:33 +02:00
Jan Böhmer
7db44f0ec5
Upgraded dependencies
2024-09-08 19:54:31 +02:00
Jan Böhmer
abb5395cae
Use "log-bin-trust-function-creators" option for mysql in recommended docker-compose file
...
This avoids errors, while creating the MySQL functions for the natural sort: "1419 You do not have the SUPER privilege an
d binary logging is enabled"
2024-09-08 19:46:55 +02:00
Jan Böhmer
8c8b44baef
Use debian bookworm, PHP 8.2 and node 20 for the docker image by default
2024-09-08 19:40:43 +02:00
Jan Böhmer
7366a33fe5
Apply the PHP_VERSION arg also to the partdb-entrypoint during build, to make it really version independent
2024-09-08 19:40:19 +02:00
Jan Böhmer
ad02d7e525
New Crowdin updates ( #692 )
...
* New translations messages.en.xlf (English)
* New translations validators.en.xlf (English)
* New translations security.en.xlf (English)
* New translations validators.en.xlf (Italian)
2024-09-08 19:14:02 +02:00
David Girón
b5a0189f29
feat(docker): Refactor Dockerfile ( #683 )
...
* reorder nodejs/yarn install, separate packages per line
* reduce run actions and reorganize commands
* simplify file creation, copy in one layer only
* fix lint LegacyKeyValueFormat
* arg php_version to run different version
* reorder copy from generated config
* update dockerfile-frankenphp
2024-09-08 19:13:13 +02:00
Jan Böhmer
756152dd68
Bumped to version 1.13.3
2024-08-24 15:58:46 +02:00
Jan Böhmer
173a8ee680
Improved assymmetric padding in datatables footer
2024-08-24 15:55:45 +02:00
Jan Böhmer
b99777cde1
Return a 404 message, instead of creating an 500 Runtime exception, when a file associated with an attachment is not existing.
...
This fails more gracefully, and do not pollute log files.
2024-08-24 15:49:45 +02:00
Jan Böhmer
8193e7a68e
Allow to show attachment IDs in attachment table
2024-08-24 15:48:50 +02:00
Jan Böhmer
f18c024daa
Remove -> prefix if no element is selected yet
2024-08-24 15:35:30 +02:00
Jan Böhmer
f6577a8f33
Allow to create sub elements for existing elements, by typing "->"
...
This fixes issue #666 and #560
2024-08-24 15:31:44 +02:00
Jan Böhmer
7fc3153dde
Fixed filter logic for exclusion of entities. Before parts with null values as property value were wrongly not shown
...
This fixes issue #658
2024-08-23 22:58:04 +02:00
Jan Böhmer
5231dbd6e7
Remove project path in twig label error messages to prevent information leakage
2024-08-23 22:28:29 +02:00
Jan Böhmer
77671550a7
Fail gracefully, when an exception occurs during rendering of the example labels for label profiles
...
This fixes issue #671
2024-08-23 22:15:29 +02:00
Jan Böhmer
e231404128
Load HTMLExtension in SandboxedTwig, so that the data_uri filter can be used in twig labels
...
This fixes issue #665
2024-08-23 22:06:37 +02:00
Jan Böhmer
6650e2da3d
Updated dependencies
2024-08-23 21:57:37 +02:00
Jan Böhmer
1ac9641a04
Added translations for table settings
2024-08-21 22:31:39 +02:00
Jan Böhmer
ad47c8d8ed
Allow to configure default table page length via Settings UI
2024-08-21 22:15:26 +02:00
Jan Böhmer
0dbf417866
Moved part table default column definiton to settings UI
2024-08-21 22:02:56 +02:00
Jan Böhmer
a45bf22ac5
Updated dependencies
2024-08-21 17:41:30 +02:00
frank-f
fd521acaa4
Update LCSCProvider field for real datasheet URL ( #670 )
2024-08-21 17:35:55 +02:00
Jan Böhmer
b5a6ba921c
Updated dependencies
2024-08-18 22:46:06 +02:00
Jan Böhmer
f6a2467eae
Improved select controls and added remove_buttons to multiple select inputs
2024-08-07 00:52:27 +02:00
Jan Böhmer
79da0518c2
Allow to configure sidebar menu via the new settings system
2024-08-07 00:41:06 +02:00
Jan Böhmer
5e512f8935
Migrated kicad category depth setting to new settings system
2024-08-04 19:18:20 +02:00
Jan Böhmer
99c10ffe85
Use icons for info provider settings
2024-08-04 18:52:49 +02:00
Jan Böhmer
47830dcd08
Allow to define icons for settings
2024-08-04 00:00:38 +02:00
Jan Böhmer
947cce78d7
Added title and icon to settings page
2024-08-03 23:36:08 +02:00
Jan Böhmer
74e555d25d
Fixed tests
2024-08-03 23:31:56 +02:00
Jan Böhmer
e9973af8f4
Fixed old usages of base_currency
2024-08-03 23:19:09 +02:00
Jan Böhmer
2ab2b7f77d
Moved default language, default timezone and base currency settings to new settings system
2024-08-03 23:14:29 +02:00
Jan Böhmer
463812fb3d
Updated dependencies.
2024-08-03 22:18:17 +02:00
Jan Böhmer
d2406726c6
Merge branch 'master' into settings-bundle
2024-08-03 22:15:20 +02:00
Jan Böhmer
a169623866
Bump version to 1.13.2
2024-07-28 23:20:47 +02:00
Jan Böhmer
21c3c45150
Introduced a custom ExponentialNumberType for parameter values
...
This type shows small values in exponential notation instead of rounding it to zero.
2024-07-28 23:18:36 +02:00
Jan Böhmer
1aee0a91c0
Workaround symfonys issue with NumberType and negative exponential e-notation number
...
This fixes issue #649
2024-07-28 22:52:44 +02:00
Jan Böhmer
27a28d4adc
Fixed the NatSortKey function where regex characters were improperly escaped in the old migration
...
This caused a "range out of order in character class" error and propably affected the functionality of the sort function
2024-07-28 17:08:55 +02:00
Jan Böhmer
d6ff22fc44
Show in server info page which natural sorting method is used
...
This should ease debugging
2024-07-28 14:13:34 +02:00
Jan Böhmer
5ede61118c
Use paragonie/sodium_compat v1 as v2 do not support 32-bit PHP anymore
2024-07-28 13:31:27 +02:00
Jan Böhmer
228549ff51
Include pgsql extensions and client in docker images
2024-07-28 13:12:42 +02:00
Jan Böhmer
1ec5cbc301
Merge remote-tracking branch 'origin/l10n_master'
2024-07-28 13:02:58 +02:00
Jan Böhmer
3011cb8fae
Updated dependencies
2024-07-28 13:02:39 +02:00
Jan Böhmer
1f04d1b993
Updated dependencies
2024-07-21 21:33:39 +02:00
Jan Böhmer
2ef46cdd34
Moved gravatar and update checking settings to the settings-bundle system
2024-07-16 21:58:41 +02:00
Jan Böhmer
2bc50b2888
Updated settings-bundle
2024-07-16 21:33:44 +02:00
Jan Böhmer
ff78c3c9a7
New translations security.en.xlf (Vietnamese)
2024-07-10 03:32:31 +02:00