mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 00:01:05 +00:00
Renamed resourceloader modules
This commit is contained in:
parent
fbdac79c4f
commit
16e187c38d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
|
12
skin.json
12
skin.json
|
@ -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"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue