mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 01:16:19 +00:00
e9c401e3aa
They are not generated by MediaWiki, but they often appear when users sign others' unsigned comments by copy-pasting the timestamp from the history page. Add test config data for nlwiki, exported by running this in the browser console: copy( JSON.stringify( { wgArticlePath, wgNamespaceIds, wgFormattedNamespaces }, null, 2 ) + '\n' + JSON.stringify( mw.loader.moduleRegistry['ext.discussionTools.parser'].packageExports['data.json'], null, 2 ) ); Bug: T245784 Change-Id: Icbcdc5a028e9ce2cb09173f87769e525ec3082fc
226 lines
5.8 KiB
JSON
226 lines
5.8 KiB
JSON
{
|
|
"name": "DiscussionTools",
|
|
"license-name": "MIT",
|
|
"version": "0.0.0",
|
|
"url": "https://www.mediawiki.org/wiki/Extension:DiscussionTools",
|
|
"namemsg": "discussiontools",
|
|
"descriptionmsg": "discussiontools-desc",
|
|
"manifest_version": 2,
|
|
"requires": {
|
|
"MediaWiki": ">= 1.34.0",
|
|
"extensions": {
|
|
"VisualEditor": ">= 0.1.1"
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"DiscussionTools": [ "i18n" ]
|
|
},
|
|
"callback": "DiscussionToolsHooks::onRegistration",
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "DiscussionTools/modules"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.discussionTools.parser": {
|
|
"packageFiles": [
|
|
"parser.js",
|
|
"lib/moment-timezone/moment-timezone-with-data-1970-2030.js",
|
|
{
|
|
"name": "data.json",
|
|
"callback": "DiscussionToolsData::getLocalData"
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"moment",
|
|
"mediawiki.util",
|
|
"mediawiki.Uri",
|
|
"mediawiki.Title"
|
|
]
|
|
},
|
|
"ext.discussionTools.modifier": {
|
|
"packageFiles": [
|
|
"modifier.js"
|
|
]
|
|
},
|
|
"ext.discussionTools.controller": {
|
|
"packageFiles": [
|
|
"controller.js",
|
|
{
|
|
"name": "config.json",
|
|
"config": {
|
|
"useVisualEditor": "DiscussionToolsUseVisualEditor"
|
|
}
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"rangefix",
|
|
"ext.discussionTools.parser",
|
|
"ext.discussionTools.modifier",
|
|
"ext.discussionTools.logger"
|
|
],
|
|
"messages": [
|
|
"discussiontools-error-comment-disappeared",
|
|
"discussiontools-defaultsummary-reply",
|
|
"discussiontools-replylink",
|
|
"discussiontools-replywidget-loading"
|
|
]
|
|
},
|
|
"ext.discussionTools.logger": {
|
|
"packageFiles": [
|
|
"logger.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.util"
|
|
]
|
|
},
|
|
"ext.discussionTools.init": {
|
|
"packageFiles": [
|
|
"dt.init.js"
|
|
],
|
|
"styles": "dt.init.less",
|
|
"dependencies": [
|
|
"mediawiki.Uri",
|
|
"ext.discussionTools.controller"
|
|
]
|
|
},
|
|
"ext.discussionTools.debug": {
|
|
"packageFiles": [
|
|
"dt.debug.js",
|
|
"highlighter.js"
|
|
],
|
|
"styles": "highlighter.css",
|
|
"dependencies": [
|
|
"ext.discussionTools.parser"
|
|
]
|
|
},
|
|
"ext.discussionTools.ReplyWidget": {
|
|
"packageFiles": [
|
|
"dt.ui.ReplyWidget.js"
|
|
],
|
|
"styles": [
|
|
"dt.ui.ReplyWidget.less"
|
|
],
|
|
"messages": [
|
|
"discussiontools-replywidget-anon-warning",
|
|
"discussiontools-replywidget-cancel",
|
|
"discussiontools-replywidget-preview",
|
|
"discussiontools-replywidget-reply",
|
|
"discussiontools-replywidget-terms-click"
|
|
],
|
|
"dependencies": [
|
|
"ext.discussionTools.controller",
|
|
"ext.discussionTools.logger",
|
|
"mediawiki.widgets.AbandonEditDialog"
|
|
]
|
|
},
|
|
"ext.discussionTools.ReplyWidgetPlain": {
|
|
"packageFiles": [
|
|
"dt.ui.ReplyWidgetPlain.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.discussionTools.ReplyWidget",
|
|
"oojs-ui-core",
|
|
"mediawiki.editfont.styles",
|
|
"mediawiki.user",
|
|
"mediawiki.jqueryMsg"
|
|
]
|
|
},
|
|
"ext.discussionTools.ReplyWidgetVisual": {
|
|
"packageFiles": [
|
|
"dt.ui.ReplyWidgetVisual.js",
|
|
"CommentTarget.js",
|
|
"CommentTargetWidget.js"
|
|
],
|
|
"styles": [
|
|
"CommentTargetWidget.less"
|
|
],
|
|
"dependencies": [
|
|
"ext.discussionTools.ReplyWidget",
|
|
"ext.visualEditor.mwcore",
|
|
"ext.visualEditor.mwwikitext",
|
|
"ext.visualEditor.core.desktop",
|
|
"ext.visualEditor.desktopTarget",
|
|
"ext.visualEditor.mwextensions.desktop"
|
|
]
|
|
}
|
|
},
|
|
"QUnitTestModule": {
|
|
"localBasePath": "tests/qunit",
|
|
"remoteExtPath": "DiscussionTools/tests/qunit",
|
|
"packageFiles": [
|
|
"index.js",
|
|
"utils.js",
|
|
{
|
|
"name": "data-en.json",
|
|
"callback": "DiscussionToolsData::getLocalData",
|
|
"callbackParam": "en"
|
|
},
|
|
"data/enwiki-config.json",
|
|
"data/enwiki-data.json",
|
|
"data/nlwiki-config.json",
|
|
"data/nlwiki-data.json",
|
|
"data/plwiki-config.json",
|
|
"data/plwiki-data.json",
|
|
"cases/en-big-oldparser/en-big-oldparser.json",
|
|
"cases/en-big-parsoid/en-big-parsoid.json",
|
|
"cases/pl-big-oldparser/pl-big-oldparser.json",
|
|
"cases/pl-big-parsoid/pl-big-parsoid.json",
|
|
"cases/no-heading/no-heading.json",
|
|
"cases/lrm-signature/lrm-signature.json",
|
|
"modifier.test.js",
|
|
"parser.test.js"
|
|
],
|
|
"templates": [
|
|
"cases/en-big-oldparser/en-big-oldparser.html",
|
|
"cases/en-big-oldparser/en-big-oldparser-modified.html",
|
|
"cases/en-big-parsoid/en-big-parsoid.html",
|
|
"cases/en-big-parsoid/en-big-parsoid-modified.html",
|
|
"cases/pl-big-oldparser/pl-big-oldparser.html",
|
|
"cases/pl-big-oldparser/pl-big-oldparser-modified.html",
|
|
"cases/pl-big-parsoid/pl-big-parsoid.html",
|
|
"cases/pl-big-parsoid/pl-big-parsoid-modified.html",
|
|
"cases/no-heading/no-heading.html",
|
|
"cases/lrm-signature/lrm-signature.html",
|
|
"cases/split-list/split-list.html",
|
|
"cases/split-list/split-list-modified.html",
|
|
"cases/split-list2/split-list2.html",
|
|
"cases/split-list2/split-list2-modified.html"
|
|
],
|
|
"dependencies": [
|
|
"ext.discussionTools.modifier",
|
|
"ext.discussionTools.parser"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"DiscussionToolsData": "includes/DiscussionToolsData.php",
|
|
"DiscussionToolsHooks": "includes/DiscussionToolsHooks.php"
|
|
},
|
|
"Hooks": {
|
|
"BeforePageDisplay": [
|
|
"DiscussionToolsHooks::onBeforePageDisplay"
|
|
],
|
|
"GetBetaFeaturePreferences": "DiscussionToolsHooks::onGetBetaPreferences",
|
|
"ListDefinedTags": "DiscussionToolsHooks::onListDefinedTags",
|
|
"ChangeTagsListActive": "DiscussionToolsHooks::onListDefinedTags",
|
|
"RecentChange_save": "DiscussionToolsHooks::onRecentChangeSave"
|
|
},
|
|
"config": {
|
|
"DiscussionToolsEnable": {
|
|
"value": true,
|
|
"description": "Enable DiscussionTools on talk pages."
|
|
},
|
|
"DiscussionToolsBeta": {
|
|
"value": false,
|
|
"description": "Make DiscussionTools a BetaFeature."
|
|
},
|
|
"DiscussionToolsUseVisualEditor": {
|
|
"value": false,
|
|
"description": "Use VisualEditor for editing replies (both visual and wikitext)."
|
|
}
|
|
},
|
|
"ConfigRegistry": {
|
|
"discussiontools": "GlobalVarConfig::newInstance"
|
|
},
|
|
"type": "other"
|
|
}
|