Commit Graph

166 Commits

Author SHA1 Message Date
Bartosz Dziewoński
f3adab1390 Add line-break hints in very long extension name
The name of this extension doesn't fit in the table cell on
Special:Version.

Bug: T363767
Change-Id: Ia733cfe313a8217930bee350f2a5487ac46b00f8
2024-05-10 20:17:09 +02:00
Abijeet
dd4da81376 Update version for MLEB 2024.04 release
Bug: T356848
Change-Id: I205d02682d5b02e5cde17cf9411aaa15f0e411fa
2024-04-23 11:45:09 +00:00
Umherirrender
cf3eece9e3 Drop RL targets definitions from module class
Now equal to the default in 1.40 - 01aec63c

Bug: T328497
Change-Id: Ibe7c9b81269a4d31fe26930b912d41191c1ac9ab
2024-01-24 00:16:09 +01:00
Abijeet
ad5753ad40 Remove support for MediaWiki <= 1.39
With release of MediaWiki 1.41 we no longer need to support MW 1.39

Bug: T355105
Change-Id: I7957ca8aefee168ef11bc20905abd9944faecd73
2024-01-23 12:06:44 +00:00
Abijeet
3cb7be867c Update version for MLEB 2024.01 release
Bug: T355104
Change-Id: I458d73e39d557b1c53cbaed9a5b0ed8647eac247
2024-01-21 15:26:27 +05:30
Jdlrobson
6f9ffac1c3 Use Codex styles for buttons in language overlay (attempt 2)
* Replace all instances of mw-ui markup with Codex markup
* Use codex-search-styles
* Where codex-search-styles is not installed (e.g. 1.39)
register an alias which points to @wikimedia/codex as that is
available.

Bug: T340255
Bug: T340257
Change-Id: I4f3ddfb68ea6c033ee7a49729187f4ddbc8abe5c
2023-12-20 18:53:41 +05:30
Jdlrobson
5481573341 Revert "Use Codex styles for buttons in language overlay"
This reverts commit d29050d080.

Reason for revert: I had mistakenly assumed the @wikimedia/codex
module was loaded on clicking the language button. It appears to
be added on page load.

Given T248718 it's still unclear what our policy on loading
@wikimedia/codex on page load is and given several people are out
I think it would be better to attempt this again next week, possibly
delaying further if needed.

Bug: T353071
Bug: T248718
Change-Id: I09334a1faec06a7400e61013ddda374156bf5d72
2023-12-08 22:00:26 +00:00
Jon Robson
d29050d080 Use Codex styles for buttons in language overlay
* Replace all instances of mw-ui markup with Codex markup
* Use @wikimedia/codex as it is available in 1.39
and codex-search-styles is not.

Bug: T340255
Change-Id: Id85cf3b4af782c0d93bfa3bed5f3e6cbed856f1b
2023-12-07 14:19:23 +00:00
Abijeet
356df784d0 Bump version for MLEB 2023.12 bug-fix release
Bug: T351959
Change-Id: Ieb56e84b08b3997a37f3d85e967c8b5760cb30ff
2023-12-01 14:33:21 +00:00
Abijeet
c296115614 Update version for MLEB 2023.10 release
Bug: T347847
Change-Id: I14f4c4d7e473da4aa67518006c0e3a2bee0d6e3c
2023-10-26 13:37:37 +05:30
Jon Robson
76e7805881 Don't load mediawiki.ui.button on page load (attempt 2)
The stylesheet is needed on legacy Vector but not modern
Vector 2022 meaning Vector 2022 loads two sets of styles
for buttons.

This is a short term fix until UniversalLanguageSelector can
use Codex.

Bug: T340255
Change-Id: Ie34949e31e93dcfcabc07fa418dec06022159ca7
2023-07-17 21:28:23 +00:00
Jdlrobson
d7d63236fd Revert "Don't load mediawiki.ui.button on page load"
This reverts commit 693087b886.

Reason for revert: This was a bug in my code. Sorry about that.

Change-Id: Ia3bb8d2b38e179a570f94bfd1d989bb51fab41e4
2023-07-17 20:24:38 +00:00
Jon Robson
693087b886 Don't load mediawiki.ui.button on page load
The stylesheet is needed on legacy Vector but not modern
Vector 2022 meaning Vector 2022 loads two sets of styles
for buttons.

This is a short term fix until UniversalLanguageSelector can
use Codex.

Bug: T340255
Change-Id: Ib4e228908d2813898654886bc1ee76e90dc52f22
2023-07-17 05:37:17 +00:00
Abijeet
860d40f53e Update version for MLEB 2023.07 release
Bug: T340729
Change-Id: Icbbf24cdd76ab6b6d777ec4b05c630554943976a
2023-07-05 12:36:15 +00:00
Abijeet
31d4bd8237 Drop support for MW 1.38
Update extension.json to set minimum supported version as MW 1.39.

Bug: T341090
Change-Id: I2ad1d61210e2f39cce89648f1228163a819f3161
2023-07-04 22:57:52 +05:30
Jon Robson
240498e6ee Let Vector 2022 manage its own styles
Depends-On: I9996696795f792567f770ac8bf57002bd5706d06
Bug: T335710
Change-Id: I1f4bddc9091a360795f0ee16f5eed00a7a9ce846
2023-05-10 23:55:00 +00:00
Abijeet
89c173ddac Update version for MLEB 2023.04
Bug: T333822
Change-Id: Iee07d58797a90dd13951c5bae22e19e003579f03
2023-04-25 11:03:31 +05:30
Niklas Laxström
7d20f15b17 Remove ULSMobileWebfontsEnabled
To my knowledge never used since it was added in in 2013 with
commit fd885d9881.

Bug: T332837
Change-Id: Ia9ecb3e4dd47b8ce4dfaaa489a1ec5a71c378492
2023-04-05 06:21:40 +00:00
NikG
dde48f50ab Add separate buttons for 'add languages' and language settings menus
Bug: T323694
Change-Id: I23cb4687d841025905224a52b843572206fa9ddb
2023-01-25 11:47:24 +00:00
Abijeet
b5ea94188c Update version for MLEB 2023.01
Bug: T326537
Change-Id: Icbfcf520edd52234cea328eb58e8cddbd9ee7527
2023-01-23 12:03:03 +05:30
wangombe
4a87284620 Drop support for MW < 1.37
Bug: T324932
Change-Id: I419f70fb714f9c33c03caf9159888bd93470a929
2023-01-02 06:23:23 +00:00
Abijeet
3c77e27aa3 Update version for MLEB 2022.10
Bug: T319187
Change-Id: I35b36e1bb75eb09acfbe70243dfe26e941b3982e
2022-10-24 11:05:40 +00:00
Abijeet
4632f33e6a Drop support for MediaWiki 1.36
Bug: T311510
Change-Id: I9bc2f91f274df1d37ebad639b42ee4b542274db9
2022-07-26 11:04:40 +00:00
Abijeet
9eb5342795 Update version and required MediaWiki version for MLEB 2022.07
Bug: T311511
Change-Id: I301a288b840204c43c74a5654621995676b700f9
2022-07-25 13:06:00 +00:00
Santhosh Thottingal
3450f90678 Add support for empty states to the current language selector
Bug: T290436
Change-Id: I42c5d44ec15e291d71723c9738ddb8f0d1cf0b09
2022-07-01 09:16:40 +00:00
Santhosh Thottingal
e9a4f5419c Add explicit dependency to oojs RL module
Bug: T309793
Change-Id: I6f4f7beebfc009007ff8e3537a5c1f1f616515e3
2022-06-08 10:26:38 +05:30
Santhosh Thottingal
cfd6d48bc1 Load OOUI widgets only when ULS is opened
OOUI widgets are required for the actions menu dialog, but no need
to have them loaded unconditionally.

Bug: T309793
Change-Id: Icc09b88aa70af1316bd67a56b13a411ebc8f7f8a
2022-06-06 12:35:48 +05:30
Abijeet
a924ab4a8f Update version for MLEB 2022.04
Bug: T305141
Change-Id: I90a9eba2bb732dae855bfb58212d31b6fd7d0609
2022-04-25 18:16:52 +05:30
Santhosh Thottingal
5e6838ebdf Add actions menu inside content language selector
This patch replaces the display and input settings menu bar at the
bottom of the content language selector, with a floating icon that
opens a menu containing all the available language actions. In case
that only the language settings action is available, the language
settings menu is being opened instead.

In order to provide extensibility and support the addition of new
action items from other extensions, a registry class that inherits
from OO.Registry class is created. This class is used to create a
singleton registry object that holds all action items that should
be rendered inside the menu. Other modules/extensions can use this
registry to add new actions items to the menu, by passing the item
as argument, in the following form:
{ name: "", icon: "", text: "", handler: function() {} }

Bug: T289840
Change-Id: Iee017a9e3e6a654145e9fdd2b7df35baa348697d
2022-04-11 05:24:08 +00:00
Abijeet
6e6635bdbb Move version check inside PersonalUrls hook
Stop additional conditional hook if MW < 1.37, and move the check
to inside the hook itself

Bug: T299305
Change-Id: Ied1c5c0beee015d7b0a8d6bd750346f4a8a5aaa1
2022-01-24 09:24:43 +00:00
Abijeet
c9d695db36 Update version for MLEB 2022.01
Bug: T298889
Change-Id: I362f8c0c6a693b52c7d944976201290be3c55330
2022-01-19 08:10:11 +00:00
Abijeet
30986e6d9e Remove backward compatibility for MW <= 1.35
Bug: T298856
Change-Id: I1e635785d0a29d87f510e729b11fce9a2eb68e11
2022-01-18 12:51:07 +00:00
Clare Ming
4c13cb713d Update skinStyles with new vector skin key.
Bug: T292599
Change-Id: Ib05b186df5c40ca2e157ab5acd510e0dfda50666
2022-01-10 15:01:42 -07:00
Reedy
f9532855ad Namespace extension
Change-Id: I79aa319f177589d85446888289568748cd63d1c5
2022-01-05 10:47:22 +00:00
Ed Sanders
2b16bb0ad8 Upstream WMF config to disable ULS in Ace editor widgets
This rule was applied to all WMF wikis in T55300 / I0cc1e92a8f,
but for some reason was not set here.

Change-Id: I908aac19b648de550659aad85bca115f26f43fb4
2021-11-30 12:19:08 +00:00
Abijeet
defc3d416d ApiULSSetLanguage: Use LanguageNameUtils
Change-Id: I00e814894db4ba84f1d08c52db2993b59fbccf55
2021-11-16 18:36:23 +00:00
Fomafix
10e15cf0f8 Use .parseDom() instead of .parse()
Use

  $( ... ).append( mw.message( ... ).parseDom() )

instead of

  $( ... ).html( mw.message( ... ).parse() )

Add dependency on 'mediawiki.jqueryMsg' to 'ext.uls.setlang'.

Change-Id: I23897ab16a84a1732286921a8153b9a5e57c9462
2021-11-09 21:12:01 +00:00
Fomafix
f0c6bec1ac Use HookHandlers and inject services
This change also replaces the calls of deprecated functions from class
Language and replaces the global variables by the MainConfig.

Change-Id: Ice7273481a736cb138e263a9300bfd90fdcbb401
2021-11-04 14:00:31 +00:00
Fomafix
183bb97f74 ApiULSLocalization: Inject LanguageNameUtils
Replace deprecated Language::isValidCode by
LanguageNameUtils::isValidCode.

Change-Id: I2adef21fb37e78c163674008a4f9b1e5a74aa6a1
2021-10-29 13:14:31 +00:00
Abijeet
770b0dfe50 Update version for MLEB 2021.10
Bug: T294021
Change-Id: I252fffcde7d0c401cb8a460c3b162c71948ec018
2021-10-25 13:29:03 +05:30
DannyS712
e17f5c0b39 Merge jquery.webfonts into ext.uls.webfonts.repository
The two modules are always loaded together and don't need
separate entry points.

Additionally, this makes the ext.uls.webfonts.fonts
just depend on the ext.uls.webfonts.repository module
and not do anything else, so remove it in favor of
referencing ext.uls.webfonts.repository directly where
needed.

Bug: T292042
Change-Id: I067b9eda923fcb0d5da0ed80030356f1f747259b
2021-10-19 09:07:11 +00: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
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
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
Kartik Mistry
5a7a6a5fe3 Update version before MLEB release
Bug: T286474
Change-Id: I2bc4406addfad28a843fd4f5328882b1f388c7c7
2021-07-20 11:49:38 +05:30
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
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
jdlrobson
1786fce2c6 Default state of ULSCompactLanguageLinksBetaFeature should be false
extension.json configuration should reflect recommended production
configuration whenever possible. This particular configuration flag
is only ever true on Russian Wikivoyage or Wikisource, so is more
often false than true.

Having this default would have saved me ten minutes trying to work
out how to make the preference available, so I am keen to save someone
else that time in future.

Bug: T282149
Change-Id: Ieef58631c7ef5c42ffc05f13d0ed8a4f02c48de1
2021-06-01 07:45:37 +00:00
Kartik Mistry
2e05b501bb Update version before MLEB release
Bug: T279280
Change-Id: Ida8597db98c3bef3dd97a11ceda0c9b08087d3d0
2021-04-27 17:01:31 +05:30