X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2FResources.php;h=92b4fd449257fd529f9b61a5a10895f9a26d071a;hb=25dffb4db205e69e0310eaacd59c14f230b5c353;hp=b228b9613455d5082d575ee6c782220f67a52e6d;hpb=9c23d8bbed3746251b2f7b27697cb004ef6ceb43;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/Resources.php b/resources/Resources.php index b228b96134..92b4fd4492 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -1819,7 +1819,10 @@ return [ 'ui/RclTargetPageWidget.js', 'ui/RclToOrFromWidget.js', 'ui/WatchlistTopSectionWidget.js', - [ 'name' => 'config.json', 'callback' => 'ChangesListSpecialPage::getRcFiltersConfigVars' ], + [ 'name' => 'config.json', + 'versionCallback' => 'ChangesListSpecialPage::getRcFiltersConfigSummary', + 'callback' => 'ChangesListSpecialPage::getRcFiltersConfigVars', + ], ], 'styles' => [ 'styles/mw.rcfilters.mixins.less', @@ -2089,11 +2092,27 @@ return [ ], 'targets' => [ 'desktop', 'mobile' ], ], - 'mediawiki.special.changecredentials.js' => [ - 'scripts' => 'resources/src/mediawiki.special.changecredentials.js', + // This bundles various small (under 5 KB?) JavaScript files that: + // - .. are not loaded on when viewing or editing wiki pages. + // - .. are used by logged-in users only. + // - .. depend on oojs-ui-core. + // - .. contain UI intialisation code (e.g. no public module exports, because + // requiring or depending on this bundle is awkard) + 'mediawiki.misc-authed-ooui' => [ + 'localBasePath' => "$IP/resources/src/mediawiki.misc-authed-ooui", + 'remoteBasePath' => "$wgResourceBasePath/resources/src/mediawiki.misc-authed-ooui", + 'scripts' => [ + 'special.changecredentials.js', + 'special.movePage.js', + 'special.mute.js', + 'special.pageLanguage.js', + ], 'dependencies' => [ - 'mediawiki.api', - 'mediawiki.htmlform.ooui' + 'mediawiki.api', // Used by special.changecredentials.js + 'mediawiki.htmlform.ooui', // Used by special.changecredentials.js + 'mediawiki.widgets.visibleLengthLimit', // Used by special.movePage.js + 'mediawiki.widgets', // Used by special.movePage.js + 'oojs-ui-core', // Used by special.pageLanguage.js ], 'targets' => [ 'desktop', 'mobile' ], ], @@ -2142,22 +2161,6 @@ return [ 'mediawiki.special.import' => [ 'scripts' => 'resources/src/mediawiki.special.import.js', ], - 'mediawiki.special.movePage' => [ - 'scripts' => 'resources/src/mediawiki.special.movePage.js', - 'dependencies' => [ - 'mediawiki.widgets.visibleLengthLimit', - 'mediawiki.widgets', - ], - ], - 'mediawiki.special.pageLanguage' => [ - 'scripts' => [ - 'resources/src/mediawiki.special.mute.js', - 'resources/src/mediawiki.special.pageLanguage.js' - ], - 'dependencies' => [ - 'oojs-ui-core', - ], - ], 'mediawiki.special.preferences.ooui' => [ 'targets' => [ 'desktop', 'mobile' ], 'scripts' => [