Commit 0cb5c48d authored by Robert Nix's avatar Robert Nix

Merge branch 'update/133/VisualEditor' into 'master'

Update VisualEditor for 1.33

See merge request !51
parents cbcae73b d1590c39

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

{
"extends": "wikimedia",
"env": {
"browser": true,
"jquery": true,
"qunit": true
},
"root": true,
"extends": [
"wikimedia/client",
"wikimedia/jquery"
],
"globals": {
"ve": true,
"VisualEditorSupportCheck": false,
......@@ -16,7 +15,10 @@
"require": false
},
"rules": {
"dot-notation": [ "error", { "allowKeywords": true } ],
"valid-jsdoc": 0
"no-jquery/no-hide": "error",
"no-jquery/no-show": "error",
"no-jquery/no-toggle": "error",
"max-len": "off",
"valid-jsdoc": "off"
}
}
......@@ -15,6 +15,7 @@ node_modules
composer.lock
vendor
screenshots/*.png
.eslintcache
# OS
.DS_Store
[submodule "lib/ve"]
path = lib/ve
url = https://gerrit.wikimedia.org/r/p/VisualEditor/VisualEditor.git
url = https://gerrit.wikimedia.org/r/VisualEditor/VisualEditor.git
......@@ -63,6 +63,12 @@
"mw.Title",
"mw.widgets.*Widget"
]
},
{
"name": "MobileFrontend",
"classes": [
"VisualEditorOverlay"
]
}
]
},
......@@ -109,8 +115,6 @@
"ve.dm.DataString",
"ve.dm.HashValueStore",
"ve.dm.Scalable",
"ve.dm.APIResultsProvider",
"ve.dm.APIResultsQueue",
"ve.dm.Surface",
"ve.dm.*SurfaceFragment",
"ve.dm.*Selection",
......@@ -136,6 +140,10 @@
"ve.dm.Change",
"ve.dm.RebaseDocState",
"ve.dm.RebaseClient",
"ve.dm.RebaseServer",
"ve.dm.DocumentStore",
"ve.dm.ProtocolServer",
"ve.dm.TransportServer",
"ve.dm.SurfaceSynchronizer"
]
},
......@@ -184,19 +192,10 @@
"ve.ui.*Tool",
"ve.ui.*Widget",
"ve.ui.*WindowManager",
"ve.ui.NodeWindow",
"ve.ui.*Window",
"ve.ui.*Dialog",
"ve.ui.*Inspector"
]
},
{
"name": "Tests",
"classes": [
"ve.QUnit",
"ve.QUnit.assert",
"ve.ce.TestOffset",
"ve.ce.TestRunner"
]
}
]
},
......@@ -323,6 +322,7 @@
"Number",
"Object",
"RegExp",
"Set",
"String"
]
}
......
This diff is collapsed.
......@@ -22,3 +22,8 @@
* @class mw.widgets.MediaResultWidget
* @source <https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.widgets.MediaResultWidget>
*/
/**
* @class VisualEditorOverlay
* @source <https://doc.wikimedia.org/MobileFrontend/master/js/VisualEditorOverlay.html>
*/
......@@ -67,6 +67,12 @@
"mw.Title",
"mw.widgets.*Widget"
]
},
{
"name": "MobileFrontend",
"classes": [
"VisualEditorOverlay"
]
}
]
}
......
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle" />
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgParser" />
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc"/>
......
lib/ve/.stylelintrc.json
\ No newline at end of file
{
"extends": "stylelint-config-wikimedia",
"rules": {
"selector-class-pattern": "^(ve|mw|oo-ui|client)-"
}
}
......@@ -127,11 +127,6 @@ Base64.js
– DWTFYWT licence
– David Chambers, based off gist by yahiko
Easy-Deflate
– https://github.com/Jacob-Christian-Munch-Andersen/Easy-Deflate
– BSD license
– Jacob Christian Munch-Andersen for the package; Gildas Lormeau for the Deflate utility
jQuery
– https://jquery.com/
– MIT license
......
......@@ -4,8 +4,6 @@
* @package VisualEditor
*/
require( 'babel-polyfill' );
/* eslint-env node, es6 */
module.exports = function ( grunt ) {
var modules = grunt.file.readJSON( 'lib/ve/build/modules.json' ),
......@@ -140,12 +138,17 @@ module.exports = function ( grunt ) {
'**/*.{js,json,less,css,txt}',
'!package-lock.json',
'!build/typos.json',
'!i18n/**',
'!lib/**',
'!{docs,node_modules,vendor}/**',
'!.git/**'
]
},
eslint: {
options: {
reportUnusedDisableDirectives: true,
cache: true
},
all: [
'*.js',
'{build,modules}/**/*.js'
......@@ -165,7 +168,7 @@ module.exports = function ( grunt ) {
},
banana: {
all: [
'i18n/{ve-mw,ve-wmf}'
'i18n/{ve-mw,ve-mw/api,ve-wmf}'
]
},
jsonlint: {
......
Copyright (c) 2011-2018 VisualEditor Team and others under the terms
Copyright (c) 2011-2019 VisualEditor Team and others under the terms
of The MIT License (MIT), as follows:
This software consists of voluntary contributions made by many
......
......@@ -4,7 +4,7 @@
*
* @file
* @ingroup Extensions
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
* @copyright 2011-2019 VisualEditor Team and others; see AUTHORS.txt
* @license MIT
*/
......@@ -17,6 +17,12 @@ $specialPageAliases['en'] = [
'CollabPad' => [ 'CollabPad', 'Collab Pad' ],
];