GitHub/WoltLab/WCF.git
3 years agoFix typo in codestyle workflow
Tim Düsterhus [Thu, 29 Oct 2020 16:12:34 +0000 (17:12 +0100)]
Fix typo in codestyle workflow

3 years agoAdd 'ts' to codestyle workflow
Tim Düsterhus [Thu, 29 Oct 2020 16:03:36 +0000 (17:03 +0100)]
Add 'ts' to codestyle workflow

3 years agoRun prettier on all TypeScript files
Tim Düsterhus [Thu, 29 Oct 2020 15:45:58 +0000 (16:45 +0100)]
Run prettier on all TypeScript files

find wcfsetup/install/files/ts/WoltLabSuite/Core/ -iname '*.ts' -print0 |xargs -0 npx prettier -w

3 years agoAdd prettier to package.json
Tim Düsterhus [Thu, 29 Oct 2020 15:44:36 +0000 (16:44 +0100)]
Add prettier to package.json

3 years agoMerge remote-tracking branch 'origin/54-typescript'
Tim Düsterhus [Thu, 29 Oct 2020 15:43:50 +0000 (16:43 +0100)]
Merge remote-tracking branch 'origin/54-typescript'

3 years agoMerge pull request #3666 from WoltLab/typescript-cleanup
Alexander Ebert [Thu, 29 Oct 2020 15:43:12 +0000 (16:43 +0100)]
Merge pull request #3666 from WoltLab/typescript-cleanup

Clean up code style and types for existing TypeScript modules

3 years agoMerge branch '5.3'
Tim Düsterhus [Thu, 29 Oct 2020 14:13:09 +0000 (15:13 +0100)]
Merge branch '5.3'

3 years agoMerge pull request #3663 from WoltLab/image-proxy-guzzle
Tim Düsterhus [Thu, 29 Oct 2020 14:12:35 +0000 (15:12 +0100)]
Merge pull request #3663 from WoltLab/image-proxy-guzzle

Use Guzzle directly in ImageProxyAction

3 years agoClean up code style and types for existing TypeScript modules
Tim Düsterhus [Thu, 29 Oct 2020 13:41:49 +0000 (14:41 +0100)]
Clean up code style and types for existing TypeScript modules

3 years agoReplace implicit `any` variables
Alexander Ebert [Thu, 29 Oct 2020 13:40:10 +0000 (14:40 +0100)]
Replace implicit `any` variables

3 years agoConvert `Ui/Page/Menu/Abstract` to TypeScript
Alexander Ebert [Thu, 29 Oct 2020 13:39:50 +0000 (14:39 +0100)]
Convert `Ui/Page/Menu/Abstract` to TypeScript

3 years agoDelete DownloadStyleLogoJob.class.php
Tim Düsterhus [Thu, 29 Oct 2020 10:17:04 +0000 (11:17 +0100)]
Delete DownloadStyleLogoJob.class.php

This background job is required for the upgrade from 5.2 to 5.3 only.

3 years agoRemove closest.js polyfill
Tim Düsterhus [Thu, 29 Oct 2020 09:43:26 +0000 (10:43 +0100)]
Remove closest.js polyfill

Resolves #3655

3 years agoRemove wcombined.min.js
Tim Düsterhus [Thu, 29 Oct 2020 09:37:24 +0000 (10:37 +0100)]
Remove wcombined.min.js

Resolves #3656

3 years agoUse Guzzle directly in ImageProxyAction
Tim Düsterhus [Thu, 29 Oct 2020 09:22:51 +0000 (10:22 +0100)]
Use Guzzle directly in ImageProxyAction

This makes the Exception handling much cleaner.

Fixes #3660

3 years agoSkip system requirements during setup if they are met (#3662)
Matthias Schmidt [Thu, 29 Oct 2020 09:18:26 +0000 (10:18 +0100)]
Skip system requirements during setup if they are met (#3662)

Close #3559

3 years agoSupport additional action parameters in `AbstractCustomOptionForm`
Matthias Schmidt [Wed, 28 Oct 2020 19:53:14 +0000 (20:53 +0100)]
Support additional action parameters in `AbstractCustomOptionForm`

3 years agoConvert `Ui/Page/Header/Menu` to TypeScript
Alexander Ebert [Wed, 28 Oct 2020 19:32:52 +0000 (20:32 +0100)]
Convert `Ui/Page/Header/Menu` to TypeScript

3 years agoConvert `Ui/Page/Header/Fixed` to TypeScript
Alexander Ebert [Wed, 28 Oct 2020 19:06:13 +0000 (20:06 +0100)]
Convert `Ui/Page/Header/Fixed` to TypeScript

3 years agoConvert `Ui/Page/Search/Input` to TypeScript
Alexander Ebert [Wed, 28 Oct 2020 18:58:27 +0000 (19:58 +0100)]
Convert `Ui/Page/Search/Input` to TypeScript

3 years agoIncorrect property name
Alexander Ebert [Wed, 28 Oct 2020 18:55:46 +0000 (19:55 +0100)]
Incorrect property name

3 years agoRemove obsolete TODO
Matthias Schmidt [Wed, 28 Oct 2020 16:22:54 +0000 (17:22 +0100)]
Remove obsolete TODO

3 years agoMerge branch '5.3'
Matthias Schmidt [Wed, 28 Oct 2020 16:22:41 +0000 (17:22 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.2' into 5.3
Matthias Schmidt [Wed, 28 Oct 2020 16:21:43 +0000 (17:21 +0100)]
Merge branch '5.2' into 5.3

3 years agoRemove obsolete TODO
Matthias Schmidt [Wed, 28 Oct 2020 16:21:28 +0000 (17:21 +0100)]
Remove obsolete TODO

3 years agoMerge branch '5.3'
Matthias Schmidt [Wed, 28 Oct 2020 16:02:41 +0000 (17:02 +0100)]
Merge branch '5.3'

3 years agoRemove obsolete TODO
Matthias Schmidt [Wed, 28 Oct 2020 16:02:17 +0000 (17:02 +0100)]
Remove obsolete TODO

3 years agoCheck that the vendored tslib is up to date
Tim Düsterhus [Wed, 28 Oct 2020 15:24:44 +0000 (16:24 +0100)]
Check that the vendored tslib is up to date

Resolves #3659

3 years agoUpdate package-lock.json
Tim Düsterhus [Wed, 28 Oct 2020 14:58:17 +0000 (15:58 +0100)]
Update package-lock.json

3 years agoMerge branch 'master' of github.com:WoltLab/WCF
Matthias Schmidt [Wed, 28 Oct 2020 14:29:36 +0000 (15:29 +0100)]
Merge branch 'master' of github.com:WoltLab/WCF

3 years agoRemove obsolete TODOs
Matthias Schmidt [Wed, 28 Oct 2020 14:29:14 +0000 (15:29 +0100)]
Remove obsolete TODOs

3 years agoFix version in package.json
Tim Düsterhus [Wed, 28 Oct 2020 14:25:34 +0000 (15:25 +0100)]
Fix version in package.json

Apparently npm / yarn requires a 3-digit version number.

3 years agoAdd name and version to package.json
Tim Düsterhus [Wed, 28 Oct 2020 14:16:52 +0000 (15:16 +0100)]
Add name and version to package.json

3 years agoMerge pull request #3543 from WoltLab/54-typescript-poc
Alexander Ebert [Wed, 28 Oct 2020 14:08:58 +0000 (15:08 +0100)]
Merge pull request #3543 from WoltLab/54-typescript-poc

PoC TypeScript support

3 years agoUse the `tslib` helper library
Alexander Ebert [Wed, 28 Oct 2020 14:00:59 +0000 (15:00 +0100)]
Use the `tslib` helper library

3 years agoRemove obsolete query placeholder
Matthias Schmidt [Wed, 28 Oct 2020 13:16:23 +0000 (14:16 +0100)]
Remove obsolete query placeholder

See #3637

3 years agoShow comment flood control messages as inline error
Matthias Schmidt [Wed, 28 Oct 2020 13:12:26 +0000 (14:12 +0100)]
Show comment flood control messages as inline error

See #3628

3 years agoUse new flood control API for comments (#3654)
Matthias Schmidt [Wed, 28 Oct 2020 13:08:07 +0000 (14:08 +0100)]
Use new flood control API for comments (#3654)

* Use new flood control API for comments

See #3033

* Remove unused import

3 years agoMerge branch '5.3'
Matthias Schmidt [Wed, 28 Oct 2020 13:02:25 +0000 (14:02 +0100)]
Merge branch '5.3'

3 years agoMerge branch '5.3' of github.com:WoltLab/WCF into 5.3
Matthias Schmidt [Wed, 28 Oct 2020 13:02:11 +0000 (14:02 +0100)]
Merge branch '5.3' of github.com:WoltLab/WCF into 5.3

3 years agoMerge branch '5.2' into 5.3
Matthias Schmidt [Wed, 28 Oct 2020 13:02:05 +0000 (14:02 +0100)]
Merge branch '5.2' into 5.3

3 years agoFix reading medias' `captionEnableHtml`
Matthias Schmidt [Wed, 28 Oct 2020 13:01:48 +0000 (14:01 +0100)]
Fix reading medias' `captionEnableHtml`

See a1b75f8b9b9d6137434945bb8bea9518eddb48d3

3 years agoMerge branch '5.2' into 5.3
Tim Düsterhus [Wed, 28 Oct 2020 13:01:12 +0000 (14:01 +0100)]
Merge branch '5.2' into 5.3

3 years agoAdd database update for flood control API
Matthias Schmidt [Wed, 28 Oct 2020 12:29:23 +0000 (13:29 +0100)]
Add database update for flood control API

Close #3653

3 years agoAdd script to remove files during update to 5.4 (#3643)
Matthias Schmidt [Wed, 28 Oct 2020 12:20:33 +0000 (13:20 +0100)]
Add script to remove files during update to 5.4 (#3643)

* Add script to remove files during update to 5.4

Close #3632

* Check if files deleted during updates belong to Core

* Fix condition in remove files script and add it to package.xml

Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
3 years agoConvert `Ui/File/Delete` to TypeScript
Alexander Ebert [Wed, 28 Oct 2020 10:09:49 +0000 (11:09 +0100)]
Convert `Ui/File/Delete` to TypeScript

3 years agoConvert `Ui/Page/Action` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 15:26:59 +0000 (16:26 +0100)]
Convert `Ui/Page/Action` to TypeScript

3 years agoConvert `Ui/Toggle/Input` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 14:04:15 +0000 (15:04 +0100)]
Convert `Ui/Toggle/Input` to TypeScript

3 years agoConvert `Ui/Article/MarkAllAsRead` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 13:26:33 +0000 (14:26 +0100)]
Convert `Ui/Article/MarkAllAsRead` to TypeScript

3 years agoConvert `Ui/Article/Search` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 12:03:48 +0000 (13:03 +0100)]
Convert `Ui/Article/Search` to TypeScript

3 years agoConvert `Ui/Acl/Simple` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 11:25:26 +0000 (12:25 +0100)]
Convert `Ui/Acl/Simple` to TypeScript

3 years agoConvert `Ui/User/Search/Input` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 11:00:23 +0000 (12:00 +0100)]
Convert `Ui/User/Search/Input` to TypeScript

3 years agoConvert `Ui/Smiley/Insert` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 10:33:52 +0000 (11:33 +0100)]
Convert `Ui/Smiley/Insert` to TypeScript

3 years agoConvert `Ui/User/Trophy/List` to TypeScript
Alexander Ebert [Tue, 27 Oct 2020 10:15:41 +0000 (11:15 +0100)]
Convert `Ui/User/Trophy/List` to TypeScript

3 years agoConvert `Ui/Page/Search` to TypeScript
Alexander Ebert [Mon, 26 Oct 2020 22:38:40 +0000 (23:38 +0100)]
Convert `Ui/Page/Search` to TypeScript

3 years agoRemoved the `createOnly` parameter, it was never really implemented
Alexander Ebert [Mon, 26 Oct 2020 21:58:49 +0000 (22:58 +0100)]
Removed the `createOnly` parameter, it was never really implemented

3 years agoExpose the internal `_toggle` method for backwards compatibility
Alexander Ebert [Mon, 26 Oct 2020 21:57:32 +0000 (22:57 +0100)]
Expose the internal `_toggle` method for backwards compatibility

3 years agoConvert `Ui/Search/Page` to TypeScript
Alexander Ebert [Mon, 26 Oct 2020 15:38:50 +0000 (16:38 +0100)]
Convert `Ui/Search/Page` to TypeScript

3 years agoConvert `Ui/Search/Input` to TypeScript
Alexander Ebert [Sun, 25 Oct 2020 23:13:23 +0000 (00:13 +0100)]
Convert `Ui/Search/Input` to TypeScript

3 years agoConvert `Ui/User/Editor` to TypeScript
Alexander Ebert [Sun, 25 Oct 2020 20:28:24 +0000 (21:28 +0100)]
Convert `Ui/User/Editor` to TypeScript

3 years agoConvert `Ui/User/Ignore` to TypeScript
Alexander Ebert [Sun, 25 Oct 2020 14:54:12 +0000 (15:54 +0100)]
Convert `Ui/User/Ignore` to TypeScript

3 years agoRenamed the Ajax/Dialog `CallbackObject`
Alexander Ebert [Sun, 25 Oct 2020 14:39:55 +0000 (15:39 +0100)]
Renamed the Ajax/Dialog `CallbackObject`

3 years agoConvert `Ui/User/List` to TypeScript
Alexander Ebert [Sun, 25 Oct 2020 14:35:11 +0000 (15:35 +0100)]
Convert `Ui/User/List` to TypeScript

3 years agoConvert `Ui/ItemList` to TypeScript
Alexander Ebert [Sun, 25 Oct 2020 14:13:44 +0000 (15:13 +0100)]
Convert `Ui/ItemList` to TypeScript

3 years agoConvert `Ui/Dropdown/Builder` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 23:42:41 +0000 (01:42 +0200)]
Convert `Ui/Dropdown/Builder` to TypeScript

3 years agoConvert `Ui/Dropdown/Reusable` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 22:07:30 +0000 (00:07 +0200)]
Convert `Ui/Dropdown/Reusable` to TypeScript

3 years agoConvert `Ui/TabMenu` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 21:47:08 +0000 (23:47 +0200)]
Convert `Ui/TabMenu` to TypeScript

3 years agoConvert `Ui/TabMenu/Simple` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 16:08:25 +0000 (18:08 +0200)]
Convert `Ui/TabMenu/Simple` to TypeScript

3 years agoConvert `Ui/Suggestion` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 15:07:27 +0000 (17:07 +0200)]
Convert `Ui/Suggestion` to TypeScript

3 years agoConvert `Ui/Pagination` to TypeScript
Alexander Ebert [Sat, 24 Oct 2020 11:39:46 +0000 (13:39 +0200)]
Convert `Ui/Pagination` to TypeScript

3 years agoConvert `Ui/Page/JumpTo` to TypeScript
Alexander Ebert [Fri, 23 Oct 2020 23:20:54 +0000 (01:20 +0200)]
Convert `Ui/Page/JumpTo` to TypeScript

3 years agoConvert `Ui/FlexibleMenu` to TypeScript
Alexander Ebert [Fri, 23 Oct 2020 19:02:27 +0000 (21:02 +0200)]
Convert `Ui/FlexibleMenu` to TypeScript

3 years agoImproved the code style
Alexander Ebert [Fri, 23 Oct 2020 11:53:28 +0000 (13:53 +0200)]
Improved the code style

3 years agoConvert `Date/Picker` to TypeScript
Alexander Ebert [Thu, 22 Oct 2020 23:16:03 +0000 (01:16 +0200)]
Convert `Date/Picker` to TypeScript

3 years agoConvert `Date/Time/Relative` to TypeScript
Alexander Ebert [Thu, 22 Oct 2020 12:55:57 +0000 (14:55 +0200)]
Convert `Date/Time/Relative` to TypeScript

3 years agoConvert `Date/Util` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 23:58:01 +0000 (01:58 +0200)]
Convert `Date/Util` to TypeScript

3 years agoConvert `Ui/Tooltip` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 23:40:17 +0000 (01:40 +0200)]
Convert `Ui/Tooltip` to TypeScript

3 years agoConvert `Ui/Dropdown/Simple` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 23:10:49 +0000 (01:10 +0200)]
Convert `Ui/Dropdown/Simple` to TypeScript

3 years agoConvert `Ui/Alignment` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 20:26:35 +0000 (22:26 +0200)]
Convert `Ui/Alignment` to TypeScript

3 years agoConvert `Ui/CloseOverlay` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 20:26:25 +0000 (22:26 +0200)]
Convert `Ui/CloseOverlay` to TypeScript

3 years agoConvert `Ui/Scroll` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 16:29:04 +0000 (18:29 +0200)]
Convert `Ui/Scroll` to TypeScript

3 years agoConvert `Ui/Notification` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 14:19:58 +0000 (16:19 +0200)]
Convert `Ui/Notification` to TypeScript

3 years agoConvert `Ui/Confirmation` to TypeScript
Alexander Ebert [Wed, 21 Oct 2020 14:07:07 +0000 (16:07 +0200)]
Convert `Ui/Confirmation` to TypeScript

3 years agoUse `HTMLElement.dataset` for access to data attributes
Alexander Ebert [Wed, 21 Oct 2020 10:57:12 +0000 (12:57 +0200)]
Use `HTMLElement.dataset` for access to data attributes

3 years agoConvert `Ui/Dialog` to TypeScript
Alexander Ebert [Tue, 20 Oct 2020 22:24:21 +0000 (00:24 +0200)]
Convert `Ui/Dialog` to TypeScript

3 years agoAdded DomUtil.innerError() and code cleanup
Alexander Ebert [Tue, 20 Oct 2020 22:24:10 +0000 (00:24 +0200)]
Added DomUtil.innerError() and code cleanup

3 years agoHelper methods to work with DOM elements
Alexander Ebert [Mon, 19 Oct 2020 14:47:48 +0000 (16:47 +0200)]
Helper methods to work with DOM elements

3 years agoConvert `Wrapper/FacebookSdk` to TypeScript
Tim Düsterhus [Mon, 19 Oct 2020 11:54:32 +0000 (13:54 +0200)]
Convert `Wrapper/FacebookSdk` to TypeScript

see DefinitelyTyped/DefinitelyTyped#48916

3 years agoCopy unconverted .js modules to ts/ folder
Tim Düsterhus [Mon, 19 Oct 2020 10:50:05 +0000 (12:50 +0200)]
Copy unconverted .js modules to ts/ folder

3 years agoConvert `Clipboard` to TypeScript
Tim Düsterhus [Mon, 19 Oct 2020 09:33:47 +0000 (11:33 +0200)]
Convert `Clipboard` to TypeScript

3 years agoConvert `BackgroundQueue` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 23:52:17 +0000 (01:52 +0200)]
Convert `BackgroundQueue` to TypeScript

3 years agoConvert `Ajax` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 23:28:55 +0000 (01:28 +0200)]
Convert `Ajax` to TypeScript

Moved the interfaces and types into a separate file to prevent a circular dependency.

3 years agoIncorrect access of map values
Alexander Ebert [Fri, 16 Oct 2020 23:28:23 +0000 (01:28 +0200)]
Incorrect access of map values

3 years agoConvert `Ajax/Request` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 16:32:56 +0000 (18:32 +0200)]
Convert `Ajax/Request` to TypeScript

There are two missing components that will later be added.

3 years agoConvert `Timer/Repeating` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 15:24:18 +0000 (17:24 +0200)]
Convert `Timer/Repeating` to TypeScript

3 years agoUse named types for improve readability
Alexander Ebert [Fri, 16 Oct 2020 15:02:52 +0000 (17:02 +0200)]
Use named types for improve readability

3 years agoConvert `Event/Key` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 14:57:29 +0000 (16:57 +0200)]
Convert `Event/Key` to TypeScript

3 years agoConvert `Event/Handler` to TypeScript
Alexander Ebert [Fri, 16 Oct 2020 14:22:12 +0000 (16:22 +0200)]
Convert `Event/Handler` to TypeScript

3 years agoConvert `Image/Resizer` to TypeScript
Tim Düsterhus [Fri, 16 Oct 2020 14:16:51 +0000 (16:16 +0200)]
Convert `Image/Resizer` to TypeScript

3 years agoConvert `Image/ExifUtil` to TypeScript
Tim Düsterhus [Fri, 16 Oct 2020 13:49:31 +0000 (15:49 +0200)]
Convert `Image/ExifUtil` to TypeScript