Commit graph

4016 commits

Author SHA1 Message Date
Translation updater bot 8716bd4de0 Localisation updates from https://translatewiki.net.
Change-Id: I16bf4fe4af98ecebd4b0b03d0ae97243d7ecfe98
2023-04-21 09:03:48 +02:00
Translation updater bot 6268635764 Localisation updates from https://translatewiki.net.
Change-Id: I8c1c8a5cc75ab5aca697b8484550280433b3d0da
2023-04-20 08:51:06 +02:00
Nicholas Ray 2179d08a8e Replace slow thumbnail init code with event delegation
Previously, page load executed code that iterated through each image on the
page, attached a click listener, and "attached" a Thumbnail object to the
element.

This execution took 90ms on my low-end phone and seems like it can be replaced
with event delegation instead. This will result in less work on the main thread
during page load and a more responsive user experience.

Additionally:

* Remove redundant check of the primary mouse button. Per the "click" event spec
[1], this click event "should only be fired for the primary pointer button
(i.e. when button value is 0)."

* Move initMediaViewer, initRedLinks, initRedLinksCta into same wikipage.content callback as the TOC mutation.

[1] https://w3c.github.io/uievents/#event-type-click

Depends-On: Ica3e0448e3d687e9c4cf563542dbe44432d196d5
Bug: T241139
Change-Id: Iebb18dfb225b474402c0d8ab5e39c5e9e71d3ad7
2023-04-19 21:13:55 +00:00
Translation updater bot ee72eaa0ec Localisation updates from https://translatewiki.net.
Change-Id: I9c099aa016b82e2a9c24b1006f6d2fd558c0b359
2023-04-19 08:29:11 +02:00
jenkins-bot 05f11e0b28 Merge "Add missing Create account icon on pt.wikinews.org" 2023-04-17 21:40:41 +00:00
jenkins-bot 59fb41cd49 Merge "Use final action name when deciding to display navigation" 2023-04-17 17:52:48 +00:00
Bartosz Dziewoński c542b77a71 Use final action name when deciding to display navigation
Final action name can be different from the 'action' URL parameter.
This method was already used in several places in this code.

Bug: T334727
Change-Id: I803aec7c6d057616b88a8e3f4845ce8de399aa12
2023-04-17 18:54:48 +02:00
Klein Muçi 100def0a8c Add missing Create account icon on pt.wikinews.org
Bug: T333881
Change-Id: I269f5eb571041af2680e1b4af8afeec4d3563a82
2023-04-17 16:09:26 +00:00
Translation updater bot 60046d5c28 Localisation updates from https://translatewiki.net.
Change-Id: I4a24676142100485f09aed9c3565fd168ec2bccf
2023-04-17 09:18:49 +02:00
Translation updater bot b7ba35e158 Localisation updates from https://translatewiki.net.
Change-Id: Ie3efe32f14aa8f1b322478ac70acea65d055b0df
2023-04-13 08:49:17 +02:00
Thalia 52273510fe Add custom styles for temporary user links
Bug: T334581
Change-Id: I0641bab87a8c942fb58e63c08924f5ff9f4472b0
2023-04-12 18:38:28 +01:00
Umherirrender 69dd6f1c5b build: Convert resources/.eslintrc.js to json file
No javascript code in the file

Follow-Up: If778a8176b8a18cc9a5501f7147cc39fc0a48d45
Change-Id: I556d34a0f9e880cd4a0b97d7ef3e0831e2fef5eb
2023-04-11 19:06:04 +02:00
jenkins-bot 5a1b568e58 Merge "selenium: Refactor WebdriverIO tests from sync to async mode" 2023-04-11 15:28:19 +00:00
Translation updater bot 02326edba7 Localisation updates from https://translatewiki.net.
Change-Id: I787aebbd5be760c9f9dbfaa49cd2c0507b223940
2023-04-10 09:51:16 +02:00
Vaughn Walters 677ce50b24 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T293084
Change-Id: I5babbdadf21e9f951f69de93bfca5213a50965aa
2023-04-08 16:18:28 -05:00
jenkins-bot e2a338d860 Merge "Mobile: Sister projects do not align with search results on the left margin." 2023-04-07 12:48:15 +00:00
Translation updater bot 3b26053a1f Localisation updates from https://translatewiki.net.
Change-Id: I9bb4efe3a2835005fd2c8bd7b23956a7b32903b7
2023-04-05 09:10:15 +02:00
jenkins-bot a97b722bd7 Merge "build: Updating npm dependencies" 2023-04-04 13:33:34 +00:00
Translation updater bot 7b3a73e0f3 Localisation updates from https://translatewiki.net.
Change-Id: If40bb23fa7ce1841c843e79cea41412ccf9c0f8f
2023-04-04 09:19:47 +02:00
Umherirrender acaf1f22d4 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0

Bug: T333407
Change-Id: If778a8176b8a18cc9a5501f7147cc39fc0a48d45
2023-04-04 01:48:45 +02:00
Simone Cuomo ca7c9456e7
Mobile: Sister projects do not align with search results on the left margin.
- [x] Remove left padding
- [x] Add space between result and IW result

Bug: T329110
Change-Id: I8085206bd57c5d46d72f6237fe2baf5534365613
2023-04-03 11:57:46 +01:00
Translation updater bot e97a2f4ba2 Localisation updates from https://translatewiki.net.
Change-Id: Iafc25e4515978eddced531522ebe7944eeae862a
2023-04-03 09:22:05 +02:00
jenkins-bot f3a74280be Merge "icons: Remove unnecessary code from SVG files" 2023-04-01 12:22:30 +00:00
thiemowmde 34af9b8745 icons: Remove unnecessary code from SVG files
The extra complexity provided by these SVG source code constructs is
apparently not needed. They look the same as before.

Change-Id: Ia5f5106abea4bf7372af44ed51cebee33c855094
2023-04-01 12:07:12 +00:00
Umherirrender 5bd834e0c7 build: Updating npm dependencies
* stylelint-config-wikimedia: 0.13.0 → 0.14.0

Run stylelint fix to fix the new stylelint rule

Change-Id: I7738ae421e84dd3171355391ebc82dd812b39ca4
2023-03-31 21:50:36 +02:00
Func a5b815903d Remove jquery.tablesorter modules form the dequeue list
Preload via Skin::getDefaultModules() should be allowed to avoid
the separate load request in a fresh environment.

Also, cleanup the code and comments, 'sortable' => true is the default,
no need to specify again.

Bug: T233340
Change-Id: Icc04d2cd2dc85efab64e5c8de68e606cfad61480
2023-03-31 17:31:27 +00:00
jenkins-bot cf5572aeb0 Merge "Remove storybook and update nvm version" 2023-03-31 17:16:54 +00:00
Jon Robson 0dbe68f974 Remove storybook and update nvm version
The Minerva storybook only has 2 stories which look broken.
Given we never actively began using it, I suggest we remove it
from the repo.

Bug: T310004
Change-Id: I42ce4248f376c683ddbbf3f1ec0e275906f6ab45
2023-03-31 09:39:56 -07:00
Translation updater bot 52d8702ee7 Localisation updates from https://translatewiki.net.
Change-Id: I62d72dfe3d443ae6fae817348646c65adaad1b09
2023-03-31 10:00:58 +02:00
Translation updater bot ae1d39ab07 Localisation updates from https://translatewiki.net.
Change-Id: Ia7ae9f321764bdc5958e607523ccf47c08b24e30
2023-03-30 09:04:58 +02:00
jenkins-bot 9ac43daf8e Merge "Remove redundant styling in Minerva" 2023-03-29 21:00:34 +00:00
Translation updater bot 23a5d3078c Localisation updates from https://translatewiki.net.
Change-Id: I5ac53a177086c0c8d7ad9ebcf324e22378c8e07e
2023-03-29 09:06:20 +02:00
suecarmol dfabe839fa Remove redundant styling in Minerva
Removed redundant CSS rules in Minerva. They were duplicated from core.

Bug: T325574
Depends-On: I66682ea78c796bd587e3fa002b4176cbdd1ccd0d
Change-Id: I89d66406cea65ff94819ac70c0ee54a7aa6bf6ba
2023-03-28 13:42:05 -06:00
Jon Robson 831e3d93b7 Drop dead code relating to Minerva-specific messages in overflow menu
Remove an unnecessary line as follow up to
Ifd10da690a33e7fc5790a7b444b62fbfd1b95d98

Change-Id: I6f279d116d94c9840d453a3b50ea8ac6b66e7433
2023-03-28 16:31:21 +00:00
Translation updater bot 7995bfd7ad Localisation updates from https://translatewiki.net.
Change-Id: I4c079c951c0869caff8f94e7321b1e7bfb7c3f7d
2023-03-28 08:42:56 +02:00
Translation updater bot 482d0d238e Localisation updates from https://translatewiki.net.
Change-Id: I381c439ac714804387b9bbabb30b8ade475557ba
2023-03-27 08:44:11 +02:00
jenkins-bot b09264b1f9 Merge "Make toolbox and actions menu more flexible to extension" 2023-03-24 16:25:02 +00:00
Translation updater bot 9714a824c0 Localisation updates from https://translatewiki.net.
Change-Id: I7f1f0a3e4d847302e5e44d7ecc1ea10336b7c07e
2023-03-24 09:32:40 +01:00
Jon Robson 666ebaae96 Make toolbox and actions menu more flexible to extension
Adjust the behaviour so the existence of an icon is all that is
needed to populate this menu. This will allow discussion tools
to extend the menu with their own item(s)

Depends-On: If2972da4456705f4a2f0cea90e73d0207a36a306
Depends-On: Ia9a9a08c68be652c16692db30e0efbe02fbfba0d
Depends-On: I2b85b9ac6997d07ed4ff995693f083d0ad1216dc
Bug: T332730
Change-Id: Ifd10da690a33e7fc5790a7b444b62fbfd1b95d98
2023-03-23 17:25:50 +00:00
Jon Robson a923e702d5 Enable core interface styles on mobile
Per ResourceLoaderSkinModule disabling these styles is not
recommended. Enabling them is also now needed to support IP masking.

Bug: T325768
Change-Id: Ia7f2eb6ba902ebfc9364147ec0692eaae124469e
2023-03-22 20:34:24 +00:00
Translation updater bot 8944fd90e6 Localisation updates from https://translatewiki.net.
Change-Id: I97d540112ae6023ec3998259aa4d9c94b052fd0c
2023-03-22 09:18:43 +01:00
jenkins-bot e1ebb4b196 Merge "Remove talk page tools" 2023-03-21 19:03:13 +00:00
Translation updater bot 8049f730a1 Localisation updates from https://translatewiki.net.
Change-Id: I13150c2938fffc4baebc67b027125e808692cbfd
2023-03-20 09:05:09 +01:00
jenkins-bot 06e046b03a Merge "Import Codex tokens into mediawiki.skin.variables.less" 2023-03-17 23:58:15 +00:00
jenkins-bot e5caabc136 Merge "Add languages to Minerva HTML" 2023-03-17 23:29:45 +00:00
Jon Robson b28d802693 Add languages to Minerva HTML
Bug: T331905
Change-Id: I55a25dfb8aba3d1b589a36ba4cba3bba0fe710a1
2023-03-17 20:37:32 +00:00
Roan Kattouw 221bfd981b Import Codex tokens into mediawiki.skin.variables.less
I04f9e48a1cf9dee915cf51e1e12b17ff0a595a06 provides neutral values for
the Codex tokens in mediawiki.skin.defaults.less in MW core, and expects
skins to import the appropriate Codex themes in their
mediawiki.skin.variables.less.

For MinervaNeue, import the Codex tokens for the “WikimediaUI” theme.
Remove variable assignments that are now redundant because their
values are the same as the Codex tokens.

After importing the Codex tokens, override some of their values where
necessary so that all variables' values stay the same(*). We should
consider whether to remove some of these overrides in a follow-up patch,
but keeping everything the same for now makes this change less
disruptive.

(*) As in the core change, one variable's value does change:
- @max-width-breakpoint-tablet from calc(719px) to 719px
This has no visual impact.

Bug: T325237
Depends-On: I3a8c89d8558022077be1f32c6a6f4733b6302948
Change-Id: Iafb3c60df0de87f7ba234b5972e75d85c046c4f9
2023-03-17 20:21:33 +00:00
Translation updater bot 4ed7594828 Localisation updates from https://translatewiki.net.
Change-Id: I29d5ddb80846ad3b9cde5ae8069897e2e157a67b
2023-03-17 09:25:37 +01:00
Translation updater bot c808b213b2 Localisation updates from https://translatewiki.net.
Change-Id: I2c10312bec06787a0d3f389ff4eb24f25c14762b
2023-03-15 08:52:25 +01:00
Bartosz Dziewoński 8c0f0c578e Remove talk page tools
Bug: T319145
Change-Id: Ib432564e1049f18334653e5eb3981f0f051582b3
2023-03-13 18:21:52 +00:00