Commit graph

7067 commits

Author SHA1 Message Date
Fomafix
9f0be82463 Add missing dependency on 'mediawiki.storage'
mediawiki.special.preferences.ooui/tabs.js uses mw.storage from module
'mediawiki.storage'.

Change-Id: Ia0d02a9445449645ce1054b4eb9c935f51e374c0
2019-01-26 11:45:39 +01:00
jenkins-bot
5c83e10460 Merge "HTMLForm OOUI: Reduce distance between flatlist label and widgets" 2019-01-24 18:51:00 +00:00
jenkins-bot
f374b21f62 Merge "Document Uri.js constructor and methods throwing Errors" 2019-01-24 13:27:43 +00:00
Thiemo Kreuz
7ecd6b9ce6 Document Uri.js constructor and methods throwing Errors
I, personally, think the fact an empty `new Uri()` call can fail with
an Error being thrown is a bug. But it seems others think this is a
feature (see Ib4dc568). Can we at least document it then? And then
somehow (not sure how) tell everybody who ever used this class to fix
their code?

Change-Id: I86ef1ccf90f9be9c61bc6a8312369ae09d622b0c
2019-01-24 08:22:30 +00:00
Volker E
b72274093d Special:AllMessages: Visually hide repeating text
Leaving it in for better screen reader navigation though.
Also, in order for this to use 'mediawiki.mixins' renaming special
stylesheet from CSS to LESS.

Bug: T209253
Change-Id: I40ac43d0a4a379a71ce78f2bd1f62b828170f4d8
2019-01-23 19:37:26 -08:00
Volker E
e7c3daf0dd HTMLForm OOUI: Reduce distance between flatlist label and widgets
With `.oo-ui-fieldLayout-header` set to `padding-bottom: 0;` label
is visually appearing equally to other “normal” label and widget
combinations.

Change-Id: I1efa11301b631304ef1d9cc7613fc139e84fa9c0
2019-01-23 18:12:08 -08:00
Volker E
aab4f97ee6 Update OOUI to v0.30.2
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.30.2

Bug: T198231
Bug: T210862
Bug: T212806
Bug: T213137
Bug: T213199
Bug: T213507
Bug: T213517
Bug: T213544
Bug: T213574
Depends-On: Ic2163347ed522199ba3a9dbd5cb45b32e138cb5d
Change-Id: Ibb166a30adfa87225fec3e256450db55b71e0f14
2019-01-23 19:04:04 +00:00
jenkins-bot
24b5967313 Merge "Add namespace restrictions to Special:Block and API" 2019-01-23 17:04:55 +00:00
jenkins-bot
c1436805cd Merge "Introduce multiselect widgets for namespaces" 2019-01-23 17:02:41 +00:00
jenkins-bot
4e36fa5392 Merge "Datatable: Unify padding with .wikitable" 2019-01-23 04:28:02 +00:00
jenkins-bot
981eca4fb1 Merge "Datatable: Apply padding only on th & td elements" 2019-01-23 04:18:29 +00:00
Volker E
b5c683071f Datatable: Unify padding with .wikitable
Unifying `padding` with `.wikitable`.

Bug: T214208
Change-Id: Ic04b647d2fa90ee0002a4d5b4597e271ea543194
2019-01-23 04:11:48 +00:00
Volker E
6b10efaaed Datatable: Apply padding only on th & td elements
Applying it on `table` as well results in issues when wanting
to override `border-radius` together with `border-collapse`.
It's not needed in a well-formed table as every child element would
need to reside within a `th` or `td` anyways.
Also the only other content carrying element `caption` doesn't receive
table's `padding` by default.

Change-Id: I5e8c9d47fab806b56e6d03f1611ddbf6d4ea8924
2019-01-22 17:29:00 -08:00
jenkins-bot
893b698e3a Merge "Remove deprecated module alias "jquery.byteLimit"" 2019-01-22 21:56:57 +00:00
jenkins-bot
c3e410d4ff Merge "mediawiki.api: Remove deprecated module aliases" 2019-01-22 21:56:51 +00:00
jenkins-bot
c66e6414d9 Merge "Fix more jquery event shorthand usages" 2019-01-22 20:50:52 +00:00
Thalia
f589214d0f Add namespace restrictions to Special:Block and API
This adds a UI for blocking namespaces to Special:Block
and a namespacerestrictions parameter to the block API.

The number of namespace restrictions in a single block
is not limited as page restrictions are.

The checkbox allowing the blocker to specify whether
the target can edit their own user page is normally
disabled for a partial block, but is re-enabled if
the block is to the user talk namespace.

If the config $wgBlockAllowsUTEdit is set to false, the
checkbox will not appear, and the target will not be
able to edit their own user talk page if they are
sitewide-blocked, namespace-blocked from the user talk
namespace, or page-blocked from their user talk page.

Bug: T204986
Change-Id: I9e231ad109d7285486ec332b26780339592b8df7
2019-01-22 12:48:55 +00:00
Thalia
ccbe9f3590 Introduce multiselect widgets for namespaces
Bug: T204986
Change-Id: Ie3916e2322d8b1a7effe9ba4604b596b568004e6
2019-01-22 12:48:42 +00:00
jenkins-bot
6e840bcfd4 Merge "Replace deprecated setIconTitle with setTitle" 2019-01-22 00:19:38 +00:00
jenkins-bot
406fd66f02 Merge "Return to LESS multiple value escape mechanism to prevent invalid output" 2019-01-22 00:09:47 +00:00
Volker E
d1c808c361 Return to LESS multiple value escape mechanism to prevent invalid output
LESS doesn't accept JS evaluation in PHP via `'@{arguments}'.replace`,
therefore we need to go back to manual escaping multiple comma separated
values.

Change-Id: I4c46afc012d804350ccee2cd5b1eed4e6ea61d8a
2019-01-22 00:54:01 +01:00
Timo Tijhof
67c0e25d24 Remove deprecated module alias "jquery.byteLimit"
Follows-up 777336288b (MW 1.31).

Bug: T202154
Depends-On: I91b88601334f72e9d7e897853d0e075c86928c60
Change-Id: Ief22737b9f64cec4f0cc7b25e79e385f2e9eb2b1
2019-01-20 21:43:42 +00:00
Timo Tijhof
17127e6c60 mediawiki.api: Remove deprecated module aliases
Bug: T202154
Bug: T196802
Depends-On: If1bd7521563b8574d12d45988737e0e838337f8a
Change-Id: Ic7020e43747774bfdad2e63263ee8caadc5d2f45
2019-01-20 21:42:46 +00:00
jenkins-bot
cf7881151e Merge "TablePager: Unify padding with .wikitable" 2019-01-19 01:40:29 +00:00
Volker E
887ca52cb2 TablePager: Unify padding with .wikitable
This should be at best temporarily until `.mw-datatable` gets same
`padding`.

Bug: T214208
Change-Id: Ib86808803fd6fa41704e7a69687a1ab41ef3c43d
2019-01-18 17:01:53 -08:00
Volker E
dbb49fd425 Reduce selector specificity of .wikitable
Reducing selector specificity by removing `table` from `.wikitable`.
All use cases seem to be covered by direct child `>` selectors anyways.

Bug: T214218
Change-Id: Iae532d6389348972a85404926aaa0c45de7e02e1
2019-01-18 16:15:52 -08:00
jenkins-bot
1474552737 Merge "TablePager: Reduce pagination button in visual strength" 2019-01-18 17:47:05 +00:00
Ed Sanders
28b4b1874a Fix more jquery event shorthand usages
Not yet caught by the linter.

Change-Id: I9601bff47c099c4901487e7faaf871f23e2e2d1c
2019-01-18 16:39:25 +00:00
Volker E
36263dd18c TablePager: Reduce pagination button in visual strength
Reducing buttons to `frameless` buttons and reposition icons of
next and last page button to be symmetrically harmonious.

Bug: T214128
Change-Id: I1c0a621d7699b5fadc2559abdf6003a0db0aabae
2019-01-17 16:56:21 -08:00
Volker E
ef3c0541c4 DateTimeInputWidget: Set max-width equivalent to calendar popup
Input fields should provide as much width as user input is needed or
in this case a little more to be aligned with inherently connected
calendar widget.

Bug: T213785
Change-Id: Id316af701cd054ed29603ffa38af9238a39cb50e
2019-01-16 23:04:25 -08:00
Volker E
f604b891f8 Replace deprecated setIconTitle with setTitle
Bug: T76638
Change-Id: Ia51cbfaff7325f5eef385cc00e801ede69e78954
2019-01-17 06:04:52 +00:00
Thalia
c39fff423e Simplify boolean logic for Special:Block widgets
The boolean logic controlling the showing/hiding of widgets on
Special:Block could be expressed more simply. The logic is
becoming more complex due to partial blocks, so now is a good
time to rephrase it.

This removes safeguards against passing undefined to toggle,
so make sure none of the checks ever return undefined.

Change-Id: I1e0eb288db708be951fe5cf11f658725a38a7c4d
2019-01-16 15:37:43 +00:00
Bartosz Dziewoński
f2f288fd92 OOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76
Bug: T213544
Change-Id: I0bec76fd6d394329331c23ef43c28cb502cb5605
2019-01-14 21:10:10 +01:00
James D. Forrester
fd0a44d4cb Update OOUI to v0.30.1
Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.30.1

Bug: T76638
Bug: T210847
Bug: T212977
Depends-On: Ib466527110d5068e297c42ebb3dd381c0c83754a
Change-Id: Ib466527110d5068e297c42ebb3dd381c0c83754b
2019-01-11 08:19:16 -08:00
Bartosz Dziewoński
cb9de88ded Add missing message for OOUI v0.30.0
Follow-up to 221b03c243.

Change-Id: I18193b191c516c14e32f0959dee2ac4c78564ce8
2019-01-10 16:54:17 +01:00
jenkins-bot
4f4b109dcb Merge "Update the design of Special:Block" 2019-01-08 19:06:47 +00:00
jenkins-bot
41a744cba7 Merge "build: Update qunitjs to 2.9.1" 2019-01-08 19:00:37 +00:00
Ed Sanders
b3e490bba6 build: Update eslint-config-wikimedia to 0.10.0
Change-Id: I2930bcabeeb7b7b2eb36063e77b26e664a691b43
2019-01-08 17:40:11 +00:00
Timo Tijhof
9cd3b52723 build: Update qunitjs to 2.9.1
Code and integrity from <https://code.jquery.com/qunit/>.
Release notes at <https://github.com/qunitjs/qunit/releases>.

Highlights for the browser version:

- [2.7.0] Reporter: Remove cost of DOM size when
  using "hidepassed=true".
- [2.7.0] Reporter: Use perf.now() for improved accurracy
  of unit test durations.
- [2.7.0] Reporter: Make debugging tests in a browser
  easier by adding timeline markers for DevTools.

Highlights for the npm package / CLI version:

- [2.9.0] CLI: Reduce dependency tree size
               from 143 packages to 9 packages.

Change-Id: I38408d90765cd18d5dd6952b8b6b30cbfa0c7ed5
2019-01-07 21:05:36 -08:00
Thalia
41da63ed1f Update the design of Special:Block
Update the design now we have the extra options for
partial blocks.

Bug: T202773
Bug: T212964
Change-Id: I569eb2a8b15b9ad7f9f0e99bce2cd9b818a82fb4
2019-01-07 19:22:59 +00:00
Thalia
d31af9bd38 Remove unnecessary calc operation in .less file
Change-Id: I3db79e58e6d590da0fc2b168d784e1f666c2337b
2019-01-04 18:20:09 +00:00
Thalia
ad0b79db53 Always load styles for Special:Block page
Load the styles regardless of whether the user has
JavaScript.

Bug: T212880
Change-Id: If103aebd1ca1368ddee7322bf52f7d9d35bd950c
2019-01-03 19:37:40 +00:00
jenkins-bot
20d1cd2e0f Merge "Special:Block: Align partial input field better with rest of interface" 2019-01-03 17:54:16 +00:00
jenkins-bot
209ab3fbe3 Merge "Add check for editing restriction widget on Special:Block" 2019-01-03 17:54:05 +00:00
Volker E
da35094cb7 Special:Block: Align partial input field better with rest of interface
Also include sizing foundational variables to deal with `em` rendering quirks,
aimed to be replaced by central ones in future.

Change-Id: Iba65f68b233becba6054ca068a4cf7aaee0d8e4c
2019-01-03 09:12:02 -08:00
Thalia
e2e03d0bf1 Add check for editing restriction widget on Special:Block
If partial blocks is not enabled, editing restriction widget
will not exist, so check before binding events.

Bug: T212808
Change-Id: I33fd7efdc24c026338e25d7c0751d31bc9a7baba
2019-01-03 10:59:20 +00:00
jdlrobson
5cb212ea4b Tag markers should be wrapped in parentheses on diff page
Bug: T212613
Change-Id: I87ba8a12f520bcad7354dc9ed1c9f46aa02c715f
2019-01-02 11:38:39 -08:00
jenkins-bot
86a734cd19 Merge "Revert "Cached HTML/JS shouldn't show two toggle links"" 2019-01-01 14:37:45 +00:00
Fomafix
d2ae5e2022 tablesorter: Simplify jQuery#removeClass usage by using array
Since jQuery 3.3, .removeClass() supports arrays.
https://blog.jquery.com/2018/01/19/jquery-3-3-0-a-fragrant-bouquet-of-deprecations-and-is-that-a-new-feature/

Change-Id: I7302373357efe9fbd619cfeedfec364fd245b335
2019-01-01 13:49:22 +00:00
Fomafix
adc88a4692 Revert "Cached HTML/JS shouldn't show two toggle links"
This reverts commit 51edd7e9fa.

All caches are now expired.

Bug: T195053
Change-Id: I16403b5cd57c3cc8acd3afaf6152e30ebb8d4a05
2018-12-29 10:48:57 +01:00