Commit graph

1448 commits

Author SHA1 Message Date
jdlrobson
275b77452a Special:Contributions form collapsed when offset is defined
Form on Special:Contributions is collapsed while assuming
user is paging through results when target, start or end date
offset is defined.

Bug: T117736
Bug: T191868
Change-Id: I05030f1473b13bbe66bf56b9affc8d33f7210b81
2019-09-24 18:17:53 -07:00
jdlrobson
2bb8515286 Make Special:Contributions use OOUI
Changes:
* IP address/username is now a single label & input element combination
* Add page-specific styles in separate LESS file
* Remove no longer necessary CSS rule

Bug: T117736
Bug: T219238
Change-Id: I979078d8937898acae22bc28d5ed51da1d4ed627
2019-09-23 18:50:44 +00:00
Timo Tijhof
03293f1f69 Remove redundant 'jquery.accessKeylabel' module alias
Follows-up f168493b57. This isn't actually used anywhere so might
as well remove right away like we did with some of the other
modules we combined this release.

Change-Id: I6267db732e9835d9dba5cf32d2c6743461f7cb35
2019-09-18 19:37:03 +01:00
jdlrobson
9da8a8cb6c Mobile friendly styling of Special:ListFiles
This makes core's Special:ListFiles match the styling of
Special:Uploads that is provided by MobileFrontend. The latter
can be removed once this change is incorporated.

The tablet/desktop mode of this page is not impacted except
that the title will be context aware when a username is selected
to show "Uploads by <username>" rather than the generic "list files".

Bug: T102139
Change-Id: I266313b8c71bdf410d336e020aca7dabbe115be5
2019-09-18 15:42:25 +00:00
Timo Tijhof
97fffb3fd0 mediawiki.page.ready: Convert to packageFiles, remove jquery.checkboxShiftClick
* Remove redundant closures around the two files.

* Export checkboxShiftClick as a regular function.
  This jQuery plugin is not used anywhere in Wikimedia Gerrit,
  nor elsewhere indexed by Codesearch, nor anywhere on-wiki
  in User, Project or MediaWiki namespaces.
  As such, remove the deprecated module alias as well.

Change-Id: I6bc41036829964080abf1ab0bbd306356bb8fe57
2019-09-15 00:28:18 +01:00
Fomafix
1490e9dac8 Integrate module 'jquery.checkboxShiftClick' into 'mediawiki.page.ready'
This reduces the number of modules.

Bug: T232688
Change-Id: Id63592d8f674b994adccf5f7f6bbda50d84d0edb
2019-09-14 23:26:31 +00:00
jenkins-bot
7d54426c37 Merge "mw.ForeignApi: don’t set origin for same-origin requests" 2019-09-12 17:34:37 +00:00
Fomafix
f01da1e298 Resources: Consistently use base paths without trailing '/'
Change-Id: Iebaf740f9367a34dc29a9312bccd54f92f0c66f2
2019-09-12 15:08:28 +02:00
jenkins-bot
647477e452 Merge "mediawiki.util: Add debounce() function" 2019-09-11 19:33:40 +00:00
jenkins-bot
47181c8134 Merge "jquery.color: Merge $.colorUtil back into this module" 2019-09-11 19:15:22 +00:00
Timo Tijhof
a682732900 mediawiki.util: Add debounce() function
Bug: T213426
Change-Id: If370b959b2617d0f506ac3ed344af8c6a667e70d
2019-09-11 14:57:48 +00:00
Lucas Werkmeister
f07b69cf13 mw.ForeignApi: don’t set origin for same-origin requests
If the foreign API has the same host as the current page (e. g. if it’s
actually the same wiki, or multiple wikis are installed under different
paths on the same host), then the browser will not send an Origin
header, and if we still set an origin parameter, then the API will
complain that the two don’t match. Detect this and unset the origin
parameter in that case.

Bug: T208601
Change-Id: Ia006f3dc3283ce3f81d4d72cbe9676a00797c4d0
2019-09-11 16:02:44 +02:00
Timo Tijhof
e2f1ca17c8 mediawiki.special.userlogin.signup: Remove unused debounce dependency
The file in question does not use $.debounce() or $.throttle().
Probably a left-over from when this was factored out into
'mediawiki.htmlform.checker', which uses debounce (now mw.util).

Bug: T213426
Change-Id: Id48dc0f1119a21948ce0b93bb58c08f6e42516d7
2019-09-11 05:58:24 +01:00
Timo Tijhof
01dae6ff8a jquery.color: Merge $.colorUtil back into this module
I split this out of it back in 2011 with 83a7822df7.

I don't remember why. I think it had something to do with
Special:JavaScriptTest where I wanted to do something with colors.
Having those functions is useful in theory, but that doesn't require
its own module.

Change-Id: I8815d32c7072da83ddb9fbf955534d1f954692ba
2019-09-11 05:12:22 +01:00
jenkins-bot
74524d2503 Merge "mediawiki.util: Move mw.RegExp over as well to simplify migration" 2019-09-09 18:28:51 +00:00
Timo Tijhof
5a5abfd18a mediawiki.util: Move mw.RegExp over as well to simplify migration
Follows-up 8697ba8354. In order to allow for a simpler migration
and to keep compatibility over 1 stable release at least, deprecate
the module only, and keep the alias in the destination module.

This means 'mediawiki.RegExp' can be replaced with 'mediawiki.util',
without it causing code to break. It will still warn about
the method being deprecated, which can then be fixed separately,
depending on whether compat is needed.

This is mainly to reduce risk from mass migrations in user scripts
and gadgets (to do in two separate passes).

Bug: T218339
Change-Id: I07ba0a481b83fe704be3a17199070bafba4d5233
2019-09-09 18:25:09 +01:00
James D. Forrester
955490fe45 Follow-up 8697ba8: No need for two dependencies on the same module
Change-Id: I1ac1cbe20bc66092ce15d426d0d6a8e0c8c8d815
2019-09-09 10:00:39 -07:00
James D. Forrester
8697ba8354 Deprecate mediawiki.RegExp; move only function to mw.util
Bug: T218339
Change-Id: I1079e99fc22ed7f3159e7fe45581db799ae7259d
2019-09-07 15:34:21 +00:00
Timo Tijhof
f168493b57 mediawiki.util: Merge 'jquery.accessKeyLabel' into this module
Bug: T218339
Change-Id: I7aff1cf5a9526ef54cad33f5333361dba0efb1db
2019-09-06 16:39:42 +00:00
jenkins-bot
1c8dca6973 Merge "mediawiki.util: Move to its own resources/src/ directory" 2019-09-06 02:00:51 +00:00
Timo Tijhof
f3659b8d27 mediawiki.util: Move to its own resources/src/ directory
It only has one real file right now, but per T193826 modules that are bound
to an explicit directory should have already gotten its own directory.

Anyway, this'll make it easier to add other files in it in a separate
commit.

Change-Id: Iae7d270bf08d5a623b0a90c37c7cfc0c8e424a76
2019-09-06 01:35:33 +01:00
jenkins-bot
cbd544d054 Merge "mediawiki.htmlform.checker: Remove use of deprecated jquery.throttle-debounce" 2019-09-05 22:16:49 +00:00
Timo Tijhof
4b7e22a012 mediawiki.htmlform.checker: Remove use of deprecated jquery.throttle-debounce
Bug: T213426
Change-Id: I21874161dbe258c56376f3761e523dac543db8f4
2019-09-05 22:14:49 +01:00
Bartosz Dziewoński
4649902709 rcfilters: Use default styling for the overlay
The class .oo-ui-defaultOverlay is used by OOUI, and all the skins
already define reasonable font-size and z-index for it, so we can
remove that here.

Keep the existing class .mw-rcfilters-ui-overlay because apparently
`right: 0; left: 0;` is required (that's weird…) and because Minerva
also wants to override it (I221f6c2d637c7d2a843bfc4a2f7cd9877e2a5b12).

Depends-On: I221f6c2d637c7d2a843bfc4a2f7cd9877e2a5b12
Change-Id: I672fdcebbdc586765de2c10f9a9a21796db57cc5
2019-09-05 20:00:44 +00:00
jenkins-bot
e0c27dea18 Merge "Fix typo in comment" 2019-08-28 18:51:41 +00:00
jenkins-bot
4858f8afda Merge "Upstream "pulsating dot" widget from VE" 2019-08-28 17:23:53 +00:00
Niklas Laxström
61592e006d Fix typo in comment
Change-Id: Iebb57a49156f4efc6f45079d239eef2464c0f554
2019-08-28 09:13:26 +02:00
jenkins-bot
dcb26aa2db Merge "RCFilters: add namespace filters for all contents and all discussions" 2019-08-20 15:20:02 +00:00
jdlrobson
d1d9dfe622 Comma list handled via CSS in change list pages
This avoids unnecessary commas in the mobile interface.

Bug: T230564
Change-Id: Id486e9a5b8fd337c41c8749d0462a40d6e68dffb
2019-08-16 11:16:24 +00:00
Stephane Bisson
04f0b682a5 RCFilters: add namespace filters for all contents and all discussions
These filters provide a shortcut to see or highlight all entries associated
with a subject or a talk namespace.

They are defined as real filters on the client-side and are superset
of all other namespace filters.

They are expanded to the list of namespaces they represent on the server-side.

Bug: T201520
Change-Id: Id9e04a38c2d7c8165c27af98959aa5715225faa8
2019-08-15 13:57:02 -04:00
jenkins-bot
f998de6530 Merge "resourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base" 2019-08-05 22:10:01 +00:00
Timo Tijhof
ed6e38178b resourceloader: Merge mediawiki.legacy.wikibits into mediawiki.base
Still executed under the same conditional, but no longer exposed
as its own public module bundle.

Change-Id: Ifba3a73b184ce02eeeeb2ccce6d4aece732dea13
2019-08-03 21:49:20 +00:00
Timo Tijhof
39ec2dd84b OutputPage: Remove 'html5shiv' module from RL registration
Follows-up 66a011797d, which changed the reference to this
JS file to be without the indirection of ResourceLoader.
It's been deployed well over the needed 7 days, so this can be
removed now.

Change-Id: I823c0b31c4478e5e34f4191d851b6a9c83a6019b
2019-08-03 22:45:48 +01:00
jenkins-bot
6a63b37c29 Merge "API: Create a module bundle for 'apipretty' and 'apihelp'" 2019-08-01 17:01:27 +00:00
Bartosz Dziewoński
1ee5f10824 mediawiki.Upload.BookletLayout: Add missing message
Bug: T203058
Change-Id: If1274da9b9dca5595201c298ffd35576ef7b7e52
2019-08-01 04:32:02 +02:00
Timo Tijhof
0c7b707a99 resourceloader: Only register 'jquery.qunit' in test context
Change-Id: I0ea4bb73d5b886ea903a19a12bdd464778af0002
2019-07-30 16:00:59 +00:00
Jan Drewniak
b988627835 Adapt Recent Changes advanced filters for mobile usage
Changes the behaviour of the rcfilter search input by essentially
turning it into a button for mobile devices. Depending on the value
of `OO.ui.isMobile()` the input is set to readonly mode and given
a shorter message and different icon.

Setting the search input to readonly prevents onscreen keyboards from
being actived, but still opens the filter menu, so that mobile users
can still add/remove filters, just without the ability to search through
them.

Styles are also modified to make the search input appear as a button by
overriding the default readonly and placeholder styles.

Bug: T225499, T223230
Change-Id: Iaa67369542e658d3571d957a204daa7a53d1e520
2019-07-30 13:22:28 +02:00
Timo Tijhof
30565e2491 API: Create a module bundle for 'apipretty' and 'apihelp'
These are both fairly small modules used in related low-traffic
scenarios. The cost of registering both globally on all page views
as a top-level entry point does not seem worth the marginal gain
of loading only one of these two in the contexts where they are
needed.

Change-Id: I42458ebec3f8d6e14e52e44d62fb914fcbeda5db
2019-07-30 01:17:35 +01:00
jdlrobson
1965748939 Enable RecentChanges modules on mobile
Change-Id: I9ec4b70390700cd697faeffd8f70c67e9c542e82
2019-07-25 14:55:11 -07:00
Ed Sanders
37d32f70ea Upstream "pulsating dot" widget from VE
Bug: T226719
Change-Id: Ibd035ea48b7d0316a7627a91623ff6116ccbae31
2019-07-25 20:35:12 +00:00
jenkins-bot
0854352fa7 Merge "Do not hardcode square brackets in "rollback link"" 2019-07-21 19:41:24 +00:00
Roan Kattouw
f2ae03a736 resourceloader: Add Config parameter to packageFiles callbacks
Callbacks used to generate the contents of virtual files in packageFiles
modules only received a ResourceLoaderContext object. They could access
the Config object through ResourceLoaderContext::getConfig(), but that
method is deprecated. Pass the Config object as a second parameter to
these callbacks, so that they don't have to use a deprecated method.

Change-Id: Ia4666914e9b07f298ee5ae30ae8c70a3e83b0910
2019-07-18 14:48:42 -07:00
jdlrobson
aaea6a0fc0 Do not hardcode square brackets in "rollback link"
Additional change:
* standardize on "optional" lowercase in qqq messages

Bug: T219948
Change-Id: I7d79c0ca534bff7165975943d5fa22dfe0a616db
2019-07-18 14:30:23 -07:00
Timo Tijhof
0ca403d36a resourceloader: Remove 'user.groups' module alias
Deprecated since MediaWiki 1.28. Follows 06ab9c0942.

Change-Id: Iedaa61d82b72ccf852975057d3d88f2bf7ddead6
2019-07-08 22:21:53 +01:00
Timo Tijhof
66a011797d OutputPage: Load html5shiv without indirection of load.php
This library was introduced in 3a30e03645, to make sure Grade C
stylesheets that apply to HTML5 elements that older browsers might
not know yet, work as expected in old IE.

It originally committed a minified version and loaded it directly
as an HTML script tag in a conditional comment. This had minimal
impact on anything else, and was easy to maintain.

In 68237fb1a7, this was changed to commit the unminified version
instead because Debian maintainers don't like packaging software
that contain minified files, despite being a simple file,
unmodified from the original (upstream publishes it in minified
form, with license header), published under a compatible free
license, and embedded in a license-compliant manner. We then
registered it as an unused ResourceLoader module, to be minified
on-the-fly at run-time.

Support for "server-registered client-unregistered" modules was
removed last week in c554ee8e64 because nothing needed it
anymore (except html5shiv apparently), which resulted in this
module being registered client-side on all page views for all
users (in latest master). This doesn't break anything, but it
is a regression performance-wise.

Restore this by (mostly) going to how it was before: A simple static
file, committed to Git, served as-is. Not related to, served by,
pulled through, nor registered with, ResourceLoader in any way.

Only difference with the original approach is that it is no longer
minified, which means a few more bytes transferred on old IE page
views, which is considered an acceptable compromise.

Bug: T201483
Change-Id: Ib0020b6bd015679b61f63eaa8109ed9b83d8ad15
2019-07-06 00:35:25 +00:00
jenkins-bot
3ff807dd9a Merge "Remove JavaScript global variable wgLoadScript" 2019-07-03 22:28:52 +00:00
Fomafix
3e03ab2694 mediawiki.action.edit.preview: Use CSS instead of jQuery for animation
Change-Id: I9f79ddf2cf4548dbf8b8553da030d6da4772187e
2019-07-03 19:40:54 +02:00
Fomafix
bac0e0160f Remove JavaScript global variable wgLoadScript
Use
  mw.util.wikiScript( 'load' )
instead of
  mw.config.get( 'wgLoadScript' )

The module 'mediawiki.util' now gets the value from a private config
variable.

Change-Id: Iae4f4754f40999ba9d7c7161e9a37820c4b5931c
2019-07-03 06:01:25 +02:00
Timo Tijhof
419849211e specials: Combine small miscellaneous 'mediawiki.special.*' modules
The format for this would be cleaner if T225842 were solved.

Bug: T193826
Bug: T219342
Change-Id: I9aaa52b567db254e1e79649b3b99260214da74b3
2019-07-02 13:56:47 +00:00
jenkins-bot
2e0cf08914 Merge "RCFilters: Reduce startup overhead from 'config.json' computation" 2019-07-01 19:52:30 +00:00