Commit graph

1142 commits

Author SHA1 Message Date
Ed Sanders 8587e445a1 Render reference list on first load in idle callback
This means the reference list is always in sync with the model's
understanding of which references are available to edit.

An exception is left in if there are no references in the model
at all, as will be the case on he.wiki, as all references are
template generated. In this case we continue to use the Parsoid
DOM, so that there is a static rendering of the reference list.

Bug: T336865
Change-Id: Iaf1089c9de532e7749c9cb70a9e697917955dca8
2023-05-17 13:34:15 +00:00
thiemowmde e4e1a38e1e Add missing space to reference list rendering
Minimal test case:
 <ref name=a>a</ref>
 <ref name=a/>
 <references/>

This renders as "1. ↑ 1.0 1.1 a" in both the legacy parser as well
as Parsoid. The moment you start editing this in VisualEditor the
space before "a" disappears. This patch fixes this inconsistency.

Change-Id: Idfea1a445fc98a0433640b4f706fafcc4e236c18
2023-05-16 15:43:16 +00:00
Translation updater bot 46a2205f5f Localisation updates from https://translatewiki.net.
Change-Id: Id06f53e8ab8d0b70388cf155419f84e493bdcf9d
2023-05-16 08:18:33 +02:00
jenkins-bot fd8db433a6 Merge "Fix empty previews in reference reuse dialog" 2023-05-11 09:43:54 +00:00
Translation updater bot 79c3edaa3e Localisation updates from https://translatewiki.net.
Change-Id: If653baf2bc9e95fddc85f7e9e1dc693e32a10831
2023-05-11 09:13:41 +02:00
thiemowmde 889c2ea011 Fix empty previews in reference reuse dialog
This fixes a minor inconsistency: A reference that comes from a
template and is already reused outside of the template is only
partially available to VE, and previewed with a warning message
because of this:

"This reference is defined in a template or other generated block,
and for now can only be previewed in source mode."

This was missing in the reuse dialog.

Note this patch is not meant to make any design decision, but to use
the existing design consistently.

You can test this with and without the Citoid extension. It works in
both cases.

Bug: T336372
Change-Id: I962cf111b1882bcd736f1090ca17d2b176495d2f
2023-05-10 13:03:24 +00:00
jenkins-bot d886cbd70f Merge "Migrate CiteVisualEditorModule to a virtual file callback" 2023-05-10 04:57:57 +00:00
Translation updater bot d6fbd0cc11 Localisation updates from https://translatewiki.net.
Change-Id: Ic98e2df23aabe41eb558fc8028334309661d2367
2023-05-05 10:38:10 +02:00
Tim Starling 5315297f38 Migrate CiteVisualEditorModule to a virtual file callback
Depends-On: I97d61b5793159cea365740e0563f7b733e0f16de
Bug: T47514
Change-Id: Iabfbb6751707813b7ec68f49b35441ab5dbb5622
2023-05-05 16:25:14 +10:00
Translation updater bot b81e7bd0c5 Localisation updates from https://translatewiki.net.
Change-Id: I01c920c74716fc99c2d36de87239a65a15173df9
2023-05-01 09:57:21 +02:00
thiemowmde 2a8fdf3d81 Hide wrong "this reference is used 0 times" in citation dialog
This fixes a minor regression introduced in Ib003b8a. The problem is
that undefined is not equal to anything in JavaScript, and not smaller
than 2 either.

Bug: T241885
Bug: T335410
Change-Id: Ia6deb291d923b88a08ceac8fbc0efb682e14f358
2023-04-26 16:42:08 +02:00
Translation updater bot ad830cce16 Localisation updates from https://translatewiki.net.
Change-Id: Ibc776022544a8f73e77735dc1256135598fb676c
2023-04-25 08:47:26 +02:00
Translation updater bot 3c902a8f34 Localisation updates from https://translatewiki.net.
Change-Id: Ifb96b94e80763ea5e5e7d9f3582ca835f5a17823
2023-04-24 09:15:43 +02:00
jenkins-bot 23d7c3d3bf Merge "Fix wrong "this reference is used twice" in VisualEditor" 2023-04-17 06:40:44 +00:00
Ed Sanders ec88bde672 Drop IE CSS hacks
IE is no longer supported

Change-Id: I27901e87301a4ce0993f789913c83d151f264562
2023-04-12 16:33:23 +01:00
thiemowmde ce63522726 Fix wrong "this reference is used twice" in VisualEditor
This patch also updates a second place that does almost the same.

That other place also excludes placeholders. We intentionally don't
do this in this new place.

Bug: T241885
Change-Id: Ib003b8a7bbe247db6f7da0a4efcfd4e5967fd033
2023-04-12 15:19:11 +02:00
thiemowmde 4ac067c0fa Fix broken selector in MWReferenceNode.less
This issue was introduced in I7a8ec9f. I tried to understand what this
does but can't see an effect. The behavior and appearence seems to be
identical with and without this code. In case it turns out this is dead
code (e.g. not needed any more with our current browser requirements)
it should be removed. Otherwise the selector fixed.

Change-Id: I0bfae951aa4543c528dd7e04c00a0e978f1ce49e
2023-04-11 20:39:51 +02:00
Translation updater bot 545491a21f Localisation updates from https://translatewiki.net.
Change-Id: Iefcf05de017e0fa4d10b81414051e1aae8efc22d
2023-04-10 09:20:22 +02:00
Translation updater bot faa8173d40 Localisation updates from https://translatewiki.net.
Change-Id: Ie541a2a6701a64d712245e959a2acfdb142e618e
2023-04-03 09:17:11 +02:00
Ed Sanders 9b9eccc21b ve-cite: Simplify LESS files with nesting
Change-Id: I7a8ec9fceb3563a4561afd95e18a5667a363a1ab
2023-03-28 11:06:14 +00:00
Ed Sanders ca9ef93409 ve-cite: Convert .css files to .less
Change-Id: If831c23721cc2c3ec3cc17d4cd9c9533a0aa4cb4
2023-03-27 15:01:45 +01:00
Translation updater bot dc1d15cb64 Localisation updates from https://translatewiki.net.
Change-Id: I9f17e5ed55e38d8774997449b20364f6d479ec52
2023-03-15 08:49:26 +01:00
Subramanya Sastry 8d93818fc8 Use double-colon for pseudo-elements
* Linting rule has been fixed to accept these now.

Change-Id: I51d866ec18c9e1d675f43b3c60f3ad874bba041e
2023-03-14 16:49:10 -04:00
jenkins-bot 6b286ab789 Merge "Update output of diff test" 2023-03-10 16:45:56 +00:00
Translation updater bot b398619d3c Localisation updates from https://translatewiki.net.
Change-Id: Ie2803c8e16f7bd3fc468ce0849045486f399e333
2023-03-09 09:04:13 +01:00
jenkins-bot 664607022e Merge "Add small gap between reference body and re-use warning" 2023-03-08 16:27:53 +00:00
jenkins-bot ba3130a9f7 Merge "ve-cite: Show $originalRefList even if there are no refs in the model" 2023-03-08 16:18:11 +00:00
Ed Sanders bae4a409a5 Update output of diff test
For I93a88abc8e9ecf38992b396c151215781057a6f4.

Change-Id: Ia743b0c37bbd33b95dd4824018ae59fbb6e45c3e
2023-03-08 15:52:02 +00:00
Translation updater bot 245ac89794 Localisation updates from https://translatewiki.net.
Change-Id: Ic43c1fcefcb5910b79df4bbded97deb3a2e5158b
2023-02-28 08:28:33 +01:00
Translation updater bot 02603baca4 Localisation updates from https://translatewiki.net.
Change-Id: I0b5e779399c9dec3bdca537407e747b4f4cf9790
2023-02-27 08:27:14 +01:00
Translation updater bot 33d72f78f0 Localisation updates from https://translatewiki.net.
Change-Id: I02eb5002c1b152b1f1bf9918f96046783cd43160
2023-02-24 08:59:25 +01:00
thiemowmde fd90304b23 Make auto-generated reference names like name=":0" visible in VE
This is a prerequisite before any work related to T52568 (being able
to manually name references in VisualEditor) can start.

Why these names should not be hidden:
* We don't know if the name is actually part of the auto-generated
  sequence in the current article or copy-pasted from somewhere else.
* Manually given names that start with a colon are currently hidden
  even if they are unrelated to the auto-generated sequence.
* The information is highly relevant for users switching between VE
  and wikitext. Especially when a reference is used multiple times
  the relevant wikitext can be as short as <ref name=":0" />. The
  literally only information in this case is the number.

Since these numbers are still more technical than anything we make
them very dim to emphasize the contrast to non-numeric names.

Bug: T52568
Bug: T92432
Change-Id: I65cb6998cb5f8659cd9043f3d4aaeac1c5f69da8
2023-02-23 12:28:02 +01:00
jenkins-bot d1ed02e21d Merge "Fix icon of re-use reference tool" 2023-02-22 17:58:49 +00:00
Ed Sanders 59d900d951 ve-cite: Show $originalRefList even if there are no refs in the model
This original use case at T187495 is for he.wiki, where it is likely
that all the references are defined in templates, so the model
will always be empty, even though $originalRefList is populated.

Change-Id: Ia2785a20bf82ab97466276a57936bc9299e1cabe
2023-02-22 17:19:22 +00:00
Translation updater bot d190578c9c Localisation updates from https://translatewiki.net.
Change-Id: I3e7da01af17e7aa9dca3344cd89277fa67072549
2023-02-20 09:46:06 +01:00
Translation updater bot 88bbaba129 Localisation updates from https://translatewiki.net.
Change-Id: I7f37d8bb63a41c98f845e4c21e06a88223b3649c
2023-02-13 08:29:40 +01:00
Ed Sanders f292da4254 Fix icon of re-use reference tool
Also update documentation in qqq.json with newer icon names.

Change-Id: I3cefe65c78e9438a7d29fbcd436ffad043d500e2
2023-02-11 14:07:01 +00:00
Translation updater bot 5cd7fa82a0 Localisation updates from https://translatewiki.net.
Change-Id: Idce3d50dfbd235dafede1c6238da70335415e21e
2023-02-08 08:39:25 +01:00
jenkins-bot b85fcb759c Merge "Mark config parameter as optional in context classes" 2023-02-02 17:08:53 +00:00
Translation updater bot 466f5331b1 Localisation updates from https://translatewiki.net.
Change-Id: Ie72e35230204399a3b2668dd2ef86ed5584595e4
2023-01-30 08:29:23 +01:00
Translation updater bot bfd01b97fe Localisation updates from https://translatewiki.net.
Change-Id: I744faafaa4a4824e1ae9ece7cef7e36a341452c9
2023-01-26 08:50:53 +01:00
Bartosz Dziewoński a845923a65 Specify document base URLs in more test cases
Depends-On: I0e301bef38d97fa2234aa901c787360d9fbde8a3
Change-Id: I07a8c097dba0f5572c0aedf4febdf1434063ea6f
2023-01-22 16:00:09 +01:00
jenkins-bot 0771532b25 Merge "Remove 'origTitle' in tests" 2023-01-09 18:50:12 +00:00
Translation updater bot 8c50157d78 Localisation updates from https://translatewiki.net.
Change-Id: I31fa4326793e8ea398af83fb2c6db03b5a5756cf
2023-01-09 09:25:43 +01:00
Translation updater bot c42c4b88f1 Localisation updates from https://translatewiki.net.
Change-Id: I8d9b60ed936428cc9d79cb0ed5526f1f468ecd36
2022-12-29 10:01:01 +01:00
Bartosz Dziewoński c0746c7fa8 Remove 'origTitle' in tests
Depends-On: I0ad0a655380eb2fb29b5ac01e2e399ac550ce34a
Bug: T325766
Change-Id: Ib5c33aceb9430aba49c692552b54427e64a787f3
2022-12-22 17:57:41 +00:00
Bartosz Dziewoński b89db98b7a Use more realistic fake data in test cases
Change-Id: Ie5a30fe254bd69db4f8fe363baeb926282897d00
2022-12-22 10:47:15 +00:00
Translation updater bot ccaaec68f0 Localisation updates from https://translatewiki.net.
Change-Id: I8bf6a0f67c44f1e66580fcbd93b58f560b955cad
2022-12-21 09:14:24 +01:00
Translation updater bot 8013badd20 Localisation updates from https://translatewiki.net.
Change-Id: I3e4071ba144218f06ffc988ba0e66cdbf310626b
2022-12-19 09:03:36 +01:00
Translation updater bot 560e8a74e9 Localisation updates from https://translatewiki.net.
Change-Id: I3f9e9943956ed972003fc1c55296dba72a6341fa
2022-12-15 11:35:20 +01:00
Translation updater bot 5ac0d123f6 Localisation updates from https://translatewiki.net.
Change-Id: I2fd3796f7762743252982796ff9b861d181910b7
2022-12-13 08:16:41 +01:00
Translation updater bot e94f6060fe Localisation updates from https://translatewiki.net.
Change-Id: I4d0c5f3f49d15ae98c64a037b7238dd28c1bc0d3
2022-12-01 08:15:07 +01:00
Translation updater bot eaf1c8d8c0 Localisation updates from https://translatewiki.net.
Change-Id: I83ad0d014dc01687256e1cd0c3ce3f6327dd9862
2022-11-21 08:15:32 +01:00
Bartosz Dziewoński 14bb8d8fa1 VE: Use <sup> instead of <span> in CE HTML
Parsoid now uses <sup> tags instead of <span>.
We already changed it in DM HTML a long time ago
(see ve.dm.MWReferenceNode.static.toDomElements).

Bug: T323343
Change-Id: If04a8bd36e0bb0c31e5f60ae54cb54f13fa65720
2022-11-18 13:11:23 +01:00
Translation updater bot 24c3102fa6 Localisation updates from https://translatewiki.net.
Change-Id: I9f58b7d79190b7801d01f30b6207fc266b5285b5
2022-11-18 09:17:44 +01:00
Translation updater bot 83158b3505 Localisation updates from https://translatewiki.net.
Change-Id: I7e93ffd351034791727ac0f86160722235c5e9d5
2022-11-17 08:26:39 +01:00
Translation updater bot 5e5949a539 Localisation updates from https://translatewiki.net.
Change-Id: Ia319e88d1c5cee3c7d7334ebe9fa97a836682e9e
2022-11-07 08:33:35 +01:00
Translation updater bot ae70af75ad Localisation updates from https://translatewiki.net.
Change-Id: I1eef1bba32cb6ff3b5c5653e6a816b9ebb7f91aa
2022-11-04 09:02:03 +01:00
Translation updater bot 30a3cb2737 Localisation updates from https://translatewiki.net.
Change-Id: Id717073d71df9469c6a32127ebf1fe2670fbdb2e
2022-11-01 08:51:34 +01:00
Translation updater bot be3432202f Localisation updates from https://translatewiki.net.
Change-Id: Ide0a0d079b900fb3714ce683c9d42a3d5046fdf6
2022-10-31 09:45:26 +01:00
Translation updater bot 16c6aeb54d Localisation updates from https://translatewiki.net.
Change-Id: If27620aea637c88c337e19580fee03f7be445bfe
2022-10-24 08:22:19 +02:00
Translation updater bot f8cd1311c0 Localisation updates from https://translatewiki.net.
Change-Id: I6c8fd5fe85ef2d9f01cc3d37b0e0b4eba562cf9b
2022-10-20 08:31:02 +02:00
Translation updater bot 6c24ea3560 Localisation updates from https://translatewiki.net.
Change-Id: I7d915d246519b1edc1466fc7dc42aea9a993558b
2022-10-17 08:20:40 +02:00
Translation updater bot 9859d07429 Localisation updates from https://translatewiki.net.
Change-Id: Iefc40e68e83f48c9379cc53d0788f4d9508b3463
2022-10-14 08:41:21 +02:00
Translation updater bot ef4dd425bc Localisation updates from https://translatewiki.net.
Change-Id: I4cbb7e9ea4adb1b90380de89e2edce2c42e75e95
2022-10-13 08:08:16 +02:00
Translation updater bot 405ec15ab3 Localisation updates from https://translatewiki.net.
Change-Id: Ib3d9ffca8214dca525e38362e7aee9310a86cb8b
2022-09-27 08:31:52 +02:00
Translation updater bot 69fd353fe2 Localisation updates from https://translatewiki.net.
Change-Id: I59135ec6581d8a4972540f0077608c355cb9fca5
2022-09-26 08:14:48 +02:00
Translation updater bot e58a6f070a Localisation updates from https://translatewiki.net.
Change-Id: Ie9fd4625eca952cb50cea2f4c1bde5436e27ffa7
2022-09-23 08:28:42 +02:00
Translation updater bot 287b38927c Localisation updates from https://translatewiki.net.
Change-Id: I05c29c9567cc184668c9ec7dd21902ae0b936b4c
2022-09-19 08:24:09 +02:00
Translation updater bot 8230c0f8ba Localisation updates from https://translatewiki.net.
Change-Id: I06b418357090b496c677d9068cd3e5f6b73ce32d
2022-09-14 10:31:21 +02:00
Translation updater bot 851bb6c712 Localisation updates from https://translatewiki.net.
Change-Id: I7ceceedea1f25c44a26074592fbbe5cf050ab938
2022-09-13 09:25:44 +02:00
Translation updater bot 95dac62e63 Localisation updates from https://translatewiki.net.
Change-Id: Ic02c6028c58845eb8e1a7333d95433ee94f8e868
2022-09-09 10:09:43 +02:00
Translation updater bot 3ba21b2e1d Localisation updates from https://translatewiki.net.
Change-Id: If8fedc03b3367596765c4dcbb0ca1749f116b823
2022-09-07 09:54:25 +02:00
Translation updater bot e843751ef6 Localisation updates from https://translatewiki.net.
Change-Id: I26d6b5159da04a4e3e2933ffbf5c20047dd0ad0d
2022-09-05 10:10:08 +02:00
Translation updater bot dd6bd89224 Localisation updates from https://translatewiki.net.
Change-Id: Ia452e01700dd013b146ceb4a7dc7f92ec577ac9d
2022-08-31 09:34:52 +02:00
Translation updater bot 0d70d5a04c Localisation updates from https://translatewiki.net.
Change-Id: Id25442ec77be05f63133c29b9a22f980e6a076ed
2022-08-29 09:13:32 +02:00
Translation updater bot 71f3c02bfb Localisation updates from https://translatewiki.net.
Change-Id: Iadaad991539c753fbed211b60abda4a59ff2626f
2022-08-26 08:22:27 +02:00
Translation updater bot ac82007f55 Localisation updates from https://translatewiki.net.
Change-Id: Ia83a23cb09a9775880ed610ec7540a9e25e05df3
2022-08-25 08:25:45 +02:00
Translation updater bot 807d8adca9 Localisation updates from https://translatewiki.net.
Change-Id: I9be1a069383d062cba6b77b271126e207d1bd8e8
2022-08-22 08:22:26 +02:00
Translation updater bot f8d013f5d9 Localisation updates from https://translatewiki.net.
Change-Id: I72f7df66e3c38db6c000de10f3f7df92892cdc09
2022-08-19 08:29:04 +02:00
Translation updater bot 847cba5fed Localisation updates from https://translatewiki.net.
Change-Id: Ib409d16995cfc60588ef28234dddb34356c4984f
2022-08-08 08:58:13 +02:00
Translation updater bot 1b4bc3b420 Localisation updates from https://translatewiki.net.
Change-Id: I733ffa6735202a8644c472f1162ae3aada53c2d4
2022-08-05 08:33:23 +02:00
Translation updater bot cd6604aa63 Localisation updates from https://translatewiki.net.
Change-Id: Icd247637aed892a79d03544385cd91ecfa7b5171
2022-08-03 08:18:00 +02:00
Translation updater bot 202d604127 Localisation updates from https://translatewiki.net.
Change-Id: I9d77733cae4fe78c50ee8d74d8ed7db868b4489d
2022-07-28 08:56:33 +02:00
Svantje Lilienthal a6e66f7e65 Remove overwrite of autoExpandSidebar
Since the sidebar is now necessary we do not need the overwrite of autoExpandSidebar anymore.

Bug: T313704
Change-Id: I922f951a9eca31a90b5368118629b8c27dea67a5
2022-07-25 16:31:38 +02:00
Translation updater bot c51d1f86f2 Localisation updates from https://translatewiki.net.
Change-Id: I3ad6f7d5447e2d3651e224ff206757693ebcb819
2022-07-25 08:35:35 +02:00
Translation updater bot 91b4a05262 Localisation updates from https://translatewiki.net.
Change-Id: I20356c4ec975be67af73ddfbe96cd53638536f7c
2022-07-21 09:03:22 +02:00
Translation updater bot f139bc966e Localisation updates from https://translatewiki.net.
Change-Id: I491f508a34596dd9cb1ada32ccf8a5a04f650111
2022-07-15 08:42:46 +02:00
Translation updater bot 01dd229d9e Localisation updates from https://translatewiki.net.
Change-Id: Ie09bc60532b91329ee83c48bb114b0270525d503
2022-07-14 08:47:42 +02:00
Translation updater bot 7e1805ea45 Localisation updates from https://translatewiki.net.
Change-Id: I1c92edb31b7d99f96b4858a677a9440d63f598d7
2022-07-07 08:50:02 +02:00
Translation updater bot 4d4ee60996 Localisation updates from https://translatewiki.net.
Change-Id: I3fbd6310db4423c3e15371551e4cd634044a6555
2022-07-04 08:21:45 +02:00
jenkins-bot 13d84bd939 Merge "MWReferencesListNode: Support {{reflist}} template with TemplateStyles" 2022-07-01 22:34:32 +00:00
Translation updater bot 6cc4dd6860 Localisation updates from https://translatewiki.net.
Change-Id: Ie21d53827528a258bbd73529776ba301a8d67a81
2022-06-27 08:17:45 +02:00
Translation updater bot ff30af1db1 Localisation updates from https://translatewiki.net.
Change-Id: Ic761fbaf815a7e8952bfcbebb456338cd61cbcb7
2022-06-22 08:13:05 +02:00
Translation updater bot ed07ee710e Localisation updates from https://translatewiki.net.
Change-Id: I4cb518f049cb3cf3809716adaa032fedfd9747e5
2022-06-21 08:30:08 +02:00
Thiemo Kreuz d3f2547ac6 Remove now unused back button-related feature flag
Bug: T310602
Depends-On: Id23d3ac5e1715387c78916adeb8ca5f675005a5c
Change-Id: I2d7219cf8c602effbd3d63267694e380ec8d45d4
2022-06-20 07:49:49 +00:00
Translation updater bot b217ee7e3f Localisation updates from https://translatewiki.net.
Change-Id: I8caaed5d18d27cd0084a965136b8ddab3694a295
2022-06-20 08:16:28 +02:00
Ed Sanders cada626709 Use useView mode of PreviewElement for re-use search widget
Generating the preview from the model is much slower and not
required in this context.

Bug: T310318
Change-Id: I73ab222c268939eb542aaae8b529446eae45abc7
2022-06-15 16:28:39 +01:00
Thiemo Kreuz 56da1e461b Remove $wgVisualEditorTransclusionDialogInlineDescriptions feature flag
The feature is always enabled now.

Bug: T307188
Depends-On: Id8b39d44901dee9118837fc4670d7faa4ef19b43
Change-Id: Ie4d6a06a67f42483b33b703eb4db5966301649f5
2022-06-14 14:35:40 +02:00
Translation updater bot de7b3d8b9c Localisation updates from https://translatewiki.net.
Change-Id: I0a733c1dec2f30cca71738e7c548a6906e47896d
2022-06-13 08:27:38 +02:00
Ed Sanders ee12b00561 MWReferencesListNode: Support {{reflist}} template with TemplateStyles
Bug: T310407
Change-Id: Ib8b0ee39e655b462707bdc09a2cf15a8bc0026db
2022-06-11 01:24:02 +01:00
jenkins-bot cf2c5fd3a0 Merge "CitationContextItem: Manually suppress the generic context item" 2022-06-09 15:15:27 +00:00
Ed Sanders d69f467482 CitationContextItem: Manually suppress the generic context item
Instead of relying on these classes always being descendants
of MWReferenceContextItem (which requires downstreams hacks
in Citoid).

Bug: T310290
Depends-On: I72daa1c5d2490c71591658f186c089ab899b5683
Change-Id: Idbd475a68efd1aff14217de3a05fa3dedc744487
2022-06-09 14:44:27 +00:00
Translation updater bot 2b38c7a06e Localisation updates from https://translatewiki.net.
Change-Id: I3417e835558fdd723199d0926af509046b80e191
2022-06-09 08:16:15 +02:00
Translation updater bot ab4d32ae8f Localisation updates from https://translatewiki.net.
Change-Id: Ic168eed94e74bdfec9ca73c9c08052e65d6c3837
2022-06-07 10:00:30 +02:00
Translation updater bot b0b3f0c6f2 Localisation updates from https://translatewiki.net.
Change-Id: I923474ab092d6638f55d6309dc226b523b9dc126
2022-06-06 09:25:18 +02:00
Translation updater bot 1d5e8fe420 Localisation updates from https://translatewiki.net.
Change-Id: I009e03f89f80d676330f3c986ca75e1ac1ea3ee7
2022-06-02 08:13:50 +02:00
Translation updater bot fd27f22f03 Localisation updates from https://translatewiki.net.
Change-Id: Iabe580118c16337db0fb9a59b451782b1fbc6e64
2022-05-31 08:07:54 +02:00
Translation updater bot 0faa9541cf Localisation updates from https://translatewiki.net.
Change-Id: I7dbde2eb44619c7aff91f04d0eec0220f56720a3
2022-05-30 09:22:43 +02:00
Translation updater bot 6b0dfa2cc5 Localisation updates from https://translatewiki.net.
Change-Id: I44427d3f19ae4a316c72e6affa7dc70e8f1981f7
2022-05-26 08:51:04 +02:00
Translation updater bot 6760950e0d Localisation updates from https://translatewiki.net.
Change-Id: I0a3e0e3afd66855a3d9eef787968ecfb48692096
2022-05-23 08:16:24 +02:00
Translation updater bot 0a0ee0219a Localisation updates from https://translatewiki.net.
Change-Id: I046892e1d1ba92a7cf7ce75eca6b6d48dc478cc4
2022-05-19 08:18:55 +02:00
Translation updater bot 95ef061e76 Localisation updates from https://translatewiki.net.
Change-Id: Ie68cd0662d8dbdc630882003c9234f0dbbf454d1
2022-05-16 08:23:58 +02:00
Translation updater bot 829d11c4a4 Localisation updates from https://translatewiki.net.
Change-Id: Iad7c530624319007e92528f681f6f7565e5d5944
2022-05-11 08:11:14 +02:00
Translation updater bot a7839489e7 Localisation updates from https://translatewiki.net.
Change-Id: Iee4dce698743838ba4aaabb58fc90722eb2cc2a5
2022-04-29 08:42:31 +02:00
Translation updater bot 5b4cd3623b Localisation updates from https://translatewiki.net.
Change-Id: Ia89734da5a9eee0a871ccc59a4230343c6bf27a7
2022-04-27 08:07:56 +02:00
Translation updater bot 3db9b0ee79 Localisation updates from https://translatewiki.net.
Change-Id: I5281fd0c4966250ae40f87f91425b5064eb6a1ba
2022-04-14 08:26:13 +02:00
Translation updater bot 557481d742 Localisation updates from https://translatewiki.net.
Change-Id: Ie7819c5d5d739f823ddf20f1a1e31f0a4bc13b0a
2022-04-12 08:13:54 +02:00
Translation updater bot c48692aba7 Localisation updates from https://translatewiki.net.
Change-Id: I588cba90c40459d0b2872d7a28b55a8355265d59
2022-04-11 08:13:45 +02:00
Translation updater bot 7c9ba1271a Localisation updates from https://translatewiki.net.
Change-Id: I627d02eabfc1c7bd93f987e1ac3d6baf2ccde59c
2022-04-08 08:27:15 +02:00
Ed Sanders bc8daa8ab4 Add small gap between reference body and re-use warning
Similar to the gap between paragraphs.

Change-Id: I27c2f042769876558259f6ea438c6dc39ad4ab40
2022-04-07 18:09:31 +01:00
Translation updater bot c5ededbf5f Localisation updates from https://translatewiki.net.
Change-Id: I64c54ae886651e74e7523baa7390fffd3a5f0825
2022-04-07 08:09:10 +02:00
Translation updater bot e67d53611e Localisation updates from https://translatewiki.net.
Change-Id: Ic70268a26a93082664119cce14f6ee45d093adc2
2022-03-24 08:33:59 +01:00
Translation updater bot c5fb76bf0f Localisation updates from https://translatewiki.net.
Change-Id: If04ea9e3b354150e832207d3a6f0d02082d25f3a
2022-03-23 08:25:07 +01:00
Translation updater bot 08eed806bb Localisation updates from https://translatewiki.net.
Change-Id: I56e38ba969a8634d8ac871975a86ae421020886e
2022-03-17 08:36:47 +01:00
Translation updater bot 2d0c1d174e Localisation updates from https://translatewiki.net.
Change-Id: I191df51fc31dfdfbd0d48e077473e26839f0ff8c
2022-03-16 08:07:22 +01:00
Translation updater bot ac96942bd7 Localisation updates from https://translatewiki.net.
Change-Id: I58b11a3ee64ce165a5e3c15e892c5115989366a7
2022-03-14 08:13:39 +01:00
Translation updater bot e21c73340b Localisation updates from https://translatewiki.net.
Change-Id: Ief32bb0c6f42b830aac2a0875b67df314a2f3c03
2022-03-09 08:09:12 +01:00
Translation updater bot b40d2e206a Localisation updates from https://translatewiki.net.
Change-Id: I1f4968152d4815fdacbcd345c3df54021831ac5a
2022-03-08 09:01:24 +01:00
Translation updater bot a726fc9342 Localisation updates from https://translatewiki.net.
Change-Id: Ib5995878855b5c43a5ce5e45504c18dfb449e179
2022-03-07 08:10:35 +01:00
Ed Sanders 0eb0893c96 tests: Use ve.test.utils.newMwEnvironment()
Depends-On: Ib20c1f5277c5d5a99f5117c82b7cbdeab75d3279
Change-Id: Id5ff5d126f3946621ed36c5f79b5f58624931d16
2022-03-04 13:52:06 +00:00
Translation updater bot a669555da2 Localisation updates from https://translatewiki.net.
Change-Id: I5266910998599b15e2d79dcc246f87bb1df5de49
2022-03-04 08:29:00 +01:00
Translation updater bot 02d73115d6 Localisation updates from https://translatewiki.net.
Change-Id: If90e8f3ef6f3b35ad1ab748a608011d5b1e4dfde
2022-02-25 09:42:55 +01:00
Translation updater bot 06ce2ae2dc Localisation updates from https://translatewiki.net.
Change-Id: Idcf2dd9fbe7abeaadc07a16ac174c8c4c6f6fd6a
2022-02-24 08:48:44 +01:00
jenkins-bot 720adbdafc Merge "Remove hack that hides ref errors unnecessarily" 2022-02-21 18:35:31 +00:00
Translation updater bot 719ccae094 Localisation updates from https://translatewiki.net.
Change-Id: Ifca7f9afda167f6f702629af82e976ee15983284
2022-02-21 08:15:21 +01:00
Translation updater bot bc6eb2d680 Localisation updates from https://translatewiki.net.
Change-Id: Ic72e9519b4c54b6df486faf31a5f97e21d209387
2022-02-17 08:11:32 +01:00
Bartosz Dziewoński 25d474b866 Remove hack that hides ref errors unnecessarily
It was originally added in I661493ab2f in 2013, to hide errors that
would appear when templates containing re-uses of references were
previewed separately from the rest of the page.

It has been made unnecessary when VisualEditor was changed to render
wikitext fragments (such as previewing templates) using Parsoid rather
than legacy parser, in 2014: I8a61d2fab8.

However it wasn't removed then, and then Ide82c96db4 changed the
selector and made it more difficult to understand its purpose (and
caused T301845, seven years later), and then Iba0f25b3eb / I39936ed83d
moved it to this repo in 2016, and then everyone forgot about it.

Bug: T53141
Bug: T301845
Change-Id: I7ac5ed6544575877fe1b6f09951e58b35df9648d
2022-02-16 06:14:01 +00:00
Translation updater bot e241bcc287 Localisation updates from https://translatewiki.net.
Change-Id: If6ec86237901dc3db874e1e5184e6d74c1a86de4
2022-02-15 08:17:03 +01:00
Translation updater bot db4d981822 Localisation updates from https://translatewiki.net.
Change-Id: I1ea2425799f5a2423e9e837f6d33b9f5cc91ca24
2022-02-03 08:43:45 +01:00
Translation updater bot 1678a55352 Localisation updates from https://translatewiki.net.
Change-Id: Ife79d2aad37f1dd29d2f62987f5d8472872fe237
2022-02-01 08:26:46 +01:00
jenkins-bot 8e7093c865 Merge "ve-cite: Ensure references are always unique by generating originalDomElementsHash" 2022-01-31 18:58:03 +00:00
Ed Sanders 1e6968b5c0 ve-cite: Ensure references are always unique by generating originalDomElementsHash
This is a bit of an abuse of the originalDomElementsHash property.
In future we could add a 'uniqueId' attribute, but this would need
to be ignored in a few places in core.

Bug: T299378
Change-Id: I7d1eb362aeb74ba93f5225330226a95535746b92
2022-01-27 01:14:52 +00:00
Ed Sanders b677a88fcc ve-cite: Update diff tests with new ref list HTML
Depends-On: If4ca99fa4532b33f164e298b53cfa1e202035015
Change-Id: I8e45941401448b826fec37d3dba4d6b1d8e53671
2022-01-25 20:46:29 +00:00
Bartosz Dziewoński c22f35964a Update tests for the removal of doc-child-change wrappers
Depends-On: Ib29f23625de9151d50e0f3b7796b15ca9ed89133
Change-Id: I73efd3c581cbb561be3dfc9eeb3524d9f949ea83
2022-01-24 21:58:01 +01:00
Translation updater bot f2c7ac4622 Localisation updates from https://translatewiki.net.
Change-Id: I2c111266e09421c1d07ede4d99a1b3d32d2a6820
2022-01-21 08:13:44 +01:00
Ed Sanders a2c927f8b8 ve-cite: Handle ref nodes with mw:Error RDFa
Bug: T299378
Bug: T299672
Change-Id: I7bc7dfb4fb9c0c9b140b793e6e0b2d00b7fe67e0
2022-01-21 00:00:34 +00:00
Translation updater bot 76858930e2 Localisation updates from https://translatewiki.net.
Change-Id: I3449ea91fd9dc222614dcb6872693424a38ec5bd
2022-01-17 08:11:44 +01:00
jenkins-bot 7fb11b981e Merge "VE tests: Suppress XML warnings" 2022-01-11 18:15:55 +00:00
Translation updater bot 5fa2e7ff97 Localisation updates from https://translatewiki.net.
Change-Id: I4ce8c3d08786f663c219631f0a5b8364e2d76a7a
2022-01-11 08:22:53 +01:00
Ed Sanders 0ef557a509 VE tests: Suppress XML warnings
The XML validator can't handle unescaped < in attributes
so always throws a warning.

Change-Id: Ie49e4080c049dea6eea714abdeb37f6764baaa2a
2022-01-10 14:21:44 +00:00
Translation updater bot cc6ed9e306 Localisation updates from https://translatewiki.net.
Change-Id: Id060c827a35f49994be5f36369ce95d4acd89d3d
2022-01-10 08:11:04 +01:00
Translation updater bot 5045d7ef93 Localisation updates from https://translatewiki.net.
Change-Id: If16fc8280d464b315d9e290a0b8cb8d0493b23d0
2022-01-07 08:24:40 +01:00
jenkins-bot 5802551bae Merge "Use .test() instead of .match()" 2022-01-04 22:09:31 +00:00
Translation updater bot d050c6f48c Localisation updates from https://translatewiki.net.
Change-Id: I69e36c43f9efde457f3b419af36671c3f6b408f3
2021-12-31 09:41:58 +01:00
Thiemo Kreuz 7a2f271ce6 Use .test() instead of .match()
.match() returns the matches. But these are not needed here. The
boolean method is .test().

Change-Id: I9e6f13f25fb8ccc6d3e873288d1100f4a2a56b15
2021-12-29 18:24:22 +01:00
Thiemo Kreuz 266877e11a Mark config parameter as optional in context classes
Change-Id: I3f239e0729eefad256b151bce9291f583ef908ab
2021-12-29 18:23:00 +01:00
Translation updater bot c9a5442ee4 Localisation updates from https://translatewiki.net.
Change-Id: I1bd8c35a6a24c28b1c002e60eb495d04ce78c09b
2021-12-27 09:29:44 +01:00
Translation updater bot e6180d68fa Localisation updates from https://translatewiki.net.
Change-Id: I2b907c6460ac77b19566e7261897983ded694080
2021-12-23 08:37:48 +01:00
Ed Sanders 84489c15b3 Don't attach DOM nodes from the DM store to the main document
Bug: T298147
Change-Id: I194ff1d576547dc717c523a490083fbcf903d87c
2021-12-21 20:32:05 +00:00
Translation updater bot 378f031a00 Localisation updates from https://translatewiki.net.
Change-Id: Id8df69cf761472ac5807c16a5aead70a0e76dcee
2021-12-20 08:20:51 +01:00
Translation updater bot 32f7e6dbd6 Localisation updates from https://translatewiki.net.
Change-Id: I0579d423942ddbed2296cb72656a7b31a2e9b531
2021-12-17 08:16:52 +01:00
Translation updater bot 01df31ecef Localisation updates from https://translatewiki.net.
Change-Id: I640a4c2fc55d66789319918b3ed9c93b93623637
2021-12-14 08:42:30 +01:00
Translation updater bot b28834ebbd Localisation updates from https://translatewiki.net.
Change-Id: I6c138aab2d247c3a7dce5b1d5b3964dd9c12e524
2021-12-10 08:23:34 +01:00
Bartosz Dziewoński 90fb1eba04 ve.ui.MWReferencesListDialog: Fix exception caused by a copy-paste mistake
Follow-up to cf95dbd4be.

Bug: T297418
Change-Id: I7c3970cf5a9b3632438e96513e9e983a5527aa21
2021-12-09 20:53:50 +01:00
Timo Tijhof bee357337c ve-cite: Export citationTools as native object instead of JSON string message
* Remove the overhead of serializing and then re-parsing client-side,
  instead assign it directly as native object literal.

* Move code for array slicing to PHP.

Change-Id: Iedcc8d57d3bddd3fa32a78b4e7ecc25615d94277
2021-12-07 12:53:24 +00:00
Timo Tijhof 471e73a7db ve-cite: Remove redundant check for visualeditor-cite-tool-definition.json
The server always defines this message as `cite-tool-definition.json`
in CiteVisualEditorModule.php, including a transparent fallback that
defines it with the content of `visualeditor-cite-tool-definition.json`.

Change-Id: I27426ed1947c1665e5284e64ec1946b1abeff7d1
2021-12-07 12:53:13 +00:00
Translation updater bot db02766664 Localisation updates from https://translatewiki.net.
Change-Id: I877a7076611026b88529810919f35c888888f43e
2021-12-06 08:18:45 +01:00
jenkins-bot a55f2b97cc Merge "ve-cite: Use proper method for comparing linear data (attempt 2)" 2021-11-30 22:22:35 +00:00
jenkins-bot 345766683c Merge "ve-cite: Add test for simple case of re-used reference" 2021-11-30 21:59:59 +00:00
jenkins-bot ca53985924 Merge "ve-cite: Update CSS classes in tests" 2021-11-30 21:59:57 +00:00
Translation updater bot b8e80d9c11 Localisation updates from https://translatewiki.net.
Change-Id: Ie3e73467398dd5b684cbb006727cfbe316b70922
2021-11-29 08:11:20 +01:00
Translation updater bot 2594ab60f8 Localisation updates from https://translatewiki.net.
Change-Id: I18ecafb1930e6abcd1f269d0ce6475c970cfb8ca
2021-11-25 08:24:01 +01:00
Ed Sanders 1a2ae0682f ve-cite: Use proper method for comparing linear data (attempt 2)
In Ifb0ba3caf8d we removed this reference equality check and replaced
it with a deep object comparison, however due to the fact that
hashes for MWReferenceNodes were simplified in I8c26686d7b to
improve visual diffs, this resulted in a overly simplified comparison
that couldn't distinguish references with the same "name".

Instead do a deep object comparions of the standard node hash object.

Tests added in Ia0bbd40528 assert that this doesn't result in the
regression that caused T296044.

Bug: T296086
Change-Id: I7b37fb54e14bfe28a07f722a2c45fd4e4a2d44f2
2021-11-19 14:24:42 +00:00
Ed Sanders e539a60fb9 ve-cite: Add test for simple case of re-used reference
In our first case we have a reference re-used before it
is defined, but that doesn't trigger the bug that caused
T296044.

Change-Id: Ia0bbd40528228275f0a978a0a459388a04ea2e79
2021-11-19 13:51:21 +00:00
Ed Sanders 638dbbff60 ve-cite: Update CSS classes in tests
Change-Id: I4546a71d541e1d22a4c34e6d0f5173a993792ff9
2021-11-19 13:51:21 +00:00
jenkins-bot ea7f9bf0d3 Merge "Revert "Use proper method for comparing linear data"" 2021-11-19 00:59:20 +00:00
Bartosz Dziewoński 4fcc4bc42d Revert "Use proper method for comparing linear data"
This reverts commit bad697bd32.

Bug: T296044
Change-Id: Ie442e482aa3b60754fe457d835c4cf6400f42d94
2021-11-19 00:35:28 +00:00
Ed Sanders c8b691b8d1 Follow-up cf95dbd: Fix incorrect scope in loop
Change-Id: Iae5ec0321e19bfa1c5f53326bf9d9a3082d96f77
2021-11-15 14:39:15 +00:00
Translation updater bot 021e456751 Localisation updates from https://translatewiki.net.
Change-Id: Ife5dc45d0f4935586ce37027758a887ee8f1c626
2021-11-15 08:11:20 +01:00
jenkins-bot cc111ca5fd Merge "Move eslint client config to modules, fix warnings" 2021-11-09 18:14:37 +00:00
jenkins-bot a11cf9858c Merge "Move var declarations inline" 2021-11-09 18:14:35 +00:00
jenkins-bot a90c67b6e8 Merge "Use proper method for comparing linear data" 2021-11-09 14:00:01 +00:00
Ed Sanders 0d4bb626f1 Move eslint client config to modules, fix warnings
Change-Id: I86857b82fa7d5c47c0056da4ad270fcb2a4d965f
2021-11-03 16:38:31 +00:00
Ed Sanders cf95dbd4be Move var declarations inline
Change-Id: I824a65e72a72e5acf65c54a63299469f7acb649d
2021-11-03 16:38:31 +00:00
Adam Wight 3c02ee38b2 Clean up javascript code smells
These were discovered using SonarCloud.

Change-Id: Ie36fa248e4b395bb97b8969ece6688ec055afb55
2021-11-03 12:28:07 +00:00
Ed Sanders bad697bd32 Use proper method for comparing linear data
Previously we checked the elements were reference-equal
which is fragile and breaks when linear data freezing is
enabled in debug mode.

Change-Id: Ifb0ba3caf8d3e5a67c9694358cac12cc412fe723
2021-11-02 23:15:13 +00:00
Translation updater bot a0ffa6c3f9 Localisation updates from https://translatewiki.net.
Change-Id: I0441ed2deb270c9e9f7bab23269375672fe32826
2021-10-29 08:21:30 +02:00
Translation updater bot ffe592653e Localisation updates from https://translatewiki.net.
Change-Id: I876d53a92164714647e9c960ce15c01a2a5971c6
2021-10-26 08:16:57 +02:00
Translation updater bot 67f8c5cd23 Localisation updates from https://translatewiki.net.
Change-Id: I9157ceb33818cacdd23cee8fd24ced0a864bbf54
2021-10-22 08:14:44 +02:00
Translation updater bot 9a94b09f0c Localisation updates from https://translatewiki.net.
Change-Id: Id4131a628619feefb12f07019c23b02565d4bd2f
2021-10-20 08:36:29 +02:00
Translation updater bot b5f979db1b Localisation updates from https://translatewiki.net.
Change-Id: I6dac2823513fee31b0252cda244e7a6d05a09c95
2021-10-18 15:19:34 +02:00
Adam Wight 53d055d1e4 Only the "show/hide options" button should be hidden
We added this line in order to make the sidebar show/hide behavior
the same as the new VisualEditor template dialog, but it should have
only affected this one button.  When additional actions are added,
such as Citoid's "change reference type" button, these should still
be available.

Bug: T293280
Change-Id: I6b2c716fff991781e36ba21b541ea2ff918cfeb3
2021-10-15 13:42:48 +02:00
Translation updater bot 4c55bcbd94 Localisation updates from https://translatewiki.net.
Change-Id: I15bdf21a6913116a26f0db2d35c41bff9189b8d2
2021-10-06 09:28:06 +02:00
Translation updater bot 00c1a28db6 Localisation updates from https://translatewiki.net.
Change-Id: I1e3932d60abf27cdab341530ce2f948b9dc65f98
2021-10-04 08:55:28 +02:00
Translation updater bot ca7e992234 Localisation updates from https://translatewiki.net.
Change-Id: Id817e900b7a78973f3b3f99bbd366668d8ec3513
2021-10-01 09:29:40 +02:00
WMDE-Fisch a8ea95de72 Fix class doc block for VE action
Seems to be a copy&paste leftover.

Change-Id: Ie5c06dd0d880663a0a4f1bfeb082a106811f03e7
2021-09-30 10:13:39 +00:00
Translation updater bot 79fc5b898e Localisation updates from https://translatewiki.net.
Change-Id: Id4eae6b5d47b9657088d5766c23b09ef534462b2
2021-09-30 08:57:12 +02:00
Translation updater bot 8ad00930a0 Localisation updates from https://translatewiki.net.
Change-Id: I44760079ed1dc6e51c65ccae2454f75c7643f629
2021-09-29 09:01:33 +02:00
jenkins-bot ecf603a5fd Merge "Make citation dialog behave more like VE" 2021-09-28 09:14:05 +00:00