Renamed resourceloader modules

This commit is contained in:
alistair3149 2020-02-15 16:49:55 -05:00
parent fbdac79c4f
commit 16e187c38d
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
3 changed files with 12 additions and 8 deletions

View file

@ -41,7 +41,7 @@ class CitizenHooks {
* @return bool
*/
public static function onBeforePageDisplay( $out, $skin ) {
$out->addModules( 'skins.citizen.bpd' );
$out->addModules( 'skins.citizen.lazyload.scripts' );
return true;
}

View file

@ -224,7 +224,7 @@ class SkinCitizen extends SkinTemplate {
private function addModules() {
$this->out->addModuleStyles( [
'mediawiki.skinning.content.externallinks',
'skins.citizen',
'skins.citizen.styles',
'skins.citizen.icons',
'skins.citizen.icons.ca',
'skins.citizen.icons.p',
@ -239,8 +239,8 @@ class SkinCitizen extends SkinTemplate {
] );
$this->out->addModules( [
'skins.citizen.js',
'skins.citizen.search',
'skins.citizen.scripts',
'skins.citizen.search.scripts',
] );
}
}

View file

@ -184,8 +184,12 @@
]
},
"ResourceModules": {
"skins.citizen": {
"skins.citizen.styles": {
"class": "ResourceLoaderSkinModule",
"targets": [
"desktop",
"mobile"
],
"styles": {
"resources/screen.less": {
"media": "screen"
@ -196,14 +200,14 @@
"resources/font-face.less": {}
}
},
"skins.citizen.js": {
"skins.citizen.scripts": {
"scripts": [
"resources/main.js",
"resources/scripts/header.js",
"resources/scripts/toc.js"
]
},
"skins.citizen.search": {
"skins.citizen.search.scripts": {
"scripts": [
"resources/scripts/underscore.partial.js",
"resources/scripts/wm-typeahead.js",
@ -218,7 +222,7 @@
"citizen-search-no-results-desc"
]
},
"skins.citizen.bpd": {
"skins.citizen.lazyload.scripts": {
"scripts": [
"resources/scripts/lazyload.js"
]