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
Jan Böhmer
d3162a0d75
Added an help text for the URL/Ressource input field for attachments.
2019-10-03 14:19:43 +02:00
Jan Böhmer
0fc987f017
URL autocomplete now works on newly created attachments too.
2019-10-03 14:17:35 +02:00
Jan Böhmer
4beb3631ab
Typeahead input now fills the whole container again.
2019-10-03 14:14:33 +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
280b2d4427
Fixed some 404 errors when using Part-DB without URL rewriting.
...
Fixed problems with the ajaxUI. Also added an ENV option that RedirectController redirects you to index.php/en page version.
2019-10-03 00:45:02 +02:00
Jan Böhmer
2c34c5f9cb
Fixed typescript compile warnings
2019-10-02 18:47:11 +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
4675793c24
Add IGNORE to INSERT statements in migrations to prevent exceptions.
...
MySQL 5.7 or higher uses strict mode by default, and we would get an error during migration without that keyword.
2019-09-29 19:29:15 +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
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
d99365f906
Show attachment preview on attachment page.
2019-09-25 14:46:00 +02:00
Jan Böhmer
02b71eeab8
Hide scrollbar of sidebar menu on firefox too.
2019-09-25 12:33:06 +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
2e318f9ea1
Disable attachments form if user is not allowed to edit the element.
2019-09-24 18:41:53 +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
eb1d8fd4e4
Added possibility to add/edit attachments on Admin pages.
2019-09-24 18:28:35 +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
ba4bf4b613
When migrate footprints, replace the %BASE% pathes with %FOOTPRINT%
...
This helps us to make the internal footprints and 3D models more portable.
2019-09-24 16:20:19 +02:00
Jan Böhmer
9d73cc0869
Fixed exception on login.
2019-09-24 16:09:54 +02:00
Jan Böhmer
4047125c6e
Added an SQL migration to migrate from footprint filepath to attachments
2019-09-24 15:44:55 +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
5061c29872
Added psalm to dev dependencies.
2019-09-23 13:29:51 +02:00
Jan Böhmer
8cdec02a01
Use PHPUnit 7.5 for tests
2019-09-23 13:17:53 +02:00
Jan Böhmer
9ee5dd9523
Test against PHP 7.4 and PHP 8 snapshot.
...
Both versions are not finished yet, so we allow failures for them.
2019-09-23 13:01:37 +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
322778af68
Fixed deprecation for configuration treeBuilder.
2019-09-22 21:43:21 +02:00
Jan Böhmer
00b19732cc
Fixed error in tests.
2019-09-22 21:35:22 +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
e4f5afb628
Fixed typescript exception about missing js-cookie library.
2019-09-20 16:24:49 +02:00
Jan Böhmer
10ec2adc66
Use localstorage instead of Cookies to save tree state.
...
That way we dont need to include the cookie js lib and save some memory.
2019-09-20 14:04:06 +02:00
Jan Böhmer
7f6c9b614f
Added an button to hide the sidebar.
...
Feature wished by Mr.AtiX. That way you can view tables in full screen.
2019-09-20 13:55:52 +02:00
Jan Böhmer
1301459718
Redirect user after login to user settings, if he needs to change password.
2019-09-19 14:48:49 +02:00