Commit graph

746 commits

Author SHA1 Message Date
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
Umherirrender 4d6a470aae Create HookRunner class and the hook handler interface
Bug: T271013
Change-Id: Ie8e152530599d11da12cb9272a3b757da1cca1ab
2023-06-04 21:23:14 +02:00
libraryupgrader 024d0332f3 build: Updating npm dependencies
* grunt-banana-checker: 0.10.0 → 0.11.0
* stylelint-config-wikimedia: 0.14.0 → 0.15.0

Change-Id: Ifecf31f6a86fd640ce5f9cc0cc2d9a89aeaea587
2023-06-01 02:55:33 +00:00
Translation updater bot c6ee9083c1 Localisation updates from https://translatewiki.net.
Change-Id: I86d9d6227089afd7fbba657d4a30fbdc0b946f1a
2023-05-29 09:58:49 +02:00
gerritbot 417ce7bebf Update moved class EditPage
See T321882. Moved in Ibefc44eb64aed

Bug: T321681
Change-Id: I5a66b76658c3eb19f2afe5b9a8ce4748767e6c2d
2023-05-06 21:19:29 +00:00
Translation updater bot 83ec48d13f Localisation updates from https://translatewiki.net.
Change-Id: I4a5e81349bccb7c5452fbf67c1f46937cc8bb733
2023-05-05 10:38:16 +02:00
libraryupgrader 4af38f4930 build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: Ib1eb68c26716ef9e144a9dc7030f40c35560e5ef
2023-05-05 02:40:22 +00:00
jenkins-bot 3590c0195c Merge "Replace deprecated Hooks::run" 2023-05-01 09:42:22 +00:00
Umherirrender 10dddec75b Replace deprecated Hooks::run
Bug: T335536
Change-Id: Ifc18d80c15f714d58aef33c9991079db9406a19e
2023-04-29 20:13:21 +02:00
libraryupgrader da6252f405 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Ib912e9a015a90ffdb39d2696d98c8be5431442d7
2023-04-29 01:27:12 +00:00
Translation updater bot 2bee4c4f57 Localisation updates from https://translatewiki.net.
Change-Id: I0f66393d3f1da4c198a85fcdcc61833da31ced43
2023-04-17 09:12:53 +02:00
Raimond Spekking 197a672b61 Merge "Localisation updates from https://translatewiki.net." 2023-04-10 12:49:13 +00:00
Translation updater bot 7136282de9 Localisation updates from https://translatewiki.net.
Change-Id: I86a926e4df89c457e51640e0a2a7be88647adb85
2023-04-10 09:44:50 +02:00
Translation updater bot 1a0935a375 Localisation updates from https://translatewiki.net.
Change-Id: Id7bd6dccace54c0cbc085f8c26788345916908ba
2023-04-10 09:20:27 +02:00
jenkins-bot fe024e6813 Merge "Use core behaviour regarding saving options for non-registered users" 2023-03-27 14:25:51 +00:00
Translation updater bot 459aa6d418 Localisation updates from https://translatewiki.net.
Change-Id: I24aa53174fc3af89e0b7c29b95f0ea9a337455df
2023-03-27 08:40:43 +02:00
Bartosz Dziewoński 62c3d99a7f Use core behaviour regarding saving options for non-registered users
mw.Api#saveOptions will skip the API call and return a 'notloggedin'
error when the current user is not registered.

To handle temporary users as well, just fall back to that behaviour
instead of being explicit, and the right thing will also happen
(probably it will return an error, although the behaviour may change).

Bug: T332430
Change-Id: I4aafd6f74b74971c52b6222f8ec97a4963bb6a7b
2023-03-17 20:33:43 +01:00
libraryupgrader 79c2815bdb build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1
* stylelint-config-wikimedia: 0.13.1 → 0.14.0

Change-Id: I8de4097ea27b4ccc247015077d7917c3a29436cc
2023-03-15 03:23:29 +00:00
libraryupgrader d225dc4042 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I2dcbe7f830d12bc2149f193e1babf7633b029a11
2023-03-11 23:25:42 +00:00
Translation updater bot ebc9da605f Localisation updates from https://translatewiki.net.
Change-Id: I9c6b754696bed4e081f2e9af1e5ec7100a66d3b6
2023-03-07 08:44:08 +01:00
Translation updater bot 0d0e43a29c Localisation updates from https://translatewiki.net.
Change-Id: I7f389a3fb0ca9e7766d0079ea8153752f2b2f7b1
2023-02-28 08:28:37 +01:00
David Lynch 333d8b94b7 Update Ace to 1.15.2
- Fix line height regression

Bug: T329686
Change-Id: Ia381d0ba3314a2d879dd18a3bf44f81d4e623b6a
2023-02-21 13:53:16 -06:00
Derk-Jan Hartman 941cc7c109 Update Ace to 1.14.0
- Improved ES6 support

Bug: T324609
Change-Id: I22234ee259c2663a511f9285d4c43d4256e29c66
2023-01-16 23:26:34 +01:00
Jon Robson cf169e60e2 Enable CodeEditor modules on mobile
Depends-On: Ifa355f3821c72935c74650fa635a6ab863c70d39
Bug: T324723
Change-Id: I271e99c777b638bd4c4bae642f8c7c87fc0ae5cd
2023-01-05 20:31:30 +00:00
Translation updater bot 9336114847 Localisation updates from https://translatewiki.net.
Change-Id: I66428e753257b7fa704e410b5ab53f006f630075
2023-01-04 08:28:42 +01:00