mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 03:33:45 +00:00
dc838bc87d
This changes the previous behaviour of fetching always up to 500 most recent revisions. Now the extensions fetches N revisions including the newer revision selected to diff as the most recent revision. N is number of revisions that would fit in the current window when rendered as bars. When user is close to either "end" of the slider, extensions fetches another batch of up to N older or newer revisions, as long as user does not reach the oldest or the newest revision of the page. Among others, this removes the limitations of the previous approach: showing only 500 revisions, and failing to show anything when any of selected revisions was older than 500 recent revisions. This change also simplifies usage of Api class. Bug: T135005 Change-Id: Ib3f4a6ac57ff17008f9d8784c4716bd294443096
234 lines
6.2 KiB
JSON
234 lines
6.2 KiB
JSON
{
|
|
"name": "RevisionSlider",
|
|
"version": "1.0.0",
|
|
"author": [
|
|
"TCB team (Wikimedia Deutschland)",
|
|
"Christoph Fischer",
|
|
"Leszek Manicki",
|
|
"Adam Shorland",
|
|
"Jakob Warkotsch"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RevisionSlider",
|
|
"namemsg": "revisionslider",
|
|
"descriptionmsg": "revisionslider-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "other",
|
|
"manifest_version": 1,
|
|
"MessagesDirs": {
|
|
"RevisionSlider": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"RevisionSliderHooks": "RevisionSlider.hooks.php"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.RevisionSlider.init": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.init.js"
|
|
],
|
|
"styles": [
|
|
"modules/ext.RevisionSlider.css"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.jqueryMsg",
|
|
"ext.RevisionSlider.Slider",
|
|
"ext.RevisionSlider.Revision",
|
|
"ext.RevisionSlider.RevisionList",
|
|
"ext.RevisionSlider.HelpDialog",
|
|
"ext.RevisionSlider.Api",
|
|
"ext.RevisionSlider.arrows.left",
|
|
"ext.RevisionSlider.arrows.right",
|
|
"ext.RevisionSlider.pointers.lower",
|
|
"ext.RevisionSlider.pointers.upper",
|
|
"mediawiki.api.options"
|
|
],
|
|
"messages": [
|
|
"revisionslider-show-help",
|
|
"revisionslider-show-help-tooltip",
|
|
"revisionslider-loading-failed"
|
|
],
|
|
"position": "top"
|
|
},
|
|
"ext.RevisionSlider.noscript": {
|
|
"styles": "modules/ext.RevisionSlider.noscript.css"
|
|
},
|
|
"ext.RevisionSlider.Api": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Api.js"
|
|
]
|
|
},
|
|
"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.PointerView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.PointerView.js"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.Slider": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.Slider.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.SliderView"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.SliderView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.SliderView.js"
|
|
],
|
|
"dependencies": [
|
|
"jquery.ui.draggable",
|
|
"ext.RevisionSlider.DiffPage",
|
|
"ext.RevisionSlider.Pointer"
|
|
],
|
|
"messages": [
|
|
"revisionslider-arrow-tooltip-newer",
|
|
"revisionslider-arrow-tooltip-older"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.DiffPage": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.DiffPage.js"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.RevisionList": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.RevisionList.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.RevisionSlider.Revision",
|
|
"ext.RevisionSlider.RevisionListView"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.RevisionListView": {
|
|
"scripts": [
|
|
"modules/ext.RevisionSlider.RevisionListView.js"
|
|
],
|
|
"messages": [
|
|
"revisionslider-label-date",
|
|
"revisionslider-label-page-size",
|
|
"revisionslider-label-change-size",
|
|
"revisionslider-label-username",
|
|
"revisionslider-label-comment",
|
|
"revisionslider-minoredit"
|
|
],
|
|
"dependencies": [
|
|
"jquery.tipsy"
|
|
]
|
|
},
|
|
"ext.RevisionSlider.arrows.left": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-revslider-arrow-left.mw-revslider-arrow-{name}",
|
|
"images": {
|
|
"enabled": "resources/ext.RevisionSlider.arrows/arrow-left-enabled.svg",
|
|
"hovered": "resources/ext.RevisionSlider.arrows/arrow-left-hovered.svg",
|
|
"disabled": "resources/ext.RevisionSlider.arrows/arrow-left-disabled.svg"
|
|
}
|
|
},
|
|
"ext.RevisionSlider.arrows.right": {
|
|
"position": "top",
|
|
"class": "ResourceLoaderImageModule",
|
|
"selector": ".mw-revslider-arrow-right.mw-revslider-arrow-{name}",
|
|
"images": {
|
|
"enabled": "resources/ext.RevisionSlider.arrows/arrow-right-enabled.svg",
|
|
"hovered": "resources/ext.RevisionSlider.arrows/arrow-right-hovered.svg",
|
|
"disabled": "resources/ext.RevisionSlider.arrows/arrow-right-disabled.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"
|
|
],
|
|
"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"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"RevisionSliderHooks::onResourceLoaderTestModules"
|
|
]
|
|
}
|
|
}
|