Jan Böhmer
d0b3750594
Added an basic table to show log entries.
2020-01-24 22:57:04 +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
Jan Böhmer
9a7223a301
Fixed code style.
2020-01-04 20:24:09 +01:00
Jan Böhmer
d9b15ddbb9
Use new cached treeview nodes for twig inline generator (admin pages)
2020-01-02 22:55:28 +01:00
Jan Böhmer
ad69c32832
Cache the trees structures for treeViews used in the sidebar.
2020-01-02 18:45:41 +01:00
Jan Böhmer
5ee9d5ade0
Updated copyright headers.
2019-12-31 17:58:01 +01:00
Jan Böhmer
3e56352688
Added the possibility to delete a U2F key.
2019-12-29 16:20:09 +01:00
Jan Böhmer
604ebe420d
Added possibility to show backup codes in user settings.
2019-12-27 18:21:12 +01:00
Jan Böhmer
fba5f9794f
Added an service for generating Backup codes and added some tests.
2019-12-27 15:20:06 +01:00
Jan Böhmer
89acfff857
Dont call translator inside the form classes.
...
Translation is already done in the templates, so translator calls in form classes, are bad for performance and readability.
2019-12-26 14:53:13 +01:00
Jan Böhmer
12b3107188
Added an setting to disable password reset mechanism.
...
By default the pw reset is disabled, when no email server is configured.
2019-12-01 12:48:59 +01:00
Jan Böhmer
6a0d027675
Added an mechanism to reset passwords via mail.
2019-11-24 22:49:22 +01:00
Jan Böhmer
8b80f31b1e
Moved extension to fa-icon logic to a service.
...
That way we can use it from inside PHP code and the logic is more testable.
2019-11-10 18:19:06 +01:00
Jan Böhmer
3438f15274
Added some more tests.
2019-11-09 16:14:57 +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
89258bc102
Added some tests for important entity methods.
2019-11-09 00:31:42 +01:00
Jan Böhmer
a516879258
Fixed an exception in getmaxDiscountAmount().
...
This should fixes an 500 error code, that showed up on some pages. Also added a test method to test this function.
2019-11-05 17:05:04 +01:00
Jan Böhmer
d4353118d9
Cache the tools tree for each locale separately.
...
This fixes the problem that tools tree contained links to the wrong language.
2019-11-02 21:18:46 +01:00
Jan Böhmer
7a5a2f65f9
Added autocomplete for part tags input.
2019-11-01 23:07:31 +01:00
Jan Böhmer
787e498586
Updated copyright headers.
2019-11-01 13:40:30 +01:00
Jan Böhmer
fdfb099cb5
Allow to restrict the file extensions for a attachment type.
2019-10-31 22:37:54 +01:00
Jan Böhmer
c955a3a221
Moved attachment related services into their own namespaces
2019-10-19 23:29:51 +02:00
Jan Böhmer
f5f581293a
Moved attachment related services into their own namespaces.
2019-10-19 23:29:30 +02:00
Jan Böhmer
650ad4b578
Fixed the file deleting mechanism when changing/deleting attachments.
...
Also the file is also delted from thumbnail cache.
2019-10-19 19:53:37 +02:00
Jan Böhmer
63dc22f524
Allow to move a attachment to secure location (and back).
2019-10-19 19:30:16 +02:00
Jan Böhmer
9385d28e40
Uploading now works everywhere. Show an flash message if the download fails.
2019-10-19 18:50:17 +02: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
54986a9a52
Filter attachment name for uploaded filename.
2019-10-13 13:41:20 +02:00
Jan Böhmer
d2a8055384
Fixed exception on edit page for parts.
2019-10-13 13:27:04 +02:00
Jan Böhmer
329d8c871e
Show git branch and commit hash on homepage if available.
2019-10-13 00:44:50 +02:00
Jan Böhmer
8cfaee5c62
Added an console command to convert the old BBCode comments to markdown
2019-10-13 00:32:09 +02:00
Jan Böhmer
be8f074ca5
Render markdown on the client side and use DOMPurify to prevent XSS.,
...
The parsedown parser has problems with links in <>, so we use marked.js now which is more conform with (GFM) CommonMark and offers more feautures. Also with the usage of DOMPurify you can now use every HTML tag in Markdown without need to worry about XSS.
2019-10-12 17:41:13 +02:00
Jan Böhmer
7ec406d4a1
Show markdown on pages.
2019-10-11 23:53:12 +02:00
Jan Böhmer
4c7767feed
Show higher resolution thumbnail when hover over a table picture.
...
Also use thumbnails for attachment edit preview.
2019-10-06 15:44:19 +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
f53cc08f52
Added an table to show all defined attachments.
2019-10-04 18:06:37 +02:00
Jan Böhmer
2d4def2836
Show preview pictures as carousel on part info page.
2019-10-03 18:03:56 +02:00
Jan Böhmer
07dcbc0464
If a newly created attachment is a picture, then assign it as master picture if no master picture was set yet.
2019-10-03 15:31:55 +02:00
Jan Böhmer
2872e334ac
Show part preview image in part tables.
2019-10-03 14:53:50 +02:00
Jan Böhmer
6799ac90e5
Detect correctly if an attachment file is not existing.
2019-10-03 14:27:20 +02:00
Jan Böhmer
1395dae6e4
Cache list of builtin ressource attachments.
...
This should be a bit faster than searching every time.
2019-10-02 18:39:40 +02:00
Jan Böhmer
3277d98ee2
Added a simple autocomplete mechanism for the footprint URL.
2019-10-02 17:28:40 +02:00
Jan Böhmer
da46257757
Moved attachment path conversion functions to own service.
2019-09-28 16:06:37 +02:00
Jan Böhmer
ac238c65a0
Remove .. from attachments pathes, to prevent leaking of internal files.
2019-09-25 16:49:44 +02:00
Jan Böhmer
253adee35b
Removed dump functions, to prevent exception in production.
2019-09-24 18:53:05 +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