GitHub/WoltLab/WCF.git
6 weeks agoFix the aspect ratio of image previews
Alexander Ebert [Thu, 1 Aug 2024 09:37:44 +0000 (11:37 +0200)]
Fix the aspect ratio of image previews

6 weeks agoMerge branch '6.0'
Alexander Ebert [Thu, 1 Aug 2024 09:27:56 +0000 (11:27 +0200)]
Merge branch '6.0'

7 weeks agoDo not serve archives directly
Alexander Ebert [Wed, 31 Jul 2024 15:02:11 +0000 (17:02 +0200)]
Do not serve archives directly

These files may be large and serving them through the web server is desirable but those files are also among those that might require additional protection.

7 weeks agoMerge branch 'master' of https://github.com/WoltLab/WCF
Alexander Ebert [Wed, 31 Jul 2024 15:00:44 +0000 (17:00 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF

7 weeks agoDeprecate and redirect the attachment page
Alexander Ebert [Wed, 31 Jul 2024 14:59:44 +0000 (16:59 +0200)]
Deprecate and redirect the attachment page

7 weeks agoFix missing reset in MultipleSelectionFormField
Marcel Werk [Wed, 31 Jul 2024 14:55:27 +0000 (16:55 +0200)]
Fix missing reset in MultipleSelectionFormField

ref https://www.woltlab.com/community/thread/295945-multipleselectionformfield-%C3%BCbergibt-falschen-bzw-alten-wert-wenn-kein-wert-ausge/

7 weeks agoMerge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Wed, 31 Jul 2024 14:31:12 +0000 (16:31 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF

7 weeks agoMade url validation of less restrictive
Marcel Werk [Wed, 31 Jul 2024 14:30:59 +0000 (16:30 +0200)]
Made url validation of less restrictive

ref https://www.woltlab.com/community/thread/306975-validierung-der-url-im-urlformfield/

7 weeks agoAdd a new helper method to generate static thumbnails
Alexander Ebert [Wed, 31 Jul 2024 14:06:43 +0000 (16:06 +0200)]
Add a new helper method to generate static thumbnails

Processing animated images is an unpredictable process that is not only incredibly expensive but due to unknown resource limits very unstable.

Using static thumbnails that simply pick the first frame solves this issue by offering a meaningful thumbnail without using lots of resources.

7 weeks agoUnify description fields
Marcel Werk [Wed, 31 Jul 2024 13:45:58 +0000 (15:45 +0200)]
Unify description fields

7 weeks agoUnified layout of the article sidebar box
Marcel Werk [Wed, 31 Jul 2024 09:27:55 +0000 (11:27 +0200)]
Unified layout of the article sidebar box

The presentation of the article image did not look good. The layout has been adapted to that of other similar boxes.

7 weeks agoAdds a FieldDataProcessor to insert into the fileIDs to the `$parameters` array
Cyperghost [Wed, 31 Jul 2024 05:57:28 +0000 (07:57 +0200)]
Adds a FieldDataProcessor to insert into the fileIDs to the `$parameters` array

7 weeks agoAdd additional checks as to whether the `$bigPreview` is active or can be activated
Cyperghost [Wed, 31 Jul 2024 05:41:48 +0000 (07:41 +0200)]
Add additional checks as to whether the `$bigPreview` is active or can be activated

7 weeks agoDetect and handle corrupt images
Alexander Ebert [Tue, 30 Jul 2024 11:21:34 +0000 (13:21 +0200)]
Detect and handle corrupt images

7 weeks agoFix the handling of corrupted files
Alexander Ebert [Tue, 30 Jul 2024 09:21:08 +0000 (11:21 +0200)]
Fix the handling of corrupted files

7 weeks agoRelease 6.1.0 Alpha 1
Alexander Ebert [Mon, 29 Jul 2024 09:48:11 +0000 (11:48 +0200)]
Release 6.1.0 Alpha 1

8 weeks agoUnify phrases
Marcel Werk [Wed, 24 Jul 2024 15:05:35 +0000 (17:05 +0200)]
Unify phrases

8 weeks agoMerge branch '6.0'
Marcel Werk [Wed, 24 Jul 2024 14:42:15 +0000 (16:42 +0200)]
Merge branch '6.0'

8 weeks agoRemove email activation process after registration via third-party
Marcel Werk [Wed, 24 Jul 2024 14:41:48 +0000 (16:41 +0200)]
Remove email activation process after registration via third-party

ref https://www.woltlab.com/community/thread/307268-benutzeraktivierung-bei-google-nutzung/

8 weeks agoMerge pull request #5964 from WoltLab/tag-form-field-allow-value-load
Olaf Braun [Tue, 23 Jul 2024 12:26:34 +0000 (14:26 +0200)]
Merge pull request #5964 from WoltLab/tag-form-field-allow-value-load

Load tags if they are present in the `$data` array

2 months agoAdd the new variable `FileProcessorFormField::$bigPreview` with getter and setter.
Cyperghost [Mon, 15 Jul 2024 08:53:28 +0000 (10:53 +0200)]
Add the new variable `FileProcessorFormField::$bigPreview` with getter and setter.
This can be used to set whether the Big Preview is used for images. The big preview can only be used for images.

2 months agoLoad tags if they are present in the `$data` array
Cyperghost [Fri, 12 Jul 2024 09:47:15 +0000 (11:47 +0200)]
Load tags if they are present in the `$data` array

2 months agoMerge pull request #5963 from WoltLab/validate-uploaded-file
Olaf Braun [Fri, 12 Jul 2024 09:41:31 +0000 (11:41 +0200)]
Merge pull request #5963 from WoltLab/validate-uploaded-file

Add `validateUpload` function to `IFileProcessor`

2 months agoMerge pull request #5962 from WoltLab/bugfix/user-trophy
Marcel Werk [Wed, 10 Jul 2024 10:28:54 +0000 (12:28 +0200)]
Merge pull request #5962 from WoltLab/bugfix/user-trophy

Fixes the error that the description for an assigned trophy is `null`

2 months agoMerge pull request #5957 from MysteryCode/updsctyposp
Marcel Werk [Wed, 10 Jul 2024 10:27:52 +0000 (12:27 +0200)]
Merge pull request #5957 from MysteryCode/updsctyposp

fix typo in update script

2 months agoMerge pull request #5955 from Hanashi/feat/team-user-card
Marcel Werk [Wed, 10 Jul 2024 10:27:24 +0000 (12:27 +0200)]
Merge pull request #5955 from Hanashi/feat/team-user-card

Replace `userListItem` with `userCard` on team page

2 months agoAdds a new function to the `IFileProcessor` which is called to check if the uploaded...
Cyperghost [Wed, 10 Jul 2024 09:36:56 +0000 (11:36 +0200)]
Adds a new function to the `IFileProcessor` which is called to check if the uploaded file is allowed. This function should throw `UserInputException` if the file is not allowed

2 months agoFixes the error that the description for an assigned trophy is `null`.
Cyperghost [Wed, 10 Jul 2024 08:12:20 +0000 (10:12 +0200)]
Fixes the error that the description for an assigned trophy is `null`.

2 months agofix typo in update script
mutec [Sun, 7 Jul 2024 09:36:04 +0000 (11:36 +0200)]
fix typo in update script

2 months agoReplace `userListItem` with `userCard` on team page
Peter Lohse [Sat, 6 Jul 2024 12:14:46 +0000 (14:14 +0200)]
Replace `userListItem` with `userCard` on team page

2 months agoMerge pull request #5951 from WoltLab/upload-form-field-v2
Olaf Braun [Sat, 6 Jul 2024 11:20:14 +0000 (13:20 +0200)]
Merge pull request #5951 from WoltLab/upload-form-field-v2

New upload form field

2 months agoFix the visuals of i18n WYSIWYG instances
Alexander Ebert [Fri, 5 Jul 2024 15:57:52 +0000 (17:57 +0200)]
Fix the visuals of i18n WYSIWYG instances

See https://www.woltlab.com/community/thread/306999-the-language-selector-in-the-description-of-the-add-subscription-page-should-be/

2 months agoStop reporting the pseudo options category as missing phrase
Alexander Ebert [Fri, 5 Jul 2024 11:07:42 +0000 (13:07 +0200)]
Stop reporting the pseudo options category as missing phrase

2 months agoFixed a bug still accessing the old `_data` field
Cyperghost [Thu, 4 Jul 2024 07:45:07 +0000 (09:45 +0200)]
Fixed a bug still accessing the old `_data` field

2 months agoMerge remote-tracking branch 'origin/upload-form-field-v2' into upload-form-field-v2
Cyperghost [Thu, 4 Jul 2024 07:35:53 +0000 (09:35 +0200)]
Merge remote-tracking branch 'origin/upload-form-field-v2' into upload-form-field-v2

2 months agoRename `WoltLabSuite/Core/Component/File/File` to `WoltLabSuite/Core/Component/File...
Cyperghost [Thu, 4 Jul 2024 07:35:31 +0000 (09:35 +0200)]
Rename `WoltLabSuite/Core/Component/File/File` to `WoltLabSuite/Core/Component/File/Helper`

2 months agoMove `$event->preload('wcf.global.button.replace');` up
Cyperghost [Thu, 4 Jul 2024 07:33:31 +0000 (09:33 +0200)]
Move `$event->preload('wcf.global.button.replace');` up

2 months agoApply suggestions from code review
Olaf Braun [Wed, 3 Jul 2024 12:08:18 +0000 (14:08 +0200)]
Apply suggestions from code review

Co-authored-by: Alexander Ebert <ebert@woltlab.com>
2 months agoMerge pull request #5953 from WoltLab/get-form-field
Marcel Werk [Wed, 3 Jul 2024 12:08:07 +0000 (14:08 +0200)]
Merge pull request #5953 from WoltLab/get-form-field

Make it easier to find a form field from a FormBuilder form

2 months agoMake it easier to find a form field from a FormBuilder form
Marcel Werk [Wed, 3 Jul 2024 12:04:26 +0000 (14:04 +0200)]
Make it easier to find a form field from a FormBuilder form

Basically, it is just a wrapper around `getNodeById()`, which also checks whether it is a `IFormField`.

2 months agoExport `clearPreviousErrors()`
Cyperghost [Wed, 3 Jul 2024 08:50:29 +0000 (10:50 +0200)]
Export `clearPreviousErrors()`
Use a Promise to recognize the beginning of the upload to replace the context

2 months agoAdd a check that the replace button in the `FileProcessorFormField` is clicked, to...
Cyperghost [Wed, 3 Jul 2024 08:20:14 +0000 (10:20 +0200)]
Add a check that the replace button in the `FileProcessorFormField` is clicked, to ignore the upload limit

2 months agoChange the function that adds a button so that it only returns a button and doesn...
Cyperghost [Wed, 3 Jul 2024 07:53:05 +0000 (09:53 +0200)]
Change the function that adds a button so that it only returns a button and doesn't insert it

2 months agoRemove radix parameter from `parseInt`
Cyperghost [Wed, 3 Jul 2024 07:41:19 +0000 (09:41 +0200)]
Remove radix parameter from `parseInt`

2 months agoFix css-class added in `markElementAsErroneous()`
Cyperghost [Wed, 3 Jul 2024 07:39:40 +0000 (09:39 +0200)]
Fix css-class added in `markElementAsErroneous()`

2 months agoAdd helper function to insert default file information (size, filename and the file)
Cyperghost [Wed, 3 Jul 2024 07:39:01 +0000 (09:39 +0200)]
Add helper function to insert default file information (size, filename and the file)

2 months agoRemove the wrong js file
Cyperghost [Wed, 3 Jul 2024 07:34:14 +0000 (09:34 +0200)]
Remove the wrong js file

2 months agoReduce icon size in account security
Marcel Werk [Tue, 2 Jul 2024 15:35:45 +0000 (17:35 +0200)]
Reduce icon size in account security

Closes #5930

2 months agoAdd helper function `fileInitializationFailed`
Cyperghost [Tue, 2 Jul 2024 08:52:01 +0000 (10:52 +0200)]
Add helper function `fileInitializationFailed`

2 months agoUpdate some comments
Cyperghost [Tue, 2 Jul 2024 08:47:32 +0000 (10:47 +0200)]
Update some comments
Remove unnecessary comments

2 months agoAdd helper functions `trackUploadProgress` and `removeUploadProgress` for `WoltlabCor...
Cyperghost [Tue, 2 Jul 2024 08:43:23 +0000 (10:43 +0200)]
Add helper functions `trackUploadProgress` and `removeUploadProgress` for `WoltlabCoreFileElement`.

2 months agoAllow the function `get values()` to return only one number for single file upload...
Cyperghost [Tue, 2 Jul 2024 08:30:22 +0000 (10:30 +0200)]
Allow the function `get values()` to return only one number for single file upload and also `undefined` if no file is uploaded

2 months agoInsert data handler for an ajax form
Cyperghost [Tue, 2 Jul 2024 08:23:49 +0000 (10:23 +0200)]
Insert data handler for an ajax form

2 months agoAdd `wcf.global.button.replace` to phrase preloader
Cyperghost [Tue, 2 Jul 2024 08:06:42 +0000 (10:06 +0200)]
Add `wcf.global.button.replace` to phrase preloader

2 months agoLabel for received reaction shortened
Marcel Werk [Mon, 1 Jul 2024 15:11:30 +0000 (17:11 +0200)]
Label for received reaction shortened

"Reactions received" is too long for use in the user card.

2 months agoFix broken `HtmlNodeUnfurlLink.class.php`
Marcel Werk [Fri, 28 Jun 2024 12:05:08 +0000 (14:05 +0200)]
Fix broken `HtmlNodeUnfurlLink.class.php`

The file was merged incorrectly by this commit:
https://github.com/WoltLab/WCF/commit/7966721e4709d792180fb05a693cafd8db0e2793

2 months agoRemove async from `#registerFile()`
Cyperghost [Wed, 26 Jun 2024 09:48:03 +0000 (11:48 +0200)]
Remove async from `#registerFile()`

2 months agoMove statement to the correct comment position
Cyperghost [Wed, 26 Jun 2024 09:12:29 +0000 (11:12 +0200)]
Move statement to the correct comment position

2 months agoSet `bubbles` to `true` for the custom event `fileProcessorCustomAction`.
Cyperghost [Wed, 26 Jun 2024 09:11:15 +0000 (11:11 +0200)]
Set `bubbles` to `true` for the custom event `fileProcessorCustomAction`.

2 months agoSwap the parameters `$application` and `$template`
Cyperghost [Wed, 26 Jun 2024 08:58:19 +0000 (10:58 +0200)]
Swap the parameters `$application` and `$template`

2 months agoAdds the option of a template that is also included for the extra buttons
Cyperghost [Wed, 26 Jun 2024 08:54:59 +0000 (10:54 +0200)]
Adds the option of a template that is also included for the extra buttons
Use `unsafe:` instead of `@`

2 months agoUse media breakpoints to set the number of columns
Cyperghost [Wed, 26 Jun 2024 08:44:31 +0000 (10:44 +0200)]
Use media breakpoints to set the number of columns

2 months agoIntegrate the upload progressbar to file processor form field
Cyperghost [Wed, 26 Jun 2024 08:39:14 +0000 (10:39 +0200)]
Integrate the upload progressbar to file processor form field

2 months agoSet array-key to the fileID
Cyperghost [Wed, 26 Jun 2024 08:38:43 +0000 (10:38 +0200)]
Set array-key to the fileID

2 months agoFixes the problem that the DOM element was not removed when the file was deleted
Cyperghost [Wed, 26 Jun 2024 08:17:06 +0000 (10:17 +0200)]
Fixes the problem that the DOM element was not removed when the file was deleted

2 months agoMerge pull request #5805 from WoltLab/service-worker-notifications
Olaf Braun [Tue, 25 Jun 2024 11:47:37 +0000 (13:47 +0200)]
Merge pull request #5805 from WoltLab/service-worker-notifications

Add service worker for push notifications

2 months agoUpgrade composer packages
Cyperghost [Tue, 25 Jun 2024 11:43:48 +0000 (13:43 +0200)]
Upgrade composer packages
  `web-token/jwt-library` to `3.3.50`
  `spomky-labs/pki-framework` to `1.2.1`

2 months agoUpgrade composer packages
Cyperghost [Tue, 25 Jun 2024 10:19:09 +0000 (12:19 +0200)]
Upgrade composer packages
  `web-token/jwt-library` to `3.3.50`
  `spomky-labs/pki-framework` to `1.2.1`

2 months agoNew indent `composer.json`
Olaf Braun [Mon, 24 Jun 2024 13:13:35 +0000 (15:13 +0200)]
New indent `composer.json`

2 months agoMerge branch 'refs/heads/master' into service-worker-notifications
Olaf Braun [Mon, 24 Jun 2024 12:57:36 +0000 (14:57 +0200)]
Merge branch 'refs/heads/master' into service-worker-notifications

# Conflicts:
# wcfsetup/install/files/lib/system/api/composer.json
# wcfsetup/install/files/lib/system/api/composer.lock
# wcfsetup/install/files/lib/system/api/composer/installed.php

2 months agoMerge pull request #5949 from WoltLab/require-https
Alexander Ebert [Mon, 24 Jun 2024 10:45:01 +0000 (12:45 +0200)]
Merge pull request #5949 from WoltLab/require-https

Make HTTPS a hard requirement

2 months agoUpdated the composer dependencies
Alexander Ebert [Mon, 24 Jun 2024 10:21:54 +0000 (12:21 +0200)]
Updated the composer dependencies

2 months agoMerge branch '6.0'
Alexander Ebert [Mon, 24 Jun 2024 10:19:30 +0000 (12:19 +0200)]
Merge branch '6.0'

2 months agoFix the search of errors by exception id
Alexander Ebert [Mon, 24 Jun 2024 10:18:19 +0000 (12:18 +0200)]
Fix the search of errors by exception id

The non-recursive variant of the `DirectoryUtil` returns a plain list of filenames rather than the pathname.

See #5932

2 months agoUpdate `minishlink/web-push` to `v9.0.0-rc2`
Cyperghost [Mon, 24 Jun 2024 08:30:47 +0000 (10:30 +0200)]
Update `minishlink/web-push` to `v9.0.0-rc2`

2 months agoMerge branch 'refs/heads/master' into service-worker-notifications
Cyperghost [Mon, 24 Jun 2024 08:25:10 +0000 (10:25 +0200)]
Merge branch 'refs/heads/master' into service-worker-notifications

# Conflicts:
# wcfsetup/install/files/acp/database/update_com.woltlab.wcf_6.1.php

2 months agoMove upload progressbar from attachment to fileList
Cyperghost [Mon, 24 Jun 2024 08:21:45 +0000 (10:21 +0200)]
Move upload progressbar from attachment to fileList

2 months agoMerge branch 'refs/heads/master' into upload-form-field-v2
Cyperghost [Mon, 24 Jun 2024 08:18:04 +0000 (10:18 +0200)]
Merge branch 'refs/heads/master' into upload-form-field-v2

# Conflicts:
# wcfsetup/install/files/style/ui/attachment.scss

2 months agoEnable the Sandbox for Templates Inside of BBCodes
Alexander Ebert [Sun, 23 Jun 2024 11:35:09 +0000 (13:35 +0200)]
Enable the Sandbox for Templates Inside of BBCodes

See #5910

2 months agoRename endpoint classes to match the naming schema
Alexander Ebert [Sat, 22 Jun 2024 18:03:51 +0000 (20:03 +0200)]
Rename endpoint classes to match the naming schema

2 months agoAdd a preflight script for the upgrade from 6.0
Alexander Ebert [Sat, 22 Jun 2024 17:32:11 +0000 (19:32 +0200)]
Add a preflight script for the upgrade from 6.0

2 months agoRedirect insecure requests to the frontend
Alexander Ebert [Sat, 22 Jun 2024 17:23:51 +0000 (19:23 +0200)]
Redirect insecure requests to the frontend

2 months agoAdd the TLS check to the test script
Alexander Ebert [Sat, 22 Jun 2024 13:50:56 +0000 (15:50 +0200)]
Add the TLS check to the test script

2 months agoApply the code formatter to the test script
Alexander Ebert [Sat, 22 Jun 2024 13:40:41 +0000 (15:40 +0200)]
Apply the code formatter to the test script

2 months agoPromote HTTPS from being a recommendation to an requirement
Alexander Ebert [Sat, 22 Jun 2024 13:39:09 +0000 (15:39 +0200)]
Promote HTTPS from being a recommendation to an requirement

2 months agoAdd a check for the secure context on the index page
Alexander Ebert [Sat, 22 Jun 2024 13:28:58 +0000 (15:28 +0200)]
Add a check for the secure context on the index page

2 months agoVerify the HTTPS support within the system check
Alexander Ebert [Sat, 22 Jun 2024 12:43:04 +0000 (14:43 +0200)]
Verify the HTTPS support within the system check

2 months agoRemove files for the upgrade 5.5 → 6.0
Alexander Ebert [Sat, 22 Jun 2024 12:08:12 +0000 (14:08 +0200)]
Remove files for the upgrade 5.5 → 6.0

2 months agoAdd a workaround for the migration of the spider data
Alexander Ebert [Sat, 22 Jun 2024 12:07:51 +0000 (14:07 +0200)]
Add a workaround for the migration of the spider data

Fixes #5941

2 months agoRemove files for the upgrade 5.5 → 6.0
Alexander Ebert [Sat, 22 Jun 2024 12:02:34 +0000 (14:02 +0200)]
Remove files for the upgrade 5.5 → 6.0

2 months agoUnify phrases
Marcel Werk [Fri, 21 Jun 2024 14:42:06 +0000 (16:42 +0200)]
Unify phrases

2 months agoAdd a chunk-based progress tracking
Alexander Ebert [Fri, 21 Jun 2024 12:46:27 +0000 (14:46 +0200)]
Add a chunk-based progress tracking

There will be no progress bar if there is only a single chunk to be uploaded.

2 months agoAdd extra buttons to FileProcessorFormField
Cyperghost [Fri, 21 Jun 2024 08:47:51 +0000 (10:47 +0200)]
Add extra buttons to FileProcessorFormField

2 months agoImprove visuals of selects when used in the sidebar
Marcel Werk [Thu, 20 Jun 2024 13:58:05 +0000 (15:58 +0200)]
Improve visuals of selects when used in the sidebar

Closes #5924

2 months agoMove the file list under the input field
Cyperghost [Thu, 20 Jun 2024 11:34:09 +0000 (13:34 +0200)]
Move the file list under the input field

2 months agoCombine the CSS of Attachment and FileProcessorFormField to fileList
Cyperghost [Thu, 20 Jun 2024 11:24:54 +0000 (13:24 +0200)]
Combine the CSS of Attachment and FileProcessorFormField to fileList

2 months ago`\ini_parse_quantity()` is provided by the Symfony polyfill
Alexander Ebert [Thu, 20 Jun 2024 10:50:25 +0000 (12:50 +0200)]
`\ini_parse_quantity()` is provided by the Symfony polyfill

This reintroduces the changes made in 76b16ba4e89a7ff46cc2e1f79a158afc1c5e4c40 which was reverted in 5d52de11b680078012eba04ae983058e6086b7d7 due to a bug in an earlier version of Symphony’s polyfill.

2 months agoAdd `item__` prefix to the css-classname
Cyperghost [Thu, 20 Jun 2024 10:48:50 +0000 (12:48 +0200)]
Add `item__` prefix to the css-classname

2 months agoUpdate the Composer dependencies
Alexander Ebert [Thu, 20 Jun 2024 10:48:35 +0000 (12:48 +0200)]
Update the Composer dependencies

2 months agoAdd lazy loading for the hidden image
Cyperghost [Thu, 20 Jun 2024 10:30:04 +0000 (12:30 +0200)]
Add lazy loading for the hidden image