Commit graph

3384 commits

Author SHA1 Message Date
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
da6b74dfdd Added translation for old password field in user settings. 2019-11-02 21:23:29 +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
6071b35644 Added missing translations. 2019-11-02 15:55:21 +01:00
Jan Böhmer
9b481323aa Added rel=noopener to target=_blank links to prevent window.opener spoof. 2019-11-01 23:49: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
7a9c528d6d Upgraded yarn dependencies. 2019-11-01 14:02:58 +01:00
Jan Böhmer
719611b6d6 Updated composer dependencies.
Bumped Symfony to 4.3.6
2019-11-01 13:58:02 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
099234dd29
Added GitHub sponsor to funding list. 2019-11-01 12:48:25 +01:00
Jan Böhmer
96f12a3c4f Build yarn assets when testing on travis. 2019-10-31 23:14:02 +01:00
Jan Böhmer
93716c8583 Dont let Webclient catch exceptions during testing of the admin pages. 2019-10-31 23:05:20 +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
7e8752d1a2 Added coverage badge to Github README page. 2019-10-20 20:05:11 +02:00
Jan Böhmer
1c4c4622cf Upload test coverage information to codecov. 2019-10-20 19:56:49 +02:00
Jan Böhmer
b7124d53b2 Dont test with PHP 8.0, PHPunit does not support this version and test timeouts. 2019-10-20 19:36:39 +02:00
Jan Böhmer
c61269db19 Disable foreign key checks for loading fixtures. 2019-10-20 19:28:48 +02:00
Jan Böhmer
1e74f205e9 Truncate groups and user table manually for travis. 2019-10-20 15:50:57 +02:00
Jan Böhmer
e6f003b3b2 Set APP_ENV env the right way. 2019-10-20 15:33:43 +02:00
Jan Böhmer
2f9dfdedc0 Split long command into different commands. 2019-10-20 15:31:16 +02:00
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