Jan Böhmer
d0f2667691
Only fetch database user from database once.
...
This should improve the performance a lot.
2019-11-15 18:58:58 +01:00
Jan Böhmer
3812cc88ff
Check if an attachment is valid before showing it in part table.
2019-11-10 20:21:13 +01:00
Jan Böhmer
09995330af
Fixed an exception on part tables, when an attachment is external.
2019-11-10 19:58:35 +01:00
Jan Böhmer
af214831da
Enabled markdown in description field.
2019-11-10 19:43:55 +01:00
Jan Böhmer
f5c2a7b728
Make tags in part table more pretty. Also added link to tags search.
2019-11-10 19:38:36 +01:00
Jan Böhmer
05d6b0aa93
Show (iconized) links to attachments on parts table.
2019-11-10 19:16:39 +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
bf8455fa42
Added tests on some security related classes.
2019-11-10 14:49:09 +01:00
Jan Böhmer
6ddc937ec5
Fixed some inspection issues.
2019-11-10 14:00:56 +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
a0c3410db6
Centralized setElement logic for *Attachment entities.
2019-11-08 22:05:12 +01:00
Jan Böhmer
74fb21686c
Fixed an potential exception on user info page, when user has no email set.
2019-11-05 17:09:01 +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
bddd5b758a
Use image/* mime type placeholder as filter for footprints attachment type.
2019-11-01 22:07:55 +01:00
Jan Böhmer
767ee59fb8
Apply the filetype filter to accept attribute of file input.
...
This way only files are shown which match the current attachment type and the user knows directly which file types are allowed or not.
2019-11-01 22:04:30 +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
2187f5eac2
Allow to disable a user in admin settings.
...
When a user is disabled, he can not login.
2019-10-26 23:22:27 +02:00
Jan Böhmer
dd1dc54d97
Test the admin pages, if read/list/delete is working.
2019-10-26 22:27:04 +02:00
Jan Böhmer
45a624d768
Added tests for RedirectController
2019-10-20 14:35:19 +02:00
Jan Böhmer
89acf91fe6
Added an demo mode option, where the user password change dialog is disabled.
2019-10-20 00:01:06 +02: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
896299bc4d
Allow to specify homepage banner via ENV. Otherwise the content of the file config/banner.md is used.
2019-10-19 23:20:19 +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
d859d8533d
Clean attachments command now works on secure attachments too.
2019-10-19 19:36:33 +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
0ff6cc3bf9
Style theme selector input better.
2019-10-13 18:05:08 +02:00
Jan Böhmer
4a6f327c70
Reload page after user has changed its own theme.
2019-10-13 18:01:13 +02:00
Jan Böhmer
0b69de332d
Implemented different themes for Part-DB.
...
We use Bootswatch to provide different themed bootstrap CSS.
2019-10-13 17:48:18 +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
ac3e5d2669
Fixed exception when try to create a new part.
2019-10-06 15:49:42 +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