Commit graph

66 commits

Author SHA1 Message Date
Jan Böhmer
b7c8ca2a48 Improved typing and phpdoc type annotations 2023-06-18 15:37:42 +02:00
Jan Böhmer
e8771ea118 Fixed some more phpstan issues 2023-06-18 00:00:58 +02:00
Jan Böhmer
6a2ff9d153 Added declare strict types to all files 2023-06-11 18:59:07 +02:00
Jan Böhmer
684334ba22 Improved code style of tests 2023-06-11 15:02:59 +02:00
Jan Böhmer
5629215ce4 Use imports instead of FQNs 2023-06-11 15:00:28 +02:00
Jan Böhmer
7ee01d9a05 Applied rector with PHP8.1 migration rules 2023-06-11 14:17:19 +02:00
Jan Böhmer
1dbf36b86b Use str_contains and similar instead of strpos 2023-05-27 23:58:28 +02:00
Jan Böhmer
d04d743520 Fixed typos 2023-04-15 23:14:53 +02:00
Jan Böhmer
63df16a369 Removed unused imports 2023-04-15 22:27:19 +02:00
Jan Böhmer
29d1d49aca Fixed some more inspection issues 2023-04-15 22:05:29 +02:00
Jan Böhmer
66c1eff79f Generate WebP thumbnails even for builtin footprints 2023-04-01 18:43:57 +02:00
Jan Böhmer
52bdde40a1 Use network path instead of absolute URL for attachment thumbnails.
This should fix issue #237
2023-03-31 23:30:37 +02:00
Jan Böhmer
27de5ae387 Fixed static analysis issue 2023-03-02 23:57:32 +01:00
Jan Böhmer
5a19024bec Use 10 based prefixes for byte sizes instead of 2-based
This way we are consistent with the way symfony interprets the prefixes
2023-03-02 23:39:12 +01:00
Jan Böhmer
e0635f7ead Show maximum allowed file size below the upload field for attachments 2023-03-02 23:38:23 +01:00
Jan Böhmer
ce3cecabaf Save project attachment files under "project/" instead of "device/" 2023-02-12 20:54:53 +01:00
Jan Böhmer
5f5c06d6e9 Fixed problems with attachments on label profiles. 2023-02-03 23:18:14 +01:00
Jan Böhmer
8d5427a1c3 Use tomselect for StructuralEntityType 2023-01-29 18:52:24 +01:00
Jan Böhmer
f84d1f8a8f Fixed some missing renames which were forgotten before. 2023-01-09 23:15:35 +01:00
Jan Böhmer
0b519c2b7f Only do the german->english footprint conversion if the footprint contains german text
Otherwise this had broken the viewing of passive components.
2023-01-09 23:05:36 +01:00
Jan Böhmer
ddd8a66024 Started to implement a very basic builtin footprints gallery tool 2023-01-09 22:51:12 +01:00
Jan Böhmer
39d4f06c12 Renamed footprints file structure to english names 2023-01-09 21:59:11 +01:00
Jan Böhmer
4032e7ffe3 Added mapping for old german footprint names to new english ones. 2023-01-09 21:46:05 +01:00
Jan Böhmer
05c4adb928 Mark the special project build status in part info page and parts tables 2022-12-29 16:56:24 +01:00
Jan Böhmer
855b3070bb Fix exception when creating an attachment without an file., 2022-12-18 20:55:50 +01:00
Jan Böhmer
0c7ec9f0c7 Added some basic DB fields for the new project system 2022-12-18 20:34:25 +01:00
Jan Böhmer
c6f1758a18 Fixed static analysis 2022-12-18 18:14:48 +01:00
Jan Böhmer
14bbe3d6d6 Rename unsafe file extensions of attachments to prevent XSS and server side code injection. 2022-12-18 18:11:44 +01:00
Jan Böhmer
68462185ba Removed old GPLv2 copyright header 2022-11-29 22:28:53 +01:00
Jan Böhmer
51e05a8669 Use typed properties 2022-09-18 22:59:31 +02:00
Jan Böhmer
5fd608f42a Fixed some deprecations. 2022-08-14 19:09:07 +02:00
Jan Böhmer
2ee42b7621 Fail gracefully when Imagine can not produce an thumbnail.
We now just fall back to the original image instead of throwing an exception. (partly) Fixes issue #89. Maybe related to issue #136
2022-07-21 00:31:34 +02:00
Jan Böhmer
e01b06fb85 Fixed some inspection issues. 2020-08-21 22:43:37 +02:00
Jan Böhmer
d0b1024d80 Fixed code style. 2020-08-21 21:36:22 +02:00
Jan Böhmer
bebe70d28e Fixed assets path generation on windows (use server path for files where this is possible). 2020-06-07 19:25:58 +02:00
Jan Böhmer
90d3032924 Fixed PHPStan issues. 2020-06-07 16:33:31 +02:00
Jan Böhmer
1b06203ca6 Fixed file extension validation for attachments.
This fixes issue #63.
2020-06-01 15:55:34 +02:00
Jan Böhmer
f0d0a78f65 Show a preview image in builtin attachment select autocomplete. 2020-06-01 14:51:38 +02:00
Jan Böhmer
8b43faeeac Correctly show external picture attachments. 2020-05-22 22:24:36 +02:00
Jan Böhmer
a27a6ea675 Dont try to generate thumbnails for SVG files, as GD does not support them... 2020-05-21 22:09:13 +02:00
Jan Böhmer
ae75e6844f Fixed coding style. 2020-04-10 13:05:08 +02:00
Jan Böhmer
a28e81065f Fixed some more psalm issues. 2020-03-29 23:36:53 +02:00
Jan Böhmer
cb0aa7bc7a Fixed some psalm issues. 2020-03-29 23:13:25 +02:00
Jan Böhmer
9e8771a4ee Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
Jan Böhmer
15957203af Fixed an exception when moving an attachment to private folder. 2020-02-10 22:46:05 +01:00
Jan Böhmer
da72f5b3ec Fixed PHPstan issues for level 5. 2020-02-01 19:42:28 +01:00
Jan Böhmer
074f0286dc Fixed strict types exception in attachments list. 2020-01-07 19:38:11 +01:00
Jan Böhmer
388e847b17 Applied symplify rules to codebase. 2020-01-05 22:49:00 +01:00
Jan Böhmer
67a0dc8131 Fixed exceptions occuring cause of strict_types. 2020-01-05 21:09:19 +01:00
Jan Böhmer
f861de791f Applied code style rules to src/ 2020-01-05 15:46:58 +01:00