Commit graph

869 commits

Author SHA1 Message Date
libraryupgrader f43fa57fb8 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I519c44c4e60ff654f6690a338ad89a46db2c6572
2024-08-11 13:55:34 +00:00
Translation updater bot 445065dcea
Localisation updates from https://translatewiki.net.
Change-Id: I22ad8bf883d9e19a89f1a7b8f9040955c8d4ba69
2024-08-05 09:25:10 +02:00
Translation updater bot ef02a1ba1b
Localisation updates from https://translatewiki.net.
Change-Id: I32e935b2280646802359b5b73612814a0257727c
2024-07-25 09:19:17 +02:00
Translation updater bot 26b1835d24
Localisation updates from https://translatewiki.net.
Change-Id: I71624990adda4a6c8727b8d06d6babeb8ac3e177
2024-07-16 09:40:24 +02:00
libraryupgrader ef30c830a1 build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: I0f404442d7493078b75115bd6b488ee2f81d2a13
2024-06-21 01:50:19 +00:00
Translation updater bot 5a2901f0f0
Localisation updates from https://translatewiki.net.
Change-Id: Ica5f3ec29771102e6f4d938046afe495dbc14527
2024-06-17 09:31:21 +02:00
Umherirrender 4fc3c8fc7b Use namespaced Parser class
Change-Id: Ibbd84c533498a4a99a76569f4c362964bb3489fb
2024-06-09 11:41:27 +02:00
Subramanya Sastry 118a50dfc1 Update Parsoid test output to reflect changes in Parsoid
Depends-On: I2a61e78171bd892f1835acf585259ce11e68d81d
Change-Id: Ia1d1c9df80bd1374eb927cc7465e9dade13a725b
2024-06-07 17:58:27 -04:00
Arlo Breault 87bbbeeda0 Temporarily disable tests involving i18n output
Until I2c36b9ae9e13f7a21cec35a47404a62bff69090b makes it into vendor.

Change-Id: Ie586ab2cba0427a6e4ed71f2077fee9afd837947
2024-06-07 17:48:18 -04:00
libraryupgrader 1a308c59e9 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I24e0d568023e4b41a6fd037916f71af533d1c921
2024-06-07 05:07:36 +00:00
libraryupgrader d3c90003e8 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I253dca765af262a61a3671114e01234439d8db28
2024-05-18 12:51:34 +00:00
Translation updater bot b0f6698221 Localisation updates from https://translatewiki.net.
Change-Id: Ia71d56ea3a3c8b8b46f726e9827e8b03750bee45
2024-05-14 09:26:27 +02:00
Translation updater bot 8875335ab2 Localisation updates from https://translatewiki.net.
Change-Id: I97ec354cf812aab8e06fbd7d2d47965805c3b9af
2024-05-13 09:27:19 +02:00
libraryupgrader 003e2ec7e9 build: Updating grunt-banana-checker to 0.12.0
Change-Id: Ie2bf73d4de739fed50b48de41e9f21c3ea3360f8
2024-05-10 11:27:34 +00:00
libraryupgrader 17f9322dd5 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: Iee3bb053c391ad787e932686efc1f6bde79c0350
2024-05-05 20:11:09 +00:00
libraryupgrader 7c9a3ebd35 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I0a1b4b37229b9528803f9da2f780d3f1e18fadce
2024-04-19 21:17:44 +00:00
Translation updater bot f1d3fb56e2 Localisation updates from https://translatewiki.net.
Change-Id: Ibfd95b104978a90f796b4452ac0fac847f1b4e14
2024-03-21 08:55:33 +01:00
Umherirrender b2463a3c11 build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: I4ca71737ae99fe58139f9e9e69129c83334c502b
2024-03-11 19:24:14 +01:00
Arlo Breault 0c88ab1abd Use Parsoid's extension API's getExternalLinkAttribs
Depends-On: I31a8c6a9bb2741899d5445c3457fd424e283397b
Change-Id: Iaf8531a37e8d9d3ce1bece9ab3086e5967dca08f
2024-03-04 18:00:04 -05:00
jenkins-bot 4b0aa6c502 Merge "Revert "Filter out null external link attributes"" 2024-02-16 16:19:19 +00:00
Gergő Tisza b5f8605406 Revert "Filter out null external link attributes"
This reverts commit 760641e180.

Reason for revert: it was a quick fix, has been fixed properly in core
instead in I907c22ef070616d81b9a50b0e807a7b8f78b59b5.

Bug: T357668
Change-Id: I4ec440c1e326419a8be5457b79c5374316755a53
2024-02-16 15:34:54 +00:00
Arlo Breault 4d19d19f1d Fix matching external link rel
Introduced in I8d7bdf1bccc869b4dc17058a5822ef34968471e6

Change-Id: I52a8a993fbdd4058d40f4aeac3df37e90e686f3e
2024-02-15 21:24:59 -05:00
Gergő Tisza 760641e180 Filter out null external link attributes
Follows up If4880e4e0b3cd2056521d44baf261ed848511bcd.

Bug: T357668
Change-Id: Ifec733a923f193b72eaba9a1e604ad4e56c0aef2
2024-02-15 21:24:59 +00:00
libraryupgrader 466e3ce2ec build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1

Change-Id: I2204fa77216852b0bf7ac4fa06d307c71a9cc848
2024-02-10 18:27:20 +00:00
libraryupgrader b1416cfc76 build: Updating npm dependencies
* eslint-config-wikimedia: 0.25.0 → 0.26.0
* grunt-eslint: 24.0.1 → 24.3.0

Change-Id: I274a7f1547729a741965b467ba3ba8fa3bc525e2
2024-02-09 05:25:38 +00:00
Alexander Mashin 754b722c56 Set target to $wgExternalLinkTarget
Set hyperlink 'target' attribute to $wgExternalLinkTarget.

In addition, set the 'rel' attribute according to the
$wgNoFollowLinks, $wgNoFollowDomainExceptions
and $wgNoFollowNsExceptions settings (bug T186241).

Bug: T356730
Change-Id: If4880e4e0b3cd2056521d44baf261ed848511bcd
2024-02-06 16:09:32 +07:00
Translation updater bot 0cf105323f Localisation updates from https://translatewiki.net.
Change-Id: I56a48cbfc7c34de3044b02a364e967159c19bd20
2024-02-05 08:49:52 +01:00
Translation updater bot 3f7960b7e9 Localisation updates from https://translatewiki.net.
Change-Id: I2ea9ff0830523a1da7f83c400bf71674a6b2985d
2024-01-28 16:06:59 +01:00
James D. Forrester fd6cd0530f build: Update MediaWiki requirement to 1.42
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I5df892bb548071abe6b64374692d90cc5e1d1436
2024-01-12 14:11:36 -05:00
Subramanya Sastry 655ea71656 Use the namespaced versions of some class names (vs aliases)
Change-Id: Idc350cfc4ece2eaa73f8cd2a0a97b839d4caf37e
2024-01-02 13:50:14 -06:00
Translation updater bot 590c939e9b Localisation updates from https://translatewiki.net.
Change-Id: I2bac810a0a86a0762b51cabef0b23b61901eb560
2023-12-22 17:46:09 +01:00
Translation updater bot d70c486cfb Localisation updates from https://translatewiki.net.
Change-Id: I27ffb77a17a6529bd7ad0018cd64fe37bc856af1
2023-12-04 09:04:29 +01:00
Umherirrender 4113b90e4c build: Run stylelint for less file
Since b2113e01 a less file exists

Change-Id: I77bbbb2dbbc9dba3ce5858fe5e0732e11ba803e5
2023-11-28 20:53:38 +01:00
jenkins-bot 927a41a770 Merge "Temporarily disable tests involving data-mw-i18n output" 2023-10-17 21:27:36 +00:00
Subramanya Sastry 66ec96d6b1 ParsoidImageMap: use wfMessage to localize description types
* The previously failing Parsoid test now passes.

Bug: T311523
Depends-On: Id7d9e82ee4ff20a79ba1a5b2433fa29bc5f76e68
Change-Id: I03115b91fd781b72f0bf2c66cb6c18963a772dab
2023-10-09 12:21:35 -05:00
Subramanya Sastry be9aed5e13 Add a test to verify correct behavior of localized desc types
* Parsoid currently fails this and the failing test has been
  added to the known failure list. A follow-up patch will fix it.

Change-Id: Ic788340ec073b401e3e921339250a2678ea038da
2023-10-09 12:20:08 -05:00
Umherirrender 9b9ef62a4c Remove null fallback from DOMElement::getAttribute
Also set @phan-var to handle nullable parentNode
DOMNode::$parentNode is documented as nullable in php8.1
DOMElement::getAttribute is documented to return string in php8.1
Reported by phan running under php8.1

Change-Id: Ia4abd7bf03bc52d7d4ba2c69738bb90c55d01a2b
2023-10-06 20:08:08 +02:00
C. Scott Ananian 5deb04029e Temporarily disable tests involving data-mw-i18n output
These will be updated in I84296d802382131b47fda097878df43e2f6f46ff
but we need to break a cyclic dependency.

Change-Id: I1842447492361fd9eb870b2573eaa50c51cf24fc
2023-10-06 12:58:18 -04:00
Subramanya Sastry 87731b7e09 Add NOTES.md with a note about the migration of the Parsoid code.
Change-Id: I2698db2fec66dde5eff9e74b71b7fbc2662c22f2
2023-09-27 13:57:58 -05:00
Subramanya Sastry 04c293d759 Enable Parsoid integrated tests
* This replaces the standalone tests that we ran for the Parsoid
  implementation while it lived in the Parsoid repo.

* There is no benefit running html2wt (and hence html2html) tests
  at this point since html2wt simply uses data-mw information.

Change-Id: I9435267f654eb07bcb1b5733986667a8617f1fbd
2023-09-27 12:46:00 -05:00
Subramanya Sastry d9a7fea019 Move Parsoid implementation of ImageMap from Parsoid repo
* There have been no changes to the code except for:
  - class is now called ParsoidImageMap with a matching file name
  - the namespace is changed to MediaWiki\Extension\ImageMap.
  - adding phan directives to deal with Parsoid's DOM proxies
    which phan doesn't seem to be see here.

* Parsoid's SiteConfig extension registration code simply overwrites
  the extConfig array for a tag name. So, keeping the config and
  implementation identical ensures that no matter which version of
  code is registered (based on load order), we get the same behavior.

* Once this rolls out on the next train, we can remove the code
  from Parsoid.

* Future patches might refactor the two implementations to extract
  common functionality or merge code into a single file.

Change-Id: I6cffa4420d2daa70174fa926d5c7a4d983792969
2023-09-19 16:21:40 -05:00
Subramanya Sastry 7a2d263b39 Sync up ImageMap repo with Parsoid
This now aligns with Parsoid commit d76d47b9b1accf2548dc1645c812c309dd84540e

Change-Id: I63ea3d08e8dd2727dec89878f0d8f5f27d9c0de1
2023-09-19 15:29:50 -05:00
Translation updater bot f23c942ee9 Localisation updates from https://translatewiki.net.
Change-Id: I66398b8124a9437aaff6e97236e74bf4c295e228
2023-09-18 08:43:38 +02:00
jenkins-bot 8081cb31f5 Merge "Replace some moved Title class uses, now MediaWiki\Title\Title" 2023-08-19 12:33:00 +00:00
gerritbot d3b897ffa1 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I181ab0a62d32ddcab818b48f2d0301b0374a54d9
2023-08-19 12:02:23 +00:00
jenkins-bot b2116e1121 Merge "build: Update MediaWiki requirement to 1.41" 2023-08-19 10:15:49 +00:00
James D. Forrester 2b82aea178 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I4d99a3c5fe9ada4c52efa911626eb2c41cf057cb
2023-08-19 13:24:11 +08:00
James D. Forrester 9ae9428df0 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: Iee3f421a9fa0f7f2a0f7b57ce73043fc1d23ec54
2023-08-19 13:24:01 +08:00
Translation updater bot de0e7a147c Localisation updates from https://translatewiki.net.
Change-Id: Id47412f39377982b88c2bfe373a6687b398c1841
2023-08-17 12:10:09 +02:00
Translation updater bot 2a62e9dd4e Localisation updates from https://translatewiki.net.
Change-Id: Ibc99066c3bb55b4a7931283a56d9dc6f2df66d0c
2023-07-24 09:38:06 +02:00