mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
44eb801844
By default, DiscussionTools loads on all talk pages when the extension is installed. This can now be disabled by setting the configuration option `$wgDiscussionToolsEnable=false`. To test DiscussionTools, one can now use the query parameter `?dtenable=1`, which allows it to be loaded on any wikitext page (overriding the config option). Bug: T243621 Change-Id: I3d5a9cc9a4183fb6951f05c557b1d42735a9df7c
202 lines
5.3 KiB
JSON
202 lines
5.3 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"
|
|
],
|
|
"messages": [
|
|
"discussiontools-defaultsummary-reply",
|
|
"discussiontools-replylink",
|
|
"discussiontools-replywidget-loading"
|
|
]
|
|
},
|
|
"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-reply",
|
|
"discussiontools-replywidget-terms-click"
|
|
],
|
|
"dependencies": [
|
|
"ext.discussionTools.controller",
|
|
"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/plwiki-config.json",
|
|
"data/plwiki-data.json",
|
|
"pages/oldparser/en-913983958.json",
|
|
"pages/parsoid/en-913983958.json",
|
|
"pages/oldparser/pl-55171451.json",
|
|
"pages/parsoid/pl-55171451.json",
|
|
"other/no-heading.json",
|
|
"modifier.test.js",
|
|
"parser.test.js"
|
|
],
|
|
"templates": {
|
|
"oldparser/en-913983958.html": "pages/oldparser/en-913983958.html",
|
|
"oldparser/en-913983958-modified.html": "pages/oldparser/en-913983958-modified.html",
|
|
"parsoid/en-913983958.html": "pages/parsoid/en-913983958.html",
|
|
"parsoid/en-913983958-modified.html": "pages/parsoid/en-913983958-modified.html",
|
|
"oldparser/pl-55171451.html": "pages/oldparser/pl-55171451.html",
|
|
"oldparser/pl-55171451-modified.html": "pages/oldparser/pl-55171451-modified.html",
|
|
"parsoid/pl-55171451.html": "pages/parsoid/pl-55171451.html",
|
|
"parsoid/pl-55171451-modified.html": "pages/parsoid/pl-55171451-modified.html",
|
|
"other/no-heading.html": "other/no-heading.html",
|
|
"other/split-list.html": "other/split-list.html",
|
|
"other/split-list-modified.html": "other/split-list-modified.html",
|
|
"other/split-list2.html": "other/split-list2.html",
|
|
"other/split-list2-modified.html": "other/split-list2-modified.html"
|
|
},
|
|
"dependencies": [
|
|
"ext.discussionTools.modifier",
|
|
"ext.discussionTools.parser"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"DiscussionToolsData": "includes/DiscussionToolsData.php",
|
|
"DiscussionToolsHooks": "includes/DiscussionToolsHooks.php"
|
|
},
|
|
"Hooks": {
|
|
"BeforePageDisplay": [
|
|
"DiscussionToolsHooks::onBeforePageDisplay"
|
|
],
|
|
"ListDefinedTags": "DiscussionToolsHooks::onListDefinedTags",
|
|
"ChangeTagsListActive": "DiscussionToolsHooks::onListDefinedTags",
|
|
"ChangeTagsAllowedAdd": "DiscussionToolsHooks::onListDefinedTags"
|
|
},
|
|
"config": {
|
|
"DiscussionToolsEnable": {
|
|
"value": true,
|
|
"description": "Enable DiscussionTools on talk pages."
|
|
},
|
|
"DiscussionToolsUseVisualEditor": {
|
|
"value": false,
|
|
"description": "Use VisualEditor for editing replies (both visual and wikitext)."
|
|
}
|
|
},
|
|
"type": "other"
|
|
}
|