Commit Graph

3879 Commits

Author SHA1 Message Date
bwang
efb6aab4ad Update .gitignore to ignore DS_Store
Change-Id: I9dec5b8677460a67bd8ca87cafc365b334f599aa
2021-09-08 02:58:12 +00:00
bwang
9e952f28af Add support for multiple ULS buttons
- Update document click handler for loading ULS
- Use data attributes to ensure ULS isnt loaded multiple times for an element

Bug: T289815
Change-Id: Iba6cbbd6c6e48a1abfda342421822e3ff2715362
2021-09-07 15:21:26 -05:00
jdlrobson
a55369e0e2 Pull out Vector personal tools styles into skinStyle
Most of the skin styles are no longer needed for modern
Vector. This refactors them so that they only apply
to legacy vector, reducing the overrides needed inside
Vector.

Depends-On: I1edee874a42b070bc319648496ae80a01b6365fb
Bug: T289630
Change-Id: Ic5ab5172d881c48caae6bb3691ccc95515dcdcdb
2021-09-07 06:58:22 +00:00
Translation updater bot
4d1ae715ab Localisation updates from https://translatewiki.net.
Change-Id: I31ff8a85fd1595a4e99aef8636ed4a3f762efc87
2021-09-07 08:11:16 +02:00
Translation updater bot
b70e2f59cd Localisation updates from https://translatewiki.net.
Change-Id: I454c81422e97fccb8a8a7d02a414a720c37befd4
2021-09-06 08:21:25 +02:00
libraryupgrader
35f48f6587 build: Updating stylelint-config-wikimedia to 0.11.1
The following rules are failing and were disabled:
* declaration-property-unit-disallowed-list

Change-Id: I80c8761527844d1cd4d53b21517dc25d2b425689
2021-09-04 23:17:25 +00:00
jdlrobson
9f92d7e759 Register meta data to allow Vector to handle display of this menu item
- Adjusts CSS to defer button/icon rendering to skins that support button
and icons e.g. Vector

Depends-On: Ib518858e06549f252d73d57fd4768f446cc561b9
Bug: T289630
Change-Id: Ie9e30af5468aea9803d77c9a36e480ba2b2e86a0
2021-09-03 19:21:21 +00:00
Translation updater bot
e7cd7ccc3e Localisation updates from https://translatewiki.net.
Change-Id: I84797195c8ed2f646a5f5f201c70419a42ec8043
2021-09-02 08:26:55 +02:00
Jdlrobson
4c3907e61d Revert "Language button icon/button should be consistent with other buttons"
This reverts commit 5ca2ccb58a.

Reason for revert: Per Niklas's review (T289630#7324439)
I've also seen a much better way to do this which limits the change
to modern skins so I'll post a follow up shortly.

Change-Id: I99802c60390e23eaa0de21462788da622a35a37a
2021-09-01 15:35:05 +00:00
jdlrobson
5ca2ccb58a Language button icon/button should be consistent with other buttons
This converts the language button into a mw-ui-button which is the
class we're currently using in both Vector and Minerva. In future
this can become a WVUI button using the same roadmap as Vector
and Minerva.

This fixes the issue with the icon resize, as well as the issue
with the button lacking appropriate hover/focus states.

Bug: T289630
Change-Id: I8242986e8762a8f663f8cab07c54481e14223320
2021-09-01 08:05:54 +00:00
Translation updater bot
44a2682bcc Localisation updates from https://translatewiki.net.
Change-Id: I6b6e948799aa205b945ce166c29c39edb5c5ad7a
2021-09-01 08:16:50 +02:00
Translation updater bot
6eb520b71f Localisation updates from https://translatewiki.net.
Change-Id: I31c2276e85969324d6d9d3e2e1bc2c074b989aa7
2021-08-31 08:16:14 +02:00
Translation updater bot
7f06600cd6 Localisation updates from https://translatewiki.net.
Change-Id: Iae3dbd62e970cdf6de1c6fbe94b1806c41117fc7
2021-08-30 08:20:47 +02:00
Translation updater bot
27d15a95ed Localisation updates from https://translatewiki.net.
Change-Id: I085976b5a5974781d61c2c26b7efb8e612909751
2021-08-23 09:04:32 +02:00
Translation updater bot
b9d9ac390d Localisation updates from https://translatewiki.net.
Change-Id: I0a8cd58ce91cd8030b9577e93be0601bee412d12
2021-08-18 08:13:54 +02:00
Translation updater bot
fcce696e9a Localisation updates from https://translatewiki.net.
Change-Id: I777dda5b01e486f5dda5c991552ba02f13b9e241
2021-08-17 08:19:50 +02:00
Translation updater bot
ca6cbc2578 Localisation updates from https://translatewiki.net.
Change-Id: I90a0c1df4a198e77b2f7e9fc7a98edf5397bb460
2021-08-16 08:16:59 +02:00
Alexander Vorwerk
0d9e1b134a Avoid using User::setOption()
User::setOption() is deprecated and should be replaced with
UserOptionsManager::setOption()

Bug: T277818
Change-Id: I5ac58c4be5046d4457de24b63b062aa238e972b6
2021-08-16 06:00:28 +00:00
Alexander Vorwerk
77b61af6b8 Use constant MW_VERSION instead of deprecated global $wgVersion
Change-Id: I60647666d04b43d2cb01ff33310a325fba9bc325
2021-08-13 03:03:03 +02:00
Translation updater bot
48bdeb5a4f Localisation updates from https://translatewiki.net.
Change-Id: Iae8b8400c57ed32ea122b1152eaaf4f8b4583238
2021-08-11 08:19:41 +02:00
Niklas Laxström
36d79be608 Remove ULSEnableAnon
I am not aware of anyone using this niche configuration where ULS
visible interface is enabled only for logged in users. Simplify
code and updated comments.

Change-Id: I9f0a5969fdc76ca790d961ee3035fdb27ece9c0c
2021-08-09 23:25:01 +05:30
Translation updater bot
f189e42801 Localisation updates from https://translatewiki.net.
Change-Id: I83caf732f1f216d273ed2301b2e22c22a9055e44
2021-08-09 08:25:26 +02:00
Translation updater bot
1c3d31cbe2 Localisation updates from https://translatewiki.net.
Change-Id: Id1ef3d710805ec28e5138e35300771d1a964685b
2021-08-06 08:14:06 +02:00
Translation updater bot
ef99ad8b72 Localisation updates from https://translatewiki.net.
Change-Id: I717f81e797389b498d86ce9840e51c9811dec53d
2021-07-26 08:12:50 +02:00
libraryupgrader
05eb6b00f0 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0

npm:
* svgo: 2.3.0 → 2.3.1
  * https://npmjs.com/advisories/1754 (CVE-2021-33587)
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: I495a2df80eaf8f96a635b4d4e2cc80813922ddb0
2021-07-24 03:28:36 +00:00
jdlrobson
01c7a4fb0b Restrict compact language button styles to legacy Vector
These styles are causing the language button to move downwards
on page load in modern Vector

and legacy Vector.

See T191021#7231088.

Bug: T191021
Change-Id: I9d62ad8a79168bdaebace07fb82f22da4c534b5c
2021-07-22 23:47:01 +00:00
Kartik Mistry
5a7a6a5fe3 Update version before MLEB release
Bug: T286474
Change-Id: I2bc4406addfad28a843fd4f5328882b1f388c7c7
2021-07-20 11:49:38 +05:30
Translation updater bot
177e1ec995 Localisation updates from https://translatewiki.net.
Change-Id: Iceb88a2692d391a5e485b2e8bbaaa19a81f05337
2021-07-19 08:16:39 +02:00
Niklas Laxström
03d099eddc Fix regressions in ULS entry point setup
* Link in preferences is again opening ULS
* "personal" entry point now works even with compact languages
  preference disabled

I added lots of comments and refactored this code to give things
better names to make this code easier to understand and maintain
and hopefully reduce the amount of bugs in the future.

Bug: T282956
Bug: T286574
Change-Id: I9cd6776ea6664e33fd63c49dfa77c5f004fba799
2021-07-16 19:23:34 +00:00
Santhosh Thottingal
4f40e08f9c Remove deprecated .box-shadow mixin
Replace with unprefixed box-shadow

Bug: T286692
Change-Id: Icb448cb092c214b0c467864201a2469076134a4c
2021-07-15 06:52:46 +00:00
Translation updater bot
8f91f61ec6 Localisation updates from https://translatewiki.net.
Change-Id: I2da4a943138e95a36aa585bbed06648b5f735b79
2021-07-15 08:12:39 +02:00
Translation updater bot
bb2af11ad7 Localisation updates from https://translatewiki.net.
Change-Id: Ieddec59a17d965d21ec6792974ab0c2254a94a25
2021-07-13 08:12:08 +02:00
Translation updater bot
5465793da8 Localisation updates from https://translatewiki.net.
Change-Id: Ifeb559c060789c0eca471249c8159f9837a33171
2021-07-12 08:06:58 +02:00
Amir Sarabadani
b50ff9275d Fix jquery deprecation
Applying PR#52 (https://github.com/wikimedia/jquery.webfonts/pull/52)

https://api.jquery.com/jQuery.trim/

Bug: T280944
Change-Id: I7cf706b905a27079a06737b252805e199939d8df
2021-07-10 00:30:33 +02:00
Translation updater bot
491972d90a Localisation updates from https://translatewiki.net.
Change-Id: I8168270aa52912672a9f695226685694cd118b22
2021-07-09 08:07:16 +02:00
Translation updater bot
46ec59a2ee Localisation updates from https://translatewiki.net.
Change-Id: I1207375664da2ecb08271a6543466e50405236f7
2021-07-05 08:07:26 +02:00
Translation updater bot
412ed2f4d1 Localisation updates from https://translatewiki.net.
Change-Id: Ie54a7bdff0563a4f0a37f4c6c261e52616b86c02
2021-06-30 08:26:27 +02:00
Translation updater bot
1775434d31 Localisation updates from https://translatewiki.net.
Change-Id: Iff39db5f14955aabe37fc290d601facee6fbc09d
2021-06-24 08:27:26 +02:00
Niklas Laxström
18b1df166d Remove IRC
Change-Id: If1c3e178feffc1e5a0b2125e7f919853fdacbbfa
2021-06-23 10:18:20 +03:00
Translation updater bot
5e3590864f Localisation updates from https://translatewiki.net.
Change-Id: I968fb736f801b6ed04ef4eda80575773e9bfc2fa
2021-06-22 08:10:04 +02:00
Sam Smith
3b9134f8ac launchULS: Add context to interface.language.change hook
Now that the interface.language.change hook is fired when the user
switches language using the Compact Language Switcher, we should provide
additional context to the UniversalLanguageSelector instrument.

Bug: T280770
Change-Id: I6c4ddf9738e527ac42581c9fb4924ed1d12748b4
2021-06-21 21:25:31 +00:00
Translation updater bot
8d4e548481 Localisation updates from https://translatewiki.net.
Change-Id: I673ab541d500df59b991ff2bcde4b915f9b0a416
2021-06-16 08:19:58 +02:00
Translation updater bot
112845b061 Localisation updates from https://translatewiki.net.
Change-Id: Ic239adda79d7b5aba889f2efdbd4eb5cf5fa51c8
2021-06-15 08:33:45 +02:00
jdlrobson
09a2b33bd6 Restore compact languages button user preference
The compact languages button user preference will be applied to
any compact language button provided by the skin, this allows users
to opt out of the feature as before.

This will be used immediately in Vector in
I436554d9d51470d277d59c2c71e08124735e12fd

Bug: T282149
Change-Id: I726c61d4c6895a28b999781752535e0ddc961744
2021-06-14 15:24:53 +00:00
Translation updater bot
a463ea4c2b Localisation updates from https://translatewiki.net.
Change-Id: I19286f47b4581e0dfd8640d55d50ed72bf627714
2021-06-14 08:38:38 +02:00
Sam Smith
bc14f8fa40 Fire language change hook
As of Id345e933, we fire the language change hook when the user switches
language by clicking on a link in the languages list. In order to
compare the user switching language in the scenario above with the user
switching language via the CLS and/or Vector's language switcher, ensure
that we fire language change hook in all treatments.

Bug: T280770
Change-Id: I4a74254612557c287b16f4f086077a2637de9a2e
2021-06-10 11:11:37 +00:00
jdlrobson
2c46226f83 Use SkinTemplateNavigationUniversal for ULS button
As part of the desktop refresh, we are moving towards a universal
hook for adding menu items. This allows more control over placement
without breaking backwards compatibility.

In modern skins, the personal URLs bar is split into
user-menu and notifications options which are combined for legacy
skins.

Depends-On: If4805e5186756056afcd31d21919e907a7782ce8
Bug: T282196
Change-Id: I79fa85e67d9c0064dd4dc9437517264d5fc04140
2021-06-07 20:40:14 +00:00
Niklas Laxström
0c45465786 Simplify extension.json with ResourceFileModulePaths
Change-Id: I4f00d86456132ed7a852cba0e9ce3e73a7d42193
2021-06-03 15:58:14 +03:00
Sam Smith
49924e9ec5 Pass context to compact_language_links.open hook
Following on from I6fa966c2, fire the mw.uls.compact_language_links.open
hook with the $trigger parameter as context for clients to be able to
able to distinguish which treatment is visible to the user.

Supporting changes:

- Note that the hook is unstable next to its callsite

Bug: T280770
Change-Id: Ie4bbfea4dc5e36401df587550f466aeae5c8fdcc
2021-06-01 18:11:30 +00:00
Abijeet
5baf437b3c Remove MW 1.34 backward compatible code
Move hooks and scripts to extensions.json

Bug: T282783
Change-Id: Id63d17d04789bb36fff35e0512e7878dc8bfe12c
2021-06-01 08:17:13 +00:00