00234ce031
Since MonoBook is never cached on Wikimedia wikis, we don't need to do anything about both modules being loaded in cached HTML. There should be no differences before and after this change. The change must apply to skins.monobook.styles and skins.monobook.responsive as these modules never load at the same time (see setupSkinUserCss). Bug: T242177 Change-Id: I5e69cd7f37f7b7a2b6325177b6688a426d92d57f
96 lines
2.4 KiB
JSON
96 lines
2.4 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" ],
|
|
"styles": {
|
|
"resources/screen-common.less": {
|
|
"media": "screen"
|
|
},
|
|
"resources/screen-desktop.css": {
|
|
"media": "screen"
|
|
}
|
|
}
|
|
},
|
|
"skins.monobook.responsive": {
|
|
"class": "ResourceLoaderSkinModule",
|
|
"features": [ "elements", "content", "interface", "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": {
|
|
"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": 1
|
|
}
|