mediawiki-skins-MinervaNeue/skin.json
Jan Drewniak ae19031f8e Log sectionNumbers in PageIssues schema
Adds logging for the sectionNumbers field in the PageIssues schema.

Additional changes:
* createBanner now requires section number to be a string - this ensures
consistency with how these are used.
* fix a bug which meant createBanner was being called with undefined
section number (due to table of contents)
* Fix some indents in some JSDoc blocks
* Change parameter in function signature from mixed type (int or string)
to explicit string
* update schema number

Depends-On: Ia2696b86c6855d7b46a3f668585377d106d7af23
Bug: T202098
Change-Id: I20511a77258ea245f3d6fe93ade238e5df397a71
2018-08-27 18:02:51 +00:00

637 lines
17 KiB
JSON

{
"name": "MinervaNeue",
"namemsg": "skinname-minerva",
"descriptionmsg": "minerva-skin-desc",
"author": [
"[https://www.mediawiki.org/wiki/Reading/Web/Team Readers Web Team]",
"Bahodir Mansurov",
"Joaquin Hernandez",
"Jon Robson",
"Juliusz Gonera",
"Ryan Kaldari",
"Florian Schmidt",
"Sam Smith"
],
"type": "skin",
"url": "https://www.mediawiki.org/wiki/Skin:MinervaNeue",
"license-name": "GPL-2.0-or-later",
"requires": {
"MediaWiki": ">= 1.32.0",
"extensions": {
"MobileFrontend": ">= 2.1.0"
}
},
"config": {
"MinervaDownloadNamespaces": [ 0 ],
"MinervaEnableSiteNotice": false,
"MinervaCustomLogos": [],
"MinervaApplyKnownTemplateHacks": false,
"MinervaPageActions": [
"edit",
"talk",
"watch",
"switch-language"
],
"MinervaAlwaysShowLanguageButton": true,
"MinervaShowCategoriesButton": {
"prefix": "skin-minerva-",
"base": false,
"beta": true
},
"MinervaEnableBackToTop": {
"prefix": "skin-minerva-",
"base": false,
"beta": true
},
"MinervaABSamplingRate": 0
},
"ValidSkinNames": {
"minerva": "MinervaNeue"
},
"AutoloadClasses": {
"MinervaUI": "includes/MinervaUI.php",
"MinervaHooks": "includes/MinervaHooks.php",
"MinervaTemplate": "includes/skins/MinervaTemplate.php",
"SkinMinerva": "includes/skins/SkinMinerva.php",
"SkinMinervaNeue": "includes/skins/SkinMinerva.php",
"ICustomizableSkin": "includes/skins/ICustomizableSkin.php",
"MediaWiki\\Minerva\\MenuBuilder": "includes/skins/MenuBuilder.php",
"MediaWiki\\Minerva\\MenuEntry": "includes/skins/MenuEntry.php",
"MediaWiki\\Minerva\\ResourceLoaderLessVarFileModule": "includes/ResourceLoaderLessVarFileModule.php",
"MediaWiki\\Minerva\\SkinUserPageHelper": "includes/skins/SkinUserPageHelper.php"
},
"ConfigRegistry": {
"minerva": "GlobalVarConfig::newInstance"
},
"Hooks": {
"MobileFrontendFeaturesRegistration": [
"MinervaHooks::onMobileFrontendFeaturesRegistration"
],
"RequestContextCreateSkinMobile": [
"MinervaHooks::onRequestContextCreateSkinMobile"
],
"ResourceLoaderTestModules": [
"MinervaHooks::onResourceLoaderTestModules"
],
"SpecialPageBeforeExecute": [
"MinervaHooks::onSpecialPageBeforeExecute"
],
"ResourceLoaderGetConfigVars": [
"MinervaHooks::onResourceLoaderGetConfigVars"
]
},
"MessagesDirs": {
"MinervaNeue": [
"i18n"
]
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteSkinPath": "MinervaNeue"
},
"ResourceModuleSkinStyles": {
"minerva": {
"mobile.special.mobileoptions.styles": [
"skinStyles/mobile.special.mobileoptions.styles/minerva.less"
],
"mediawiki.page.gallery.styles": [
"skinStyles/mediawiki.page.gallery.styles/tablet.less"
],
"mediawiki.special.userlogin.common.styles": [
"skinStyles/mediawiki.special.userlogin.common.styles/minerva.less"
],
"mediawiki.special.search.styles": [
"skinStyles/mediawiki.special.search.styles/minerva.less"
],
"mediawiki.skinning.content.parsoid": [],
"mediawiki.hlist": [
"skinStyles/mediawiki.hlist/minerva.less"
],
"mobile.languages.structured": [
"skinStyles/mobile.languages.structured/LanguageOverlay.less"
],
"mobile.startup": [
"skinStyles/mobile.startup/skin.less",
"skinStyles/mobile.startup/toast.less",
"skinStyles/mobile.startup/Overlay.less"
],
"mediawiki.special": [
"skinStyles/mobile.special.styles/minerva.less"
],
"mobile.special.styles": [
"skinStyles/mobile.special.styles/minerva.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"
],
"mediawiki.special.preferences.styles": [
"skinStyles/mediawiki.special.preferences.styles/styles.less"
],
"mobile.search": [
"skinStyles/mobile.search/SearchOverlay.less"
],
"mobile.special.mobilemenu.styles": [
"skinStyles/mobile.special.mobilemenu.styles/minerva.less"
],
"mobile.editor.ve": [
"skinStyles/mobile.editor.ve/minerva.less"
],
"mobile.notifications.overlay": [
"skinStyles/mobile.notifications.overlay/minerva.less"
]
}
},
"EventLoggingSchemas": {
"PageIssues": 18326688
},
"ResourceModules": {
"skins.minerva.base.reset": {
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.base.reset/reset.less"
]
},
"skins.minerva.base.styles": {
"targets": [
"mobile",
"desktop"
],
"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/images.less",
"resources/skins.minerva.base.styles/footer.less",
"resources/skins.minerva.base.styles/print/styles.less"
]
},
"skins.minerva.content.styles": {
"class": "MediaWiki\\Minerva\\ResourceLoaderLessVarFileModule",
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.content.styles/styles.less"
]
},
"skins.minerva.content.styles.images": {
"class": "ResourceLoaderImageModule",
"selector": "{name}",
"defaultColor": "#36c",
"useDataURI": false,
"images": {
"input.search,.mw-ui-icon-minerva-magnifying-glass:before": "resources/skins.minerva.content.styles.images/magnifying-glass.svg",
"a.external": {
"file": {
"ltr": "resources/skins.minerva.content.styles.images/link-external-ltr.svg",
"rtl": "resources/skins.minerva.content.styles.images/link-external-rtl.svg"
}
}
}
},
"skins.minerva.tablet.styles": {
"class": "MediaWiki\\Minerva\\ResourceLoaderLessVarFileModule",
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.tablet.styles/styles.less"
]
},
"skins.minerva.icons.loggedin": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}:before",
"useDataURI": false,
"images": {
"notifications": "resources/skins.minerva.icons.loggedin/bell.svg"
}
},
"skins.minerva.icons.images": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}:before",
"useDataURI": false,
"images": {
"warning": "resources/skins.minerva.icons.images/warning.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",
"language-switcher": "resources/skins.minerva.icons.images/languageSwitcher.svg"
}
},
"skins.minerva.icons.images.variants": {
"selectorWithoutVariant": ".mw-ui-icon-minerva-{name}:before",
"selectorWithVariant": ".mw-ui-icon-minerva-{name}-{variant}:before",
"class": "ResourceLoaderImageModule",
"variants": {
"gray": {
"color": "#54595d",
"global": true
},
"invert": {
"color": "#fff",
"global": true
}
},
"images": {
"profile": "resources/skins.minerva.icons.images.variants/profile.svg",
"clock": "resources/skins.minerva.icons.images.variants/clock.svg"
}
},
"skins.minerva.icons.images.scripts": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"skins.minerva.icons.images.scripts.misc",
"skins.minerva.icons.page.issues.uncolored",
"skins.minerva.icons.page.issues.default.color",
"skins.minerva.icons.page.issues.medium.color"
]
},
"skins.minerva.icons.images.scripts.misc": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}:before",
"images": {
"download": "resources/skins.minerva.icons.images.scripts.misc/download.svg"
}
},
"skins.minerva.icons.page.issues.uncolored": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}:before",
"images": {
"issue-severity-low-lowColor": "resources/skins.minerva.icons.page.issues.uncolored/issue-severity-low.svg",
"issue-type-move-defaultColor": "resources/skins.minerva.icons.page.issues.uncolored/issue-type-move.svg"
}
},
"skins.minerva.icons.page.issues.default.color": {
"class": "ResourceLoaderImageModule",
"selectorWithoutVariant": ".mw-ui-icon-minerva-{name}-defaultColor:before",
"selectorWithVariant": ".mw-ui-icon-minerva-{name}-{variant}:before",
"defaultColor": "#54595d",
"variants": {
"lowColor": { "color": "#fc3", "global": true },
"mediumColor": { "color": "#ff5d01", "global": true },
"highColor": { "color": "#d33", "global": true }
},
"images": {
"issue-generic": "resources/skins.minerva.icons.page.issues.default.color/issue-generic.svg"
}
},
"skins.minerva.icons.page.issues.medium.color": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-minerva-{name}-mediumColor:before",
"defaultColor": "#ff5d01",
"images": {
"issue-severity-medium": "resources/skins.minerva.icons.page.issues.medium.color/issue-severity-medium.svg",
"issue-type-point-of-view": "resources/skins.minerva.icons.page.issues.medium.color/issue-type-point-of-view.svg"
}
},
"skins.minerva.mainPage.styles": {
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.mainPage.styles/common.less"
]
},
"skins.minerva.userpage.icons": {
"class": "ResourceLoaderImageModule",
"selector": ".mw-ui-icon-mf-{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-minerva-{name}:before",
"images": {
"login": "resources/skins.minerva.mainMenu.icons/login.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",
"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.icons.images.variants",
"skins.minerva.mainMenu.icons",
"skins.minerva.mainMenu.styles",
"mobile.startup"
],
"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.loggedin.styles": {
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.loggedin.styles/styles.less"
]
},
"skins.minerva.scripts": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"jquery.cookie",
"mobile.init",
"skins.minerva.icons.images.scripts",
"skins.minerva.scripts.top",
"mediawiki.util",
"mediawiki.router",
"mediawiki.Title",
"mobile.startup",
"skins.minerva.mainMenu",
"mobile.search.api",
"mobile.search",
"mobile.references",
"mediawiki.user",
"mediawiki.storage",
"mediawiki.experiments"
],
"messages": [
"skin-minerva-issue-learn-more",
"mobile-frontend-language-change",
"mobile-frontend-meta-data-issues",
"minerva-meta-data-issues-section-header",
"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",
"minerva-download",
"mobile-frontend-redirected-from"
],
"styles": [
"resources/skins.minerva.scripts/styles.less",
"resources/skins.minerva.scripts/PageIssuesOverlay.less"
],
"templates": {
"PageIssuesOverlayContent.hogan": "resources/skins.minerva.scripts/PageIssuesOverlayContent.hogan"
},
"scripts": [
"resources/skins.minerva.scripts/preInit.js",
"resources/skins.minerva.scripts/DownloadIcon.js",
"resources/skins.minerva.scripts/pageIssuesLogger.js",
"resources/skins.minerva.scripts/pageIssuesParser.js",
"resources/skins.minerva.scripts/AB.js",
"resources/skins.minerva.scripts/PageIssuesOverlay.js",
"resources/skins.minerva.scripts/pageIssues.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"
]
},
"skins.minerva.scripts.top": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"skins.minerva.mainMenu"
],
"scripts": [
"resources/skins.minerva.scripts.top/init.js"
]
},
"skins.minerva.newusers": {
"targets": [
"mobile",
"desktop"
],
"styles": [
"resources/skins.minerva.newusers/PointerOverlay.less"
],
"templates": {
"PointerOverlay.hogan": "resources/skins.minerva.newusers/PointerOverlay.hogan"
},
"dependencies": [
"skins.minerva.editor",
"mediawiki.util",
"mobile.startup"
],
"scripts": [
"resources/skins.minerva.newusers/PointerOverlay.js",
"resources/skins.minerva.newusers/init.js"
],
"messages": [
"minerva-pointer-dismiss",
"mobile-frontend-editor-tutorial-summary",
"mobile-frontend-editor-tutorial-confirm",
"mobile-frontend-editor-tutorial-cancel"
]
},
"skins.minerva.notifications.badge": {
"messages": [
"echo-badge-count"
],
"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": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"mediawiki.util",
"mediawiki.router",
"skins.minerva.icons.images.scripts",
"skins.minerva.scripts",
"mediawiki.ui.input",
"mobile.startup",
"skins.minerva.toggling",
"mediawiki.jqueryMsg",
"mediawiki.Uri"
],
"messages": [
"mobile-frontend-editor-disabled",
"mobile-frontend-editor-unavailable",
"mobile-frontend-editor-uploadenable",
"mobile-frontend-editor-cta",
"mobile-frontend-editor-undo-unsupported",
"mobile-frontend-editor-edit",
"mobile-frontend-editor-redlink-create",
"mobile-frontend-editor-redlink-leave",
"mobile-frontend-editor-redlink-explain",
"apierror-readonly"
],
"scripts": [
"resources/skins.minerva.editor/init.js"
]
},
"skins.minerva.backtotop": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"mobile.toggle",
"mobile.startup"
],
"templates": {
"BackToTopOverlay.hogan": "resources/skins.minerva.backtotop/BackToTopOverlay.hogan"
},
"styles": [
"resources/skins.minerva.backtotop/backtotop.less"
],
"scripts": [
"resources/skins.minerva.backtotop/BackToTopOverlay.js",
"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"
]
},
"skins.minerva.toggling": {
"targets": [
"mobile",
"desktop"
],
"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.tablet.scripts": {
"targets": [
"mobile",
"desktop"
],
"dependencies": [
"mobile.toc"
],
"scripts": [
"resources/skins.minerva.tablet.scripts/toc.js"
]
}
},
"manifest_version": 1
}