mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
27b6aaebcc
For years, users have complained that the CodeMirror toggle button is confusing and concealed. The icon looked too similar to the edit icon, when it was supposed to be a highlighter. The new icon is similar but has a highlighted line to help clarify what it is. We also now have the text 'Syntax' accompanying the icon. Translators are instructed to try to be brief to conserve space in the toolbar. "Syntax highlighting" is the full correct term, and remains the text for the button's tooltip. The new icon is ~0.3KB uncompressed, just meeting performance guidelines for using @embed <https://w.wiki/AsPW>. This is also only temporary until the icon is upstreamed in Codex/OOUI. New icon courtesy of Thiemo Kreuz (WMDE) A corresponding change for the 2017 editor will follow I15453b33e7. Bug: T174145 Change-Id: Ib6dbfc261214ed6672c1a54738e3401fa2f5d262
47 lines
1.8 KiB
JSON
47 lines
1.8 KiB
JSON
{
|
|
"name": "codemirror",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "rollup -c",
|
|
"test": "npm run test:lint && npm run test:unit && npm run check-built-assets",
|
|
"test:lint": "npm run test:lint:styles && npm run test:lint:js && npm run test:lint:i18n",
|
|
"test:lint:js": "eslint --cache .",
|
|
"test:lint:styles": "stylelint \"resources/**/*.less\"",
|
|
"test:lint:i18n": "banana-checker i18n/",
|
|
"test:unit": "jest",
|
|
"check-built-assets": "{ git status resources/lib/ | grep \"nothing to commit, working tree clean\"; } && { echo 'CHECKING BUILD SOURCES ARE COMMITTED' && npm run build && git status resources/lib/ | grep \"nothing to commit, working tree clean\" || { npm run node-debug; false; }; }",
|
|
"node-debug": "node -v && npm -v && echo 'ERROR: Please ensure that production assets have been built with `npm run build` and commited, and that you are using the correct version of Node/NPM.'",
|
|
"selenium-test": "wdio tests/selenium/wdio.conf.js",
|
|
"doc": "jsdoc -c jsdoc.json"
|
|
},
|
|
"engines": {
|
|
"node": "18.20.2"
|
|
},
|
|
"devDependencies": {
|
|
"@codemirror/commands": "6.2.5",
|
|
"@codemirror/language": "6.9.3",
|
|
"@codemirror/search": "6.5.4",
|
|
"@codemirror/state": "6.2.1",
|
|
"@codemirror/view": "6.22.2",
|
|
"@lezer/highlight": "1.2.0",
|
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
"@wdio/cli": "7.36.0",
|
|
"@wdio/junit-reporter": "7.35.0",
|
|
"@wdio/local-runner": "7.36.0",
|
|
"@wdio/mocha-framework": "7.33.0",
|
|
"@wdio/spec-reporter": "7.33.0",
|
|
"@wikimedia/mw-node-qunit": "7.2.0",
|
|
"dotenv": "8.2.0",
|
|
"eslint-config-wikimedia": "0.28.2",
|
|
"grunt-banana-checker": "0.13.0",
|
|
"jest": "29.7.0",
|
|
"jest-environment-jsdom": "29.7.0",
|
|
"jquery": "3.7.1",
|
|
"jsdoc": "4.0.3",
|
|
"jsdoc-wmf-theme": "1.1.0",
|
|
"rollup": "4.13.0",
|
|
"stylelint-config-wikimedia": "0.16.1",
|
|
"wdio-mediawiki": "2.5.0"
|
|
}
|
|
}
|