Commit graph

770 commits

Author SHA1 Message Date
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
Translation updater bot 7c52cac05e Localisation updates from https://translatewiki.net.
Change-Id: Ifbcafb706a271976f721cceba1b79633988bc045
2023-09-12 08:26:30 +02:00
Translation updater bot b5b9cba7f8 Localisation updates from https://translatewiki.net.
Change-Id: I12f123cd3b596db91189328149b40e27f6228435
2023-09-11 09:03:15 +02:00
James D. Forrester d63555f3e8 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I3606309b5d9e401577fcf7a5230ae60e6f5b6774
2023-08-19 11:27:24 +00:00
gerritbot 4f513b6232 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I1de316ddfa572a72ca68f9806b93f958286c8ef2
2023-08-19 04:14:04 +00:00
Translation updater bot a67d9a1d85 Localisation updates from https://translatewiki.net.
Change-Id: I1c6670e012b01f6d78f693d2428fc5d4a71c0d31
2023-08-17 12:09:35 +02:00
Translation updater bot 56fb5412ce Localisation updates from https://translatewiki.net.
Change-Id: Ied0dc3d61d547e35b56f0d67d9f54d58361d8e1f
2023-07-24 09:36:52 +02:00
Máté Szabó a6030db858 Follow-up Ie3ed681b: Unstub getCaretPosition() as well
It was pointed out in the review of Ie3ed681b that the naive fallback
for replaceSelection() was not working because CodeEditor only had a
stub getCaretPosition() implementation. So, let's implement that as well
in case people want to use it. It seems to work reasonably well locally
with the native replaceSelection() disabled.

Bug: T342127
Change-Id: I8d3683808394faefa56c7cdff31dc18978c4dd92
2023-07-21 14:45:41 +02:00
Máté Szabó 2f7ce4dd50 Add explicit replaceSelection() implementation
The $.textSelection() facade in CodeEditor is missing a
replaceSelection() implementation. This causes $.textSelection() to
fall back to a naive implementation, which does not work, thus breaking
any gadget or extension that tries to interact with CodeEditor using
this method. As a fix, provide a native replaceSelection()
implementation that calls the appropriate ACE editor method:

Bug: T342127
Change-Id: Ie3ed681b39c5d4d2bed50030a397a2b1c877c9fb
2023-07-18 16:38:55 +02:00
Translation updater bot 795d19bd6f Localisation updates from https://translatewiki.net.
Change-Id: Ic3aa714080d7225b311a182c59a253770109f5b6
2023-07-14 09:32:49 +02:00
Translation updater bot 90c61ea9d8 Localisation updates from https://translatewiki.net.
Change-Id: I31d3c04421b45dfb25c73a01e0cff9f57d162ac7
2023-07-06 10:11:28 +02:00
Jon Harald Søby 075cfc12e4 Remove use of autoMsg in favour of using mw.message directly
Use mw.message directly instead of relying on WikiEditor's
<key>Msg feature.

Bug: T154891
Change-Id: Ifc9016ecd35cb0d8bbbf858b704cb0b574e38f56
2023-07-05 02:03:55 +02:00