mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-14 17:55:07 +00:00
81ec0c292a
Use Codex design tokens where possible, and implement custom dark theming for things for which there is no suitable design token. This means we're changing the colors for light mode ever so slightly. We need to style the search panel for dark mode, so we might as well tackle T371436 and use CSS-only Codex components. The same is done for the "Go to line" panel (can be opened with Mod+Alt+g). The messages in this panel are now also localizable. The search panel (and goto line panel) are abstracted, with helpers to create the Codex components. These will not only be used here but also for the upcoming preferences panel (T359498). Visually, the search and goto panels were inspired by the 2017 editor and share a similar layout. CodeMirror similarly uses a more compact design than usual to maximize the real estate of the editor itself. Other changes: * Bump codemirror/search to get latest bug fixes * Remove stylelint ignorance and fix errors * Move CM5 styles to ext.CodeMirror.less * Move CM-specific styles out of mediawiki.less and into codemirror.less * Move WikiEditor-specific styles to codemirror.wikieditor.less (incidentally, these only apply to CodeMirror 6) * Correct qqq documentation; the "dialog" should be called a "panel" * extension.json: alphabetize list of messages Bug: T365311 Bug: T371436 Bug: T359498 Change-Id: I6a3bbc6bce4e490886753ff484e377c1763de456
57 lines
2.4 KiB
JSON
57 lines
2.4 KiB
JSON
{
|
|
"opts": {
|
|
"encoding": "utf8",
|
|
"destination": "docs/js",
|
|
"package": "package.json",
|
|
"readme": "README.md",
|
|
"recurse": true,
|
|
"template": "node_modules/jsdoc-wmf-theme"
|
|
},
|
|
"plugins": [
|
|
"node_modules/jsdoc-wmf-theme/plugins/default"
|
|
],
|
|
"source": {
|
|
"include": [ "resources" ],
|
|
"exclude": [ "resources/legacy", "resources/lib" ],
|
|
"includePattern": ".+\\.js$"
|
|
},
|
|
"tags": {},
|
|
"templates": {
|
|
"cleverLinks": true,
|
|
"default": {
|
|
"useLongnameInNav": true
|
|
},
|
|
"wmf": {
|
|
"maintitle": "CodeMirror",
|
|
"repository": "https://gerrit.wikimedia.org/g/mediawiki/extensions/CodeMirror",
|
|
"linkMap": {
|
|
"jQuery.fn.textSelection": "https://doc.wikimedia.org/mediawiki-core/master/js/jQueryPlugins.html#.textSelection",
|
|
"Compartment": "https://codemirror.net/docs/ref/#state.Compartment",
|
|
"Decoration": "https://codemirror.net/docs/ref/#view.Decoration",
|
|
"DecorationSet": "https://codemirror.net/docs/ref/#view.DecorationSet",
|
|
"Direction": "https://codemirror.net/docs/ref/#view.Direction",
|
|
"EditorState": "https://codemirror.net/docs/ref/#state.EditorState",
|
|
"EditorView": "https://codemirror.net/docs/ref/#view.EditorView",
|
|
"Extension": "https://codemirror.net/docs/ref/#state.Extension",
|
|
"KeyBinding": "https://codemirror.net/docs/ref/#view.KeyBinding",
|
|
"LanguageSupport": "https://codemirror.net/docs/ref/#language.LanguageSupport",
|
|
"Panel": "https://codemirror.net/docs/ref/#view.Panel",
|
|
"PluginSpec": "https://codemirror.net/docs/ref/#view.PluginSpec",
|
|
"RangeSet": "https://codemirror.net/docs/ref/#state.RangeSet",
|
|
"SearchQuery": "https://codemirror.net/docs/ref/#search.SearchQuery",
|
|
"StateEffectType": "https://codemirror.net/docs/ref/#state.StateEffectType",
|
|
"StateField": "https://codemirror.net/docs/ref/#state.StateField",
|
|
"StreamParser": "https://codemirror.net/docs/ref/#language.StreamParser",
|
|
"StringStream": "https://codemirror.net/docs/ref/#language.StringStream",
|
|
"SyntaxNode": "https://lezer.codemirror.net/docs/ref/#common.SyntaxNode",
|
|
"Tag": "https://lezer.codemirror.net/docs/ref/#highlight.Tag",
|
|
"TagStyle": "https://codemirror.net/docs/ref/#language.TagStyle",
|
|
"Tooltip": "https://codemirror.net/docs/ref/#view.Tooltip",
|
|
"Tree": "https://lezer.codemirror.net/docs/ref/#common.Tree",
|
|
"ViewUpdate": "https://codemirror.net/docs/ref/#view.ViewUpdate",
|
|
"ve.ui.Surface": "https://doc.wikimedia.org/visualeditor-standalone/master/ve.ui.Surface.html"
|
|
}
|
|
}
|
|
}
|
|
}
|