Commit graph

3810 commits

Author SHA1 Message Date
Jan Böhmer
5c0f8dd311 Drop database by hand before loading fixtures. 2019-10-20 15:28:47 +02:00
Jan Böhmer
558ae5ba4b Create travis database using symfony command. 2019-10-20 15:19:32 +02:00
Jan Böhmer
822fa7e7e4 Create the correct DB in travis. 2019-10-20 15:15:20 +02:00
Jan Böhmer
215a6cd1e7 Specify env when loading fixtures in travis. 2019-10-20 15:11:42 +02:00
Jan Böhmer
99eb5a0e45 Fixed typo in .travis.yml 2019-10-20 14:43:50 +02:00
Jan Böhmer
45a624d768 Added tests for RedirectController 2019-10-20 14:35:19 +02:00
Jan Böhmer
40ca5bd0e4 Use dataProviders in AttachmentTest. 2019-10-20 00:24:52 +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
5042d5720a Disable attachment file downloads by default. 2019-10-19 19:55:15 +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
1f7c122ba2 Updated composer dependencies. 2019-10-19 15:39:14 +02:00
Jan Böhmer
056a2526fe Added an hint about converting bbcode to installation guide. 2019-10-13 21:13:37 +02:00
Jan Böhmer
5c19a784ce Fixed testing failure. 2019-10-13 21:00:47 +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
0ebc5bfdad Fixed an exception when try to show info page of a part with invalid attachments. 2019-10-13 17:34:59 +02:00
Jan Böhmer
72db95ca70 Fixed exception on user admin. 2019-10-13 13:46:14 +02:00
Jan Böhmer
42b2c4f86e Ignore files in public/media/ folder 2019-10-13 13:41:44 +02:00
Jan Böhmer
54986a9a52 Filter attachment name for uploaded filename. 2019-10-13 13:41:20 +02:00
Jan Böhmer
11d45eaf59 Show a hint if an attachment is secure. 2019-10-13 13:34:26 +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
3c16632a89 Parse markdown in homepage banner. 2019-10-13 00:34:33 +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
c814bae3af Use bootstrap styles for markdown tables. 2019-10-12 19:03:50 +02:00
Jan Böhmer
b478170d7f Added more features to CKeditor toolbar. 2019-10-12 18:53:15 +02:00
Jan Böhmer
d11a436e74 Fixed some issues in markdown CKEDITOR plugin and remove BBCode plugin. 2019-10-12 18:22:07 +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
46959b74ed Use markdown inside CKEditors.
Markdown offers more features and looks much cleaner than BBCode.
2019-10-11 19:01:07 +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
a545e04554 Include php-gd requirement in composer.lock 2019-10-05 21:01:24 +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
1b28006267 Show attachment preview also in part edit page. 2019-10-04 18:11:16 +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
2f0dc600e2 Updated composer dependencies 2019-10-03 18:14:45 +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