Alexander Ebert [Thu, 8 Dec 2022 16:37:30 +0000 (17:37 +0100)]
Fix the generated code of `{jsphrase}`
Tim Düsterhus [Thu, 8 Dec 2022 16:18:37 +0000 (17:18 +0100)]
Streamline the PSR-7/PSR-15 terminology
Alexander Ebert [Thu, 8 Dec 2022 16:05:01 +0000 (17:05 +0100)]
Merge pull request #5173 from WoltLab/js-phrase
Add the prefilter `{jsphrase}` to easily register phrases in templates
Alexander Ebert [Wed, 9 Nov 2022 14:31:43 +0000 (15:31 +0100)]
Add the prefilter `{jsphrase}` to easily register phrases in templates
Tim Düsterhus [Thu, 8 Dec 2022 15:52:35 +0000 (16:52 +0100)]
Merge pull request #5172 from WoltLab/psr-15-formbuilder
Add FormBuilder API for PSR-15 requests
Alexander Ebert [Thu, 8 Dec 2022 12:00:32 +0000 (13:00 +0100)]
Add module level comment to `Component/FormBuilder/Setup.ts`
Alexander Ebert [Thu, 8 Dec 2022 11:45:32 +0000 (12:45 +0100)]
Use a promise to signal a submitted or discarded form builder dialog
Alexander Ebert [Wed, 7 Dec 2022 17:29:48 +0000 (18:29 +0100)]
Add support for Form Builder to the new dialog API
Alexander Ebert [Thu, 8 Dec 2022 15:38:42 +0000 (16:38 +0100)]
Enforce restrictions on PSR15 based dialogs to prevent API misuse
Alexander Ebert [Thu, 8 Dec 2022 14:52:43 +0000 (15:52 +0100)]
Add `Psr15DialogForm`
Tim Düsterhus [Thu, 8 Dec 2022 12:40:09 +0000 (13:40 +0100)]
Merge pull request #5170 from WoltLab/ajax-psr-15
Add Ajax/Backend.ts
Alexander Ebert [Thu, 8 Dec 2022 11:59:32 +0000 (12:59 +0100)]
Add module level comment to `Ajax/Backend.ts`
Alexander Ebert [Thu, 17 Nov 2022 12:53:51 +0000 (13:53 +0100)]
Stop making assumptions about the JSON response value
Alexander Ebert [Mon, 14 Nov 2022 17:42:43 +0000 (18:42 +0100)]
Request the content type `application/json` when fetching as JSON
Alexander Ebert [Mon, 14 Nov 2022 17:33:01 +0000 (18:33 +0100)]
Evaluate the `woltlab-background-queue-check` response header
Alexander Ebert [Fri, 4 Nov 2022 15:22:01 +0000 (16:22 +0100)]
Split `dispatch()` into `fetchAsJson()` and `fetchAsResponse()`
This change allows for responses that are not JSON encoded, such as pure HTML responses.
Alexander Ebert [Thu, 3 Nov 2022 16:57:13 +0000 (17:57 +0100)]
Add support for `FormData` and JSON body
Alexander Ebert [Thu, 3 Nov 2022 16:13:23 +0000 (17:13 +0100)]
Add prototype for AJAX requests to PSR-15 controllers
Tim Düsterhus [Thu, 8 Dec 2022 10:36:09 +0000 (11:36 +0100)]
Use `->prepare()` in UserNotificationAction
Tim Düsterhus [Thu, 8 Dec 2022 10:51:21 +0000 (11:51 +0100)]
Merge pull request #5169 from WoltLab/wcfsetup-no-backstep
Lock WCFSetup once files are extracted
Tim Düsterhus [Thu, 8 Dec 2022 09:36:31 +0000 (10:36 +0100)]
Merge pull request #4775 from WoltLab/update-prism
Update prism
Tim Düsterhus [Thu, 8 Dec 2022 09:18:39 +0000 (10:18 +0100)]
Update prism to 1.29.0
Tim Düsterhus [Thu, 5 May 2022 13:34:22 +0000 (15:34 +0200)]
Update prism to 1.28.0
Tim Düsterhus [Thu, 8 Dec 2022 08:44:40 +0000 (09:44 +0100)]
Verify that WCF is not yet unzipped in early WCFSetup steps
Together with the stepping validation in the previous commit, this ensures that
WCFSetup cannot be restarted once the files are extracted.
Tim Düsterhus [Wed, 7 Dec 2022 15:48:09 +0000 (16:48 +0100)]
Validate the step order in WCFSetup
This ensures that no step is skipped and that completed steps may not happen
again.
Alexander Ebert [Wed, 7 Dec 2022 17:59:18 +0000 (18:59 +0100)]
Fix the removal of the dialog from the DOM on close
Tim Düsterhus [Wed, 7 Dec 2022 16:02:35 +0000 (17:02 +0100)]
Fix app installation in WCFSetup developer mode with default directories
The `$directory` variable needs to contain an absolute path, not a relative
one.
see
d709bc5057d3c1fb49c950579aac78a868249177
Tim Düsterhus [Wed, 7 Dec 2022 15:26:42 +0000 (16:26 +0100)]
Skip selectSetupLanguage() and showLicense() in developer mode by using gotoNextStep()
While this adds additional HTTP requests, it cleans up the dispatcher,
specifically getting rid of the fall-through logic, making the setup cleaner
with negligible performance loss.
Tim Düsterhus [Wed, 7 Dec 2022 15:10:06 +0000 (16:10 +0100)]
Merge pull request #5168 from WoltLab/wcfsetup-tmp-handling
Improve validation of tmpFilePrefix in install.php
Tim Düsterhus [Wed, 7 Dec 2022 15:09:10 +0000 (16:09 +0100)]
Merge pull request #5167 from WoltLab/wcfsetup-no-directory-select
Remove directory selection from WCFSetup
Tim Düsterhus [Wed, 7 Dec 2022 15:03:55 +0000 (16:03 +0100)]
Use `->prepare()` in SetupFileHandler
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
Tim Düsterhus [Wed, 7 Dec 2022 15:01:20 +0000 (16:01 +0100)]
Strongly validate the `tmpFilePrefix` in install.php
Previously it was possible to create directories using name that is partly
externally controllable. Now either a known prefix (i.e. known directory) needs
to be provided or a new random prefix will be generated.
Tim Düsterhus [Wed, 7 Dec 2022 14:53:04 +0000 (15:53 +0100)]
Do not accept the `tmpFilePrefix` parameter from a URI parameter in WCFSetup
This parameter is never transmitted in the URI, thus we neither need, nor
should take it from the URI.
Tim Düsterhus [Wed, 7 Dec 2022 14:40:35 +0000 (15:40 +0100)]
Do not accept the `step` parameter from a URI parameter in WCFSetup
Previously it was possible to jump into arbitrary locations of the set-up by a
simple link click.
Tim Düsterhus [Wed, 7 Dec 2022 14:27:49 +0000 (15:27 +0100)]
Remove dedicated logFiles step from WCFSetup
As the database connection is available during unzipFiles(), we can log the
files immediately instead of writing them into a temporary file first.
Tim Düsterhus [Wed, 7 Dec 2022 14:13:27 +0000 (15:13 +0100)]
Reorder WCFSetup steps to configure the DB before unzipping files
Since the directory selection has been removed, the target location of the
files is known a-priori. By reordering the steps we can validate that the
database is fine before extracting all the files. In case of an error clearing
just the database is easier than also nuking the webroot.
Tim Düsterhus [Wed, 7 Dec 2022 13:47:40 +0000 (14:47 +0100)]
Remove step to configure directories from WCFSetup
Resolves #5027
Tim Düsterhus [Wed, 7 Dec 2022 13:44:36 +0000 (14:44 +0100)]
Remove the registration of the `__wcfSetup_directories` session variable
Tim Düsterhus [Wed, 7 Dec 2022 13:27:03 +0000 (14:27 +0100)]
Ignore the WCFSetup directory selection in PackageInstallationDispatcher
Alexander Ebert [Wed, 7 Dec 2022 12:52:04 +0000 (13:52 +0100)]
Merge pull request #5165 from WoltLab/dynamic-property-user-editor
Do not attempt to update the accessToken on a live object in UserEditor::update()
Alexander Ebert [Wed, 7 Dec 2022 12:50:55 +0000 (13:50 +0100)]
Merge pull request #5163 from SoftCreatR/bugfix/faStyleEditor
Update style editor
Tim Düsterhus [Wed, 7 Dec 2022 09:54:19 +0000 (10:54 +0100)]
Update composer dependencies
Tim Düsterhus [Wed, 7 Dec 2022 09:18:19 +0000 (10:18 +0100)]
Fix rendering of `wcf.acp.devtools.project.requiredPackage.requiredPackage`
see
19b96010188f4859023ea4d26116c9da81b43c36
Tim Düsterhus [Wed, 7 Dec 2022 09:16:18 +0000 (10:16 +0100)]
Fix rendering of `wcf.acp.devtools.project.instruction.instruction`
This phrase is evaluated in JavaScript and thus the `{icon}` helper is not
(currently) available.
Tim Düsterhus [Wed, 7 Dec 2022 09:08:34 +0000 (10:08 +0100)]
Remove non-COMPILER_TARGET_DEFAULT variants of WCF.Dropdown.Interactive
These were missed in
b433eb3580d56dc41dabc029324a3cc03c6ef3f1.
Tim Düsterhus [Wed, 7 Dec 2022 08:40:40 +0000 (09:40 +0100)]
Do not attempt to update the accessToken on a live object in UserEditor::update()
The purpose of this is not entirely clear, but when taking a look at the commit
that added the line
6a41a21e09894236c26daa10019d0e0a859f963b, one can see that
the update of the accessToken was added beneath an update of the (dedicated)
salt that still existed back then. Notably absent is an update of the new
*hash*, though.
No other property that is updated via an *Editor class is actively attempted to
be updated on a live object and even in this case, only a dynamic property was
created on the UserEditor, instead of actually updating the accessToken in the
underlying user object (which would be possible, because the DBOEditors inherit
from the DBO class, allowing clean access to the `->data` property).
Thus we simply remove the attempted update to fix the creation of this dynamic
property which is deprecated as of PHP 8.2.
Fixes #5164
Tim Düsterhus [Wed, 7 Dec 2022 08:33:54 +0000 (09:33 +0100)]
Add proper types to various UserEditor methods
Sascha Greuel [Tue, 6 Dec 2022 22:28:40 +0000 (23:28 +0100)]
Update style editor
Replaced old FA reference
Resolves #5161
Tim Düsterhus [Tue, 6 Dec 2022 16:23:16 +0000 (17:23 +0100)]
Merge pull request #5162 from WoltLab/template-add-no-default-group
Add empty default selection for templateGroupID in templateAdd.tpl
Tim Düsterhus [Tue, 6 Dec 2022 16:04:53 +0000 (17:04 +0100)]
Add empty default selection for templateGroupID in templateAdd.tpl
see https://www.woltlab.com/community/thread/296343-template-kopieren-leere-vorauswahl-bei-der-templategruppe/
Tim Düsterhus [Tue, 6 Dec 2022 11:25:15 +0000 (12:25 +0100)]
Merge branch '5.5'
Tim Düsterhus [Tue, 6 Dec 2022 11:22:59 +0000 (12:22 +0100)]
Stop using undefined properties in SearchHandler::saveSearch()
These are not intended to be stored on the class and not used elsewhere, the
`this->` is likely a copy and paste mistake in the initial implementation.
see
11b63e8aa4e1a71425e1bffd7eb28f9db4a4bf13
Marcel Werk [Mon, 5 Dec 2022 16:45:04 +0000 (17:45 +0100)]
Add `--watch` parameter for web component bundling
Marcel Werk [Mon, 5 Dec 2022 16:44:45 +0000 (17:44 +0100)]
Add typings for `<fa-icon>` to webcomponents
Alexander Ebert [Mon, 5 Dec 2022 16:40:27 +0000 (17:40 +0100)]
Remove the superfluous replacement of special characters
This is a left-over from the previous implementation that worked with the raw HTML returned from the server. The new code offloads the handling to the browser’s DOM API.
Tim Düsterhus [Mon, 5 Dec 2022 11:59:33 +0000 (12:59 +0100)]
Update composer dependencies
Tim Düsterhus [Mon, 5 Dec 2022 08:58:46 +0000 (09:58 +0100)]
Merge branch '5.5'
Tim Düsterhus [Mon, 5 Dec 2022 08:54:20 +0000 (09:54 +0100)]
Remove useless reference parameter in ArticleCategoryCache::countArticles()
This is never written to and thus does not need to be and thus should not be a
reference.
Tim Düsterhus [Mon, 5 Dec 2022 08:53:37 +0000 (09:53 +0100)]
Remove unused `@var` tag from ArticleCategoryCache
mutec [Fri, 2 Dec 2022 10:09:04 +0000 (11:09 +0100)]
fix phpdoc of `ArticleCategoryCache::countArticles()`
mutec [Fri, 2 Dec 2022 10:04:36 +0000 (11:04 +0100)]
fix phpdoc of `SessionEditor::create()`
mutec [Fri, 2 Dec 2022 10:00:21 +0000 (11:00 +0100)]
fix phpdoc of `Redis::info()`
mutec [Fri, 2 Dec 2022 09:54:39 +0000 (10:54 +0100)]
fix phpdoc of `ViewableArticle::$unreadArticlesByCategory`
Alexander Ebert [Thu, 1 Dec 2022 14:43:44 +0000 (15:43 +0100)]
Merge pull request #5155 from WoltLab/css-variables
Migrate to native CSS variables
Alexander Ebert [Wed, 30 Nov 2022 18:39:06 +0000 (19:39 +0100)]
Replace inline CSS variables with global values
Alexander Ebert [Wed, 30 Nov 2022 18:32:15 +0000 (19:32 +0100)]
Fix the calculation of the ACP page content offset
Alexander Ebert [Wed, 30 Nov 2022 18:30:39 +0000 (19:30 +0100)]
Replace inline SCSS variables with native CSS variables
Alexander Ebert [Wed, 30 Nov 2022 18:27:51 +0000 (19:27 +0100)]
Replace usage of `opacify()` and `transparentize()` with `rgba()`
Alexander Ebert [Wed, 30 Nov 2022 18:16:33 +0000 (19:16 +0100)]
Replace SCSS variables with CSS variables
Alexander Ebert [Wed, 30 Nov 2022 18:15:27 +0000 (19:15 +0100)]
Export style colors as plain RGB values
Alexander Ebert [Wed, 30 Nov 2022 17:50:02 +0000 (18:50 +0100)]
Update the compiled JS artifacts
Alexander Ebert [Wed, 30 Nov 2022 17:49:32 +0000 (18:49 +0100)]
Remove the API version on upgrade
Alexander Ebert [Wed, 30 Nov 2022 17:13:54 +0000 (18:13 +0100)]
Remove the support for style API versions
Closes #5036
Alexander Ebert [Wed, 30 Nov 2022 16:37:59 +0000 (17:37 +0100)]
Merge pull request #5154 from WoltLab/desktop-notification-img-alt-text
Show alt tags of images in desktop notifications
Marcel Werk [Wed, 30 Nov 2022 16:26:23 +0000 (17:26 +0100)]
Show alt tags of images in desktop notifications
Marcel Werk [Wed, 30 Nov 2022 16:21:40 +0000 (17:21 +0100)]
Merge pull request #5153 from WoltLab/details-tag-in-exception-log
Use <details> HTML tag for toggleable content in exception log
Alexander Ebert [Wed, 30 Nov 2022 15:48:36 +0000 (16:48 +0100)]
Merge pull request #4963 from WoltLab/reaction-summary
Reaction summary web component
Alexander Ebert [Wed, 30 Nov 2022 15:43:24 +0000 (16:43 +0100)]
Lazily initialize the reaction summary
Alexander Ebert [Wed, 30 Nov 2022 15:31:04 +0000 (16:31 +0100)]
Migrate to the new dialog API
Alexander Ebert [Wed, 30 Nov 2022 15:27:54 +0000 (16:27 +0100)]
Use actual private properties and methods
Alexander Ebert [Wed, 30 Nov 2022 15:25:59 +0000 (16:25 +0100)]
Minor code clean-up
Marcel Werk [Wed, 30 Nov 2022 15:18:34 +0000 (16:18 +0100)]
Fix Database::getInsertID() return type PHPDoc
see #4915
Marcel Werk [Wed, 30 Nov 2022 15:12:55 +0000 (16:12 +0100)]
Merge pull request #5151 from SoftCreatR/bugfix/tpl
Make unfurlUrl template available in ACP
Marcel Werk [Wed, 30 Nov 2022 15:05:55 +0000 (16:05 +0100)]
Add compiled js
Marcel Werk [Wed, 30 Nov 2022 15:05:41 +0000 (16:05 +0100)]
Add missing definitions
Marcel Werk [Wed, 30 Nov 2022 15:05:18 +0000 (16:05 +0100)]
Add preload for language variable
Marcel Werk [Wed, 30 Nov 2022 15:05:00 +0000 (16:05 +0100)]
Use light dom instead of the shadow dom
Marcel Werk [Wed, 30 Nov 2022 14:29:51 +0000 (15:29 +0100)]
Rename web component to new naming scheme
Marcel Werk [Sun, 21 Aug 2022 14:26:12 +0000 (16:26 +0200)]
Add highlighting for selected reaction
Marcel Werk [Sun, 21 Aug 2022 14:09:52 +0000 (16:09 +0200)]
Add web component for reaction summary
Marcel Werk [Tue, 29 Nov 2022 12:30:58 +0000 (13:30 +0100)]
Add default styling for <summary> HTML tag
See #4612
Marcel Werk [Tue, 29 Nov 2022 11:43:50 +0000 (12:43 +0100)]
Use <details> HTML tag for toggleable content in exception log
see #4612
Sascha Greuel [Tue, 29 Nov 2022 09:38:01 +0000 (10:38 +0100)]
Made unfurlUrl template available in ACP
See https://www.woltlab.com/community/thread/298168-artikel-erstellen-im-acp-bringt-fehler-bei-vorschau/
Alexander Ebert [Mon, 28 Nov 2022 13:22:24 +0000 (14:22 +0100)]
Merge pull request #5147 from WoltLab/search-index-inner-filter
Add experimental context filter for search backends
Alexander Ebert [Mon, 28 Nov 2022 12:56:15 +0000 (13:56 +0100)]
Mark the context aware API as experimental
Tim Düsterhus [Mon, 28 Nov 2022 12:17:48 +0000 (13:17 +0100)]
Merge pull request #5149 from WoltLab/output-buffer-clear
Clean out any default output buffers
Tim Düsterhus [Mon, 28 Nov 2022 10:16:19 +0000 (11:16 +0100)]
Clean out any default output buffers
Resolves #5145
Tim Düsterhus [Mon, 28 Nov 2022 09:53:19 +0000 (10:53 +0100)]
Use array-shape as the return type for ISearchEngine::getInnerJoin()
Tim Düsterhus [Mon, 28 Nov 2022 08:54:03 +0000 (09:54 +0100)]
Update to cuyz/valinor 1.0.x
Tim Düsterhus [Mon, 28 Nov 2022 08:49:07 +0000 (09:49 +0100)]
Merge pull request #5144 from WoltLab/package-update-instructions
Fix the selection of update instructions