mediawiki.util: Merge 'jquery.accessKeyLabel' into this module

Bug: T218339
Change-Id: I7aff1cf5a9526ef54cad33f5333361dba0efb1db
This commit is contained in:
Timo Tijhof 2019-09-06 16:26:12 +01:00 committed by Krinkle
parent eefd0e31fa
commit f168493b57
5 changed files with 11 additions and 9 deletions

View file

@ -425,6 +425,8 @@ because of Phabricator reports.
* ResourceLoaderContext::getConfig and ResourceLoaderContext::getLogger have
been deprecated. Inside ResourceLoaderModule subclasses, use the local methods
instead. Elsewhere, use the methods from the ResourceLoader class.
* The 'jquery.accessKeyLabel' module has been deprecated. This jQuery
plugin is now ships as part of the 'mediawiki.util' module bundle.
* The Profiler::setTemplated and Profiler::getTemplated methods have been
deprecated. Use Profiler::setAllowOutput and Profiler::getAllowOutput
instead.

View file

@ -156,12 +156,10 @@ return [
/* jQuery Plugins */
'jquery.accessKeyLabel' => [
'scripts' => 'resources/src/jquery/jquery.accessKeyLabel.js',
'deprecated' => 'Please use "mediawiki.util" instead.',
'dependencies' => [
'jquery.client',
'mediawiki.RegExp',
'mediawiki.util',
],
'messages' => [ 'brackets', 'word-separator' ],
'targets' => [ 'mobile', 'desktop' ],
],
'jquery.checkboxShiftClick' => [
@ -1252,18 +1250,20 @@ return [
],
'mediawiki.util' => [
'localBasePath' => "$IP/resources/src/mediawiki.util/",
'remoteBasePath' => "$wgResourceBasePath/resources/srcmediawiki.util/",
'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.util/",
'packageFiles' => [
'util.js',
'jquery.accessKeyLabel.js',
[ 'name' => 'config.json', 'config' => [
'FragmentMode',
'LoadScript',
] ],
],
'dependencies' => [
'jquery.accessKeyLabel',
'jquery.client',
'mediawiki.RegExp',
],
'messages' => [ 'brackets', 'word-separator' ],
'targets' => [ 'desktop', 'mobile' ],
],
'mediawiki.viewport' => [
@ -1660,8 +1660,8 @@ return [
'mediawiki.page.ready' => [
'scripts' => 'resources/src/mediawiki.page.ready.js',
'dependencies' => [
'jquery.accessKeyLabel',
'jquery.checkboxShiftClick',
'mediawiki.util',
'mediawiki.notify',
'mediawiki.api'
],
@ -1699,7 +1699,6 @@ return [
'mediawiki.util',
'mediawiki.Title',
'mediawiki.jqueryMsg',
'jquery.accessKeyLabel',
'mediawiki.RegExp',
],
'messages' => [

View file

@ -4,6 +4,8 @@
var util,
config = require( './config.json' );
require( './jquery.accessKeyLabel.js' );
/**
* Encode the string like PHP's rawurlencode
* @ignore

View file

@ -102,7 +102,6 @@ return [
'tests/qunit/suites/resources/mediawiki/mediawiki.visibleTimeout.test.js',
],
'dependencies' => [
'jquery.accessKeyLabel',
'jquery.color',
'jquery.colorUtil',
'jquery.getAttrs',