b3847eaa95
Instead of relying on Skin::getDefaultModules to get `mediawiki.legacy.styles` make the legacy style feature an explicit opt in choice by including it in the features list. This is done on the assumption that Icb910a563273bde92a09b1bb92857d5b6e348baa will shortly be merged to deprecate this module to avoid double loading the styles. Bug: T242177 Depends-On: Icb910a563273bde92a09b1bb92857d5b6e348baa Change-Id: I6471bc169f3c2a1f51e17b8ee26ac245b0374c18
107 lines
2.5 KiB
JSON
107 lines
2.5 KiB
JSON
{
|
|
"name": "MonoBook",
|
|
"author": [
|
|
"Gabriel Wicke",
|
|
"Isarra Yos",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Skin:MonoBook",
|
|
"descriptionmsg": "monobook-desc",
|
|
"namemsg": "skinname-monobook",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "skin",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.29.0"
|
|
},
|
|
"ValidSkinNames": {
|
|
"monobook": "MonoBook"
|
|
},
|
|
"SkinOOUIThemes": {
|
|
"monobook": "Apex"
|
|
},
|
|
"DefaultUserOptions": {
|
|
"monobook-responsive": true
|
|
},
|
|
"Hooks": {
|
|
"GetPreferences": "SkinMonoBook::onGetPreferences",
|
|
"ResourceLoaderRegisterModules": "SkinMonoBook::registerMobileExtensionStyles"
|
|
},
|
|
"MessagesDirs": {
|
|
"MonoBook": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"ResourceModules": {
|
|
"skins.monobook.styles": {
|
|
"class": "ResourceLoaderSkinModule",
|
|
"features": [ "elements", "content", "interface", "logo", "legacy" ],
|
|
"styles": {
|
|
"resources/screen-common.less": {
|
|
"media": "screen"
|
|
},
|
|
"resources/screen-desktop.css": {
|
|
"media": "screen"
|
|
}
|
|
}
|
|
},
|
|
"skins.monobook.responsive": {
|
|
"class": "ResourceLoaderSkinModule",
|
|
"features": [
|
|
"elements",
|
|
"content",
|
|
"interface",
|
|
"legacy",
|
|
"logo"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
],
|
|
"styles": {
|
|
"resources/screen-common.less": {
|
|
"media": "screen"
|
|
},
|
|
"resources/screen-desktop.css": {
|
|
"media": "screen and (min-width: 551px)"
|
|
},
|
|
"resources/screen-mobile.less": {
|
|
"media": "screen and (max-width: 550px)"
|
|
}
|
|
}
|
|
},
|
|
"skins.monobook.mobile": {
|
|
"class": "ResourceLoaderSkinModule",
|
|
"features": [ "elements", "content", "interface", "logo", "legacy" ],
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": [
|
|
"resources/mobile.js"
|
|
],
|
|
"styles": {
|
|
"resources/mobile.js.less": {
|
|
"media": "screen and (max-width: 550px)"
|
|
}
|
|
},
|
|
"dependencies": [
|
|
"mediawiki.util"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteSkinPath": "MonoBook"
|
|
},
|
|
"ResourceModuleSkinStyles": {
|
|
"monobook": {
|
|
"+mediawiki.action.view.redirectPage": "resources/skinStyles/mediawiki.action.view.redirectPage.css",
|
|
"+mediawiki.notification": "resources/skinStyles/mediawiki.notification.less",
|
|
"+oojs-ui-core.styles": "resources/skinStyles/ooui.less",
|
|
"+ext.uls.interface": "resources/skinStyles/ext.uls.interface.less",
|
|
"+ext.relatedArticles.readMore": "resources/skinStyles/ext.relatedArticles.readMore.less"
|
|
}
|
|
},
|
|
"AutoloadClasses": {
|
|
"SkinMonoBook": "includes/SkinMonoBook.php",
|
|
"MonoBookTemplate": "includes/MonoBookTemplate.php"
|
|
},
|
|
"manifest_version": 2
|
|
}
|