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
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
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()
Tim Düsterhus [Thu, 3 Aug 2023 12:22:55 +0000 (14:22 +0200)]
Use `FileUtil::getMemoryLimit()` in SystemCheckPage
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()
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.
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.
Tim Düsterhus [Wed, 2 Aug 2023 15:20:31 +0000 (17:20 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 15:19:34 +0000 (17:19 +0200)]
Add `permissions` to GitHub Action Workflows
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/
Marcel Werk [Wed, 2 Aug 2023 13:24:05 +0000 (15:24 +0200)]
Merge branch 'master' of https://github.com/WoltLab/WCF
Marcel Werk [Wed, 2 Aug 2023 13:23:58 +0000 (15:23 +0200)]
Fix typo
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
Marcel Werk [Wed, 2 Aug 2023 13:17:53 +0000 (15:17 +0200)]
Don't show language chooser if only one option is available
Tim Düsterhus [Wed, 2 Aug 2023 13:16:20 +0000 (15:16 +0200)]
Merge remote-tracking branch 'origin/master'
Tim Düsterhus [Wed, 2 Aug 2023 13:16:02 +0000 (15:16 +0200)]
Update esbuild
Tim Düsterhus [Wed, 2 Aug 2023 13:15:33 +0000 (15:15 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:14:31 +0000 (15:14 +0200)]
Update some `@types` npm dependencies
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.
Tim Düsterhus [Wed, 2 Aug 2023 13:03:46 +0000 (15:03 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 13:00:30 +0000 (15:00 +0200)]
Stop abusing enums in Image/ExifUtil.ts
Tim Düsterhus [Wed, 2 Aug 2023 12:58:40 +0000 (14:58 +0200)]
Satisfy ESLint after merge
Tim Düsterhus [Wed, 2 Aug 2023 12:48:32 +0000 (14:48 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 12:47:33 +0000 (14:47 +0200)]
Satisfy ESLint
Tim Düsterhus [Wed, 2 Aug 2023 12:34:56 +0000 (14:34 +0200)]
Merge branch '5.5'
Tim Düsterhus [Wed, 2 Aug 2023 12:33:27 +0000 (14:33 +0200)]
Upgrade typescript-eslint
Alexander Ebert [Wed, 2 Aug 2023 10:22:20 +0000 (12:22 +0200)]
Merge pull request #5598 from WoltLab/ckeditor5-image-resize-v2
Enable the image resizing in CKEditor again
Tim Düsterhus [Wed, 2 Aug 2023 09:55:02 +0000 (11:55 +0200)]
Merge pull request #5599 from WoltLab/ckeditor-types-bbcode
Augment the EditorConfig with `woltlabBbcode` in Ckeditor/Types
Tim Düsterhus [Wed, 2 Aug 2023 09:19:24 +0000 (11:19 +0200)]
Augment the EditorConfig with `woltlabBbcode` in Ckeditor/Types
Alexander Ebert [Tue, 1 Aug 2023 16:12:46 +0000 (18:12 +0200)]
Add a hover state for embedded content and rich embeds
See https://www.woltlab.com/community/thread/300932-rich-embed-cards-do-not-have-a-hover-effect/
Alexander Ebert [Tue, 1 Aug 2023 16:02:33 +0000 (18:02 +0200)]
Update the CKEditor 5 bundle
Alexander Ebert [Tue, 1 Aug 2023 15:46:07 +0000 (17:46 +0200)]
Enable the legacy width attribute of `[attach]`
Tim Düsterhus [Tue, 1 Aug 2023 13:43:11 +0000 (15:43 +0200)]
Update composer dependencies
Alexander Ebert [Tue, 1 Aug 2023 13:33:08 +0000 (15:33 +0200)]
Enable image resizing again
Tim Düsterhus [Tue, 1 Aug 2023 12:38:07 +0000 (14:38 +0200)]
Merge pull request #5597 from WoltLab/foreign-key-name-suffix
Require a `_fk` suffix for explicit FOREIGN KEY names
Tim Düsterhus [Tue, 1 Aug 2023 12:11:17 +0000 (14:11 +0200)]
Require a `_fk` suffix for explicit FOREIGN KEY names
This is required to correctly uninstall these FOREIGN KEYs.
Alexander Ebert [Tue, 1 Aug 2023 11:26:16 +0000 (13:26 +0200)]
Fix the handling of strikethrough applied to inline code
See https://www.woltlab.com/community/thread/300926-code-not-strikethroughed-in-the-new-editor/
Tim Düsterhus [Mon, 31 Jul 2023 13:13:22 +0000 (15:13 +0200)]
Update composer dependencies
Tim Düsterhus [Mon, 31 Jul 2023 08:27:30 +0000 (10:27 +0200)]
Merge remote-tracking branch 'origin/master'
Alexander Ebert [Sat, 29 Jul 2023 10:17:40 +0000 (12:17 +0200)]
Fix the hover state of buttons in the image viewer
See https://www.woltlab.com/community/thread/300776-bilder-lightbox-buttons-schwer-erkennbar-und-fehlendes-hover/
Alexander Ebert [Sat, 29 Jul 2023 09:54:04 +0000 (11:54 +0200)]
Fix the behavior of mentions in the editor
See https://www.woltlab.com/community/thread/300780-problem-when-trying-to-edit-the-first-letter-of-a-mention/
Tim Düsterhus [Fri, 28 Jul 2023 14:02:07 +0000 (16:02 +0200)]
Merge branch '5.5'
Alexander Ebert [Fri, 28 Jul 2023 14:00:03 +0000 (16:00 +0200)]
Ignore concurrent edit requests for the same element
See https://www.woltlab.com/community/thread/300685-der-editor-ist-bereits-aktiv-bei-langsamer-internetverbindung/
Tim Düsterhus [Fri, 28 Jul 2023 13:59:45 +0000 (15:59 +0200)]
Update tslib
Alexander Ebert [Fri, 28 Jul 2023 13:35:46 +0000 (15:35 +0200)]
Reset the cache of a popover
Alexander Ebert [Fri, 28 Jul 2023 13:14:37 +0000 (15:14 +0200)]
Add a dark color variant for diff sections
See https://www.woltlab.com/community/thread/300639-light-colored-headline-in-version-history-of-articles-in-dark-mode/
Tim Düsterhus [Fri, 28 Jul 2023 13:01:05 +0000 (15:01 +0200)]
Add missing `static` to FileUtil::extensionAllowsPhpExecution() definition
see #5593
Tim Düsterhus [Fri, 28 Jul 2023 12:59:09 +0000 (14:59 +0200)]
Merge branch '5.5'
Alexander Ebert [Fri, 28 Jul 2023 12:49:38 +0000 (14:49 +0200)]
Fix the jump to the option being searched for
Fixes #5580
Tim Düsterhus [Fri, 28 Jul 2023 12:34:45 +0000 (14:34 +0200)]
Merge pull request #5593 from WoltLab/fileutil-extensionAllowsPhpExecution
Add FileUtil::extensionAllowsPhpExecution()
Tim Düsterhus [Fri, 28 Jul 2023 11:57:50 +0000 (13:57 +0200)]
Perform a case-insensitive match in FileUtil::extensionAllowsPhpExecution()
Alexander Ebert [Fri, 28 Jul 2023 11:40:37 +0000 (13:40 +0200)]
Prevent smileys being translated by the browser
See https://www.woltlab.com/community/thread/300836-problem-with-the-editor-and-chrome-s-translation-function/
Alexander Ebert [Fri, 28 Jul 2023 11:40:02 +0000 (13:40 +0200)]
Use `\sprintf()` to generate the HTML of smileys
Alexander Ebert [Fri, 28 Jul 2023 10:29:23 +0000 (12:29 +0200)]
Add a margin around code blocks in the editor
See https://www.woltlab.com/community/thread/300833-missing-gap-between-code-blocks-in-the-editor/
Alexander Ebert [Thu, 27 Jul 2023 17:21:28 +0000 (19:21 +0200)]
Fix the alignment of `<fa-icon>` in `.box*`
See https://www.woltlab.com/community/thread/300726-file-icons-in-featured-plugins-box-are-misaligned/
Alexander Ebert [Thu, 27 Jul 2023 17:07:22 +0000 (19:07 +0200)]
Fix the alignment of the flag icons in message lists
See https://www.woltlab.com/community/thread/300640-flag-in-thread-list-is-sitting-lower-than-other-icons/
Alexander Ebert [Thu, 27 Jul 2023 16:19:27 +0000 (18:19 +0200)]
Improve the visuals of spoilers
See https://www.woltlab.com/community/thread/300758-spoiler-toggle-button-much-harder-to-see/
Marcel Werk [Thu, 27 Jul 2023 14:05:23 +0000 (16:05 +0200)]
Merge pull request #5595 from WoltLab/subscribe-button-description
Fix descriptions for subscribe buttons
Tim Düsterhus [Thu, 27 Jul 2023 13:55:58 +0000 (15:55 +0200)]
Merge pull request #5596 from WoltLab/trim-full-invisible
Expand `StringUtil::trim()` to clear out strings that consist of invisbile characters only
Marcel Werk [Thu, 27 Jul 2023 13:55:28 +0000 (15:55 +0200)]
Apply suggestions from code review
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
Tim Düsterhus [Thu, 27 Jul 2023 13:10:49 +0000 (15:10 +0200)]
Expand `StringUtil::trim()` to clear out strings that consist of invisbile characters only
see https://www.woltlab.com/community/thread/300772-unsichtbare-unicode-zeichen-als-titel-verbieten/
Marcel Werk [Thu, 27 Jul 2023 12:05:16 +0000 (14:05 +0200)]
Fix descriptions for subscribe buttons
These are generic language variables that are used in various places. Not all use cases support mentions, quotes, or reactions, so the previous descriptions were misleading.
Alexander Ebert [Wed, 26 Jul 2023 15:50:10 +0000 (17:50 +0200)]
Slightly defer the initialization but not loading of CKEditor
This change improves the perceived performance by forcing the browser to insert a rendering pass before initializing the browser. In particular on mobile devices this creates an opportunity to refresh the screen.
Marcel Werk [Wed, 26 Jul 2023 14:55:43 +0000 (16:55 +0200)]
Merge pull request #5594 from WoltLab/watch-vs-subscribe
Unify 'Watched' Vs 'Subscribed'
Marcel Werk [Wed, 26 Jul 2023 14:49:21 +0000 (16:49 +0200)]
Unify 'Watched' Vs 'Subscribed'
Alexander Ebert [Wed, 26 Jul 2023 14:40:35 +0000 (16:40 +0200)]
Prevent the selection handle to bet cut off by the toolbar
See https://www.woltlab.com/community/thread/300628-widget-handle-cut-off-by-the-editor-toolbar/
Alexander Ebert [Wed, 26 Jul 2023 13:58:14 +0000 (15:58 +0200)]
Improve the visuals of the reaction popover
See https://www.woltlab.com/community/thread/300768-darstellungsfehler-bei-reaktionen-in-artikeln/
Alexander Ebert [Wed, 26 Jul 2023 12:25:16 +0000 (14:25 +0200)]
Upgrade to CKEditor5 v38.1.1
Tim Düsterhus [Wed, 26 Jul 2023 10:24:32 +0000 (12:24 +0200)]
Update composer dependencies
Alexander Ebert [Tue, 25 Jul 2023 15:28:16 +0000 (17:28 +0200)]
Prevent the loading overlay to overlap the bottom border
See https://www.woltlab.com/community/thread/300754-rahmen-wird-mindestens-mobil-beim-absenden-%C3%BCberdeckt/
Tim Düsterhus [Tue, 25 Jul 2023 14:32:10 +0000 (16:32 +0200)]
Add FileUtil::extensionAllowsPhpExecution()
see WoltLab/com.woltlab.gallery@
708e0a8707508c3e45b08ab6a8ae5083eabf00b7
Alexander Ebert [Tue, 25 Jul 2023 14:16:56 +0000 (16:16 +0200)]
Merge branch '5.5'
Alexander Ebert [Tue, 25 Jul 2023 14:07:42 +0000 (16:07 +0200)]
Release 5.5.15
Alexander Ebert [Tue, 25 Jul 2023 14:07:16 +0000 (16:07 +0200)]
Merge branch '5.4' into 5.5
Alexander Ebert [Tue, 25 Jul 2023 14:06:36 +0000 (16:06 +0200)]
Release 5.4.31
Alexander Ebert [Tue, 25 Jul 2023 14:03:23 +0000 (16:03 +0200)]
Allow the news feed to open links in a new window
Marcel Werk [Tue, 25 Jul 2023 13:37:36 +0000 (15:37 +0200)]
When the month has 6 weeks the selected date was not marked correctly
Alexander Ebert [Tue, 25 Jul 2023 13:36:00 +0000 (15:36 +0200)]
Force the overlay contain to be always on top
See https://www.woltlab.com/community/thread/300763-tooltips-hinter-popover/
Alexander Ebert [Tue, 25 Jul 2023 13:32:29 +0000 (15:32 +0200)]
Simplify the active state of sidebar menu items
See https://www.woltlab.com/community/thread/300811-aktive-boxnavigation/
Alexander Ebert [Tue, 25 Jul 2023 13:28:22 +0000 (15:28 +0200)]
Fix the position of the date picker
See https://www.woltlab.com/community/thread/300760-datepicker-is-broken/
Alexander Ebert [Tue, 25 Jul 2023 13:26:46 +0000 (15:26 +0200)]
Force a minimum width on mobile dialogs
See https://www.woltlab.com/community/thread/300784-mitglieder-filtern-dialog-fehlerhafte-mobile-darstellung/
See https://www.woltlab.com/community/thread/300751-preview-size-in-mobile-resolution-when-text-is-too-short/
Alexander Ebert [Tue, 25 Jul 2023 13:25:07 +0000 (15:25 +0200)]
Merge branch '5.5'
Alexander Ebert [Tue, 25 Jul 2023 11:22:18 +0000 (13:22 +0200)]
Release 5.5.14
WoltLab [Tue, 25 Jul 2023 11:21:08 +0000 (11:21 +0000)]
Updating minified JavaScript files
Alexander Ebert [Tue, 25 Jul 2023 11:19:37 +0000 (13:19 +0200)]
Merge branch '5.4' into 5.5
Alexander Ebert [Tue, 25 Jul 2023 10:06:26 +0000 (12:06 +0200)]
Release 5.4.30
WoltLab [Tue, 25 Jul 2023 10:03:02 +0000 (10:03 +0000)]
Updating minified JavaScript files
Alexander Ebert [Tue, 25 Jul 2023 09:39:29 +0000 (11:39 +0200)]
Merge branch '5.5'
Alexander Ebert [Tue, 25 Jul 2023 09:38:23 +0000 (11:38 +0200)]
Merge branch '5.4' into 5.5
Alexander Ebert [Tue, 25 Jul 2023 09:38:17 +0000 (11:38 +0200)]
Decrease the height of the news widget
Tim Düsterhus [Tue, 25 Jul 2023 09:23:48 +0000 (11:23 +0200)]
Merge branch '5.5'
Tim Düsterhus [Tue, 25 Jul 2023 09:22:46 +0000 (11:22 +0200)]
Merge branch '5.4' into 5.5
Tim Düsterhus [Tue, 25 Jul 2023 09:20:28 +0000 (11:20 +0200)]
Fix comma detection in Ui/ItemList/Static
This got broken during the TypeScript migration in
c04fd6ce08b40262c660d38dbd491c37aed49a89.
see https://www.woltlab.com/community/thread/300812-itemlist-static-separierung-per-komma-funktioniert-nicht/
Tim Düsterhus [Mon, 24 Jul 2023 14:52:54 +0000 (16:52 +0200)]
Merge pull request #5592 from WoltLab/numberformat-php
Fix number formatting in StringUtil
Tim Düsterhus [Mon, 24 Jul 2023 13:34:46 +0000 (15:34 +0200)]
Fix PHP codestyle
Tim Düsterhus [Mon, 24 Jul 2023 07:26:21 +0000 (09:26 +0200)]
Fix StringUtil::formatDouble() for $maxDecimals != 2
NumberFormatter performs rounding itself, thus there is no need to round
manually. This also changes the recommended alternative for this use case that
is mentioned in the doc comment.
Tim Düsterhus [Mon, 24 Jul 2023 07:23:51 +0000 (09:23 +0200)]
Limit the NumberFormatter to 2 fraction digits in StringUtil::getNumberFormatter()
see https://www.woltlab.com/community/thread/300795-startseite-beitr%C3%A4ge-pro-tag-ist-%C3%BCbertrieben-genau/
Tim Düsterhus [Mon, 24 Jul 2023 07:20:04 +0000 (09:20 +0200)]
Fix handling of negative numbers in StringUtil::formatInteger()
The formatted value was compared against `0`, not the original integer. Just
delegate to `formatNumeric()`.
Tim Düsterhus [Fri, 21 Jul 2023 07:10:31 +0000 (09:10 +0200)]
Add missing `.button` class in PaypalPaymentMethod
Alexander Ebert [Thu, 20 Jul 2023 10:23:07 +0000 (12:23 +0200)]
Fix the position of the quote selection
It shares the `balloonTooltip` class but is not part of the page overlay container.
See https://www.woltlab.com/community/thread/300757-quote-by-marking-text-tooltip-is-misplaced-when-page-is-scrolled/