Commit graph

787 commits

Author SHA1 Message Date
Translation updater bot 6925b67e2d Localisation updates from https://translatewiki.net.
Change-Id: I061c29b80cc2d7d4e03b84d2b088f5046b3ca01e
2023-07-26 08:56:56 +02:00
Translation updater bot 6edc547890 Localisation updates from https://translatewiki.net.
Change-Id: I3a9a59cc5b89dc5a202a373a60394af409a7624c
2023-05-31 07:21:18 +02:00
Translation updater bot deb21ffffe Localisation updates from https://translatewiki.net.
Change-Id: I9d8eb106944afacc888a4d8ea8aa9bf085d0685d
2023-05-10 07:26:20 +02:00
Translation updater bot 5568342e63 Localisation updates from https://translatewiki.net.
Change-Id: Iae219c48589ba6b4be15a8ba130b31dcb2bbe2cd
2023-05-03 07:46:34 +02:00
Translation updater bot 875d995db5 Localisation updates from https://translatewiki.net.
Change-Id: I8a58b081f756aa1c7db295fa3fff8e80c0a01be3
2023-04-12 07:32:59 +02:00
Translation updater bot 78d0a64c95 Localisation updates from https://translatewiki.net.
Change-Id: Idf3f50bf6ce42e9b4c45a6da06497e8dfe1d9dc2
2023-03-01 07:38:48 +01:00
libraryupgrader 8e2bbdb418 build: Updating http-cache-semantics to 4.1.1
* https://github.com/advisories/GHSA-rc47-6667-2j5j

Change-Id: Ia6972505a63adae75a51fbc9590fffc958056219
2023-02-02 23:41:39 +00:00
libraryupgrader 6168864ad9 build: Updating ua-parser-js to 0.7.33
* https://github.com/advisories/GHSA-fhg7-m89q-25r3

Change-Id: I43a6c0a252b6ed76dff37082649a8b94b069d252
2023-01-26 10:06:07 +00:00
libraryupgrader 8740522021 build: Updating json5 to 2.2.2
* https://github.com/advisories/GHSA-9c47-m6qq-7p4h

Change-Id: Icd39c4b958ebf5c337a8095afc99d00c2e979de4
2022-12-29 03:37:09 +00:00
Translation updater bot 95f42b7c2f Localisation updates from https://translatewiki.net.
Change-Id: I230f63b8bd449e8a784cfaa1beda4e0ddeaa804b
2022-12-28 07:33:43 +01:00
libraryupgrader 883e8dd4d4 build: Updating qs to 6.5.3
* https://github.com/advisories/GHSA-hrpp-h998-j3pp

Change-Id: I16927cc262c0a5cc65fe23f94c8055fa1e7ed6bc
2022-12-08 02:51:44 +00:00
libraryupgrader a7381b68b0 build: Updating npm dependencies
* minimatch: 3.0.4 → 3.0.8
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3
* recursive-readdir: 2.2.2 → 2.2.3
  * https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: If64b8046c25d278e3245283c0aba216e1eb847a5
2022-10-27 03:11:57 +00:00
Translation updater bot 2e3d6dd3a4 Localisation updates from https://translatewiki.net.
Change-Id: Ied8e3dd272533ec31d900ecfe2c40f6387c8166a
2022-10-05 07:04:11 +02:00
Translation updater bot cbf4f39f89 Localisation updates from https://translatewiki.net.
Change-Id: I0195215cd8b765700c799bd5a26a823a7bfbacd0
2022-08-31 07:01:03 +02:00
Translation updater bot bb77ed1f2d Localisation updates from https://translatewiki.net.
Change-Id: Ia05c2184868f656d4bf13eff9bff31f7cd5f2d96
2022-08-17 06:54:58 +02:00
libraryupgrader 383381d58f build: Updating got to 11.8.5
* https://github.com/advisories/GHSA-pfrx-2q88-qq97

Change-Id: Ie434cc29afe3cb8db9a37085a4b30bad65b1f59c
2022-07-07 23:58:14 +00:00
libraryupgrader 8f49b2109e build: Updating npm dependencies
* grunt: 1.4.0 → 1.5.3
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* ejs: 3.1.5 → 3.1.8
  * https://github.com/advisories/GHSA-phwq-j96m-2c2q
* jake: 10.8.2 → 10.8.5
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* json-schema: 0.2.3 → 0.4.0
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* jsprim: 1.4.1 → 1.4.2
  * https://github.com/advisories/GHSA-896r-f27r-55mw
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h
* mocha: 9.1.2 → 9.2.2
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* nanoid: 3.1.25 → 3.3.1
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2
* node-fetch: 2.6.1 → 2.6.7
  * https://github.com/advisories/GHSA-r683-j2x4-v87g

Additional changes:
* Set `name` in package.json.

Change-Id: Ib0387559afe94d487c8b5e772293292ad1a99d69
2022-05-22 12:47:44 +00:00
Translation updater bot 139746c5b3 Localisation updates from https://translatewiki.net.
Change-Id: Ifb73ea91fcf5bad2e63565e16b77bf2f341ec9fe
2022-05-05 06:52:10 +02:00
Translation updater bot b6a58855bc Localisation updates from https://translatewiki.net.
Change-Id: Ic296d6c5829cdf909c01f6bfd2b773d7434fbc44
2022-04-28 07:21:59 +02:00
Translation updater bot 63f53bf17b Localisation updates from https://translatewiki.net.
Change-Id: I5c1c084e703eccdc2153719aedec2af5d641db84
2022-04-14 07:03:32 +02:00
Translation updater bot 97158180bd Localisation updates from https://translatewiki.net.
Change-Id: I8258126359c2b1f8db7b697c33c784a09cb52e5e
2022-04-07 07:03:08 +02:00
Translation updater bot b2e64db515 Localisation updates from https://translatewiki.net.
Change-Id: I9cdc1b25e4fe1d5e53b310f3b3ba0db83eac8826
2022-03-11 08:32:10 +01:00
jenkins-bot 5e28656544 Merge "Trigger focus/blur event handlers attached to textarea" 2022-03-10 22:53:23 +00:00
jenkins-bot c22868121e Merge "Highlight multi-line tags" 2022-03-04 21:09:42 +00:00
Thiemo Kreuz 20debba3b0 Enable eslint for our custom code in the matchbrackets addon
The resulting code style in this file is a little mixed. I tried to
stick to the existing style. Most notably is the indention with
2 spaces instead of 1 tab. But I couldn't disable the spaces inside
round brackets. They make the code so much more readable.

What this patch effectively does is enabling the eslint check for our
custom code in this addon, excluding all old code, and exclusing a few
rules that conflict to heavily with the old code style.

Change-Id: I12f953cb0a6fd35e405b6cc348abfb2c11e70696
2022-03-03 21:07:19 +00:00
jenkins-bot 53e0e1b311 Merge "Highlight tags in link text" 2022-02-28 20:21:19 +00:00
bhsd d23dc77d16 Highlight multi-line tags
CodeMirror is already able to highlight multi-line tags if the tag name is followed by any non-whitespace characters in the same line. This commit fixes the other condition where the tag name is followed by whitespace only in the same line.

Bug: T201684
Change-Id: I8cb4a53ee0fe7fc8612a58331a1a3e57d00d7630
2022-02-23 17:02:22 -08:00
jenkins-bot ab45c12361 Merge "Namespace extension" 2022-02-23 06:20:51 +00:00
bhsd b9abcbc12e Trigger focus/blur event handlers attached to textarea
When CodeMirror is focused/blurred, the same event will triggered on its corresponding textarea.

Bug: T197632
Change-Id: Ib71b6774a60dd434bdc8a27b9eab433dcc1c65f0
2022-02-19 12:23:17 -08:00
bhsd ca0e8f20a4 Highlight tags in link text
HTML and extension tags should be highlighted as the text of internal or external links.

Bug: T184341
Change-Id: Ib1f2047936b395afd86720e2a7c921e382229cdd
2022-02-19 06:11:34 +00:00
Translation updater bot 56f6731968 Localisation updates from https://translatewiki.net.
Change-Id: I41a6a83f84e48f5adabc9686a94eb3c7a47f65a6
2022-02-11 08:41:06 +01:00
Ed Sanders 0faac32661 eslint: Lint Gruntile.js using server rules
Change-Id: Ib0e7d62343689bb993476cb1ad40f93fc89a7190
2022-02-07 16:25:32 +00:00
Reedy 386bb03b01 Namespace extension
Change-Id: I83913927e86d44726d3a1c3a682cc1f6e2372f07
2022-02-06 15:16:42 +00:00
Thiemo Kreuz 963e636f83 Restore focus also when switching syntax highlighting on
The same already happens when switching it off, see line #249.

I noticed there is still a (random?) chance the selection gets lost
when switching back and forth between syntax highlighting on and off.
This is not what this patch is about.

Bug: T298488
Change-Id: I541f96be9e6fb2f9032df4b86657d01f0eac5679
2022-01-03 18:00:26 +01:00
jenkins-bot 92051b550f Merge "Reduce noise in syntax highlighting tests" 2021-12-22 13:52:04 +00:00
Thiemo Kreuz be08e04309 Reduce noise in syntax highlighting tests
* What we care about is the <pre>. The class="CodeMirror-line" is
  added to every <pre>. We don't really learn anything new when we
  include it in our tests.
* Testing the ARIA role is testing a CodeMirror feature, not a
  feature of the mediawiki mode under test.

Change-Id: I33bfedb304228240c4e835cc983117668c398c61
2021-12-16 06:53:47 +00:00
jenkins-bot 0f70fd33e5 Merge "Fix syntax highlighting test failing when Cite isn't loaded" 2021-12-14 07:26:21 +00:00
Func 189bef8288 Set the line-break attr to initial
Now css rules applied to pre tags can easily affect the appearance of CodeMirror output, may intentionally or not.
With the line-break attr set to initial can make the appearance more stable, users can still override this with the more specific rules if they do want to.

Bug: T252965
Change-Id: If0d29ad152151c09ace2bcd32d2953ec3c9cf1aa
2021-12-12 09:06:20 +00:00
Thiemo Kreuz 0968d3ea16 Fix syntax highlighting test failing when Cite isn't loaded
I forgot this when I added this test case in I03a1e1a.

Also:
* Use another method to detect if the Cite extension is active. This
  is the same method used in the actual code.
* Move a line of code into the `if` it belongs to.

Change-Id: I1efd3f945150aeb08db3c771e579d9a6114a4c21
2021-12-09 10:06:41 +01:00
jenkins-bot 6ad7f542f2 Merge "Fix invalid reference to core resources/ directory" 2021-12-07 23:01:02 +00:00
Bartosz Dziewoński 561ffca718 Don't mess up the page when running tests via Special:JavaScriptTest
* Append to the hidden #qunit-fixture instead of directly to the body
* Use the right selector when cleaning up

Change-Id: I8be38900e6c5f4592f06dfc8f7c2cfc348627716
2021-12-07 14:40:11 +01:00
Derk-Jan Hartman 73441687ae Add q to list of allowed html elements to syntax highlighting
Bug: T289289
Change-Id: I2ab550c9e992a9daae76287313c596db67182d09
2021-12-04 22:17:26 +01:00
vladshapik 60b14d1aa0 Avoid using User::getOption() method
Replace User::getOption() with UserOptionsLookup::getOption() since this method will be hard-deprecated.

Bug: T296083
Change-Id: I405251092fd94fa70a33319d313c5140c8cebc21
2021-11-30 09:12:09 +00:00
Timo Tijhof d97fa84d2b Fix invalid reference to core resources/ directory
This works by accident due to the CWD being mediawiki-core in most
cases during web requests, and Less.php implicitly falling back to that
as path expansion point when all attempts to expand the path fail (e.g.
relative to current file, and relative to a supported Less import dir
such as core `mediawiki.less/`.

Importing raw files from elsewhere in core is unstable, and is not
supported as this fails on some webserver configurations, as well as
in CLI contexts such as maintenance scripts that rebuild a cache, or
otherwise end up (in)directly computing part of a ResourceLoader
module.

The use case of themeing extension styles to the current skin (with
Vector using WikimediaUI) is subject of T112747 and T265941.

Follows-up I9eb07dd43.

Bug: T296639
Change-Id: I6d2be2941d6088b947ea7f18818add97f129760d
2021-11-30 00:58:58 +00:00
libraryupgrader 0acb7475bd build: Updating validator to 13.7.0
* https://npmjs.com/advisories/1004784 (CVE-2021-3765)

Change-Id: I056b958f41dc9453068a0226f12a29ae0b270047
2021-11-04 10:23:33 +00:00
Željko Filipin 3d72bc7fc4 selenium: Remove wdio-video-reporter npm package
The repository uses video recording from wdio-mediawiki package.

Bug: T294341
Change-Id: I2a353b8443d1e5b1b4da8e21952ab882de2b89ae
2021-10-26 14:59:55 +02:00
libraryupgrader 3dabc292ee build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I0c217f059a4bef30becbf49ce2683041863bd0d9
2021-10-24 01:04:14 +00:00
Alexander Vorwerk 7550ec896b MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I0c1dcff1e637743828793b30ca2c4a5113e0fa31
2021-10-12 21:29:45 +02:00
libraryupgrader 6c842629d9 build: Updating npm dependencies
* @wdio/mocha-framework: 7.4.6 → 7.13.2
  * https://npmjs.com/advisories/5197 (CVE-2021-3807)
* ansi-regex: 5.0.0 → 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: Ie856dccce0f190788f394f0fd22d3fcddacddb87
2021-10-04 15:31:26 +00:00
Translation updater bot 386bdf745e Localisation updates from https://translatewiki.net.
Change-Id: I9e89967be2f7ced7aa25238fee70f5ed1b1d04ed
2021-09-24 08:26:00 +02:00