Commit graph

20609 commits

Author SHA1 Message Date
Translation updater bot e2e5a62727 Localisation updates from https://translatewiki.net.
Change-Id: If07a3888cd2bc4f6d0f2b3c7543d5dd7ae50c450
2023-02-01 09:19:05 +01:00
jenkins-bot e9fd00aa7f Merge "build: Remove unused 'targets' property for QUnitTestModule" 2023-01-31 21:18:02 +00:00
Ed Sanders 4155ac51f6 Document need to remove data-mw-section-id attributes when saving
Bug: T328268
Change-Id: I429d692053c3bf02135b57471b76f72519221e99
2023-01-31 15:14:16 +00:00
Brandon Fowler 988097b09a Add language and direction to preview
Bug: T328388
Change-Id: I5ea63a743d9e497133ad6f35ba64d3a754eb7f5d
2023-01-31 00:18:14 +00:00
jenkins-bot 299110c446 Merge "Doc comment: Replace nbsp with normal space" 2023-01-30 17:46:29 +00:00
jenkins-bot ab8f3ece5d Merge "Authors.txt: Remove old reference to fork" 2023-01-30 17:46:00 +00:00
Bartosz Dziewoński b5a0450567 Update VE core submodule to master (6ed9b00f1)
New changes:
37b26cd7a Minor fixes to AUTHORS.txt
24151ec02 ve.ui.CommandHelpDialog: Move populating of dialog to getSetupProcess
a099b59f5 Localisation updates from https://translatewiki.net.
b45f88fd5 Update papaparse to 5.3.2

Bug: T326946
Change-Id: I83e367d5d7fa5952f942d86e3d2965f4ebf489e8
2023-01-30 17:16:10 +01:00
jenkins-bot 2fdac8851c Merge "Revert "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"" 2023-01-30 14:13:38 +00:00
jenkins-bot e5837cd9f0 Merge "Revert "Remove references to mediawiki.Uri"" 2023-01-30 14:13:35 +00:00
Bartosz Dziewoński a92dce4999 Revert "Rewrite mw.libs.ve.getTargetDataFromHref with URL API"
This reverts commit 461c76981f.

Bug: T328143
Change-Id: Ib59192c650736eac9d4a2db130c3e29720c30486
2023-01-30 13:52:53 +00:00
Bartosz Dziewoński afe3b7187e Revert "Remove references to mediawiki.Uri"
This reverts commit 15bbafbe8c.

Bug: T328143
Change-Id: I57e6d953ed5a1735541987a256ad39037170da5a
2023-01-30 13:52:26 +00:00
Ed Sanders 143291b9d0 Doc comment: Replace nbsp with normal space
Change-Id: I5f44f2c3fc80ad6e29eaa8a5aaab2df53614e6f4
2023-01-30 11:09:37 +00:00
Ed Sanders f0516deef4 Authors.txt: Remove old reference to fork
Change-Id: I7d6240fb97047e56687afcd8fbf3d0f5a6fa7c4f
2023-01-30 11:08:41 +00:00
Translation updater bot 04b370230d Localisation updates from https://translatewiki.net.
Change-Id: I2f503345aa44871c8f094b55916065f57a632a4f
2023-01-30 08:31:07 +01:00
Ed Sanders c5cccfc85b Set a min-height on surface in Vector 2022
We could do something more complex and compute the height of the
available space, but a fixed height is a reasonable solution with
a fraction of the complexity.

Bug: T328048
Change-Id: I0b7bfa55f23afc16be43b85270666ec6a480ca32
2023-01-28 14:07:11 +00:00
Bartosz Dziewoński e52058fad3 Error logging for native URL errors
Bug: T328094
Change-Id: I7d0e3bb403db7ddbc233d6b0a770533f02883c5a
2023-01-27 10:48:45 +01:00
Ed Sanders 420c0f6c10 ve.ui.MWLiveExtensionInspector: Account for this.selectedNode being null in debounced method
Change-Id: I74ab091d3bfbdd9290429cd50688f458118701e7
2023-01-26 17:58:00 +00:00
Translation updater bot 0b1f41a07d Localisation updates from https://translatewiki.net.
Change-Id: If6a03eac30c8c10da26063590fe9620cac08f915
2023-01-26 08:52:57 +01:00
Jan Drewniak d98e9e83e1 Fix Wikitext editor preview layout in Vector 2022
Accounts for the use of CSS Grid in Vector 2022, in
the 2017 Wikitext editor preview, by placing the heading and
content in named grid areas (`titlebar` and `content`).

Bug: T327778
Change-Id: I66a30e282e808559b4f375f5924ae0d945c058a9
2023-01-24 10:39:40 -05:00
Translation updater bot eb06818b71 Localisation updates from https://translatewiki.net.
Change-Id: I64700f04b80fb793033739582e3d526d4013ccd0
2023-01-24 08:50:00 +01:00
Bartosz Dziewoński 15bbafbe8c Remove references to mediawiki.Uri
Remove dependencies (except a single one that we actually need)
and some config that allowed it to be used in doc comments.

Bug: T325249
Change-Id: I0db6e4ab1c025ac3868d2dc886c13a09d91f8086
2023-01-23 14:59:35 +00:00
Bartosz Dziewoński 461c76981f Rewrite mw.libs.ve.getTargetDataFromHref with URL API
At first I was going for a more minimal replacement of mw.Uri with URL,
until I discovered that this code depends on a mw.Uri bug that would be
difficult to replicate:

  // Expected: Relative URLs are accepted
  new mw.Uri( '/foo' ).toString() // => 'https://localhost/foo'
  // Expected: Protocol is optional
  new mw.Uri( 'example.com/foo' ).toString() // => 'https://example.com/foo'
  // Unexpected: Treated as empty domain with no protocol rather than relative URL
  new mw.Uri( './foo' ).toString() // => 'https://./foo'

So I went for a bigger rewrite to preserve the intent rather than the
exact logic.

I had to change some test cases to use more realistic fake data. They
previously relied on bugs in our URL handling to pass despite the base
URLs being incorrect, particularly for non-short URLs (see T270219).
In my testing non-short URLs behave the same as before in practice.

Depends-On: I07a8c097dba0f5572c0aedf4febdf1434063ea6f
Bug: T325249
Change-Id: I232361266c1dda795b88018c3aaa3d9ecbe42b93
2023-01-23 14:59:23 +00:00
Bartosz Dziewoński e40b73ef57 Update VE core submodule to master (b7ff5aac0)
New changes:
2201b350c Localisation updates from https://translatewiki.net.
da74736c1 Remove unused test code
d1b016e90 Minor test tweaks
551de4f0c Specify document base URLs in more test cases

Local changes:
* Specify document base URLs in more test cases

Change-Id: I0e301bef38d97fa2234aa901c787360d9fbde8a3
2023-01-23 15:57:59 +01:00
Bartosz Dziewoński a3d0ff8449 More realistic mocked data for MWWikitextStringTransferHandler tests
The actual API responses do not have <body> tags.

Change-Id: I5f2ab7d0a4ad33497868f5488e376f9467c1256b
2023-01-23 14:40:11 +00:00
jenkins-bot ca212a94d4 Merge "Minor test tweaks" 2023-01-23 13:01:42 +00:00
jenkins-bot 5c5165e394 Merge "Remove unnecessary test file" 2023-01-23 13:01:40 +00:00
Translation updater bot 44aa186f57 Localisation updates from https://translatewiki.net.
Change-Id: I6a4eeae67cebd695e49c60eff47bf66426c6afd0
2023-01-23 08:24:29 +01:00
Bartosz Dziewoński 0689e9247f Minor test tweaks
Change-Id: Ib20f9665534873bd1d5963664399459d3f5b4234
2023-01-21 19:15:51 +01:00
Bartosz Dziewoński 8371d24c78 Remove unnecessary test file
Change-Id: Ib81f70d290374451c5164bff7adbe4e18b9e2a8f
2023-01-21 15:09:14 +01:00
Ed Sanders 24a89caf93 mw.Target: Allow passing storageExpiry to initAutosave
Change-Id: Idcf50a527e2386122d077c497477057657824646
Depends-On: I4557a8808145fd1a601fe9b3fa1b190f8dba0077
2023-01-21 09:42:26 +00:00
Ed Sanders 2df8a95ac3 Update VE core submodule to master (035756895)
New changes:
4355d697a Replace ListStorage with ConflictableStorage
978061f86 Update SafeStorage and ConflictableStorage with expiry functionality
79019ed88 ve.dm.Surface: Support storage expiry

Local changes:
* Pull through conflictable storage

Bug: T218663
Change-Id: I36e49c01e9f2ddb7d362d539b72a4beca925bcb7
2023-01-21 10:41:21 +01:00
jenkins-bot da426264ca Merge "Work around Firefox bug affecting LazyMultilineTextInputWidget" 2023-01-21 08:43:10 +00:00
Bartosz Dziewoński 8c297bca46 Update VE core submodule to master (5917667a6)
New changes:
1645353c7 Localisation updates from https://translatewiki.net.
153cc2971 Update eslint-config-wikimedia to 0.24.0
b1e205196 Update OOUI to v0.46.2
5917667a6 Localisation updates from https://translatewiki.net.

Change-Id: Ic3994d286e10ec06979a7a9d223fef3a1c6da4c5
2023-01-20 18:41:04 +01:00
thiemowmde 004d92d341 Work around Firefox bug affecting LazyMultilineTextInputWidget
Before the `height: 2.5em` was applied to _both_ the visible
<textarea> and the $clone. While this shouldn't make a difference –
one of the first things .adjustSize() does is setting the $clones
height to 0 – it somehow triggered that Firefox bug.

With this patch we remove the `height: 2.5em` before handing over to
OOUI's .adjustSize(). It looks like this fixes the issue. We might
be able to revert I7560ceb then.

Bug: T317369
Change-Id: I96c2d7d7bf359ff0373d478b2b7e97c8833ba5b6
2023-01-20 12:29:12 +01:00
Translation updater bot 145a55934a Localisation updates from https://translatewiki.net.
Change-Id: If0bcb96c483a236ae33bde6aba62d3773e7c1f2d
2023-01-20 08:43:10 +01:00
Translation updater bot cc6a675bbc Localisation updates from https://translatewiki.net.
Change-Id: I96b43d1946fafd26812faff55d04a4dc20e403c6
2023-01-19 11:32:38 +01:00
jenkins-bot 9272edcbba Merge "Update eslint-config-wikimedia to 0.24.0" 2023-01-18 15:04:45 +00:00
Ed Sanders e4ce6db868 Update eslint-config-wikimedia to 0.24.0
Change-Id: I8299d287721eee6cb6d2354836e82812bf57badd
2023-01-18 14:39:04 +00:00
Wout Gevaert 0b75660801 Use getImageNodes instead of custom filter
Bug: T320874
Change-Id: I4ef69ea2395f310ce48f3e32bbf202713e2c7f15
2023-01-18 13:43:38 +01:00
Translation updater bot cbb6445e3b Localisation updates from https://translatewiki.net.
Change-Id: I68e0c78c8c8912c6ffdc8cac64f6beb8037432c9
2023-01-18 08:30:49 +01:00
jenkins-bot ec556ab12c Merge "Use helper classes from the new namespace" 2023-01-17 18:16:19 +00:00
Translation updater bot 6eba17fe8d Localisation updates from https://translatewiki.net.
Change-Id: I0ab1b23fc558c977bb4c2b37b2cc8bcc490d5010
2023-01-17 08:08:24 +01:00
Derick Alangi deecb3cdcb Use helper classes from the new namespace
Helper classes have been moved to a dedicated namespace
of their own, this patch references the new namespace.

Depends-On: Ieeb7a0a706a4cb38778f312bfbfe781a1f366d14
Change-Id: I5a2792a3536f6d953905561410f0e4966254ccbe
2023-01-16 14:22:38 +01:00
Translation updater bot 7658613cb4 Localisation updates from https://translatewiki.net.
Change-Id: Ifc360886b1276361b6b7cae0253cf39a583795e3
2023-01-16 08:29:44 +01:00
James D. Forrester a3050b0d1e Update VE core submodule to master (225741274)
New changes:
366db6fce Localisation updates from https://translatewiki.net.
5b9f4957c Localisation updates from https://translatewiki.net.
c617d2a3c Localisation updates from https://translatewiki.net.
225741274 Update OOUI to v0.46.1

Bug: T325954
Change-Id: I337bbbc2b5887b73e91705c2b44b96b46ce2cdff
2023-01-12 13:39:27 -05:00
Translation updater bot 08a3af8637 Localisation updates from https://translatewiki.net.
Change-Id: Iad0d1445c225eeb191948341f7399968825003d1
2023-01-12 08:43:23 +01:00
jenkins-bot 78b64f164b Merge "selenium: Remove webdriverio npm package from the VisualEditor extension" 2023-01-11 11:59:28 +00:00
Translation updater bot e86e83d119 Localisation updates from https://translatewiki.net.
Change-Id: I01d2cc802ab3c4700a963fcfa08689e87dbbcb6e
2023-01-11 09:02:56 +01:00
Vaughn Walters 33dc5d0464 selenium: Remove webdriverio npm package from the VisualEditor extension
The `webdriverio` package does not need to be an explicit dependency.
It is a dependency of `@wdio/cli`.

Bug: T325059
Change-Id: I11bb971f9014822790848655647a73a555c4ae3a
2023-01-10 18:38:31 -06:00
jenkins-bot 8d94e10944 Merge "Replace mediawiki.Uri with native URL (ArticleTarget)" 2023-01-10 17:45:40 +00:00