Commit graph

781 commits

Author SHA1 Message Date
libraryupgrader 1ca61441a0 build: Updating cross-spawn to 7.0.6
* https://github.com/advisories/GHSA-3xgq-45jj-v275

Change-Id: I028ed1a387cd4b05b43a18c369421dd8aaed508b
2024-11-20 10:21:59 +00:00
jenkins-bot 306a0f1df6 Merge "Enable live autocompletion in CodeEditor" 2024-11-12 03:31:01 +00:00
James D. Forrester 390486e347 foreign-resources: Add purl for ace editor
Bug: T363589
Change-Id: Ic0273e442c237f917c3843b54bbae5354b762455
2024-11-05 16:31:39 -05:00
libraryupgrader cef27e9005 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I18d1e303f46c81e937f135e04621e8aa37246ff3
2024-11-02 04:46:38 +00:00
Siddharth VP 1b52f36c7b Configure JSHint to recognize MediaWiki environment globals
Bug: T373068
Change-Id: Ifaa994b4c844ec29aa77182af7159c9bdcdc2441
2024-10-20 13:48:58 +05:30
Siddharth VP 800ce75e9d Enable live autocompletion in CodeEditor
Bug: T377663
Change-Id: Ie7589c9ae7397ba389ef66cce0c354df747d423b
2024-10-20 01:43:08 +05:30
jenkins-bot d3920f2a1c Merge "Update namespaces of PHP classes" 2024-10-04 19:17:27 +00:00
Fomafix 38051ed25e Update namespaces of PHP classes
Change-Id: I0bd63285afd4967c09ab046b012f8c4e62db2f2c
2024-10-03 20:01:46 +00:00
Siddharth VP 8b7b17f9ee Support dark mode in CodeEditor
This uses JS to figure out if the user is currently in dark mode and set
the Ace theme accordingly. This means the theme doesn't reconfigure if
the user or the OS switches dark mode on/off while CodeEditor is open,
but this is better than nothing.

Ace theme 'monokai' is used for dark mode, and 'textmate' is used for
light mode, as before.

Bug: T375982
Change-Id: Icd683ee51cb86b3352d8f23f652b4ce7a6174b4d
2024-09-30 00:26:39 +05:30
Siddharth VP 0fd08102b5 status: replace hardcoded colors with corresponding Codex tokens
This fixes text in the status bar displaying white-on-white while in
dark mode.

Bug: T372288
Change-Id: I6a2efbc2f16b7edbfdf6ef79b9a497e187de654f
2024-09-30 00:26:24 +05:30
Fomafix d3ba6712ab Use PHP type hints
* Add PHP type hints where possible.
* Remove @var, @param and @return if redundant to type declaration.

Change-Id: Ief9f12370b094188b95fe48d3b1d68988da1e9b8
2024-09-16 07:20:43 +00:00
Translation updater bot 0ef42f8c1c
Localisation updates from https://translatewiki.net.
Change-Id: Ica62973f1d922a280326460bec4a36a45c669f6f
2024-08-28 09:37:26 +02:00
libraryupgrader 124eeb286c build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: I5ce1e2070b9e4c3da3628b0274fc698494cf72eb
2024-08-24 20:52:49 +00:00
James D. Forrester 930420bb11 build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I1a61ca466f1b3eddc0c7fd596728f3a28214d899
2024-08-22 16:46:59 -04:00
Translation updater bot 83275d2442
Localisation updates from https://translatewiki.net.
Change-Id: I97e6baef8c41cd2739493fdaa900c0a58a721b1f
2024-08-19 09:22:39 +02:00
libraryupgrader 36829be184 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I7b3806eaaba60c4409e73cf24ec807ce79217112
2024-08-11 04:24:29 +00:00
Translation updater bot 681e17fb3a
Localisation updates from https://translatewiki.net.
Change-Id: I8751eff8d25ba8cc3d3470fcc9891f6ac67cfead
2024-07-30 09:42:44 +02:00
Translation updater bot 4a617685d8
Localisation updates from https://translatewiki.net.
Change-Id: Ieebb12aee6a8be9a67c81d3af95b0bd4e81227e3
2024-07-29 09:26:16 +02:00
Translation updater bot db38516d25
Localisation updates from https://translatewiki.net.
Change-Id: Iecc5ff3b0f6c6fad86812e1557bcf4249f308085
2024-07-18 09:22:26 +02:00
libraryupgrader faf23a2fa3 build: Updating npm dependencies
* eslint-config-wikimedia: 0.28.0 → 0.28.2
  The following rules are failing and were disabled:
  * modules:
    * es-x/no-object-assign

* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2

Change-Id: Ic603e46d510db344805408a972355249455a177e
2024-06-20 05:06:27 +00:00
libraryupgrader 7a396da3a1 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
  The following rules are failing and were disabled:
  * modules:
    * no-jquery/no-extend

* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: Ifbde191e4d9155dbecc9c395dd89ec06c91c356a
2024-06-06 05:33:43 +00:00
Translation updater bot 64b6fbc38f Localisation updates from https://translatewiki.net.
Change-Id: Ife3336529588dbcfca1c5736244af6adf197cbf9
2024-05-29 09:30:58 +02:00
libraryupgrader be90c89fa9 build: Updating grunt-banana-checker to 0.13.0
Change-Id: Ibea7284fd33683e4eef90159d5c5cf68eaf6d94a
2024-05-18 03:49:43 +00:00
Translation updater bot a2248c2a53 Localisation updates from https://translatewiki.net.
Change-Id: Ic5b1f5fadb4636cc96d4f0ea5cc9e4d167ffba72
2024-05-17 09:48:11 +02:00
libraryupgrader dab15e3c06 build: Updating grunt-banana-checker to 0.12.0
Change-Id: Icf5f7ca44d84e853aa55f0ff3f9989487626ed4f
2024-05-14 01:50:42 +00:00
libraryupgrader 3e6e90ed4e 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: I09ad50f0bded5d96413f56177c55d53f8b2f2438
2024-05-05 07:10:23 +00:00
Translation updater bot 80d09250a6 Localisation updates from https://translatewiki.net.
Change-Id: I78577c1179cf5cf7f27d335b094d222f2415f54f
2024-04-22 09:27:52 +02:00
libraryupgrader 9ff603d49f build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I691a2549569412718e6f1610862db08166f8c882
2024-04-16 19:33:05 +00:00
Translation updater bot 67e9b621c0 Localisation updates from https://translatewiki.net.
Change-Id: I37450b696fc2f759f7b4e57af423968b429858b1
2024-03-22 08:43:49 +01:00
libraryupgrader 833c4cbe7b build: Updating mediawiki/mediawiki-codesniffer to 43.0.0
Change-Id: I4830e3e728c6be74dd23887ac5436533ff311cdb
2024-03-17 16:16:55 +00:00
James D. Forrester 3bb1c3173f Upgrade Ace from 1.15.2 to 1.32.7
Steps, so that others can know how to upgrade later:
* Alter entry in package.json and run `npm i` and then `npx grunt update-ace` to update.
* Test locally for CSS, JS, and JSON pages (as the most-affected types).
* Verify code diffs and add to git staging manually.
* Update foreign-resources.yaml entry manually.

Bug: T342387
Change-Id: I3566e8271ce37807f7d24867680d8229aa97302c
2024-03-15 16:32:40 -04:00
James D. Forrester 46ee5c493b Register Ace as a foreign resource, move credits link to that library
Also move to modules/lib/ like in other repos. As we're using the build
step rather than a direct release, let's leave it as doc-only, but this
at least makes the process more clear.

Also add the README.md and CHANGELOG.md files like we do for others.

Change-Id: I3566e8271ce37807f7d24867680d8229aa97302b
2024-03-15 16:32:36 -04:00
Fomafix 47ed85f491 Hooks: Use private instead of public for internal functions
Change-Id: I3566e8271ce37807f7d24867680d8229aa97302a
2024-03-09 16:21:17 +00:00
jenkins-bot 8565e167d7 Merge "Avoid FOUCs more flexibly" 2024-02-23 19:34:37 +00:00
Nardog 1e646acfdb Avoid FOUCs more flexibly
Style the textbox to mimic when CodeEditor is enabled only if
"usecodeeditor" is set, and only before CodeEditor is loaded (I0ce663e
added a gutter even when CodeEditor was turned off, which no one asked
for).

.wikiEditor-ui-text is added client-side, so there's no point in styling
it.

Bug: T351487
Change-Id: I3918e1c120805ca007e8e7eb7e29304ddbb6af56
2024-02-22 18:33:14 +00:00
Nardog d798a5ad6c Update toolbar group hiding logic
Accommodate upstream change in WikiEditor (Iff6d806).

Bug: T357222
Change-Id: I10e06d129677e7ac40199a31e4bad7914dda993c
2024-02-11 00:51:18 +00:00
libraryupgrader 6b5da58aec build: Updating mediawiki/mediawiki-phan-config to 0.14.0
Change-Id: Ia4986bad525b3699196882e90c70aec32b6898a1
2024-02-10 07:28:08 +00:00
Translation updater bot 9efe3db548 Localisation updates from https://translatewiki.net.
Change-Id: Ie4191d53c70b86af4798cca18ab84de9d41e4f89
2024-01-30 09:38:49 +01:00
jenkins-bot 7c4558741d Merge "extension.json: Drop RL targets definitions, no longer honoured" 2024-01-12 17:32:45 +00:00
James D. Forrester 3a440c1389 extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: Ibbdd8e48a527f7b37482a7366300a8bd6ac21f58
2024-01-12 08:43:38 -05:00
Derk-Jan Hartman a3e2b2c8a6 Remove unnecesary targets from RL module definitions
Bug: T328497
Change-Id: I0018a7df9576d571c1d6f1dd8dcf2788efa4c097
2024-01-12 14:07:44 +01:00
Fomafix b3279e4382 Remove outdated comments about known issues
On tab close on Firefox there is a 'discard your changes?' dialog.

On preview the cursor/scroll position is still on the same position.
Just the focus is not in the textarea, but this in WikiEditor, too.

Change-Id: I0d7b59c39381cdc7da72c0a6c366d74071f7ef54
2023-12-29 10:26:21 +00:00
jenkins-bot f391e4768c Merge "build: Update linters" 2023-12-23 08:20:11 +00:00
Translation updater bot 1f5dfcb315 Localisation updates from https://translatewiki.net.
Change-Id: If23354e73c00c88789e03101ed05acc03925dded
2023-12-20 14:04:32 +01:00
Ed Sanders 1528c7740f build: Update linters
Change-Id: Idaed1bf627d8d92968b422ad428acd29a179d94a
2023-12-18 17:09:57 +00:00
Fomafix bf0ba2f20c Use MediaWiki\ResourceLoader\ImageModule instead of ResourceLoaderImageModule
The class name ResourceLoaderImageModule is deprecated since 1.39.

Change-Id: I39156ac04b1c0609487d359579bac1fefcea6356
2023-12-01 13:23:39 +00:00
gerritbot dafb05f12d Update UserOptionsLookup's FQN
User-options related classes are being moved to the MediaWiki\User\Options namespace in MediaWiki Core; reflect that change here.

Bug: T352284
Depends-On: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: I2af14da0c4f2d13e94b0301ae5d4d2589e05f0b7
2023-11-29 12:38:27 +00:00
Ed Sanders 9111107de8 CodeEditor: Avoid movement while loading
Bug: T73015
Change-Id: I0ce663ebad4bb9ab9f435aeba65c545ee21e0680
2023-10-15 07:21:36 +00:00
Fomafix 0094c01f7f Use namespaced classes
Change-Id: If12b9c731ff89e2ca2d855f9d3ed4b887f9a356e
2023-10-03 09:11:09 +00:00
Sam Wilson f7a7c7afea Add change handler for Edit Recovery
When the Edit Recovery loading process is finished, add an Ace
editor change handler so that the Edit Recovery fields are saved
whenever there's a change to the CodeEditor data.

This is similar to the change made for CodeMirror:
I352470752130c7b9b2dfc55a066cecf785d40067

Bug: T344406
Change-Id: I2c7826379108a88be7956d84bbfd3200b5ad542f
2023-09-20 16:15:52 +08:00