Commit graph

921 commits

Author SHA1 Message Date
Thiemo Kreuz e9e9b8360d De-obfuscate attempts to trick people into editing .js pages
This is meant to tell the user "please don't do this", "this
combination of parameters is dangerous". But there are other ways
to make links with these parameters. Another patch that changes the
relevant code in EditPage that is responsible for this issue will
follow.

Bug: T297725
Change-Id: I75946e2fc73266802333a77086b7ff6a74f2f3e6
2021-12-15 13:44:03 +00:00
jenkins-bot 2471c32621 Merge "Make InputBoxHooks::render() non-static" 2021-12-13 10:59:10 +00:00
Translation updater bot aa4d2a85ee Localisation updates from https://translatewiki.net.
Change-Id: I2b4db289a667a45eb79aab572f32bfd7c9cbc2bb
2021-12-13 08:21:41 +01:00
C. Scott Ananian b808f7f559 Make InputBoxHooks::render() non-static
This matches modern practice a little better: the InputBoxHooks class
can (eventually) contain the service objects needed by this extension
and make them available to the hooks.   It also avoids the need to
explicitly name this class and its namespace.

Followup-To: Iaaff18b50619f490a4437be7f4d95845c8e0eedb
Change-Id: I07a574eca2d0012e3f7e6172d75cffd34392b1b4
2021-12-10 13:49:55 -05:00
Isabelle Hurbain-Palatin cbead9bfbb Introducing a namespace for InputBox
This is a pre-patch for I5144fd6c54 to add a namespace for InputBox and
making sure that this still works, independently of what we're doing
later.

Change-Id: Iaaff18b50619f490a4437be7f4d95845c8e0eedb
2021-12-10 19:15:56 +01:00
Translation updater bot 12c42cbae0 Localisation updates from https://translatewiki.net.
Change-Id: If3afff87e8df2ff9d904cb54bb93f845eb6c2ac6
2021-12-01 08:15:10 +01:00
Translation updater bot bd3570edf5 Localisation updates from https://translatewiki.net.
Change-Id: I4dfd01657c44b83fd02041064623177dabb16968
2021-11-29 08:11:55 +01:00
jenkins-bot 6dfe6adfc4 Merge "Localisation updates from https://translatewiki.net." 2021-11-25 08:06:19 +00:00
Translation updater bot f7a6123282 Localisation updates from https://translatewiki.net.
Change-Id: Ic3dc778341cea4262f452b0eb59d0f42621f4b63
2021-11-25 09:02:15 +01:00
Translation updater bot 69d5d30def Localisation updates from https://translatewiki.net.
Change-Id: Ia006dcad1a705df4a265379092d1fe6608307c91
2021-11-25 08:24:24 +01:00
Translation updater bot 8ba3ae1274 Localisation updates from https://translatewiki.net.
Change-Id: I04d50ad47b8d669f929a37ac34c1645aec0905ab
2021-11-24 08:21:59 +01:00
Translation updater bot 7e000f13ed Localisation updates from https://translatewiki.net.
Change-Id: I6939f95effecdccc7703349b30c5f23e05993370
2021-11-19 08:27:40 +01:00
Translation updater bot cc1f7ff720 Localisation updates from https://translatewiki.net.
Change-Id: Ie26a4ea8f53b2b101f5fcbefa005d8928ae2159c
2021-11-17 08:30:36 +01:00
Fomafix 2e375a712d Use HookHandlers to inject services and replace global variables
This change requires MediaWiki 1.35+ which is already required in
extension.json.

Change-Id: Ieb636c9e96c534ed6dccd8cce5308fed160c3410
2021-11-12 16:41:59 +00:00
jenkins-bot e378b75454 Merge "Use services from Parser" 2021-11-12 08:44:56 +00:00
Translation updater bot dcb6b2f6ae Localisation updates from https://translatewiki.net.
Change-Id: I155086bc939b8fd3b8ab7b7ea69723ca44589359
2021-11-08 08:17:03 +01:00
Umherirrender b234d79a45 Use services from Parser
getTargetLanguageConverter is 1.38
(I536543c516bf952967ada17cc781a9d125421b3e)

Change-Id: Ie0456734576cee770662622a03420b6ec76d932a
2021-11-04 20:09:34 +00:00
Umherirrender 1abc7abc43 Remove unneeded return from hook handlers
Change-Id: Ib38375909ee09e3d5342b6fd16194feeffbb8124
2021-11-04 18:50:42 +00:00
Umherirrender 4829d17708 build: Remove unneeded phan suppression
Change-Id: Iafff45a2693e201cbb81c59a6453f6bbea709f7a
2021-11-04 19:50:25 +01:00
Translation updater bot 3b7a304cd8 Localisation updates from https://translatewiki.net.
Change-Id: Ia328fc88bf637cd13aeb727fd65ef1356df978ef
2021-11-04 10:08:06 +01:00
Translation updater bot bfa4afde1a Localisation updates from https://translatewiki.net.
Change-Id: I73a3bd8231dfd7409f931d3d8afc64ef7a614757
2021-11-03 08:20:44 +01:00
Translation updater bot 0a528f28fb Localisation updates from https://translatewiki.net.
Change-Id: Iaf8d0b526515e4a857f8d8ac77e6daafe31ee33e
2021-11-02 08:07:03 +01:00
Translation updater bot ba57f40c6b Localisation updates from https://translatewiki.net.
Change-Id: I38999061f48bd4606480a7ad2645edb5151909dc
2021-10-28 08:28:09 +02:00
libraryupgrader ffda7b824d build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I3d5fd5ce7b6354e776fc83c2c5df96a95f92d5d6
2021-10-24 05:55:38 +00:00
jenkins-bot a0f2d8ae02 Merge "Use // comments in LESS" 2021-10-20 09:22:02 +00:00
Translation updater bot 7aff16157b Localisation updates from https://translatewiki.net.
Change-Id: I7561180ef779f2fe7e34f506e58d3535636d24bd
2021-10-18 15:20:30 +02:00
Fomafix b1e2979b48 Update PHP coding style
* Use ' instead of ".
* Use === and !== instead of == and !=.

Change-Id: Ie4e405d4fd739d4af34010da3687d8a75d846a73
2021-10-16 20:10:22 +00:00
Fomafix 3ee49b4cfc Use // comments in LESS
Change-Id: Ie0011ba2d4d280302613c2ebc8d9d34dde82a0fe
2021-10-16 19:48:31 +00:00
Fomafix 14a2d08712 Remove styles for cached old HTML
The cache is now expired.

This change is a follow-up to 93351fb7d9.

Change-Id: Ia42e081aa2f74bab72eef9227ba76057c15ba64f
2021-10-16 19:47:25 +00:00
jenkins-bot cf02ed4b7c Merge "build: Run stylelint for less files" 2021-10-16 19:46:07 +00:00
Translation updater bot 5244c6e676 Localisation updates from https://translatewiki.net.
Change-Id: I933504beed92a3deed73e0380d04d19e15c1633a
2021-10-06 09:28:32 +02:00
libraryupgrader 8018bc4010 build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: Idce92025839c3fac43016ec630afef3ae4992561
2021-10-05 00:45:47 +00:00
Subramanya Sastry 1ab6d0493f Get rid of +tidy references from parser tests
Bug: T198214
Change-Id: I0dbe2b47e052bf5a42604431d8f04794d3c461e0
2021-09-30 13:46:57 -05:00
Translation updater bot 6161345817 Localisation updates from https://translatewiki.net.
Change-Id: Id2274d0bea4fadd612d1ba18147c930eb7a88777
2021-09-30 08:57:36 +02:00
Umherirrender cec79baa9d build: Run stylelint for less files
css was converted to less in I2c75e09dd3f89fa11fca311b4e1f8133946b01b1

Change-Id: I7a8a81b80c4b1b34416a3c2c7801e8f2dcca894a
2021-09-28 17:30:00 +02:00
Translation updater bot 0e4279750c Localisation updates from https://translatewiki.net.
Change-Id: I8012ceecea60c552e2d7871117c44a4e5d09081e
2021-09-28 08:18:52 +02:00
Translation updater bot d2858713e4 Localisation updates from https://translatewiki.net.
Change-Id: I80fc7b6d9d610ff506e41e5e8a18813f195a2517
2021-09-17 08:45:27 +02:00
Translation updater bot 4d650ad97c Localisation updates from https://translatewiki.net.
Change-Id: Iea0e93556ad0e5f2a4e9f68b6597e05ffeafd9af
2021-09-13 08:29:46 +02:00
libraryupgrader b636ed5093 build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: I6d629585dfc24c34f6a0fc3760d354aba2e1f5b3
2021-09-09 10:58:03 +00:00
libraryupgrader 084dd2268a build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: Iadb86680421429e12ac303f7944cb9fc657bea9a
2021-09-04 20:42:13 +00:00
Translation updater bot c030a567e0 Localisation updates from https://translatewiki.net.
Change-Id: I5aedfb046ee0222f0d2015c73679cb48ed02a9d9
2021-09-03 08:15:05 +02:00
Translation updater bot bd68bf3040 Localisation updates from https://translatewiki.net.
Change-Id: Ib418bfaad858957a28cbce2af09b5f31c77e22a6
2021-08-30 08:20:16 +02:00
Translation updater bot c0dd1ad7f4 Localisation updates from https://translatewiki.net.
Change-Id: I823f34f945977438003cc06af2196e0d4a742dcf
2021-08-23 09:04:03 +02:00
Translation updater bot 2cf666ea92 Localisation updates from https://translatewiki.net.
Change-Id: I18d047467f7dfd1bbd5d6337c467d7d0c48a9c28
2021-08-16 08:16:27 +02:00
libraryupgrader 6347d5e4b3 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I154e22a62a6d5e0384201d6115ed980cfb51c1f1
2021-08-12 02:42:54 +00:00
Translation updater bot 7fb55741af Localisation updates from https://translatewiki.net.
Change-Id: I9219ac7d199319bd606b298db13f8b929b49f662
2021-07-26 08:12:18 +02:00
libraryupgrader eb12c6e9b6 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.0 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Additional changes:
* eslint: Added `wikimedia/jquery` profile (T262222).
* eslint: Removed global `$`, included in `wikimedia/jquery` profile (T262222).
* eslint: Removed global `mw`, included via `wikimedia/mediawiki` profile (T262222).
* eslint: Dropped the empty global definition.

Change-Id: I2ae30a70577f5c3bdd3f471be37f6c19848a0802
2021-07-23 00:42:31 +00:00
Translation updater bot f02e4a650f Localisation updates from https://translatewiki.net.
Change-Id: Ib5311259adfda1b6e086f111bfd6126bf8cf3158
2021-07-12 08:06:33 +02:00
Translation updater bot 564ff4415d Localisation updates from https://translatewiki.net.
Change-Id: Ic6ab9fdaf21e02e4eea755a08f653e7992c9fc9f
2021-07-06 08:38:34 +02:00
Translation updater bot c638e5b8bb Localisation updates from https://translatewiki.net.
Change-Id: I9031eb8cdba8d84ace4fe4831ef0be452577ea4c
2021-07-02 08:31:16 +02:00