| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Id1ec60db0489dc9b082ed164e98b0a2a46f56054
|
|
|
|
|
|
|
| |
Temporarily disable no-var & prefer-const as resulting errors
need to be fixed manually.
Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
|
|
|
|
| |
Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
|
|
|
|
|
|
|
| |
Also remove temporary explicit dependency on eslint-plugin-vue
introduced in Ibd616750f046a.
Change-Id: Ic6330fcb116e99d5827b4877e094e3073e2b7b72
|
|
|
|
|
| |
Bug: T352308
Change-Id: Ia9320213e2208bb45a7f162b5b5c385fbed09599
|
|
|
|
| |
Change-Id: I481913208ba8123b1735daacb3bbd70105646366
|
|
|
|
|
|
|
| |
This little method doesn't allow to access anything but the resulting
text content. There is no need to query anything else.
Change-Id: Iff239869ac831d87334adfcf89c78b27f762688e
|
|
|
|
|
|
|
|
|
|
| |
It was impossible to parse wikitext longer than the maximum URL length of about
2000 characters, because our library only used GET requests. This patch
switches to using POST for inline content, while still using GET when parsing
existing pages.
Bug: T216837
Change-Id: I971b7fc197517a2761f2100fc2aeda087ff52a78
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows-up Id6d13bbea6:
- '$': mw.loader.implement does this already.
- 'mw': Use the canonical name directly.
This replaces the following patterns:
File closures (common):
- `( function ( $, mw ) {` => `( function () {`
- `( function ( $ ) {` => `( function () {`
- `( function ( mw ) {` => `( function () {`
- `( function ( mw, $ ) {` => `( function () {`
File closures (rare):
- `( function ( mw, $, OO ) {` => `( function () {`
- `( function ( mw, OO, $ ) {` => `( function () {`
- `( function ( mw, document ) {` => `( function () {`
Combined dom-ready and file closure (rare):
- `jQuery( function ( $ ) {` => `$( function () {
- `jQuery( function () {` => `$( function () {
Remaining references in files without a closure, as found by
the new ESLint setting (rare):
- `jQuery` => `$`
- `mediaWiki` => `mw`
Change-Id: I7cf2426cde597259e8c6f3f6f615a1a81a0ca82b
|
|
These are all quite tiny and not worth providing separately
to the system as deliverable file bundles.
Mark the other mediawiki.api.* modules as alias to 'mediawiki.api'
for back-compat, with deprecation warning.
Highlights:
* Change mediawiki.api.edit.js to not use mw.user, because that
causes a circular dependency, given mw.user also depends on
mediawiki.api.
Bug: T192623
Change-Id: I0afdc8ab50bc1354bb5099bf39923c07eab0b665
|