Commit graph

2619 commits

Author SHA1 Message Date
Translation updater bot af1813e423 Localisation updates from https://translatewiki.net.
Change-Id: I437f6e34697a6f2d0b673098a102ffc3c26d673b
2022-05-26 07:43:04 +02:00
libraryupgrader 7379b73493 build: Updating npm dependencies
* grunt: 1.4.1 → 1.5.3
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h

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

Change-Id: Ic8d2a9630bf6c19e9426d43464fdc660c00624f0
2022-05-24 10:36:14 +00:00
Translation updater bot 01eb6593c9 Localisation updates from https://translatewiki.net.
Change-Id: Ib6782ecf0fda89a9031b95922729e701959c3534
2022-05-19 07:23:48 +02:00
Translation updater bot 6f37330845 Localisation updates from https://translatewiki.net.
Change-Id: I50185c3ccd9a89b0b2b31a9974032d7bd441a855
2022-05-12 07:25:32 +02:00
Translation updater bot 3a09e12648 Localisation updates from https://translatewiki.net.
Change-Id: I12ed3e3454c5d443d51354a33f51b68bd10aa1fb
2022-05-05 06:53:50 +02:00
Translation updater bot 362b465fe6 Localisation updates from https://translatewiki.net.
Change-Id: I4673a4e3fb10a1cd8df378e979aa33075b88ec28
2022-04-28 07:24:33 +02:00
Translation updater bot b22ae31400 Localisation updates from https://translatewiki.net.
Change-Id: If926e7966bfd3a6ccd907191e37c9d211743acee
2022-04-21 07:15:59 +02:00
Translation updater bot f44c45a015 Localisation updates from https://translatewiki.net.
Change-Id: I61720df81bbb7e99d14772fef5b1f03808e840ee
2022-04-14 07:07:05 +02:00
Translation updater bot f626fc2464 Localisation updates from https://translatewiki.net.
Change-Id: I1f7389e38b4d9715283fc6cc3cdcf5a467bdfeac
2022-04-07 07:05:25 +02:00
Translation updater bot 675a51a6c6 Localisation updates from https://translatewiki.net.
Change-Id: Ia7cd231297f07facfecf608a111f3e10411f3887
2022-03-31 07:08:28 +02:00
Sam Wilson 411be83bc3 Add toggle button and two-pane layout for realtime preview
* Toolbar button to toggle a two-pane layout on and off.
* Resizable bar for the width of the two panes.
* Resizable bar for the edit box height, even when realtime preview is off.
* Only enabled when $wgWikiEditorRealtimePreview = true.
* Fires JS hooks when enabled, resized, and disabled.

Bug: T293347
Change-Id: Id09d44519249c0b7f5c33d48d524b7c92a5a9106
2022-03-13 07:28:01 +08:00
Translation updater bot 27020ae196 Localisation updates from https://translatewiki.net.
Change-Id: Ib8f60f24b9f6cc0ce850594a8622ea46b7e5687d
2022-03-09 08:10:21 +01:00
Translation updater bot ee950bc20f Localisation updates from https://translatewiki.net.
Change-Id: Ic14dd7937957b45be15d25f0babcc559bf4c04df
2022-03-07 08:12:00 +01:00
Reedy 07c823679c Use namespaced EventLogging class
Change-Id: Ia5a0ba6846ee1bd6a5436e003d65be955a06d565
2022-03-06 16:15:32 +00:00
jenkins-bot 5f13929858 Merge "Remove unused jquery.wikiEditor.html file" 2022-03-04 20:42:09 +00:00
jenkins-bot 03e541cb48 Merge "Remove unused messages and commented-out code" 2022-03-04 20:32:34 +00:00
Translation updater bot 2982ffcaeb Localisation updates from https://translatewiki.net.
Change-Id: I23fed73d0f651133fe15e9bfc4c44bc0b7bd9c4b
2022-03-04 08:30:46 +01:00
Timo Tijhof 90e6ccaced Remove unused jquery.wikiEditor.html file
Has sat there since the first commit in 2010 (r73055), but not used.
I imagine it was was a design prototype at some point.

Also fix a few minor eslint warnings about line length, and remove the
one-off "ext-" prefix and capitilised "WikiEditor" CSS class name that
the rest of the repo doesn't use.

Change-Id: Id0eeb456fffdb490a6a86974288e57099e53ce71
2022-03-03 15:27:18 +00:00
Translation updater bot 06ceb65228 Localisation updates from https://translatewiki.net.
Change-Id: I312aacac818edb605b963388aed361f182edab86
2022-03-03 08:23:21 +01:00
Sam Wilson 2aa9e1d298 Remove unused messages and commented-out code
It looks like `wikieditor-loading` was already commented out in 2010:
9d278e8dee%5E!/#F114
and I couldn't find any usage of `wikieditor-toolbar-loading`.

Change-Id: I07988643ca502dcbd7c3208fb803a84003947d5e
2022-03-02 02:40:05 +00:00
Sam Wilson fff7cd6ba1 Allow tool.element to be a function
This adds support for the new 'element' tool type to be a function
which returns the HTML for the toolbar widget. It means that it's
possible for the element to access the WikiEditor context object.

Bug: T286759
Change-Id: I6af12075b96d480639f2fc0d97333a6142480c02
2022-03-02 10:08:54 +08:00
Translation updater bot fc768ba3c4 Localisation updates from https://translatewiki.net.
Change-Id: I3145cdbdd27282d98b48cac6d2d2519b70bbff1d
2022-02-28 14:29:46 +01:00
Translation updater bot 7f04dde774 Localisation updates from https://translatewiki.net.
Change-Id: I0a110ec3f01759acf8af96553fceb34f7900d87c
2022-02-25 09:46:27 +01:00
jenkins-bot 833a5f2c46 Merge "insertlink: Set url mode of title field when switching between modes automatically" 2022-02-25 05:35:22 +00:00
Translation updater bot d47fe43d16 Localisation updates from https://translatewiki.net.
Change-Id: I68902cd40cb95a9d363b47d81c34ab01b56d0b7b
2022-02-23 08:19:42 +01:00
Func fbecf46511 insertlink: Set url mode of title field when switching between modes automatically
Logic under LinkTypeField.setIsExternal() wouldn't emit events about
selection changes, at the mean time TitleInputField.setUrlMode() would
call setIsExternal() and handle everything correctly.
setTouched() is moved forward to actually prevent value being overwritten.

Bug: T302196
Bug: T302201
Change-Id: I5662556394a539073ebf0a17743a260a9d8b0c8c
2022-02-22 15:33:04 +00:00
Ed Sanders d1dc65cfd5 Remove unused deprecated module "jquery.throttle-debounce"
Change-Id: I76a43af8d67768622e6cc0e0d3a059027a5a232f
2022-02-22 01:08:45 +00:00
Translation updater bot b437863971 Localisation updates from https://translatewiki.net.
Change-Id: I8b249db50ae71ba2a6b2023727273d0e875a5091
2022-02-21 08:17:17 +01:00
Translation updater bot 3fa6f08409 Localisation updates from https://translatewiki.net.
Change-Id: If9fe790be7f6f5735fd85d5af9d07a59391a5103
2022-02-16 08:13:45 +01:00
jenkins-bot 90ac830640 Merge "Misnamed field on a/b test logging" 2022-02-12 20:36:53 +00:00
David Lynch 9c6dee2372 Misnamed field on a/b test logging
Bug: T301497
Change-Id: I9469ec8b6e745ae9181e5ffe21036f2de417680a
2022-02-11 19:58:16 -06:00
jenkins-bot 1418002309 Merge "Improve DiscussionTools a/b test bucket logging" 2022-02-12 01:38:32 +00:00
jenkins-bot 802dd69c50 Merge "Check for disabled button in click handler" 2022-02-11 22:26:43 +00:00
Sam Wilson 64d5613172 Check for disabled button in click handler
For some reason, even though jQuery UI dialogs know about their
own buttons, they don't know if the buttons are disabled. This
means that it's still possible to submit the dialog when a button
is disabled.

This change (which is mostly whitespace) adds a check in the click
handler to return early if the 'insert link' button is disabled.
It also gives this button a class name, and so simplifies the other
place that refers to the button.

Bug: T298596
Change-Id: I39fea13b1874f851a68cf08243b3e7ccd355d775
2022-02-11 22:53:13 +01:00
David Lynch 9c478c9290 Improve DiscussionTools a/b test bucket logging
Make sure it works on pages which don't trigger DT, such as full-page
wikitext editing.

Bug: T301497
Change-Id: I244381ee9e47bd3119e341cddb42e2ab38add4a8
2022-02-11 15:41:53 -06:00
jenkins-bot 4a1caf3390 Merge "Add 'element' type for toolbar tools" 2022-02-11 21:23:49 +00:00
Sam Wilson 5c9d867847 Remove out of date invalid link alert
The alert text is now added as a red message under the form field
for the link target text, and there's no need to have an additional
alert because the dialog's insert-link button can't be clicked
while there's an invalid internal link anyway.

Bug: T298596
Change-Id: Ib536b51baae24a6cfe7a7426d039fdf11c4cb150
2022-02-11 15:49:12 +08:00
Translation updater bot 8e05e5d8d0 Localisation updates from https://translatewiki.net.
Change-Id: I8d0af9dbc6d5f230e77c125afaeb9594370f1555
2022-02-09 08:13:21 +01:00
Translation updater bot 05eabda0f7 Localisation updates from https://translatewiki.net.
Change-Id: I4ab02239aec3dd1ee6dd4149aa79e22f2e5629a8
2022-02-08 08:29:11 +01:00
jenkins-bot 84f26ccfd2 Merge "Properly disable insert-link button" 2022-02-08 04:21:55 +00:00
Sam Wilson 2d58366710 Add 'element' type for toolbar tools
In addition to button, toggle, and select, add an element type of
tool which can be used to insert any HTML content.

Bug: T286759
Change-Id: Ia193308a076a7eaa010269ea0dd7b707c774561d
2022-02-08 10:33:54 +08:00
Ed Sanders 7fea791042 build: Update eslint-config-wikimedia to 0.21.0
Change-Id: I87bca80d107c965296af74e16961cd855d72b806
2022-02-07 17:27:27 +00:00
Translation updater bot 07f1703a5d Localisation updates from https://translatewiki.net.
Change-Id: Ibc3fbad894f18d0ea73a220951ff43374b38f10d
2022-02-07 08:23:12 +01:00
Reedy 51c3fe42bd Swap to AutoloadNamespaces
Change-Id: I4eb121b4e81b4ec4833ce0bea81ae041abbdacc9
Follows-Up: I0be9b88accafce97f7e9b7524ec740fb576fa11c
2022-02-06 13:55:54 +00:00
Translation updater bot 60a7383e47 Localisation updates from https://translatewiki.net.
Change-Id: Id0b57e3524d6840e5cf91ae137b73216ba27eba7
2022-02-03 08:44:48 +01:00
David Lynch fda6c3c117 New bucket for abtest data
Bug: T291308
Change-Id: I7aa47139e3fe552833798d6b8daacc1b30517915
2022-02-02 15:50:21 -06:00
Translation updater bot 259d826bdc Localisation updates from https://translatewiki.net.
Change-Id: I68fe3156fc2e9631fb24856fd8a169a653aa206e
2022-01-31 08:22:50 +01:00
Translation updater bot 8057a604ba Localisation updates from https://translatewiki.net.
Change-Id: Ibf6cdb0c4f312a9b87a90467164d4d3d9967ce0c
2022-01-27 08:39:35 +01:00
Translation updater bot 4477ceba08 Localisation updates from https://translatewiki.net.
Change-Id: Idc8a9e50aad74b7b823760f6704eee3f50e0379b
2022-01-20 09:18:20 +01:00
Translation updater bot f0de643a18 Localisation updates from https://translatewiki.net.
Change-Id: Iff81b77eeea259df00c0a4b541b70ca2b1d9782b
2022-01-18 08:11:32 +01:00