mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-14 19:24:42 +00:00
c52c657516
Adding a new class for an alternative slider view with one slider for each pointer. The new class will be used when the extension is installed as a beta feature. Each pointer has now its own pointer container visualized with a thin line. Pointers can not change places anymore and methods doing so where overwritten in the patch. Selected revisions are not colored atm to better distinguish between pointers and bars. Poiner lines are now shown above the bars. ( as from feedback in the last PM session ) Some issues with the design might remain. But since we plan the deployment anyway next week this could be merged if reviewed. Bug: T160410 Change-Id: If00c31e30f8a01f3525b191c70605b9c9381671d
299 lines
7.6 KiB
JSON
299 lines
7.6 KiB
JSON
{
|
|
"name": "RevisionSlider",
|
|
"version": "1.0.0",
|
|
"author": [
|
|
"TCB team (Wikimedia Deutschland)",
|
|
"Addshore",
|
|
"Leszek Manicki",
|
|
"Jakob Warkotsch",
|
|
"Tobias Gritschacher",
|
|
"Christoph Jauera"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RevisionSlider",
|
|
"namemsg": "revisionslider",
|
|
"descriptionmsg": "revisionslider-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "other",
|
|
"manifest_version": 1,
|
|
"requires": {
|
|
"MediaWiki": ">= 1.25.0"
|
|
},
|
|
"config": {
|
|
"@RevisionSliderBetaFeature": "Make the RevisionSlider feature a BetaFeature. Setting this requires the RevisionSlider extension and requires each user to enable the BetaFeature.",
|
|
"RevisionSliderBetaFeature": false
|
|
},
|
|
"MessagesDirs": {
|
|
"RevisionSlider": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"RevisionSliderHooks": "src/RevisionSliderHooks.php"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.RevisionSlider.lazy": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.lazy.js"
|
|
],
|
|
"styles": [
|
|
"modules/ext.RevisionSlider.lazy.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.Settings"
|
|
],
|
|
"position": "top"
|
|
},
|
|
"ext.RevisionSlider.init": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.init.js"
|
|
],
|
|
"styles": [
|
|
"modules/ext.RevisionSlider.css"
|
|
],
|
|
"dependencies": [
|
|
"oojs-ui",
|
|
"mediawiki.jqueryMsg",
|
|
"ext.RevisionSlider.Settings",
|
|
"ext.RevisionSlider.Slider",
|
|
"ext.RevisionSlider.Revision",
|
|
"ext.RevisionSlider.RevisionList",
|
|
"ext.RevisionSlider.HelpDialog",
|
|
"ext.RevisionSlider.Api",
|
|
"ext.RevisionSlider.icons",
|
|
"ext.RevisionSlider.pointers.lower",
|
|
"ext.RevisionSlider.pointers.upper",
|
|
"mediawiki.api.options",
|
|
"mediawiki.user",
|
|
"mediawiki.util"
|
|
],
|
|
"messages": [
|
|
"revisionslider-show-help-tooltip",
|
|
"revisionslider-loading-failed",
|
|
"revisionslider-toggle-title-expand",
|
|
"revisionslider-toggle-title-collapse",
|
|
"revisionslider-turn-on-auto-expand-title",
|
|
"revisionslider-turn-off-auto-expand-title"
|
|
],
|
|
"position": "top"
|
|
},
|
|
"ext.RevisionSlider.noscript": {
|
|
"styles": "modules/ext.RevisionSlider.noscript.css"
|
|
},
|
|
"ext.RevisionSlider.Api": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Api.js"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.Settings": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Settings.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.user",
|
|
"mediawiki.storage",
|
|
"mediawiki.cookie"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.Revision": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Revision.js"
|
|
],
|
|
"dependencies": [
|
|
"moment"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.Pointer": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Pointer.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.PointerView",
|
|
"ext.RevisionSlider.PointerLine"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.PointerView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.PointerView.js"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.PointerLine": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.PointerLine.js"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.Slider": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Slider.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.SliderView"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.SliderView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.SliderView.js",
|
|
"modules/ext.RevisionSlider.SliderArrowView.js"
|
|
],
|
|
"dependencies": [
|
|
"jquery.ui.draggable",
|
|
"mediawiki.util",
|
|
"oojs-ui",
|
|
"ext.RevisionSlider.DiffPage",
|
|
"ext.RevisionSlider.HelpDialog",
|
|
"ext.RevisionSlider.Pointer"
|
|
],
|
|
"messages": [
|
|
"revisionslider-arrow-tooltip-newer",
|
|
"revisionslider-arrow-tooltip-older"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.SliderViewTwo": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.SliderViewTwo.js"
|
|
],
|
|
"styles": [
|
|
"modules/ext.RevisionSliderViewTwo.css"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.SliderView"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.DiffPage": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.DiffPage.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.Uri"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.RevisionList": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.RevisionList.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.Revision",
|
|
"ext.RevisionSlider.RevisionListView",
|
|
"mediawiki.util"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.RevisionListView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.RevisionListView.js"
|
|
],
|
|
"messages": [
|
|
"colon-separator",
|
|
"revisionslider-page-size",
|
|
"revisionslider-change-size",
|
|
"revisionslider-label-date",
|
|
"revisionslider-label-page-size",
|
|
"revisionslider-label-change-size",
|
|
"revisionslider-label-username",
|
|
"revisionslider-label-comment",
|
|
"revisionslider-minoredit"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.language",
|
|
"mediawiki.util",
|
|
"oojs-ui"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.icons": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selectorWithoutVariant": ".mw-revslider-{name}-button .oo-ui-iconElement-icon",
|
|
"selectorWithVariant": ".mw-revslider-{name}-button .oo-ui-iconElement-icon.oo-ui-image-invert",
|
|
"variants": {
|
|
"invert": {
|
|
"color": "#ffffff",
|
|
"global": true
|
|
}
|
|
},
|
|
"images": {
|
|
"auto-expand": "resources/ext.RevisionSlider.icons/pin.svg"
|
|
}
|
|
},
|
|
"ext.RevisionSlider.pointers.lower": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-revslider-pointer-lower.mw-revslider-pointer-{name}",
|
|
"images": {
|
|
"oldid": "resources/ext.RevisionSlider.pointers/pointer-lower-old.svg",
|
|
"newid": "resources/ext.RevisionSlider.pointers/pointer-lower-new.svg"
|
|
}
|
|
},
|
|
"ext.RevisionSlider.pointers.upper": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-revslider-pointer-upper.mw-revslider-pointer-{name}",
|
|
"images": {
|
|
"oldid": "resources/ext.RevisionSlider.pointers/pointer-upper-old.svg",
|
|
"newid": "resources/ext.RevisionSlider.pointers/pointer-upper-new.svg"
|
|
}
|
|
},
|
|
"ext.RevisionSlider.HelpDialog": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.HelpDialog.js",
|
|
"modules/ext.RevisionSlider.HelpButtonView.js"
|
|
],
|
|
"dependencies": [
|
|
"oojs-ui",
|
|
"ext.RevisionSlider.dialogImages"
|
|
],
|
|
"messages": [
|
|
"revisionslider-help-dialog-slide1",
|
|
"revisionslider-help-dialog-slide2",
|
|
"revisionslider-help-dialog-slide3",
|
|
"revisionslider-help-dialog-slide4",
|
|
"revisionslider-tutorial",
|
|
"revisionslider-previous-dialog",
|
|
"revisionslider-next-dialog",
|
|
"revisionslider-close-dialog"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.dialogImages": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-revslider-help-dialog-slide-{name}",
|
|
"images": {
|
|
"1": {
|
|
"file": {
|
|
"ltr": "resources/ext.RevisionSlider.helpDialog/slide1-ltr.svg",
|
|
"rtl": "resources/ext.RevisionSlider.helpDialog/slide1-rtl.svg"
|
|
}
|
|
},
|
|
"2": "resources/ext.RevisionSlider.helpDialog/slide2.svg",
|
|
"3": {
|
|
"file": {
|
|
"ltr": "resources/ext.RevisionSlider.helpDialog/slide3-ltr.svg",
|
|
"rtl": "resources/ext.RevisionSlider.helpDialog/slide3-rtl.svg"
|
|
}
|
|
},
|
|
"4": {
|
|
"file": {
|
|
"ltr": "resources/ext.RevisionSlider.helpDialog/slide4-ltr.svg",
|
|
"rtl": "resources/ext.RevisionSlider.helpDialog/slide4-rtl.svg"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "RevisionSlider"
|
|
},
|
|
"Hooks": {
|
|
"DiffViewHeader": [
|
|
"RevisionSliderHooks::onDiffViewHeader"
|
|
],
|
|
"GetBetaFeaturePreferences": [
|
|
"RevisionSliderHooks::getBetaFeaturePreferences"
|
|
],
|
|
"GetPreferences": [
|
|
"RevisionSliderHooks::onGetPreferences"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"RevisionSliderHooks::onResourceLoaderTestModules"
|
|
]
|
|
}
|
|
}
|