aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.api/parse.js
Commit message (Collapse)AuthorAgeFilesLines
* eslint: Prefer const in mediawiki.apiEd Sanders2024-09-161-8/+8
| | | | Change-Id: Id1ec60db0489dc9b082ed164e98b0a2a46f56054
* eslint: Autofix var to let/constEd Sanders2024-09-121-1/+1
| | | | | | | Temporarily disable no-var & prefer-const as resulting errors need to be fixed manually. Change-Id: I6cb62a2c70a4c1fc265a00b1f18af127ac9d5029
* ESLint: Enforce prefer-arrow-callback and autofixEd Sanders2024-06-111-3/+1
| | | | Change-Id: Iddfa574e42e569ac5e2a2b098ad2f11ca80c5955
* build: Update eslint-config-wikimedia to 0.28.1 and autofixEd Sanders2024-06-111-1/+1
| | | | | | | Also remove temporary explicit dependency on eslint-plugin-vue introduced in Ibd616750f046a. Change-Id: Ic6330fcb116e99d5827b4877e094e3073e2b7b72
* documentation: Convert mediawiki.api from jsduck to jsdocRoan Kattouw2023-12-191-13/+3
| | | | | Bug: T352308 Change-Id: Ia9320213e2208bb45a7f162b5b5c385fbed09599
* Resources: Prefer ES6 Object.assign to $.extend for non-deep extendsJon Robson2023-05-051-1/+1
| | | | Change-Id: I481913208ba8123b1735daacb3bbd70105646366
* mediawiki.api: Remove unnecessary JSON from parse API responsethiemowmde2022-11-021-0/+2
| | | | | | | 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
* Use POST to submit wikitext to mw.api.parseAdam Wight2019-04-261-2/+2
| | | | | | | | | | 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
* resources: Strip '$' and 'mw' from file closuresTimo Tijhof2018-09-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* mediawiki.api: Merge modules into oneTimo Tijhof2018-05-201-0/+49
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