mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-14 09:44:48 +00:00
ed5a12fad2
Bug: T324723 Depends-On: Ifa355f3821c72935c74650fa635a6ab863c70d39 Depends-On: I271e99c777b638bd4c4bae642f8c7c87fc0ae5cd Change-Id: Ia6195a0771cf36ca739577687a6c1e8f64c78ac8
212 lines
5.1 KiB
JSON
212 lines
5.1 KiB
JSON
{
|
|
"name": "CodeMirror",
|
|
"version": "4.0.0",
|
|
"author": [
|
|
"[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov]",
|
|
"[https://www.mediawiki.org/wiki/User:Florianschmidtwelzow Florian Schmidt]",
|
|
"Marijn Haverbeke",
|
|
"[https://raw.githubusercontent.com/codemirror/CodeMirror/master/AUTHORS CodeMirror contributors]"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:CodeMirror",
|
|
"descriptionmsg": "codemirror-desc",
|
|
"type": "editor",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.38.0"
|
|
},
|
|
"config": {
|
|
"CodeMirrorLineNumberingNamespaces": {
|
|
"value": null,
|
|
"description": "List of namespace IDs where line numbering should be enabled, or `null` to enable for all namespaces. Set to [] to disable everywhere. Defaults to `null` for all namespaces.",
|
|
"public": true
|
|
}
|
|
},
|
|
"MessagesDirs": {
|
|
"CodeMirror": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"MediaWiki\\Extension\\CodeMirror\\": "includes/"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.CodeMirror": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"dependencies": [
|
|
"ext.CodeMirror.data",
|
|
"jquery.textSelection",
|
|
"mediawiki.api",
|
|
"mediawiki.user",
|
|
"user.options",
|
|
"jquery.ui",
|
|
"oojs-ui.styles.icons-editing-styling"
|
|
],
|
|
"scripts": [
|
|
"ext.CodeMirror.js"
|
|
],
|
|
"styles": [
|
|
"ext.CodeMirror.less"
|
|
],
|
|
"messages": [
|
|
"codemirror-toggle-label"
|
|
]
|
|
},
|
|
"ext.CodeMirror.data": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"class": "MediaWiki\\Extension\\CodeMirror\\ResourceLoaderCodeMirrorModule"
|
|
},
|
|
"ext.CodeMirror.lib": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": [
|
|
"lib/codemirror/lib/codemirror.js"
|
|
],
|
|
"styles": [
|
|
"lib/codemirror/lib/codemirror.css",
|
|
"lib/codemirror-fixes.less"
|
|
]
|
|
},
|
|
"ext.CodeMirror.addons": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": [
|
|
"addon/edit/matchbrackets-wmde.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.mode.mediawiki": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "mode/mediawiki/mediawiki.js",
|
|
"styles": [
|
|
"mode/mediawiki/mediawiki.less",
|
|
"mode/mediawiki/colorblind-colors.less"
|
|
],
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.css": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/css/css.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.javascript": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/javascript/javascript.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.xml": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/xml/xml.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.htmlmixed": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/htmlmixed/htmlmixed.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib.mode.xml",
|
|
"ext.CodeMirror.lib.mode.javascript",
|
|
"ext.CodeMirror.lib.mode.css",
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.clike": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/clike/clike.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.lib.mode.php": {
|
|
"targets": [ "desktop", "mobile" ],
|
|
"scripts": "lib/codemirror/mode/php/php.js",
|
|
"dependencies": [
|
|
"ext.CodeMirror.lib.mode.htmlmixed",
|
|
"ext.CodeMirror.lib.mode.clike",
|
|
"ext.CodeMirror.lib"
|
|
]
|
|
},
|
|
"ext.CodeMirror.visualEditor.init": {
|
|
"scripts": [
|
|
"modules/ve-cm/ve.ui.CodeMirror.init.js"
|
|
],
|
|
"styles": [
|
|
"modules/ve-cm/ve.ui.CodeMirror.init.less"
|
|
],
|
|
"messages": [
|
|
"codemirror-toggle-label"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.CodeMirror.visualEditor": {
|
|
"dependencies": [
|
|
"ext.visualEditor.mwcore",
|
|
"mediawiki.api",
|
|
"user.options"
|
|
],
|
|
"scripts": [
|
|
"modules/ve-cm/ve.ui.CodeMirrorAction.js",
|
|
"modules/ve-cm/ve.ui.CodeMirrorTool.js"
|
|
],
|
|
"targets": [
|
|
"desktop"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "resources",
|
|
"remoteExtPath": "CodeMirror/resources"
|
|
},
|
|
"DefaultUserOptions": {
|
|
"usecodemirror": 0
|
|
},
|
|
"QUnitTestModule": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "CodeMirror",
|
|
"scripts": [
|
|
"resources/mode/mediawiki/tests/qunit/CodeMirror.mediawiki.test.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.CodeMirror.data",
|
|
"ext.CodeMirror.lib",
|
|
"ext.CodeMirror.mode.mediawiki"
|
|
]
|
|
},
|
|
"Hooks": {
|
|
"BeforePageDisplay": "MediaWiki\\Extension\\CodeMirror\\Hooks::onBeforePageDisplay",
|
|
"GetPreferences": "MediaWiki\\Extension\\CodeMirror\\Hooks::onGetPreferences",
|
|
"ResourceLoaderGetConfigVars": "MediaWiki\\Extension\\CodeMirror\\Hooks::onResourceLoaderGetConfigVars"
|
|
},
|
|
"attributes": {
|
|
"CodeMirror": {
|
|
"PluginModules": [
|
|
"ext.CodeMirror.addons"
|
|
],
|
|
"TagModes": {
|
|
"pre": "mw-tag-pre",
|
|
"nowiki": "mw-tag-nowiki"
|
|
}
|
|
},
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.CodeMirror.visualEditor.init",
|
|
"ext.CodeMirror.visualEditor"
|
|
]
|
|
},
|
|
"EventLogging": {
|
|
"Schemas": {
|
|
"CodeMirrorUsage": "/analytics/legacy/codemirrorusage/1.0.0"
|
|
}
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|