Commit graph

2783 commits

Author SHA1 Message Date
Translation updater bot 89f5a27700 Localisation updates from https://translatewiki.net.
Change-Id: I4e4dd8ed1be2080395eeb2be48f3516ed94b386b
2021-02-26 08:57:24 +01:00
Andrew Kostka 82d54945e4 Combine page and reference preview preferences
Update copy and remove unnecessary reference preview preference
in favor of using the default preference. It seems there is no
stable method to link to the subsections on the preference page
for gadgets. So in all cases does the link just point to the
gadgets pref page.

These changes should only be visible when reference previews
are no longer marked as a beta feature.

Bug: T265709
Change-Id: I7b8ab91331092ada04b230315373548673b9272c
2021-02-25 10:21:16 +00:00
jenkins-bot 229e521fcb Merge "Finalize ReferencePreviewsPopups event platform migration" 2021-02-25 09:09:01 +00:00
Translation updater bot 22ed5e2e1b Localisation updates from https://translatewiki.net.
Change-Id: I4f2f1f2ba204bfad97efc2eb1f2dabf7b6e4962a
2021-02-25 08:39:13 +01:00
Adam Wight 8a857103f7 Finalize ReferencePreviewsPopups event platform migration
Bug: T275009
Change-Id: Ia8d54ea90b4e5fa8ad52a5c809948c90577c908d
2021-02-24 19:48:51 +00:00
Translation updater bot 97d064f363 Localisation updates from https://translatewiki.net.
Change-Id: Iae6fdfef8019d91b0177376f3ea27116c3da8fbc
2021-02-23 08:49:11 +01:00
Thiemo Kreuz 513899d808 Much more relaxed reference type detection
* When there are multiple <cite> elements, the first that contains a
  known class is used. We assume the earlier one must be the relevant
  one.
* When there are multiple known classes in e.g. <cite class="web news">,
  the last one is used. This follows how CSS works.
* There is extra validation if the corresponding message exists, just
  to be sure. This is cheap.

Bug: T274979
Change-Id: Iee3481ea16af96b40faf978e254718e5a48917f3
2021-02-22 11:55:03 +01:00
Translation updater bot 94ed9fedb2 Localisation updates from https://translatewiki.net.
Change-Id: I100eb341d790d439fcde02eef97b383af872a13e
2021-02-22 08:53:23 +01:00
Translation updater bot 663963fdd3 Localisation updates from https://translatewiki.net.
Change-Id: I8887235e1a853d073865b7343ce59f6a9e02e656
2021-02-19 08:32:35 +01:00
Translation updater bot fc58c3b924 Localisation updates from https://translatewiki.net.
Change-Id: I6ca5d022cecf9c3dea3ccf54e0d05df674f00a4b
2021-02-18 08:43:38 +01:00
jenkins-bot 3fd74a2502 Merge "Add cogwheel to disable ReferencePreviews" 2021-02-17 08:19:29 +00:00
Translation updater bot b3215eec78 Localisation updates from https://translatewiki.net.
Change-Id: I20df74f3f92230b0fff370b2bbc6427d3519a574
2021-02-17 08:43:19 +01:00
Svantje Lilienthal 1962372a44 Add cogwheel to disable ReferencePreviews
I added the common styling for the setting icon to the popup.less
and removed the now empty pagePreview.less.

Bug: T234205
Change-Id: I2a82831bc71a4208c4b66c18e2a4613127c43e1f
2021-02-16 15:39:43 +01:00
jenkins-bot 8c575f9cef Merge "Add new reference type "note" without an icon" 2021-02-16 11:29:02 +00:00
Translation updater bot 9ceb0befe8 Localisation updates from https://translatewiki.net.
Change-Id: Icb9eddd48434940e7d9c41ef98392853f7b0440e
2021-02-15 10:06:10 +01:00
Thiemo Kreuz ef4b032513 Add new reference type "note" without an icon
Bug: T274343
Change-Id: Ib9f3fe98baf1d194e686b007a9c535f2b49ac19d
2021-02-11 10:15:36 +01:00
Translation updater bot 2aa2cd6841 Localisation updates from https://translatewiki.net.
Change-Id: Idffa237f6db34907df521897e9f996c4d8a71a47
2021-02-11 08:39:55 +01:00
Translation updater bot 2964abb369 Localisation updates from https://translatewiki.net.
Change-Id: I783faf0030b58c0b7f4474befc5ef006e7dfd8ea
2021-02-10 08:38:58 +01:00
Translation updater bot 7e69ea70ee Localisation updates from https://translatewiki.net.
Change-Id: Id8e4dbb5788d5b9a467cdf44178b43c8c47ac308
2021-02-08 08:43:47 +01:00
Translation updater bot c2ce779aa1 Localisation updates from https://translatewiki.net.
Change-Id: I8c767bb3d4740cf432d6b8c7202db96a42d8d909
2021-02-04 08:43:29 +01:00
Translation updater bot 66118a57b0 Localisation updates from https://translatewiki.net.
Change-Id: I6f8b511d17938f8183d520aefe3d7393352a6062
2021-02-03 08:39:46 +01:00
Translation updater bot b050d4abc0 Localisation updates from https://translatewiki.net.
Change-Id: Ie0d48210923def9108ad90744948ab9fd49d40fd
2021-02-01 08:48:30 +01:00
Translation updater bot 90200caf5a Localisation updates from https://translatewiki.net.
Change-Id: Icd47c66e78e0e9e4f21a51adbfeafb7dd55da5fd
2021-01-29 08:38:30 +01:00
Translation updater bot 22e7bb2cf2 Localisation updates from https://translatewiki.net.
Change-Id: Iac236dc399848fd6d95f3daf0560d60e8ba5ca86
2021-01-27 08:35:13 +01:00
Noam Rosenthal 83c528c7e1 Fix bluriness on low-DPR screens
Request a larger thumbnail to ensure
the thumbnail is served scaled rather
than scaled by the browser.

Bug: T272169
Change-Id: Ibf80f24c949e14c8289b8b0a4e7369dd10ead449
2021-01-26 09:49:50 -08:00
Translation updater bot 8e4160cfe9 Localisation updates from https://translatewiki.net.
Change-Id: I0c8c5cceeee906d6675766ff9f30d3eda33da1ad
2021-01-21 08:32:36 +01:00
jenkins-bot 6c3af4aac2 Merge "Add missing TextExtracts parameter sectionformat=plain" 2021-01-19 16:50:23 +00:00
Translation updater bot c0609e10d9 Localisation updates from https://translatewiki.net.
Change-Id: If30fec6a46464c0a3c667d4a31d9deb0df0afdfc
2021-01-19 08:19:53 +01:00
Translation updater bot 204884b66b Localisation updates from https://translatewiki.net.
Change-Id: I72b252ac675ea4ae4dc78928af263b2ebcd34a8d
2021-01-18 08:39:23 +01:00
Translation updater bot 0c7f5048ed Localisation updates from https://translatewiki.net.
Change-Id: I55009629ce588313929ae2a5ffa907bacfccb800
2021-01-12 08:38:14 +01:00
Thiemo Kreuz 8fbcf6f962 Add missing TextExtracts parameter sectionformat=plain
It turns out the TextExtracts extension is build in a way so
that the parameter plaintext=1 alone is not enough. It does
not really mean "please return plain text" but "please don't
return HTML". It can still return one of three formats:
* Wikitext.
* An intermediate parser format where headlines are not
  `== this ==` but `��2��this`.
* Actual flat plain text.

The default is wikitext. That's why we see `== wikitext
syntax ==` in certain edge-case situations. Forcing it to
"plain" fixes this.

Bug: T271439
Change-Id: I3035fb3df99680af8bbd10c4513aed730013c344
2021-01-08 09:17:35 +01:00
Noam Rosenthal 9d1d5c5fc2 Make CSS.supports more resilient
Following this comment:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Popups/+/647002/5/src/ui/renderer.js#163

Making sure CSS.supports is a function
Before calling it for graceful degradation

Bug: T269336
Change-Id: Iee4050ae14e28667eb8014c223eb925018df7bd3
2021-01-06 15:43:54 -08:00
jenkins-bot 54a2663f9c Merge "Fix storybook IMG assets" 2021-01-06 17:17:47 +00:00
jdlrobson 1679eea477 Fix settings dialog display
Follow up to 23b6332a5b

Bug: T270650
Change-Id: Ic128e84eed69e4fdc7252bb6b315bd3f953eaf73
2021-01-05 12:20:06 -08:00
jdlrobson 9adf023eee Fix storybook IMG assets
When we changed the thumbnail size we changed the URIs to images
but didn't update the local storybook assets.

Bug: T266797
Change-Id: Iea4de1524a2f60cc759d59338882fe236e409bd2
2021-01-05 19:50:40 +00:00
Noam Rosenthal 7b0937c5a8 Use CSS clip-path instead of SVG when supported.
This reduces a lot of churn in creating the SVG
element and related helpers.

When IE11 is dropped, the SVG code-path can also be dropped.

Bug: T269336
Change-Id: I7f91192dedc2a78f1c7c84179cff1687593177c0
2021-01-05 19:26:24 +00:00
Translation updater bot 41fbfd890d Localisation updates from https://translatewiki.net.
Change-Id: Ie55089b8f07db30fbd54178d280adaf9a8a61c72
2021-01-04 08:44:25 +01:00
Translation updater bot 07489c7f36 Localisation updates from https://translatewiki.net.
Change-Id: I17ed0578f01a85b68d96f25a9aa5586d3e021b15
2020-12-30 10:14:43 +01:00
Umherirrender 153e604601 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: Ib659ba0573b056b5686ba51a035a76444a7dd389
2020-12-30 06:20:11 +01:00
Kunal Mehta 8cee30c389 build: Remove maxWarnings: 0 from eslint configuration
This interferes with LibUp's ability to automatically downgrade newly failing
errors to warnings and is a deviation from the settings we typically use.

Bug: T263922
Change-Id: I77cede5ed5d0d3fee9676fc9a0f2a7872d97dd62
2020-12-28 21:56:11 -08:00
Translation updater bot f5f45b497f Localisation updates from https://translatewiki.net.
Change-Id: I66f9c72c1faea77f5f43dbec5b3df2e6a81fdc2a
2020-12-28 10:39:38 +01:00
Translation updater bot 07e25bbb56 Localisation updates from https://translatewiki.net.
Change-Id: I166ab0f6de94be8ae2da34b466a6ca75698551fd
2020-12-23 08:32:58 +01:00
Translation updater bot 33ba3b2a77 Localisation updates from https://translatewiki.net.
Change-Id: I0dbd0d35a0245665c6c3569711402b1a37d4a5ae
2020-12-22 08:32:23 +01:00
Translation updater bot 9b9709cbc6 Localisation updates from https://translatewiki.net.
Change-Id: If881dad24606eefc86215c2e82ef30ad32484bd2
2020-12-21 08:39:47 +01:00
WMDE-Fisch df7481af55 Adjust TODO comment to recent needs in the configuration setup
Change-Id: I9e565dddc6af8ca55613358c6d2eb0ceb58dbd0d
2020-12-14 11:52:06 +01:00
Translation updater bot dcc6ada593 Localisation updates from https://translatewiki.net.
Change-Id: I7574f27037694cfb991c74c4a269e9ffab373f9f
2020-12-14 08:42:58 +01:00
Umherirrender da8f2435c4 build: Updating mediawiki/mediawiki-phan-config to 0.10.5
Change-Id: Ia80b36938fc325c454d241662930c0d145f45ad0
2020-12-13 16:12:07 +01:00
Bartosz Dziewoński c8b8ba7f5f Revert "Remove title attributes at init"
This reverts commit 6bc2077ed5.

The change causes issues with various popular gadgets on Wikimedia
wikis. The 'title' attributes have been the easiest way to determine
the target pages of links, and many gadgets have come to rely on that.

Bug: T269297
Bug: T269873
Change-Id: I49d315a13c327a1c5af51d3de887c0c17642e9fe
2020-12-11 16:53:17 +00:00
Svantje Lilienthal cbd4e673d4 Add qunit test for conflict with popups
Bug: T267951
Change-Id: I47cc8e8565252dc78e39c00c94a07300b4e35593
2020-12-10 15:47:38 +01:00
Translation updater bot 4a66bd40ed Localisation updates from https://translatewiki.net.
Change-Id: I55bf325565089ba7c5b6634d0f0e2ac4562eb5c9
2020-12-10 08:35:32 +01:00