mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-18 00:30:40 +00:00
6819b6e163
Changes: - removed MobileFrontend existence check from MinervaHooks - added MobileFrontend as a requirement inside skin.json Additional benefit: Skin will work only with MobileFrontend v2.0.0 and higher. Change-Id: I1f2f5de3dbc0cf5159a06bc8f47e1cf401a2fcdb
555 lines
14 KiB
JSON
555 lines
14 KiB
JSON
{
|
|
"AutoloadClasses": {
|
|
"MinervaHooks": "includes/Minerva.hooks.php",
|
|
"MinervaTemplate": "includes/skins/MinervaTemplate.php",
|
|
"SkinMinerva": "includes/skins/SkinMinerva.php",
|
|
"ICustomizableSkin": "includes/skins/ICustomizableSkin.php",
|
|
"MediaWiki\\Minerva\\MenuBuilder": "includes/skins/MenuBuilder.php",
|
|
"MediaWiki\\Minerva\\MenuEntry": "includes/skins/MenuBuilder.php",
|
|
"MediaWiki\\Minerva\\SkinUserPageHelper": "includes/skins/SkinUserPageHelper.php"
|
|
},
|
|
"ConfigRegistry": {
|
|
"minerva": "GlobalVarConfig::newInstance"
|
|
},
|
|
"Hooks": {
|
|
"RequestContextCreateSkinMobile": [
|
|
"MinervaHooks::onRequestContextCreateSkinMobile"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"MinervaHooks::onResourceLoaderTestModules"
|
|
],
|
|
"SpecialPageBeforeExecute": [
|
|
"MinervaHooks::onSpecialPageBeforeExecute"
|
|
],
|
|
"ResourceLoaderGetLessVars": [
|
|
"MinervaHooks::onResourceLoaderGetLessVars"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"MinervaNeue": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteSkinPath": "MinervaNeue"
|
|
},
|
|
"ResourceModuleSkinStyles": {
|
|
"minerva": {
|
|
"mediawiki.hlist": [
|
|
"skinStyles/mediawiki.hlist/minerva.less"
|
|
],
|
|
"mobile.languages.structured": [
|
|
"skinStyles/mobile.languages.structured/LanguageOverlay.less"
|
|
],
|
|
"mobile.startup": [
|
|
"skinStyles/mobile.startup/toast.less",
|
|
"skinStyles/mobile.startup/Overlay.less"
|
|
],
|
|
"mobile.toggle": [
|
|
"skinStyles/mobile.toggle/minerva.less"
|
|
],
|
|
"ext.echo.styles.special": [
|
|
"skinStyles/ext.echo.styles.special/SpecialNotificationsOverlay.less"
|
|
],
|
|
"mediawiki.notification": [
|
|
"skinStyles/mobile.startup/toast.less"
|
|
],
|
|
"mediawiki.action.edit.styles": [
|
|
"skinStyles/mediawiki.action.edit.styles/minerva.less"
|
|
],
|
|
"mobile.pointerOverlay": [
|
|
"skinStyles/mobile.pointerOverlay/minerva.less"
|
|
],
|
|
"mobile.search": [
|
|
"skinStyles/mobile.search/SearchOverlay.less"
|
|
],
|
|
"mobile.special.mobilemenu.styles": [
|
|
"skinStyles/mobile.special.mobilemenu.styles/minerva.less"
|
|
]
|
|
}
|
|
},
|
|
"ResourceModules": {
|
|
"skins.minerva.base.reset": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.base.reset/reset.less"
|
|
]
|
|
},
|
|
"skins.minerva.base.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.base.styles/ui.less",
|
|
"resources/skins.minerva.base.styles/pageactions.less",
|
|
"resources/skins.minerva.base.styles/common.less",
|
|
"resources/skins.minerva.base.styles/icons.less",
|
|
"resources/skins.minerva.base.styles/images.less",
|
|
"resources/skins.minerva.base.styles/footer.less",
|
|
"resources/skins.minerva.base.styles/print.less"
|
|
]
|
|
},
|
|
"skins.minerva.content.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.content.styles/styles.less"
|
|
]
|
|
},
|
|
"skins.minerva.print.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.print.styles/styles.less"
|
|
]
|
|
},
|
|
"skins.minerva.tablet.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.tablet.styles/styles.less"
|
|
]
|
|
},
|
|
"skins.minerva.icons.images": {
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-ui-icon-{name}:before",
|
|
"images": {
|
|
"notifications": "resources/skins.minerva.icons.images/bell.svg",
|
|
"mainmenu": "resources/skins.minerva.icons.images/hamburger.svg",
|
|
"edit": "resources/skins.minerva.icons.images/editLocked.svg",
|
|
"edit-enabled": "resources/skins.minerva.icons.images/edit.svg",
|
|
"magnifying-glass": "resources/skins.minerva.icons.images/magnifying-glass.svg",
|
|
"language-switcher": "resources/skins.minerva.icons.images/languageSwitcher.svg"
|
|
}
|
|
},
|
|
"skins.minerva.icons.images.variants": {
|
|
"selectorWithoutVariant": ".mw-ui-icon-{name}:before",
|
|
"selectorWithVariant": ".mw-ui-icon-{name}-{variant}:before",
|
|
"class": "ResourceLoaderImageModule",
|
|
"variants": {
|
|
"gray": {
|
|
"color": "#BBB",
|
|
"global": true
|
|
},
|
|
"invert": {
|
|
"color": "#FFF",
|
|
"global": true
|
|
}
|
|
},
|
|
"images": {
|
|
"clock": "resources/skins.minerva.icons.images.variants/clock.svg",
|
|
"arrow": "resources/skins.minerva.icons.images.variants/arrow.svg"
|
|
}
|
|
},
|
|
"skins.minerva.icons.images.scripts": {
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-ui-icon-{name}:before",
|
|
"position": "bottom",
|
|
"images": {
|
|
"watch": "resources/skins.minerva.icons.images.scripts/watch.svg",
|
|
"watched": "resources/skins.minerva.icons.images.scripts/watched.svg",
|
|
"user": "resources/skins.minerva.icons.images.scripts/userNormal.svg",
|
|
"anonymous": "resources/skins.minerva.icons.images.scripts/userAnonymous.svg"
|
|
}
|
|
},
|
|
"skins.minerva.mainPage.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.mainPage.styles/common.less"
|
|
]
|
|
},
|
|
"skins.minerva.userpage.icons": {
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-ui-icon-{name}:before",
|
|
"images": {
|
|
"talk": "resources/skins.minerva.userpage.icons/talk.svg"
|
|
}
|
|
},
|
|
"skins.minerva.userpage.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"styles": [
|
|
"resources/skins.minerva.userpage.styles/userpage.less"
|
|
]
|
|
},
|
|
"skins.minerva.mainMenu.icons": {
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-ui-icon-mf-{name}:before",
|
|
"images": {
|
|
"anonymous": "resources/skins.minerva.mainMenu.icons/anonymous.svg",
|
|
"home": "resources/skins.minerva.mainMenu.icons/home.svg",
|
|
"logout": "resources/skins.minerva.mainMenu.icons/logout.svg",
|
|
"nearby": "resources/skins.minerva.mainMenu.icons/nearby.svg",
|
|
"profile": "resources/skins.minerva.mainMenu.icons/profile.svg",
|
|
"random": "resources/skins.minerva.mainMenu.icons/random.svg",
|
|
"settings": "resources/skins.minerva.mainMenu.icons/settings.svg",
|
|
"watchlist": "resources/skins.minerva.mainMenu.icons/watchlist.svg",
|
|
"contributions": "resources/skins.minerva.mainMenu.icons/contributions.svg"
|
|
}
|
|
},
|
|
"skins.minerva.mainMenu.styles": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"styles": [
|
|
"resources/skins.minerva.mainMenu.styles/mainmenu.less"
|
|
]
|
|
},
|
|
"skins.minerva.mainMenu": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.mainMenu.icons",
|
|
"skins.minerva.mainMenu.styles",
|
|
"mobile.startup",
|
|
"mobile.loggingSchemas.mobileWebMainMenuClickTracking"
|
|
],
|
|
"position": "bottom",
|
|
"templates": {
|
|
"menu.hogan": "resources/skins.minerva.mainMenu/menu.mustache",
|
|
"menuGroup.hogan": "resources/skins.minerva.mainMenu/menuGroup.mustache"
|
|
},
|
|
"scripts": [
|
|
"resources/skins.minerva.mainMenu/MainMenu.js"
|
|
]
|
|
},
|
|
"skins.minerva.special.styles": {
|
|
"targets": "mobile",
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.special.styles/common.less",
|
|
"resources/skins.minerva.special.styles/forms.less"
|
|
]
|
|
},
|
|
"skins.minerva.special.search.styles": {
|
|
"targets": "mobile",
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.special.search.styles/search.less"
|
|
]
|
|
},
|
|
"skins.minerva.special.watchlist.styles": {
|
|
"targets": "mobile",
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.special.watchlist.styles/specialWatchlist.less"
|
|
]
|
|
},
|
|
"skins.minerva.special.watchlist.scripts": {
|
|
"targets": "mobile",
|
|
"dependencies": [
|
|
"mobile.startup",
|
|
"mobile.watchlist"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.special.watchlist.scripts/watchlist.js"
|
|
]
|
|
},
|
|
"skins.minerva.special.userlogin.styles": {
|
|
"targets": "mobile",
|
|
"position": "top",
|
|
"styles": [
|
|
"resources/skins.minerva.special.userlogin.styles/userlogin.less"
|
|
]
|
|
},
|
|
"skins.minerva.scripts": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.scripts.top",
|
|
"mediawiki.util",
|
|
"mediawiki.router",
|
|
"mediawiki.Title",
|
|
"mobile.startup",
|
|
"skins.minerva.mainMenu",
|
|
"mobile.issues",
|
|
"mobile.search.api",
|
|
"mobile.search",
|
|
"mobile.references",
|
|
"mobile.betaoptin"
|
|
],
|
|
"messages": [
|
|
"mobile-frontend-language-change",
|
|
"mobile-frontend-meta-data-issues",
|
|
"mobile-frontend-meta-data-issues-talk",
|
|
"mobile-frontend-meta-data-issues-categories",
|
|
"mobile-frontend-meta-data-issues-header",
|
|
"mobile-frontend-meta-data-issues-header-talk",
|
|
"mobile-frontend-languages-not-available",
|
|
"mobile-frontend-cookies-required",
|
|
"mobile-frontend-console-recruit",
|
|
"mobile-frontend-redirected-from"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.scripts/preInit.js",
|
|
"resources/skins.minerva.scripts/init.js",
|
|
"resources/skins.minerva.scripts/initLogging.js",
|
|
"resources/skins.minerva.scripts/mobileRedirect.js",
|
|
"resources/skins.minerva.scripts/search.js",
|
|
"resources/skins.minerva.scripts/references.js",
|
|
"resources/skins.minerva.scripts/cleanuptemplates.js"
|
|
]
|
|
},
|
|
"skins.minerva.scripts.top": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"position": "top",
|
|
"dependencies": [
|
|
"skins.minerva.mainMenu"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.scripts.top/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.newusers": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.editor",
|
|
"mediawiki.util",
|
|
"mobile.pointerOverlay"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.newusers/init.js"
|
|
],
|
|
"messages": [
|
|
"mobile-frontend-editor-tutorial-summary",
|
|
"mobile-frontend-editor-tutorial-confirm",
|
|
"mobile-frontend-editor-tutorial-cancel"
|
|
]
|
|
},
|
|
"skins.minerva.notifications.badge": {
|
|
"dependencies": [
|
|
"mediawiki.router",
|
|
"mobile.startup"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.notifications.badge/NotificationBadge.js"
|
|
],
|
|
"templates": {
|
|
"badge.hogan": "includes/skins/secondaryButton.mustache"
|
|
},
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"skins.minerva.notifications": {
|
|
"dependencies": [
|
|
"skins.minerva.notifications.badge",
|
|
"mediawiki.ui.anchor",
|
|
"skins.minerva.scripts"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.notifications/init.js"
|
|
],
|
|
"messages": [
|
|
"mobile-frontend-notifications-filter"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"skins.minerva.editor": {
|
|
"class": "MFResourceLoaderParsedMessageModule",
|
|
"dependencies": [
|
|
"mediawiki.util",
|
|
"mediawiki.router",
|
|
"skins.minerva.icons.images.scripts",
|
|
"skins.minerva.scripts",
|
|
"mediawiki.ui.input",
|
|
"mobile.startup",
|
|
"skins.minerva.toggling",
|
|
"mediawiki.jqueryMsg",
|
|
"mobile.loggingSchemas.edit"
|
|
],
|
|
"messages": {
|
|
"0": "mobile-frontend-editor-disabled",
|
|
"1": "mobile-frontend-editor-unavailable",
|
|
"2": "mobile-frontend-editor-uploadenable",
|
|
"mobile-frontend-editor-blocked-info-loggedin": [
|
|
"parse"
|
|
],
|
|
"3": "mobile-frontend-editor-cta",
|
|
"4": "mobile-frontend-editor-undo-unsupported",
|
|
"5": "mobile-frontend-editor-edit",
|
|
"6": "mobile-frontend-editor-redlink-create",
|
|
"7": "mobile-frontend-editor-redlink-leave",
|
|
"mobile-frontend-editor-redlink-explain": [
|
|
"parse"
|
|
]
|
|
},
|
|
"scripts": [
|
|
"resources/skins.minerva.editor/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.backtotop": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"mobile.backtotop",
|
|
"mobile.startup"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.backtotop/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.categories": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.scripts",
|
|
"mobile.startup"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.categories/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.talk": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.icons.images.scripts",
|
|
"skins.minerva.scripts",
|
|
"mobile.startup",
|
|
"mediawiki.Title"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.talk/init.js"
|
|
],
|
|
"messages": [
|
|
"minerva-talk-add-topic"
|
|
]
|
|
},
|
|
"skins.minerva.toggling": {
|
|
"class": "MFResourceLoaderParsedMessageModule",
|
|
"dependencies": [
|
|
"mobile.toggle",
|
|
"skins.minerva.icons.images.variants",
|
|
"skins.minerva.scripts"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.toggling/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.watchstar": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"skins.minerva.icons.images.scripts",
|
|
"mobile.watchstar",
|
|
"skins.minerva.scripts"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.watchstar/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.fontchanger": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"mobile.startup"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.fontchanger/init.js"
|
|
]
|
|
},
|
|
"skins.minerva.tablet.scripts": {
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
],
|
|
"dependencies": [
|
|
"mobile.toc"
|
|
],
|
|
"scripts": [
|
|
"resources/skins.minerva.tablet.scripts/toc.js"
|
|
]
|
|
}
|
|
},
|
|
"ValidSkinNames": {
|
|
"minervaneue": "MinervaNeue",
|
|
"minerva": "Minerva"
|
|
},
|
|
"author": [],
|
|
"config": {
|
|
"MinervaEnableSiteNotice": false,
|
|
"MinervaCustomLogos": [],
|
|
"MinervaApplyKnownTemplateHacks": false,
|
|
"MinervaPageActions": [
|
|
"edit",
|
|
"talk",
|
|
"watch",
|
|
"switch-language"
|
|
],
|
|
"MinervaAlwaysShowLanguageButton": true,
|
|
"MinervaShowCategoriesButton": {
|
|
"base": false,
|
|
"beta": true
|
|
},
|
|
"MinervaEnableFontChanger": {
|
|
"base": false,
|
|
"beta": true
|
|
},
|
|
"MinervaEnableBackToTop": {
|
|
"base": false,
|
|
"beta": true
|
|
}
|
|
},
|
|
"descriptionmsg": "minerva-skin-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"manifest_version": 1,
|
|
"name": "MinervaNeue",
|
|
"namemsg": "skinname-minerva",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.25.0",
|
|
"extensions": {
|
|
"MobileFrontend": ">= 2.0.0"
|
|
}
|
|
},
|
|
"type": "skin",
|
|
"url": "https://www.mediawiki.org/wiki/Skin:MinervaNeue",
|
|
"callback": "MinervaHooks::onRegistration"
|
|
} |