GitHub/WoltLab/WCF.git
15 months agoMerge pull request #5621 from MysteryCode/fx-tplfcs
Alexander Ebert [Mon, 14 Aug 2023 11:25:57 +0000 (13:25 +0200)]
Merge pull request #5621 from MysteryCode/fx-tplfcs

fix usage of forbidden functions in templates

15 months agoForce a fresh search for updates for the notifier
Alexander Ebert [Mon, 14 Aug 2023 10:38:26 +0000 (12:38 +0200)]
Force a fresh search for updates for the notifier

Closes #5546

15 months agoMerge branch '5.5'
Alexander Ebert [Mon, 14 Aug 2023 09:56:58 +0000 (11:56 +0200)]
Merge branch '5.5'

15 months agoMerge branch '5.4' into 5.5
Alexander Ebert [Mon, 14 Aug 2023 09:55:01 +0000 (11:55 +0200)]
Merge branch '5.4' into 5.5

15 months agoFix the check of the maximum image height
Alexander Ebert [Mon, 14 Aug 2023 09:54:27 +0000 (11:54 +0200)]
Fix the check of the maximum image height

See https://www.woltlab.com/community/thread/301107-fehler-in-uploadformfield/

15 months agoMerge pull request #5618 from WoltLab/psr-15-dialog-form-button
Alexander Ebert [Mon, 14 Aug 2023 09:40:34 +0000 (11:40 +0200)]
Merge pull request #5618 from WoltLab/psr-15-dialog-form-button

Add `[data-formbuilder]` and `Psr15DialogFormResponse`

15 months agofix usage of forbidden functions in templates
mutec [Sun, 13 Aug 2023 13:10:07 +0000 (15:10 +0200)]
fix usage of forbidden functions in templates

see #5512

15 months agoAdd `[data-formbuilder]` and `Psr15DialogFormResponse`
Alexander Ebert [Sat, 12 Aug 2023 17:29:33 +0000 (19:29 +0200)]
Add `[data-formbuilder]` and `Psr15DialogFormResponse`

15 months agoAdd a checkered pattern to indicate transparent colors
Alexander Ebert [Fri, 11 Aug 2023 16:46:33 +0000 (18:46 +0200)]
Add a checkered pattern to indicate transparent colors

Closes #5536

15 months agoFix the appearance of the style changer button
Alexander Ebert [Fri, 11 Aug 2023 16:31:38 +0000 (18:31 +0200)]
Fix the appearance of the style changer button

Fixes #5539

15 months agoMerge pull request #5617 from WoltLab/share-dialog-providers
Marcel Werk [Fri, 11 Aug 2023 15:38:25 +0000 (17:38 +0200)]
Merge pull request #5617 from WoltLab/share-dialog-providers

Fix provider buttons in the share dialog

15 months agoMerge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Fri, 11 Aug 2023 15:34:45 +0000 (17:34 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF

15 months agoRemove obsolete language variables
Marcel Werk [Fri, 11 Aug 2023 15:34:40 +0000 (17:34 +0200)]
Remove obsolete language variables

15 months agoAvoid the usage of `\hash()` in the template
Alexander Ebert [Fri, 11 Aug 2023 15:29:04 +0000 (17:29 +0200)]
Avoid the usage of `\hash()` in the template

See #5512

15 months agoReintroduce `ucfirst` to the allowed template modifiers
Alexander Ebert [Fri, 11 Aug 2023 15:24:43 +0000 (17:24 +0200)]
Reintroduce `ucfirst` to the allowed template modifiers

This is often used in forms to add or edit items.

See #5512

15 months agoChange follow icon to `circle-plus`
Marcel Werk [Fri, 11 Aug 2023 15:15:32 +0000 (17:15 +0200)]
Change follow icon to `circle-plus`

see https://www.woltlab.com/community/thread/301085-folgen-icon-ersetzen/

15 months agoMark `share.ts` as deprecated
Marcel Werk [Fri, 11 Aug 2023 14:59:10 +0000 (16:59 +0200)]
Mark `share.ts` as deprecated

15 months agoFix provider buttons in the share dialog
Marcel Werk [Fri, 11 Aug 2023 14:58:57 +0000 (16:58 +0200)]
Fix provider buttons in the share dialog

15 months agoAdd an safeguard for the color scheme option during the update
Alexander Ebert [Fri, 11 Aug 2023 14:56:36 +0000 (16:56 +0200)]
Add an safeguard for the color scheme option during the update

15 months agoTrim down the list of allowed template modifiers
Alexander Ebert [Fri, 11 Aug 2023 14:46:17 +0000 (16:46 +0200)]
Trim down the list of allowed template modifiers

Closes #5512

15 months agoUnload the `WoltlabHtmlEmbed` plugin when raw HTML is disabled
Alexander Ebert [Fri, 11 Aug 2023 14:22:20 +0000 (16:22 +0200)]
Unload the `WoltlabHtmlEmbed` plugin when raw HTML is disabled

15 months agoBump the default exclude of exported styles to `7.0.0 Alpha 1`
Alexander Ebert [Fri, 11 Aug 2023 14:08:42 +0000 (16:08 +0200)]
Bump the default exclude of exported styles to `7.0.0 Alpha 1`

Fixes #5610

15 months agoFix the detection of message tab menus
Alexander Ebert [Fri, 11 Aug 2023 14:03:17 +0000 (16:03 +0200)]
Fix the detection of message tab menus

Fixes #5609

15 months agoAdd the CKEditor license terms for the sublicensees
Alexander Ebert [Fri, 11 Aug 2023 13:06:25 +0000 (15:06 +0200)]
Add the CKEditor license terms for the sublicensees

15 months agoFix positioning of the trophy icons
Marcel Werk [Fri, 11 Aug 2023 12:54:30 +0000 (14:54 +0200)]
Fix positioning of the trophy icons

They were affected by the special positioning of icons within `.box` classes.

15 months agoUpdate the CKEditor 5 bundle
Alexander Ebert [Fri, 11 Aug 2023 09:43:19 +0000 (11:43 +0200)]
Update the CKEditor 5 bundle

15 months agoStrip the menu group for blocks
Alexander Ebert [Fri, 11 Aug 2023 09:43:09 +0000 (11:43 +0200)]
Strip the menu group for blocks

15 months agoMerge pull request #5616 from WoltLab/user-color-scheme
Alexander Ebert [Thu, 10 Aug 2023 14:47:30 +0000 (16:47 +0200)]
Merge pull request #5616 from WoltLab/user-color-scheme

Overhaul the color scheme selection

15 months agoControl the color scheme through the user option
Alexander Ebert [Thu, 10 Aug 2023 14:26:26 +0000 (16:26 +0200)]
Control the color scheme through the user option

15 months agoRemove obsolete support for Spotify playlists
Marcel Werk [Thu, 10 Aug 2023 14:14:33 +0000 (16:14 +0200)]
Remove obsolete support for Spotify playlists

These links are already handled by the plain Spotify provider.

15 months agoAdjust size of spotify embed
Marcel Werk [Thu, 10 Aug 2023 14:11:11 +0000 (16:11 +0200)]
Adjust size of spotify embed

15 months agoMerge pull request #5608 from IceQ1337/spotify-embed
Marcel Werk [Thu, 10 Aug 2023 14:07:28 +0000 (16:07 +0200)]
Merge pull request #5608 from IceQ1337/spotify-embed

Update Spotify media provider

15 months agoAdd support for color scheme detection
Alexander Ebert [Thu, 10 Aug 2023 13:07:20 +0000 (15:07 +0200)]
Add support for color scheme detection

15 months agoAdd a user option to set the preferred color scheme
Alexander Ebert [Thu, 10 Aug 2023 11:40:20 +0000 (13:40 +0200)]
Add a user option to set the preferred color scheme

15 months agoAdded (OpenAI) GPTBot (#5614)
Sascha Greuel [Thu, 10 Aug 2023 09:16:35 +0000 (11:16 +0200)]
Added (OpenAI) GPTBot (#5614)

See https://platform.openai.com/docs/gptbot

15 months agoInsert newlines and whitespace after certain block elements
Alexander Ebert [Wed, 9 Aug 2023 16:26:10 +0000 (18:26 +0200)]
Insert newlines and whitespace after certain block elements

See https://www.woltlab.com/community/thread/301031-w%C3%B6rter-werden-falsch-gez%C3%A4hlt/

15 months agoUpgrade to `perfect-scrollbar` v1.5.5
Alexander Ebert [Wed, 9 Aug 2023 15:39:42 +0000 (17:39 +0200)]
Upgrade to `perfect-scrollbar` v1.5.5

See https://www.woltlab.com/community/thread/300462-komisches-scroll-verhalten-mit-stift/

15 months agoUpdate the CKEditor 5 dependencies
Alexander Ebert [Wed, 9 Aug 2023 14:25:55 +0000 (16:25 +0200)]
Update the CKEditor 5 dependencies

15 months agoAdd missing module headers
Alexander Ebert [Wed, 9 Aug 2023 13:55:15 +0000 (15:55 +0200)]
Add missing module headers

15 months agoConvert model attributes to strings for comparison
Alexander Ebert [Wed, 9 Aug 2023 13:27:46 +0000 (15:27 +0200)]
Convert model attributes to strings for comparison

The editor API does not guarantee the attribute types to be preserved, numbers can be converted into strings and returned as such.

See https://www.woltlab.com/community/thread/300956-deleted-attachments-do-not-disappear-from-the-editor/

15 months agoUse the new CKEditor5 BBCode event API
Alexander Ebert [Wed, 9 Aug 2023 12:16:18 +0000 (14:16 +0200)]
Use the new CKEditor5 BBCode event API

15 months agoAdd a proper `bbcode` event to `listenToCkeditor()`
Alexander Ebert [Wed, 9 Aug 2023 12:00:52 +0000 (14:00 +0200)]
Add a proper `bbcode` event to `listenToCkeditor()`

15 months agoEagerly inject the CKEditor stylesheet in the template
Alexander Ebert [Wed, 9 Aug 2023 11:34:38 +0000 (13:34 +0200)]
Eagerly inject the CKEditor stylesheet in the template

15 months agoFix the margins of aligned table headers
Alexander Ebert [Wed, 9 Aug 2023 10:10:39 +0000 (12:10 +0200)]
Fix the margins of aligned table headers

See https://www.woltlab.com/community/thread/301021-centre-aligning-the-first-row-inserts-unnecessary-spaces-in-the-editor/

15 months agoForce buttons to be of equal width
Alexander Ebert [Tue, 8 Aug 2023 17:56:10 +0000 (19:56 +0200)]
Force buttons to be of equal width

See https://www.woltlab.com/community/thread/301022-buttons-with-different-sizes-in-the-mobile-resolution/

15 months agoForce toolbar panels to be rendered above the content
Alexander Ebert [Tue, 8 Aug 2023 16:59:14 +0000 (18:59 +0200)]
Force toolbar panels to be rendered above the content

See https://www.woltlab.com/community/thread/301009-editor-logo-stets-im-vordergrund-mobil/

15 months agoReduce the `z-index` of the page overlay container
Alexander Ebert [Tue, 8 Aug 2023 16:55:05 +0000 (18:55 +0200)]
Reduce the `z-index` of the page overlay container

The previous value causes it to be in front of all other items at all times which is unintended.

15 months agoUnload the `WoltlabCode` plugin when `Code` is disabled
Alexander Ebert [Tue, 8 Aug 2023 14:17:16 +0000 (16:17 +0200)]
Unload the `WoltlabCode` plugin when `Code` is disabled

15 months agoFix the vertical alignment of inline code
Alexander Ebert [Tue, 8 Aug 2023 13:57:51 +0000 (15:57 +0200)]
Fix the vertical alignment of inline code

15 months agoMove the CKEditor overlays into the page overlay container
Alexander Ebert [Tue, 8 Aug 2023 10:11:25 +0000 (12:11 +0200)]
Move the CKEditor overlays into the page overlay container

See https://www.woltlab.com/community/thread/300815-ckeditor-link-menu-non-functional-in-ckeditor-instances-in-a-dialog/
See ckeditor/ckeditor#14747

15 months agoAvoid setting `:hover` states for touch devices
Alexander Ebert [Mon, 7 Aug 2023 19:12:43 +0000 (21:12 +0200)]
Avoid setting `:hover` states for touch devices

15 months agoFix the visuals of the unsafe HTML block
Alexander Ebert [Mon, 7 Aug 2023 19:09:31 +0000 (21:09 +0200)]
Fix the visuals of the unsafe HTML block

See #5606

15 months agoUpdate the spotify embed to an interactive audio player
IceQ1337 [Mon, 7 Aug 2023 13:34:49 +0000 (15:34 +0200)]
Update the spotify embed to an interactive audio player

15 months agoFix spotify links not being recognized properly
IceQ1337 [Mon, 7 Aug 2023 13:33:07 +0000 (15:33 +0200)]
Fix spotify links not being recognized properly

15 months agoFix the color of the CKEditor logo
Alexander Ebert [Sat, 5 Aug 2023 10:04:38 +0000 (12:04 +0200)]
Fix the color of the CKEditor logo

15 months agoSync the `unfurlUrl` template
Alexander Ebert [Sat, 5 Aug 2023 09:59:17 +0000 (11:59 +0200)]
Sync the `unfurlUrl` template

15 months agoUnwrap link previews nested in paragraphs
Alexander Ebert [Sat, 5 Aug 2023 09:58:06 +0000 (11:58 +0200)]
Unwrap link previews nested in paragraphs

See https://www.woltlab.com/community/thread/301006-leading-rich-embeds-yield-empty-paragraphs/

15 months agoMerge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Fri, 4 Aug 2023 15:45:58 +0000 (17:45 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF

15 months agoAdd missing comment
Marcel Werk [Fri, 4 Aug 2023 15:45:51 +0000 (17:45 +0200)]
Add missing comment

see https://github.com/WoltLab/WCF/pull/5604

15 months agoWait for the injected stylesheet to load
Alexander Ebert [Fri, 4 Aug 2023 15:42:49 +0000 (17:42 +0200)]
Wait for the injected stylesheet to load

15 months agoMerge pull request #5604 from WoltLab/animated-webp-processing2
Marcel Werk [Fri, 4 Aug 2023 15:02:48 +0000 (17:02 +0200)]
Merge pull request #5604 from WoltLab/animated-webp-processing2

Fix issues in the processing of animated WebP images

15 months agoFix phpdoc
Marcel Werk [Fri, 4 Aug 2023 14:28:22 +0000 (16:28 +0200)]
Fix phpdoc

15 months agoFix issues in the processing of animated WebP images
Marcel Werk [Fri, 4 Aug 2023 14:28:15 +0000 (16:28 +0200)]
Fix issues in the processing of animated WebP images

see https://www.woltlab.com/community/thread/297233-fehler-bei-animierten-webp-grafiken/

15 months agoRelease 6.0.0 Alpha 8 6.0.0_Alpha_8
Alexander Ebert [Fri, 4 Aug 2023 14:21:37 +0000 (16:21 +0200)]
Release 6.0.0 Alpha 8

15 months agoUpdating minified JavaScript files
WoltLab [Fri, 4 Aug 2023 14:15:01 +0000 (14:15 +0000)]
Updating minified JavaScript files

15 months agoSync the color values for the dark mode
Alexander Ebert [Fri, 4 Aug 2023 14:11:56 +0000 (16:11 +0200)]
Sync the color values for the dark mode

15 months agoExtract the CKEditor 5 styles into a static stylesheet
Alexander Ebert [Fri, 4 Aug 2023 14:07:13 +0000 (16:07 +0200)]
Extract the CKEditor 5 styles into a static stylesheet

15 months agoUpdating minified JavaScript files
WoltLab [Fri, 4 Aug 2023 13:42:24 +0000 (13:42 +0000)]
Updating minified JavaScript files

15 months agoUpgrade to CKEditor v39.0.0
Alexander Ebert [Fri, 4 Aug 2023 13:30:33 +0000 (15:30 +0200)]
Upgrade to CKEditor v39.0.0

15 months agoUpdate the `aria-expanded` attribute when implicitly closing drop-down menus
Alexander Ebert [Fri, 4 Aug 2023 11:32:02 +0000 (13:32 +0200)]
Update the `aria-expanded` attribute when implicitly closing drop-down menus

Fixes #5553

15 months agoAdd a `min-height` for the empty breadcrumbs element
Alexander Ebert [Fri, 4 Aug 2023 11:24:53 +0000 (13:24 +0200)]
Add a `min-height` for the empty breadcrumbs element

This was unintentionally removed with the overhaul but causes the element to visually collapse when there are no breadcrumbs to display.

Fixes #5576

15 months agoFix the handling of `NULL` values
Alexander Ebert [Fri, 4 Aug 2023 11:16:43 +0000 (13:16 +0200)]
Fix the handling of `NULL` values

See https://www.woltlab.com/community/thread/300917-neue-benutzergruppe-anlegen-funktioniert-nicht-mit-php-8-1x/

15 months agoForce the solid variant of the `user` icon in the user panel
Alexander Ebert [Fri, 4 Aug 2023 10:31:09 +0000 (12:31 +0200)]
Force the solid variant of the `user` icon in the user panel

See https://www.woltlab.com/community/thread/300995-profile-icon/

15 months agoNormalize HTML before inserting it into CKEditor
Alexander Ebert [Fri, 4 Aug 2023 10:23:43 +0000 (12:23 +0200)]
Normalize HTML before inserting it into CKEditor

Fixes https://www.woltlab.com/community/thread/300657-quoting-pre-6-0-posts-does-not-normalize-the-old-paragraph-behavior/

15 months agoUse a condensed layout for message buttons
Alexander Ebert [Fri, 4 Aug 2023 09:39:17 +0000 (11:39 +0200)]
Use a condensed layout for message buttons

See https://www.woltlab.com/community/thread/300993-my-ui-ux-design-suggestions/

15 months agoUpdate composer dependencies
Tim Düsterhus [Thu, 3 Aug 2023 17:22:10 +0000 (19:22 +0200)]
Update composer dependencies

15 months agoFix the suppressed hover states on mobile
Alexander Ebert [Thu, 3 Aug 2023 16:59:47 +0000 (18:59 +0200)]
Fix the suppressed hover states on mobile

See https://www.woltlab.com/community/thread/300930-button-farbe-in-der-editor-toolbar-fehlt-im-hellen-farbschema/

15 months agoFix the visuals of dialog to restore the draft on screen-xs
Alexander Ebert [Thu, 3 Aug 2023 16:59:00 +0000 (18:59 +0200)]
Fix the visuals of dialog to restore the draft on screen-xs

15 months agoMerge pull request #5603 from WoltLab/system-check-memory
Tim Düsterhus [Thu, 3 Aug 2023 13:02:44 +0000 (15:02 +0200)]
Merge pull request #5603 from WoltLab/system-check-memory

Use `FileUtil::getMemoryLimit()` in SystemCheckPage

15 months agoMerge pull request #5602 from WoltLab/ini-parse-quantity
Tim Düsterhus [Thu, 3 Aug 2023 13:02:23 +0000 (15:02 +0200)]
Merge pull request #5602 from WoltLab/ini-parse-quantity

Make use of `ini_parse_quantity()` in FileUtil::getMemoryLimit()

15 months agoUse `FileUtil::getMemoryLimit()` in SystemCheckPage
Tim Düsterhus [Thu, 3 Aug 2023 12:22:55 +0000 (14:22 +0200)]
Use `FileUtil::getMemoryLimit()` in SystemCheckPage

15 months agoMerge pull request #5601 from WoltLab/checkMemoryLimit-float
Tim Düsterhus [Thu, 3 Aug 2023 12:17:54 +0000 (14:17 +0200)]
Merge pull request #5601 from WoltLab/checkMemoryLimit-float

Accept `float`s in FileUtil::checkMemoryLimit()

15 months agoMake use of `ini_parse_quantity()` in FileUtil::getMemoryLimit()
Tim Düsterhus [Thu, 3 Aug 2023 12:15:26 +0000 (14:15 +0200)]
Make use of `ini_parse_quantity()` in FileUtil::getMemoryLimit()

If `ini_parse_quantity()` is available (PHP 8.2+) it will certainly be more
accurate and simpler than our home-grown calculator.

15 months agoAccept `float`s in FileUtil::checkMemoryLimit()
Tim Düsterhus [Thu, 3 Aug 2023 12:03:02 +0000 (14:03 +0200)]
Accept `float`s in FileUtil::checkMemoryLimit()

While a decimal amount of bytes is not something that exists, it's a common
pattern to approximate the required memory usage of an image operation with the
factor `2.1`, possibly resulting in decimal places. PHP 8.1 emits a warning if
an implicit cast from non-integer float to int happens.

As the input is only used within an inequality expression and not further
processed it is safe to accept arbitrary floats and preferable to slapping
explicit casts onto everything.

15 months agoPrevent parallel executions of the store code installation
Alexander Ebert [Thu, 3 Aug 2023 11:40:42 +0000 (13:40 +0200)]
Prevent parallel executions of the store code installation

See https://www.woltlab.com/community/thread/300905/

15 months agoExplicitly cast the thumbnail dimensions into int
Alexander Ebert [Thu, 3 Aug 2023 11:24:21 +0000 (13:24 +0200)]
Explicitly cast the thumbnail dimensions into int

The requested dimensions could be a result of a calculation that yields float values. `Imagick::thumbnailImage()` expects integers and will throw in PHP 8.1+ if it cannot safely cast them to int.

15 months agoMerge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 15:20:31 +0000 (17:20 +0200)]
Merge branch '5.5'

15 months agoAdd `permissions` to GitHub Action Workflows
Tim Düsterhus [Wed, 2 Aug 2023 15:19:34 +0000 (17:19 +0200)]
Add `permissions` to GitHub Action Workflows

15 months agoRemove obsolete workaround for safari
Marcel Werk [Wed, 2 Aug 2023 15:15:47 +0000 (17:15 +0200)]
Remove obsolete workaround for safari

See ecd2007f820c44673a9d6d51443032aaef91b78a
See https://www.woltlab.com/community/thread/300882-back-button-in-search-result-pagination-not-working-reliably/

15 months agoMerge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Wed, 2 Aug 2023 13:24:05 +0000 (15:24 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF

15 months agoFix typo
Marcel Werk [Wed, 2 Aug 2023 13:23:58 +0000 (15:23 +0200)]
Fix typo

15 months agoMerge pull request #5600 from WoltLab/message-form-multilingualism
Marcel Werk [Wed, 2 Aug 2023 13:20:25 +0000 (15:20 +0200)]
Merge pull request #5600 from WoltLab/message-form-multilingualism

Don't show language chooser if only one option is available

15 months agoDon't show language chooser if only one option is available
Marcel Werk [Wed, 2 Aug 2023 13:17:53 +0000 (15:17 +0200)]
Don't show language chooser if only one option is available

15 months agoMerge remote-tracking branch 'origin/master'
Tim Düsterhus [Wed, 2 Aug 2023 13:16:20 +0000 (15:16 +0200)]
Merge remote-tracking branch 'origin/master'

15 months agoUpdate esbuild
Tim Düsterhus [Wed, 2 Aug 2023 13:16:02 +0000 (15:16 +0200)]
Update esbuild

15 months agoMerge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:15:33 +0000 (15:15 +0200)]
Merge branch '5.5'

15 months agoUpdate some `@types` npm dependencies
Tim Düsterhus [Wed, 2 Aug 2023 13:14:31 +0000 (15:14 +0200)]
Update some `@types` npm dependencies

15 months agoFix incorrect rendering of the content interaction buttons
Marcel Werk [Wed, 2 Aug 2023 13:12:44 +0000 (15:12 +0200)]
Fix incorrect rendering of the content interaction buttons

In the mobile view the buttons were displayed squashed.

15 months agoMerge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:03:46 +0000 (15:03 +0200)]
Merge branch '5.5'

15 months agoStop abusing enums in Image/ExifUtil.ts
Tim Düsterhus [Wed, 2 Aug 2023 13:00:30 +0000 (15:00 +0200)]
Stop abusing enums in Image/ExifUtil.ts