Commit graph

1259 commits

Author SHA1 Message Date
jenkins-bot 23c1cb81b9 Merge "Replace the text ReplaceTest with ReplaceText" 2021-11-12 19:30:39 +00:00
Translation updater bot bd51e46bb4 Localisation updates from https://translatewiki.net.
Change-Id: If51096324c4e22fa3a83fbe161c502fc093248f9
2021-11-01 09:34:25 +01:00
Amir E. Aharoni 46a44b63b0 Replace the text ReplaceTest with ReplaceText
Change-Id: Ib7fad3e7ea4add5ce29a994d5ab5875b4e755d1e
2021-10-31 09:50:20 +02:00
Yaron Koren 5bb791aa0b Version 1.6
The patch for "version 1.5" didn't actually update extension.json to 1.5, by mistake, but it's still considered 1.5, so this is 1.6.

Change-Id: I722278c95a54a3d7f9c7e96bf8edd9d787d28cb3
2021-10-27 16:10:58 +00:00
Translation updater bot 70312c0e02 Localisation updates from https://translatewiki.net.
Change-Id: Iebc5a768867c44230d815a526bbb9c5e5f5b0a91
2021-10-27 08:22:34 +02:00
libraryupgrader 74c352ce14 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: Iabc5239ca61040b3b0ca3052b033e551b1dfc0c6
2021-10-24 12:13:11 +00:00
RazeSoldier 61ac0b0e7c Use UserFactory::newFromId() and ::newFromName() instead of User::newFromId() and ::newFromName()
User: :newFromId() and ::newFromName() has been deprecated in 1.36.

Bug: T294128
Change-Id: Id872c28c7d20dc3d27a74cfac608aeb911c87c3d
2021-10-22 22:57:26 +08:00
Reedy bfc5d28789 Fix phan stubs
PHP Fatal error:  Non-abstract method ALItem::newFromPage() must contain body in ./extensions/ReplaceText/.phan/stubs/ALItem.php on line 9

Change-Id: I2f425be645f24dd6d02a9e98d71d487db132ac8b
2021-10-21 21:43:16 +01:00
Translation updater bot 5a8dcc8535 Localisation updates from https://translatewiki.net.
Change-Id: Ie32150990f6e03d739efd0c967b7be6ab01a751e
2021-10-21 08:22:31 +02:00
Cindy Cicalese ffce14c547 Replace deprecated WikiPage::doEditContent
Bug: T293737
Change-Id: Icfac41ca54bf2cd59847b095c3f309b7d3eacb21
2021-10-19 13:26:39 -04:00
Translation updater bot e471d9eeb2 Localisation updates from https://translatewiki.net.
Change-Id: Ibf0f1570f2a53a4b29d3df0f88830c7dd04db301
2021-10-18 15:21:10 +02:00
Umherirrender f8f8dfca4a Use MovePageFactory to instance MovePage
Constructor is deprecated
MovePageFactory since 1.35

Change-Id: Iefec53267f6ed4a179f537adb67d744b3b47ea2b
2021-10-14 20:39:58 +02:00
jenkins-bot 4a0a3e9c5d Merge "Avoid using MWNamespace" 2021-10-08 23:23:09 +00:00
Yaron Koren 01ee50c8e8 Remove copy of replaceAll.php
Change-Id: I22c9867b0d5d47d18f952d28076b21abe50dfcfd
2021-10-07 21:22:05 +00:00
libraryupgrader 4f90bb0735 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: I96dca296476847a677ddd411db8553b78d5409d0
2021-10-05 21:53:19 +00:00
Alexander Vorwerk a4997109ea Avoid using MWNamespace
The MWNamespace class has been deprecated in favor of the NamespaceInfo
service. All methods in the MWNamespace should be replaced with the
equivalent methods of the NamespaceInfo service.

Bug: T291389
Change-Id: I9e3a0aff012d1524205cebe61c10e016f989cecb
2021-10-01 15:51:09 +02:00
RhinosF1 4c1453927d SECURITY: Check permissions before job execution
CVE-2021-41801

Bug: T279090
Change-Id: Ibc299edf626ca9aa1cd9d83b888820f5aca9af7c
2021-09-30 16:41:41 +01:00
Translation updater bot e32b0be64d Localisation updates from https://translatewiki.net.
Change-Id: I7076fc20b7fe2e955d58be038cd7a61fb7a30e1e
2021-09-20 08:19:32 +02:00
libraryupgrader a765c687c9 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: I33ceb173eb7775833a00dd4ae1761df5e4a4c4d0
2021-09-09 18:43:17 +00:00
Fomafix 78e75ed030 Change CSS identifiers
Apply CSS coding conventions from:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS#Naming

* Use class instead of id.
* Use class names with the prefix "ext-replacetext-".
* Remove stylelint rule:
    "selector-max-id": null
* Add stylelint rule:
    "selector-class-pattern": "^client-nojs$|^ext-replacetext-"

Change-Id: Ia7e3d41030aba7287716a219acbe6115e8fcbe46
2021-09-08 11:53:43 +00:00
Fomafix bd20365fbe Use LESS instead of CSS
This allows to simplify the syntax.

Change-Id: I086524d94644a698ddbe9b15d816684736c1dc1c
2021-09-08 11:16:31 +00:00
Fomafix 2a6d1866fd Duplicate styles from 'mediawiki.special.search.styles'
The styles for #mw-searchoptions are currently missing on
Special:ReplaceText.

Also duplicate the style for .searchmatch to avoid the dependency on
core module 'mediawiki.special.search.styles'.

Change-Id: I846bae65fc87ba300b78932a9704ba6b639643c0
2021-09-07 20:36:32 -07:00
Fomafix db88090ca6 Generate toggle buttons in HTML instead of JavaScript
This change ensures that the toggle buttons are already present while
loading.

Change-Id: I9453de8e540a75436029a3383721d0b6d73786ae
2021-09-07 20:33:39 -07:00
libraryupgrader 9490b14d4f build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: I212563dc57a3db152c574ff6b7db995a79b4868b
2021-09-04 21:51:10 +00:00
libraryupgrader b16df67746 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I9bfef07fa9998881db49e08e7d3606b3be9c086c
2021-08-12 10:01:40 +00:00
Translation updater bot 00bb8b00e3 Localisation updates from https://translatewiki.net.
Change-Id: I069477d7ac6f426071b0bdd6444a0092eef31601
2021-08-09 08:25:02 +02:00
Translation updater bot 4472dd0fc7 Localisation updates from https://translatewiki.net.
Change-Id: I839e4a97d086ef4016fab2dc12270821788fe961
2021-08-05 08:22:34 +02:00
libraryupgrader 1f04965c46 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)

Change-Id: I94cbb3d72dfffef2cfd97d2814cc125c8f898d2c
2021-07-23 10:25:17 +00:00
Yaron Koren 7c5dfae496 Change some interface elements to use OOUI
Change-Id: Ic55f2b173948aad50ae24279b630315ecf8faf1c
2021-07-08 18:16:20 +00:00
jenkins-bot 72e50c6ed2 Merge "Remove LEFT-TO-RIGHT MARK (U+200E) from source code" 2021-07-08 06:44:02 +00:00
Fomafix 1d8693829b Remove backwards compatible code for MediaWiki < 1.28
Extension already requires 1.32+ in extension.json

Change-Id: I76005515ca2dbf367cfc13ab5db8ee7c51bb11cb
2021-07-06 23:46:16 +00:00
jenkins-bot ec085db978 Merge "Simplify checkbox inverting" 2021-07-05 16:37:32 +00:00
Fomafix 97aa6a9efe Remove support for MediaWiki 1.30
The extension already requires MediaWiki >= 1.32 in extension.json.

Change-Id: I80f624057609e6e2bbe6ac44ece4d4085a12c3d4
2021-07-03 09:15:47 +00:00
Fomafix 978c8ead5b Simplify checkbox inverting
Change-Id: Ic44987189a024e1f07e38907ce7208f9ab3a4d10
2021-07-03 07:22:29 +00:00
Fomafix 8cec982e63 Remove LEFT-TO-RIGHT MARK (U+200E) from source code
Change-Id: Id681247bb1823f64de34ef8ae377d35b717a5ae7
2021-07-01 20:43:51 +00:00
Yaron Koren 438c0eb69c Version 1.5
Change-Id: I7e6ab905c6d02960c0820905f1acae8987f554bc
2021-07-01 14:44:27 +00:00
Yaron Koren 1895d589d6 Remove ReplaceText.php shim
Change-Id: I26d20a0c6a68d5c03ead0fc80f1157ab09f2c4eb
2021-06-30 19:54:35 +00:00
Umherirrender 22b1fc0725 Remove MSSQL support
Bug: T283021
Change-Id: I27a55958cb8bb25cf6dafbc4dcd4054113bb5fd8
2021-06-07 19:29:29 +00:00
Translation updater bot 0d65a6b322 Localisation updates from https://translatewiki.net.
Change-Id: Ib2af808275ffcdbe36e24b2c11e7b17b096b23de
2021-05-31 08:32:37 +02:00
libraryupgrader 88f82c9750 build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I3d003d7cf501a81e50ff010017e28a415a1515d9
2021-05-26 02:54:39 +00:00
Translation updater bot 6c13e45944 Localisation updates from https://translatewiki.net.
Change-Id: I2ea5437a214b0f54fe328d863eb43bce9c43202c
2021-05-25 08:53:54 +02:00
Translation updater bot 3db7f2964c Localisation updates from https://translatewiki.net.
Change-Id: Ib51b030164a6427760cca5a7cf6348d41dd72979
2021-05-24 09:55:16 +02:00
Translation updater bot 2bdbab8fbd Localisation updates from https://translatewiki.net.
Change-Id: I14bf9ba7b45ae7b23b4345212e54e05c819afcc7
2021-05-19 08:43:56 +02:00
Umherirrender 0a73008353 Fix mysql specifc cast on signed with Database::buildIntegerCast
Bug: T280102
Follow-Up: Ia84f135a8699fdc6cff6877c31fae1d46bf84f97
Change-Id: Ie8fc9fd8080e552c0b466472431e2c7143f8c7b0
2021-05-16 22:12:33 +02:00
libraryupgrader 756212a5c8 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 3.0.7 → 3.0.8
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* postcss: 7.0.35 → 8.2.15
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)

Change-Id: Ie63a64b73266230d2805383625fbca576d1be83b
2021-05-13 05:12:32 +00:00
Cindy Cicalese 84c803f93f Replace usage of deprecated WatchAction methods
Bug: T280750
Change-Id: Ie9a25eb62358329d403d3b54bd0f84c773ca7e48
2021-04-28 09:00:12 -04:00
Translation updater bot cb4ede91fb Localisation updates from https://translatewiki.net.
Change-Id: I22a4e838c89b88d205b90eedfe064b934bffa02d
2021-04-22 09:32:12 +02:00
Translation updater bot 455027d861 Localisation updates from https://translatewiki.net.
Change-Id: Ia347a784894a0e5713e919e1446b237d11381fb6
2021-04-15 08:44:00 +02:00
libraryupgrader 7a2c81d381 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: I4f007a66bd8c8bd6d8b79f716249fce590551bed
2021-04-14 03:23:44 +00:00
Translation updater bot 44b2953e1c Localisation updates from https://translatewiki.net.
Change-Id: Ie2af6bc5472d22c071355c402f504e17e7ac053d
2021-04-13 09:21:30 +02:00