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
de96aae9a5
Fixed inspection issues
2023-04-15 21:49:19 +02:00
Jan Böhmer
52e459ec60
Use the name of an uploaded file for an attachment when no explicit name was set.
2023-03-05 23:47:45 +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
8ae4e9fe05
Fixed some inspection issues
2022-12-18 19:45:04 +01:00
Jan Böhmer
68462185ba
Removed old GPLv2 copyright header
2022-11-29 22:28:53 +01:00
Jan Böhmer
ed91ffc60a
Add database indices to improve performance
2022-09-25 18:33:13 +02:00
Jan Böhmer
51e05a8669
Use typed properties
2022-09-18 22:59:31 +02:00
Jan Böhmer
639829f5c5
Fixed some inspection issues.
2022-08-14 19:32:53 +02:00
Jan Böhmer
082cd16486
Disallow attachments without attachment types.
...
This should partly fixes issue #131 . TODO: Change database structure so attachment_type is not nullable.
2022-07-22 00:48:51 +02:00
Jan Böhmer
15a31433e1
Fixed PHPstan warnings.
2022-03-04 13:22:40 +01:00
Jan Böhmer
d0b1024d80
Fixed code style.
2020-08-21 21:36:22 +02:00
Jan Böhmer
3021d0d67a
Fixed bug that wrong function was called.
2020-05-31 15:03:27 +02:00
Jan Böhmer
dbf770f784
Update timestamp of the associated element.
...
For example the lastModified timestamp of a part is now updated, when the user changes a price information. This should represent more what a user expects under a last Modified field and should improve also sorting...
2020-05-20 23:36:44 +02:00
Jan Böhmer
8b6fe757a0
Removed unnecessary getIDString() function in AbstractDBElement.
2020-05-13 21:19:23 +02:00
Jan Böhmer
a8a92b9c5d
Added basic admin page for Label profiles.
2020-04-11 17:34:01 +02:00
Jan Böhmer
fd61c8d9e2
Fixed coding style.
2020-03-15 13:56:31 +01:00
Jan Böhmer
9e8771a4ee
Changed license to AGPL3+
2020-02-22 18:14:36 +01:00
Jan Böhmer
f79975832a
Added an menu to show some simple statistics.
2020-02-10 23:26:45 +01:00
Jan Böhmer
96d7e4c9f4
Fixed inspection issues.
2020-02-02 14:05:36 +01:00
Jan Böhmer
594c694ee0
Renamed the base DBElement classes to AbstractDBElement to comply with symfony recommendations.
2020-02-01 19:48:07 +01:00
Jan Böhmer
da72f5b3ec
Fixed PHPstan issues for level 5.
2020-02-01 19:42:28 +01:00
Jan Böhmer
388e847b17
Applied symplify rules to codebase.
2020-01-05 22:49:00 +01:00
Jan Böhmer
f861de791f
Applied code style rules to src/
2020-01-05 15:46:58 +01:00
Jan Böhmer
9a7223a301
Fixed code style.
2020-01-04 20:24:09 +01:00
Jan Böhmer
1aed1d1d26
Fixed some inspection issues.
2020-01-04 20:14:42 +01:00
Jan Böhmer
6ddc937ec5
Fixed some inspection issues.
2019-11-10 14:00:56 +01:00
Jan Böhmer
e557bdedd5
Added an PHP CS fixer config file and applied it to files.
...
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
a0c3410db6
Centralized setElement logic for *Attachment entities.
2019-11-08 22:05:12 +01:00
Jan Böhmer
787e498586
Updated copyright headers.
2019-11-01 13:40:30 +01:00
Jan Böhmer
27a001b1d2
Added an option to download a attachment via URL. Implemented secure attachments, which can not be accessed by URL and requires authentication.
2019-10-19 18:42:06 +02:00
Jan Böhmer
d382021fee
Moved attachment form submit logic to a seperate service.
2019-10-19 17:13:13 +02:00
Jan Böhmer
4fe10b6169
Uploaded (non secure) attachments live now in public/
...
That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
2019-10-05 20:30:27 +02:00
Jan Böhmer
6645ab0b61
Allow to specify the 3d model for a footprint.
2019-10-03 14:04:09 +02:00
Jan Böhmer
d9fe77d0e8
Allow to specify a preview attachment in the AdminPages.
2019-10-03 13:42:06 +02:00
Jan Böhmer
2001680542
Allow to specifiy a path to a builtin ressource via the url field.
2019-09-25 16:03:22 +02:00
Jan Böhmer
67fe47bbb9
Generate internal filenames based on attachment name.
...
The filename of the uploaded file is now safed in the database.
2019-09-24 18:39:11 +02:00
Jan Böhmer
97cb91a3b2
Implement new attachment property in its getters/setters.
2019-09-24 16:36:41 +02:00
Jan Böhmer
ccc345cd1b
Changed DB structure the way, many more elements can have attachments
...
Also every Element has now a preview attachment field. For the user this will be used as profile picture.
2019-09-24 13:39:49 +02:00
Jan Böhmer
a97d016740
Added some more tests.
...
Also changed the behavior of some code to meet the expectation.
2019-09-22 23:47:40 +02:00
Jan Böhmer
e78033d774
Treat all image formats that browsers can show correctly as image attachments.
...
Especially we can now use WebP for attachments.
2019-09-22 21:25:06 +02:00
Jan Böhmer
21a81486df
Fixed some inspection issues.
2019-09-16 22:04:59 +02:00
Jan Böhmer
e2b643c52b
Allow to select the master picture attachment.
2019-09-02 23:09:58 +02:00
Jan Böhmer
1776cd9a77
Made order and pricedetails timestampable.
...
Further the migration fixes the typos in attachment table names and filled empty timestamps with the current date.
2019-08-29 13:06:04 +02:00
Jan Böhmer
6b87823d5e
Delete the file associated with an attachment after an attachment is delted or changed.
2019-08-27 22:24:56 +02:00
Jan Böhmer
eea81441fb
Treat all attachments without a filepath as external
2019-08-27 13:15:18 +02:00
Jan Böhmer
3a11933a89
Allow to add/delete attachments via part edit page.
2019-08-26 23:30:35 +02:00
Jan Böhmer
1629f31fed
Fixed some inspection issues.
2019-08-20 18:39:57 +02:00
Jan Böhmer
51be176418
Added constraints for selectable attribute.
2019-08-12 21:47:25 +02:00