GitHub/WoltLab/WCF.git
3 years agoVarious TypeScript fixes detected using noImplicitAny
Tim Düsterhus [Thu, 7 Jan 2021 13:57:53 +0000 (14:57 +0100)]
Various TypeScript fixes detected using noImplicitAny

3 years agoConfigure a 60 second timeout for Guzzle by default
Tim Düsterhus [Thu, 7 Jan 2021 15:07:24 +0000 (16:07 +0100)]
Configure a 60 second timeout for Guzzle by default

This is acting as a safety net, because the default timeout is infinite.

3 years agoMerge pull request #3813 from WoltLab/session-cookie
Tim Düsterhus [Thu, 7 Jan 2021 08:20:36 +0000 (09:20 +0100)]
Merge pull request #3813 from WoltLab/session-cookie

Session Cookie Updates

3 years agoMerge branch '5.3'
joshuaruesweg [Wed, 6 Jan 2021 15:40:26 +0000 (16:40 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.2' into 5.3 5.3.2
joshuaruesweg [Wed, 6 Jan 2021 15:40:00 +0000 (16:40 +0100)]
Merge branch '5.2' into 5.3

3 years agoMerge branch '3.1' into 5.2
joshuaruesweg [Wed, 6 Jan 2021 15:39:26 +0000 (16:39 +0100)]
Merge branch '3.1' into 5.2

3 years agoMerge pull request #3844 from WoltLab/fix-failing-cronjobs
Joshua Rüsweg [Wed, 6 Jan 2021 15:38:31 +0000 (16:38 +0100)]
Merge pull request #3844 from WoltLab/fix-failing-cronjobs

Fix failing cronjobs

3 years agoIncorrect year
Alexander Ebert [Wed, 6 Jan 2021 14:59:23 +0000 (15:59 +0100)]
Incorrect year

Old habits die hard…

3 years agoMerge branch '5.3'
Tim Düsterhus [Wed, 6 Jan 2021 14:58:41 +0000 (15:58 +0100)]
Merge branch '5.3'

3 years agoRelease 5.3.2
Alexander Ebert [Wed, 6 Jan 2021 14:57:01 +0000 (15:57 +0100)]
Release 5.3.2

3 years agoMerge pull request #3814 from WoltLab/delete-content-multiple-users
Joshua Rüsweg [Wed, 6 Jan 2021 14:55:55 +0000 (15:55 +0100)]
Merge pull request #3814 from WoltLab/delete-content-multiple-users

Delete content from multiple users simultaneously

3 years agoMerge pull request #3852 from WoltLab/3rdParty-remove-profileFields
Tim Düsterhus [Wed, 6 Jan 2021 14:52:47 +0000 (15:52 +0100)]
Merge pull request #3852 from WoltLab/3rdParty-remove-profileFields

Stop filling in the user's profile on social registration

3 years agoUpdating minified JavaScript files
WoltLab [Wed, 6 Jan 2021 14:44:19 +0000 (14:44 +0000)]
Updating minified JavaScript files

3 years agoStop filling in the user's profile on social registration
Tim Düsterhus [Wed, 23 Dec 2020 13:17:49 +0000 (14:17 +0100)]
Stop filling in the user's profile on social registration

The behavior of this was very inconsistent across providers, required a custom
implementation for each of those and over the years less and less data was
provided (most notably Facebook drastically limited the available fields).

The benefit of filling in the gender and avatar here and there is almost nil,
nothing of real value is lost when removing this and it keeps the code simpler.

3 years agoSimplify retrieving objectTypes for delete content types
joshuaruesweg [Wed, 6 Jan 2021 14:28:14 +0000 (15:28 +0100)]
Simplify retrieving objectTypes for delete content types

3 years agoSimplify delete logic by using a flat array
joshuaruesweg [Fri, 1 Jan 2021 11:59:46 +0000 (12:59 +0100)]
Simplify delete logic by using a flat array

3 years agoRename class variable `$user` to `$users`
joshuaruesweg [Tue, 22 Dec 2020 19:37:57 +0000 (20:37 +0100)]
Rename class variable `$user` to `$users`

3 years agoAdd clipboard action to delete user content
joshuaruesweg [Wed, 16 Dec 2020 15:26:54 +0000 (16:26 +0100)]
Add clipboard action to delete user content

3 years agoMake `UserAction::prepareRemoveContent()` work with multiple users
joshuaruesweg [Wed, 16 Dec 2020 15:25:59 +0000 (16:25 +0100)]
Make `UserAction::prepareRemoveContent()` work with multiple users

3 years agoMake UserContentRemoveWorker work with multiple userIDs
joshuaruesweg [Sat, 28 Nov 2020 10:04:28 +0000 (11:04 +0100)]
Make UserContentRemoveWorker work with multiple userIDs

3 years agoMerge pull request #3851 from WoltLab/scssphp
Tim Düsterhus [Wed, 6 Jan 2021 13:43:11 +0000 (14:43 +0100)]
Merge pull request #3851 from WoltLab/scssphp

Update to scssphp/scssphp 1.4

3 years agoUpdate use of scssphp
Tim Düsterhus [Wed, 6 Jan 2021 13:33:20 +0000 (14:33 +0100)]
Update use of scssphp

Setting output formatters is deprecated as of scssphp/scssphp 1.4.

3 years agoUpdate to scssphp/scssphp 1.4
Tim Düsterhus [Wed, 6 Jan 2021 13:28:58 +0000 (14:28 +0100)]
Update to scssphp/scssphp 1.4

3 years agoMark lib/system/api/** as linguist-vendored
Tim Düsterhus [Wed, 6 Jan 2021 13:27:02 +0000 (14:27 +0100)]
Mark lib/system/api/** as linguist-vendored

3 years agoMerge pull request #3850 from WoltLab/intl
Tim Düsterhus [Wed, 6 Jan 2021 13:13:34 +0000 (14:13 +0100)]
Merge pull request #3850 from WoltLab/intl

Recommend intl during WCFSetup

3 years agoRecommend intl during WCFSetup
Tim Düsterhus [Wed, 6 Jan 2021 12:46:06 +0000 (13:46 +0100)]
Recommend intl during WCFSetup

Resolves #3811

3 years agoUpdate update_com.woltlab.wcf_5.4_session_1_cookies for new cookie format
Tim Düsterhus [Wed, 6 Jan 2021 10:59:54 +0000 (11:59 +0100)]
Update update_com.woltlab.wcf_5.4_session_1_cookies for new cookie format

3 years agoFix username suggestion in ACP's LoginForm
Tim Düsterhus [Wed, 16 Dec 2020 11:45:30 +0000 (12:45 +0100)]
Fix username suggestion in ACP's LoginForm

Resolves #3725

3 years agoRefresh the session cookie only once it aged a bit
Tim Düsterhus [Wed, 16 Dec 2020 11:42:20 +0000 (12:42 +0100)]
Refresh the session cookie only once it aged a bit

Resolves #3611

3 years agoEncode additional data into the session cookie
Tim Düsterhus [Wed, 16 Dec 2020 11:41:05 +0000 (12:41 +0100)]
Encode additional data into the session cookie

The cookie now stores:
- sessionID
- userID
- an compact representation of the last update that repeats every 64 days.

3 years agoMerge branch '5.3'
Tim Düsterhus [Wed, 6 Jan 2021 11:19:35 +0000 (12:19 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.2' into 5.3
Tim Düsterhus [Wed, 6 Jan 2021 11:19:16 +0000 (12:19 +0100)]
Merge branch '5.2' into 5.3

3 years agoFix VarbinaryDatabaseTableColumn
Tim Düsterhus [Wed, 6 Jan 2021 11:18:29 +0000 (12:18 +0100)]
Fix VarbinaryDatabaseTableColumn

> Call to undefined method wcf\system\database\table\column\VarbinaryDatabaseTableColumn::traitGetLength()

see 4a65b1e27cc85fc9fb9bbcdf6a6d7a5f9cc76187

3 years agoRemove obsolete import from LoginForm
Tim Düsterhus [Wed, 16 Dec 2020 11:43:12 +0000 (12:43 +0100)]
Remove obsolete import from LoginForm

3 years agoMerge pull request #3848 from WoltLab/typescript-prism
Tim Düsterhus [Tue, 5 Jan 2021 16:02:44 +0000 (17:02 +0100)]
Merge pull request #3848 from WoltLab/typescript-prism

Convert Prism usage to TypeScript

3 years agoUse async function for event listener in `Core/Bbcode/Code`
Tim Düsterhus [Tue, 5 Jan 2021 15:53:49 +0000 (16:53 +0100)]
Use async function for event listener in `Core/Bbcode/Code`

3 years agoMake CHUNK_SIZE a static class member in `Core/Bbcode/Code`
Tim Düsterhus [Tue, 5 Jan 2021 15:03:28 +0000 (16:03 +0100)]
Make CHUNK_SIZE a static class member in `Core/Bbcode/Code`

3 years agoConvert Prism/Helper#splitIntoLines into a generator
Tim Düsterhus [Tue, 5 Jan 2021 14:20:27 +0000 (15:20 +0100)]
Convert Prism/Helper#splitIntoLines into a generator

This allow for a much cleaner control flow and also reduces the number of
useless intermediate objects (e.g. the DocumentFragment).

3 years agoConvert `Bbcode/Code` to TypeScript
Tim Düsterhus [Tue, 5 Jan 2021 14:11:42 +0000 (15:11 +0100)]
Convert `Bbcode/Code` to TypeScript

3 years agoAdd WoltLabSuite/Core/Prism/Helper
Tim Düsterhus [Tue, 5 Jan 2021 14:11:11 +0000 (15:11 +0100)]
Add WoltLabSuite/Core/Prism/Helper

3 years agoAdd WoltLabSuite/Core/Prism.d.ts
Tim Düsterhus [Tue, 5 Jan 2021 14:09:18 +0000 (15:09 +0100)]
Add WoltLabSuite/Core/Prism.d.ts

3 years agoUpdate package-lock.json
Tim Düsterhus [Tue, 5 Jan 2021 13:15:26 +0000 (14:15 +0100)]
Update package-lock.json

3 years agoAdd prism-meta compatibility wrapper
Tim Düsterhus [Tue, 5 Jan 2021 13:15:10 +0000 (14:15 +0100)]
Add prism-meta compatibility wrapper

3 years agoMark Template.grammar.js as linguist-generated
Tim Düsterhus [Tue, 5 Jan 2021 12:36:39 +0000 (13:36 +0100)]
Mark Template.grammar.js as linguist-generated

3 years agoMerge pull request #3846 from WoltLab/54-typescript
Alexander Ebert [Tue, 5 Jan 2021 12:20:23 +0000 (13:20 +0100)]
Merge pull request #3846 from WoltLab/54-typescript

Convert a large amount of missing modules to TypeScript

3 years agoMerge pull request #3847 from WoltLab/smart-by-tag
Tim Düsterhus [Mon, 4 Jan 2021 16:19:44 +0000 (17:19 +0100)]
Merge pull request #3847 from WoltLab/smart-by-tag

Automatically infer the return type of Dom/Traverse#child(ren)?ByTag

3 years agoAutomatically infer the return type of Dom/Traverse#child(ren)?ByTag
Tim Düsterhus [Mon, 4 Jan 2021 16:12:33 +0000 (17:12 +0100)]
Automatically infer the return type of Dom/Traverse#child(ren)?ByTag

3 years agoUpdate to TypeScript 4.1
Tim Düsterhus [Mon, 4 Jan 2021 16:12:08 +0000 (17:12 +0100)]
Update to TypeScript 4.1

3 years agoImproved the code style
Alexander Ebert [Mon, 4 Jan 2021 16:11:56 +0000 (17:11 +0100)]
Improved the code style

The `break` in `Popover.ts` uses braces for all cases for consistency with the `State.None` case that introduces local variables.

3 years agoMerge branch 'master' of github.com:WoltLab/WCF
Matthias Schmidt [Mon, 4 Jan 2021 12:21:46 +0000 (13:21 +0100)]
Merge branch 'master' of github.com:WoltLab/WCF

3 years agoFix documentation issues
Matthias Schmidt [Mon, 4 Jan 2021 12:21:42 +0000 (13:21 +0100)]
Fix documentation issues

3 years agoAdd .gitattributes to mark JavaScript generated from TypeScript as linguist-generated
Tim Düsterhus [Mon, 4 Jan 2021 11:36:18 +0000 (12:36 +0100)]
Add .gitattributes to mark JavaScript generated from TypeScript as linguist-generated

3 years agoMerge branch '5.3'
Matthias Schmidt [Sun, 3 Jan 2021 16:23:28 +0000 (17:23 +0100)]
Merge branch '5.3'

3 years agoHide article-related notification events if articles are disabled
Matthias Schmidt [Sun, 3 Jan 2021 16:23:09 +0000 (17:23 +0100)]
Hide article-related notification events if articles are disabled

3 years agoMerge branch '5.2' into 5.3
Matthias Schmidt [Sun, 3 Jan 2021 16:20:22 +0000 (17:20 +0100)]
Merge branch '5.2' into 5.3

3 years agoHide article-related notification events if articles are disabled
Matthias Schmidt [Sun, 3 Jan 2021 16:20:06 +0000 (17:20 +0100)]
Hide article-related notification events if articles are disabled

Close #3845

3 years agofixup! Disable disabling of failed system cronjobs Fixes #3841
joshuaruesweg [Sun, 3 Jan 2021 16:10:32 +0000 (17:10 +0100)]
fixup! Disable disabling of failed system cronjobs Fixes #3841

3 years agoOnly show label groups available in category on CategoryArticleListPage
Matthias Schmidt [Sun, 3 Jan 2021 16:08:47 +0000 (17:08 +0100)]
Only show label groups available in category on CategoryArticleListPage

Close #3701

3 years agoThe callbacks for `Ui/Screen.on()` are optional
Alexander Ebert [Sun, 3 Jan 2021 15:58:21 +0000 (16:58 +0100)]
The callbacks for `Ui/Screen.on()` are optional

3 years agoReplaced the outdated `jQuery.browser.mobile`
Alexander Ebert [Sun, 3 Jan 2021 15:48:17 +0000 (16:48 +0100)]
Replaced the outdated `jQuery.browser.mobile`

The detection is now based on the `Environment` module to provide a consistent behavior.

3 years agoMerge branch 'master' into 54-typescript
Alexander Ebert [Sun, 3 Jan 2021 15:45:15 +0000 (16:45 +0100)]
Merge branch 'master' into 54-typescript

3 years agoRemoved the polyfill for smooth scrolling
Alexander Ebert [Sun, 3 Jan 2021 15:44:18 +0000 (16:44 +0100)]
Removed the polyfill for smooth scrolling

All modern browsers natively support this already.

3 years agoRemoved the `document.registerElement()` polyfill
Alexander Ebert [Sun, 3 Jan 2021 15:44:01 +0000 (16:44 +0100)]
Removed the `document.registerElement()` polyfill

The polyfill was introduced in 2015 to support mentiones through a custom element (see b4346e66b2f179e2f2ee5eb8db529475f7ec992e), but eventually was never used. `document.registerElement` is deprecated in browser anyway and should not be used.

3 years agoFix inserting newly creating list in `Ui/Search/Input`
Matthias Schmidt [Sun, 3 Jan 2021 15:24:18 +0000 (16:24 +0100)]
Fix inserting newly creating list in `Ui/Search/Input`

3 years agoFix mark all-checkbox being temporarily checked after checking individual checkbox
Matthias Schmidt [Sun, 3 Jan 2021 14:41:14 +0000 (15:41 +0100)]
Fix mark all-checkbox being temporarily checked after checking individual checkbox

3 years agoConvert `Acp/Ui/Devtools/Project/Installation/Confirmation` to TypeScript
Alexander Ebert [Sun, 3 Jan 2021 14:41:10 +0000 (15:41 +0100)]
Convert `Acp/Ui/Devtools/Project/Installation/Confirmation` to TypeScript

3 years agoConvert `Acp/Ui/Devtools/Project/Pip/Entry/List` to TypeScript
Alexander Ebert [Sun, 3 Jan 2021 12:58:27 +0000 (13:58 +0100)]
Convert `Acp/Ui/Devtools/Project/Pip/Entry/List` to TypeScript

3 years agoConvert `Acp/Ui/Devtools/Project/QuickSetup` to TypeScript
Alexander Ebert [Sun, 3 Jan 2021 12:09:14 +0000 (13:09 +0100)]
Convert `Acp/Ui/Devtools/Project/QuickSetup` to TypeScript

3 years agoConvert `Acp/Ui/Devtools/Project/Sync` to TypeScript
Alexander Ebert [Sun, 3 Jan 2021 11:46:49 +0000 (12:46 +0100)]
Convert `Acp/Ui/Devtools/Project/Sync` to TypeScript

3 years agoConvert `Acp/Ui/CodeMirror/Page`
Alexander Ebert [Sat, 2 Jan 2021 15:36:11 +0000 (16:36 +0100)]
Convert `Acp/Ui/CodeMirror/Page`

3 years agoConvert `Acp/Ui/Devtools/Notification/Test` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 15:26:42 +0000 (16:26 +0100)]
Convert `Acp/Ui/Devtools/Notification/Test` to TypeScript

3 years agoDisable disabling of failed system cronjobs
joshuaruesweg [Sat, 2 Jan 2021 15:10:37 +0000 (16:10 +0100)]
Disable disabling of failed system cronjobs
Fixes #3841

3 years agoPrevent failing cronjobs from blocking other cronjobs by executing them last
joshuaruesweg [Sat, 2 Jan 2021 15:06:56 +0000 (16:06 +0100)]
Prevent failing cronjobs from blocking other cronjobs by executing them last

3 years agoConvert `Bbcode/Spoiler` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 14:30:17 +0000 (15:30 +0100)]
Convert `Bbcode/Spoiler` to TypeScript

3 years agoMerge branch '5.3'
joshuaruesweg [Sat, 2 Jan 2021 14:16:12 +0000 (15:16 +0100)]
Merge branch '5.3'

3 years agoFix missing informal language variable
Peter Lohse [Sat, 2 Jan 2021 13:37:43 +0000 (14:37 +0100)]
Fix missing informal language variable

Closes #3843

3 years agoFix missing informal language variable
Peter Lohse [Sat, 2 Jan 2021 13:37:43 +0000 (14:37 +0100)]
Fix missing informal language variable

Closes #3843

3 years agoConvert `Bbcode/Collapsible` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 13:16:01 +0000 (14:16 +0100)]
Convert `Bbcode/Collapsible` to TypeScript

3 years agoRe-create elements in `Upload._createButton()`
Matthias Schmidt [Sat, 2 Jan 2021 13:11:00 +0000 (14:11 +0100)]
Re-create elements in `Upload._createButton()`

The logic relies on these elements being recreated as it was done before the conversion to TypeScript.

See 2c22735da3519b9786ae141d072cbf9adee2a72c

3 years agoConvert `Controller/Condition/Page/Dependence`
Alexander Ebert [Sat, 2 Jan 2021 13:03:45 +0000 (14:03 +0100)]
Convert `Controller/Condition/Page/Dependence`

3 years agoConvert `Controller/Map/Route/Planner` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 12:47:39 +0000 (13:47 +0100)]
Convert `Controller/Map/Route/Planner` to TypeScript

3 years agoConvert `Controller/Notice/Dismiss` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 11:52:05 +0000 (12:52 +0100)]
Convert `Controller/Notice/Dismiss` to TypeScript

3 years agoConvert `Controller/User/Notification/Settings` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 11:47:40 +0000 (12:47 +0100)]
Convert `Controller/User/Notification/Settings` to TypeScript

3 years agoConvert `Acp/Bootstrap` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 11:14:15 +0000 (12:14 +0100)]
Convert `Acp/Bootstrap` to TypeScript

3 years agoConvert `BootstrapFrontend` to TypeScript
Alexander Ebert [Sat, 2 Jan 2021 11:10:28 +0000 (12:10 +0100)]
Convert `BootstrapFrontend` to TypeScript

3 years agoMerge pull request #3842 from WoltLab/fix-upload-form-field-js
Joshua Rüsweg [Fri, 1 Jan 2021 16:26:57 +0000 (17:26 +0100)]
Merge pull request #3842 from WoltLab/fix-upload-form-field-js

Fix JS for upload form fields

3 years agoConvert `Controller/Popover` to TypeScript
Alexander Ebert [Fri, 1 Jan 2021 15:08:05 +0000 (16:08 +0100)]
Convert `Controller/Popover` to TypeScript

3 years agoFix JS for upload form fields
joshuaruesweg [Fri, 1 Jan 2021 12:16:27 +0000 (13:16 +0100)]
Fix JS for upload form fields

3 years agoConvert `Controller/Style/Changer` to TypeScript
Alexander Ebert [Fri, 1 Jan 2021 12:25:29 +0000 (13:25 +0100)]
Convert `Controller/Style/Changer` to TypeScript

3 years agoMoved the call to `favico.js` into `WCF.User.js`
Alexander Ebert [Fri, 1 Jan 2021 12:15:33 +0000 (13:15 +0100)]
Moved the call to `favico.js` into `WCF.User.js`

3 years agoConvert `Bootstrap` to TypeScript
Alexander Ebert [Fri, 1 Jan 2021 11:45:43 +0000 (12:45 +0100)]
Convert `Bootstrap` to TypeScript

3 years agoMerge branch '5.3'
Alexander Ebert [Thu, 31 Dec 2020 13:04:39 +0000 (14:04 +0100)]
Merge branch '5.3'

3 years agoPrevent sentences in the search result list from being "glued" together
Alexander Ebert [Thu, 31 Dec 2020 12:43:19 +0000 (13:43 +0100)]
Prevent sentences in the search result list from being "glued" together

3 years agoMerge branch '5.3'
Alexander Ebert [Tue, 29 Dec 2020 11:26:24 +0000 (12:26 +0100)]
Merge branch '5.3'

3 years agoProperly remove formatting in nested elements
Alexander Ebert [Mon, 28 Dec 2020 19:08:32 +0000 (20:08 +0100)]
Properly remove formatting in nested elements

3 years agoMerge branch '5.3'
Matthias Schmidt [Mon, 28 Dec 2020 15:30:18 +0000 (16:30 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.2' into 5.3
Matthias Schmidt [Mon, 28 Dec 2020 15:30:06 +0000 (16:30 +0100)]
Merge branch '5.2' into 5.3

3 years agoFix validation of required single media form fields
Matthias Schmidt [Mon, 28 Dec 2020 15:29:17 +0000 (16:29 +0100)]
Fix validation of required single media form fields

3 years agoMerge branch '5.3'
Matthias Schmidt [Sun, 27 Dec 2020 13:13:56 +0000 (14:13 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.2' into 5.3
Matthias Schmidt [Sun, 27 Dec 2020 13:12:50 +0000 (14:12 +0100)]
Merge branch '5.2' into 5.3