Cyperghost [Wed, 18 Dec 2024 10:13:17 +0000 (11:13 +0100)]
Change cover photo instantly when a new file is uploaded or deleted
Cyperghost [Wed, 18 Dec 2024 10:12:34 +0000 (11:12 +0100)]
Fix crop cancel event handling
Cyperghost [Wed, 18 Dec 2024 09:53:22 +0000 (10:53 +0100)]
Notify only when the value has really changed.
Cyperghost [Wed, 18 Dec 2024 09:31:14 +0000 (10:31 +0100)]
Add a callback that is triggered when the value of a FileProcessorFormField is changed.
Cyperghost [Mon, 16 Dec 2024 12:13:59 +0000 (13:13 +0100)]
Unset `uploadResolve`
Cyperghost [Thu, 12 Dec 2024 14:24:35 +0000 (15:24 +0100)]
Display thumbnail size by file processor
Cyperghost [Wed, 18 Dec 2024 08:09:00 +0000 (09:09 +0100)]
Use `simpleReplace()`
Cyperghost [Thu, 12 Dec 2024 13:54:04 +0000 (14:54 +0100)]
Add `simpleReplace` and `hideDeleteButton` to the `FileProcessorFormField`
Cyperghost [Wed, 18 Dec 2024 08:03:03 +0000 (09:03 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Wed, 18 Dec 2024 08:01:47 +0000 (09:01 +0100)]
Remove round
Limit to max width and height
Cyperghost [Mon, 16 Dec 2024 11:52:28 +0000 (12:52 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Mon, 16 Dec 2024 11:51:46 +0000 (12:51 +0100)]
Resize the image to the maximum that the browser can display in the dialog.
Cyperghost [Thu, 12 Dec 2024 11:05:39 +0000 (12:05 +0100)]
Use `File::getFullSizeImageSource()` instead of `File::getLink()`
Cyperghost [Thu, 12 Dec 2024 10:20:21 +0000 (11:20 +0100)]
Use the user profile header template
Cyperghost [Thu, 12 Dec 2024 10:09:07 +0000 (11:09 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
# Conflicts:
# com.woltlab.wcf/templates/user.tpl
# ts/WoltLabSuite/Core/Bootstrap.ts
# ts/WoltLabSuite/Core/Ui/User/CoverPhoto/Delete.ts
# ts/WoltLabSuite/Core/Ui/User/CoverPhoto/Upload.ts
# wcfsetup/install/files/js/WoltLabSuite/Core/Bootstrap.js
# wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/CoverPhoto/Delete.js
# wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/CoverPhoto/Upload.js
Cyperghost [Thu, 12 Dec 2024 10:07:27 +0000 (11:07 +0100)]
Merge branch '6.2' into file-upload-image-crop
# Conflicts:
# .github/workflows/javascript.yml
# wcfsetup/install/files/js/require.config.js
Cyperghost [Tue, 10 Dec 2024 08:55:37 +0000 (09:55 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Tue, 10 Dec 2024 08:55:23 +0000 (09:55 +0100)]
Also note the maximum width that is available
Cyperghost [Tue, 10 Dec 2024 08:53:51 +0000 (09:53 +0100)]
overwrites default values for `min-width` and `min-height`
Cyperghost [Tue, 10 Dec 2024 08:52:34 +0000 (09:52 +0100)]
Add helper function to get the inner dimensions for an element
Cyperghost [Mon, 9 Dec 2024 11:48:50 +0000 (12:48 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Mon, 9 Dec 2024 11:47:42 +0000 (12:47 +0100)]
Center `cropper-canvas`.
Fix, if the image on a side has a large dimension that a white area is displayed at the top and/or bottom
Cyperghost [Mon, 9 Dec 2024 11:46:15 +0000 (12:46 +0100)]
Recalculate cropper height on window resize.
Set height on container(parent) height
Marcel Werk [Fri, 6 Dec 2024 15:20:12 +0000 (16:20 +0100)]
Use `Database::prepare()` instead of `Database::prepareStatement()`
see https://github.com/WoltLab/WCF/issues/6002
Marcel Werk [Fri, 6 Dec 2024 13:59:19 +0000 (14:59 +0100)]
Adjust name of the `UserProfileHeaderStatItemCollecting` event
We use a more generic name to make it clear that the event can also be used in other places in the future (e.g. in member lists).
Marcel Werk [Fri, 6 Dec 2024 13:01:29 +0000 (14:01 +0100)]
Hide empty categories in category list box
Marcel Werk [Fri, 6 Dec 2024 13:01:03 +0000 (14:01 +0100)]
Remove obsolete unsafe output of variables
Marcel Werk [Fri, 6 Dec 2024 12:17:08 +0000 (13:17 +0100)]
Fixed issue in the preview button when creating new objects
Cyperghost [Fri, 6 Dec 2024 10:15:25 +0000 (11:15 +0100)]
`coverPhotoStyle` need to be encoded
Cyperghost [Fri, 6 Dec 2024 10:00:24 +0000 (11:00 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Fri, 6 Dec 2024 10:00:06 +0000 (11:00 +0100)]
Fixes the problem when the aspect ratio is less than 1, that the selection has an incorrect resolution
Cyperghost [Fri, 6 Dec 2024 09:25:15 +0000 (10:25 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Fri, 6 Dec 2024 09:23:58 +0000 (10:23 +0100)]
Calculate the size of the cropper selection in relation to the window size
Marcel Werk [Thu, 5 Dec 2024 16:01:06 +0000 (17:01 +0100)]
Unify phrases
ref https://www.woltlab.com/community/thread/307563-unify-upload-description-phrases/
Marcel Werk [Thu, 5 Dec 2024 14:59:29 +0000 (15:59 +0100)]
Add method to get all embedded objects in a specific message
Marcel Werk [Thu, 5 Dec 2024 13:31:08 +0000 (14:31 +0100)]
Use `span` tag for the ´contentNotVisible´ element
The use of `div` resulted in invalid HTML code if the element was surrounded by other formatting (e.g. bold).
Marcel Werk [Thu, 5 Dec 2024 13:28:21 +0000 (14:28 +0100)]
Always make attachment preview visible if you are allowed to download the attachment
Marcel Werk [Thu, 5 Dec 2024 12:50:44 +0000 (13:50 +0100)]
Merge pull request #6132 from WoltLab/recent-activity-with-image
Add support for images in recent activities
Marcel Werk [Thu, 5 Dec 2024 12:38:12 +0000 (13:38 +0100)]
Add option to add a custom css class
Marcel Werk [Thu, 5 Dec 2024 12:35:34 +0000 (13:35 +0100)]
Merge pull request #6126 from WoltLab/user-profile-header-overhaul
Overhaul the user profile header
Marcel Werk [Thu, 5 Dec 2024 12:33:51 +0000 (13:33 +0100)]
Remove obsolete `loading="lazy"` attribute
Marcel Werk [Thu, 5 Dec 2024 12:24:39 +0000 (13:24 +0100)]
Add permission check
Marcel Werk [Thu, 5 Dec 2024 11:22:24 +0000 (12:22 +0100)]
Apply suggestions from code review
Cyperghost [Thu, 5 Dec 2024 10:49:09 +0000 (11:49 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Thu, 5 Dec 2024 10:48:58 +0000 (11:48 +0100)]
Run `tsc`
Cyperghost [Thu, 5 Dec 2024 10:48:15 +0000 (11:48 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Thu, 5 Dec 2024 10:48:06 +0000 (11:48 +0100)]
Round the numbers
Cyperghost [Thu, 5 Dec 2024 10:38:08 +0000 (11:38 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Thu, 5 Dec 2024 10:37:49 +0000 (11:37 +0100)]
Set the default selection to the maximum width
Cyperghost [Thu, 5 Dec 2024 08:31:13 +0000 (09:31 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Olaf Braun [Wed, 4 Dec 2024 17:59:54 +0000 (18:59 +0100)]
Merge pull request #6136 from WoltLab/6.2-acp-user-handler
Migrate `WCF.ACP.User.*Handler` to TypeScript
Alexander Ebert [Wed, 4 Dec 2024 14:19:20 +0000 (15:19 +0100)]
Add a missing border
Marcel Werk [Wed, 4 Dec 2024 14:06:57 +0000 (15:06 +0100)]
Add abstract implementation for image data providing
Olaf Braun [Wed, 4 Dec 2024 13:29:18 +0000 (14:29 +0100)]
Disable zoom
Set default max width and height for the selection
Cyperghost [Wed, 4 Dec 2024 13:00:03 +0000 (14:00 +0100)]
Remove `defaultCoverPhoto` from bootstrap
Cyperghost [Wed, 4 Dec 2024 12:49:04 +0000 (13:49 +0100)]
Rename `getCoverPhotoLocation()` to `getLegacyLocation()` and move to `UserCoverPhoto`.
Cyperghost [Wed, 4 Dec 2024 12:41:16 +0000 (13:41 +0100)]
`createMinMax` renamed to `forMinMax`
Cyperghost [Wed, 4 Dec 2024 12:40:43 +0000 (13:40 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Wed, 4 Dec 2024 12:40:17 +0000 (13:40 +0100)]
Change the construct to private
Cyperghost [Wed, 4 Dec 2024 12:39:02 +0000 (13:39 +0100)]
Center the cropper selection in the canvas
Cyperghost [Wed, 4 Dec 2024 08:36:51 +0000 (09:36 +0100)]
Migrate `WCF.ACP.User.*Handler` to TypeScript
Olaf Braun [Tue, 3 Dec 2024 12:46:21 +0000 (13:46 +0100)]
Merge pull request #6125 from WoltLab/6.2-option-handler
Migrate `WCF.Option.Handler` to typescript
Olaf Braun [Tue, 3 Dec 2024 12:43:00 +0000 (13:43 +0100)]
Merge branch 'refs/heads/6.2' into 6.2-option-handler
# Conflicts:
# wcfsetup/install/files/acp/templates/userGroupAdd.tpl
Marcel Werk [Tue, 3 Dec 2024 11:50:08 +0000 (12:50 +0100)]
Add support for images in recent activities
Olaf Braun [Tue, 3 Dec 2024 11:47:22 +0000 (12:47 +0100)]
Merge pull request #6131 from WoltLab/6.2-user-group-copy
Migrate `WCF.ACP.User.Group.Copy` to TypeScript
Olaf Braun [Tue, 3 Dec 2024 11:46:53 +0000 (12:46 +0100)]
Merge pull request #6128 from WoltLab/6.2-flexible-category-list
Migrate `WCF.Category.FlexibleCategoryList `to TypeScript
Olaf Braun [Tue, 3 Dec 2024 11:46:30 +0000 (12:46 +0100)]
Merge pull request #6130 from WoltLab/6.2-tag-set-as-synonyms
Migrate `WCF.ACP.Tag.SetAsSynonymsHandler` to TypeScript
Olaf Braun [Tue, 3 Dec 2024 11:45:25 +0000 (12:45 +0100)]
Move `WoltLabSuite/Core/Acp/Ui/User/Group/Copy` to `WoltLabSuite/Core/Acp/Component/User/Group/Copy`
Olaf Braun [Tue, 3 Dec 2024 11:40:43 +0000 (12:40 +0100)]
Move `WoltLabSuite/Core/Acp/Ui/Tag/SynonymsHandler` to `WoltLabSuite/Core/Acp/Component/Tag/SynonymsHandler`
Olaf Braun [Tue, 3 Dec 2024 11:24:44 +0000 (12:24 +0100)]
Update wcfsetup/install/files/acp/templates/userGroupAdd.tpl
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
Olaf Braun [Tue, 3 Dec 2024 11:15:11 +0000 (12:15 +0100)]
Merge pull request #6129 from WoltLab/6.2-language-item-list
Migrate `WCF.ACP.Language.ItemList` to TypeScript
Cyperghost [Tue, 3 Dec 2024 09:16:36 +0000 (10:16 +0100)]
Migrate `WCF.ACP.User.Group.Copy` to TypeScript
Cyperghost [Tue, 3 Dec 2024 08:44:22 +0000 (09:44 +0100)]
Remove black line
Cyperghost [Tue, 3 Dec 2024 08:43:52 +0000 (09:43 +0100)]
Migrate `WCF.ACP.Tag.SetAsSynonymsHandler` to TypeScript
Olaf Braun [Tue, 3 Dec 2024 06:59:09 +0000 (07:59 +0100)]
Merge pull request #6124 from WoltLab/6.2-sortable-js
Migrate `WCF.Sortable.List` to Typescript
Cyperghost [Mon, 2 Dec 2024 12:30:29 +0000 (13:30 +0100)]
Remove the file `WCF.ACP.Language.js` which is no longer needed
Cyperghost [Mon, 2 Dec 2024 12:27:14 +0000 (13:27 +0100)]
Migrate `WCF.ACP.Language.ItemList` to TypeScript
Cyperghost [Mon, 2 Dec 2024 11:04:12 +0000 (12:04 +0100)]
Mark `WCF.Category.FlexibleCategoryList` as deprecated
Cyperghost [Mon, 2 Dec 2024 11:02:02 +0000 (12:02 +0100)]
Migrate `WCF.Category.FlexibleCategoryList` to TypeScript
Cyperghost [Mon, 2 Dec 2024 09:14:28 +0000 (10:14 +0100)]
Cache cover photos
Cyperghost [Mon, 2 Dec 2024 09:09:26 +0000 (10:09 +0100)]
Mark `IWebpUserCoverPhoto` as deprecated
Cyperghost [Mon, 2 Dec 2024 09:07:45 +0000 (10:07 +0100)]
Add foreign key for `wcf1_user.coverPhotoFileID` to `wcf1_file.fileID`
Cyperghost [Mon, 2 Dec 2024 09:02:57 +0000 (10:02 +0100)]
Use `JSON.parse()` instead of `eval()`.
Marcel Werk [Fri, 29 Nov 2024 16:06:13 +0000 (17:06 +0100)]
Overhaul the user profile header
Cyperghost [Fri, 29 Nov 2024 13:10:42 +0000 (14:10 +0100)]
Delete old user cover photo upload/delete
Cyperghost [Fri, 29 Nov 2024 13:07:32 +0000 (14:07 +0100)]
Add phpdoc to `getCoverPhotoLocation()`
Cyperghost [Fri, 29 Nov 2024 13:05:22 +0000 (14:05 +0100)]
Check if `coverPhotoHash` or `coverPhotoExtension` is set
Cyperghost [Fri, 29 Nov 2024 13:01:42 +0000 (14:01 +0100)]
Migrate old cover photos into the new file system
Cyperghost [Fri, 29 Nov 2024 12:44:10 +0000 (13:44 +0100)]
Insert back `IUserCoverPhoto::delete()`
Cyperghost [Fri, 29 Nov 2024 12:32:07 +0000 (13:32 +0100)]
Dont use `coverPhotoHash` or `coverPhotoExtension` anymore
Cyperghost [Fri, 29 Nov 2024 12:28:01 +0000 (13:28 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Fri, 29 Nov 2024 12:27:45 +0000 (13:27 +0100)]
Add exifreader to `require.config.js`
Cyperghost [Fri, 29 Nov 2024 12:20:07 +0000 (13:20 +0100)]
Merge branch 'file-upload-image-crop' into 6.2-user-coverphoto
Cyperghost [Fri, 29 Nov 2024 12:19:23 +0000 (13:19 +0100)]
Add `exifreader`
Cyperghost [Fri, 29 Nov 2024 11:57:12 +0000 (12:57 +0100)]
Run `tsc`
Cyperghost [Fri, 29 Nov 2024 11:56:08 +0000 (12:56 +0100)]
Migrate `WCF.Option.Handler` to typescript
Mark `WCF.Option.Handler` as deprecated
Cyperghost [Fri, 29 Nov 2024 11:05:16 +0000 (12:05 +0100)]
Move `this._options.options.toleranceElement` to `this._options.toleranceElement` if it exists
Cyperghost [Fri, 29 Nov 2024 11:03:15 +0000 (12:03 +0100)]
Use `dboAction` instead of `apiOnce`
Move callback functions into a separate methode
Cyperghost [Fri, 29 Nov 2024 10:39:51 +0000 (11:39 +0100)]
Manage cover photo in acp
Cyperghost [Fri, 29 Nov 2024 08:46:05 +0000 (09:46 +0100)]
Use `FileRuntimeCache`