wiki.techinc.nl/resources
MusikAnimal fa8dea7798 SpecialBlock [Vue]: require confirmation for hidehuser and self blocks
Special:Block is supposed to show a 'Confirm block' checkbox under two
conditions: if the 'hide username' option is being used, or if the user
is blocking themselves.

This patch takes the SPA-like behaviour a step further and will disable
the submit button and show the confirmation checkbox if the user target
is changed to the current user, or if the 'Hide username' checkbox is
checked. The logic of hiding the confirm checkbox and re-enabling the
submit button should follow the same rules.

Add `withSubmission()` helper to SpecialBlock.test.js and add test cases
for the newly added code.

Bug: T376754
Change-Id: Ie990051ae62b11f3a27bbc4cfc5c714a0096e2f3
2024-10-16 17:30:05 -04:00
..
assets Add xml version declaration where possible 2024-09-03 17:24:33 +03:30
lib Update Codex from v1.13.1 to v1.14.0 2024-10-16 09:11:15 -07:00
src SpecialBlock [Vue]: require confirmation for hidehuser and self blocks 2024-10-16 17:30:05 -04:00
README.md Update jsdoc-wmf-theme from 1.0.1 to 1.1.0 2024-06-27 19:29:24 +00:00
Resources.php SpecialBlock [Vue]: require confirmation for hidehuser and self blocks 2024-10-16 17:30:05 -04:00

MediaWiki Frontend API

This documentation describes the public API that user scripts, gadgets, skins, and extensions can use to interact with MediaWiki. To interact with MediaWiki from outside a wiki, use the Action API.

The MediaWiki frontend API consists of global variables and ResourceLoader modules.

Get started

Explore the documentation

Browse namespaces and classes within the MediaWiki base library.

Manage dependencies

Load modules and scripts to use in your code.

Access wiki configuration

Get information about wikis, pages, and users. See the complete list of configuration values.

Use the API

Interact with a wiki's API to query pages, edit pages, perform patrolling actions, and more.

  • mw.Api — The Action API is a full-featured API that includes a complete set of actions and parameters. To try it out, visit Special:ApiSandbox on any wiki.
  • mw.Rest — The REST API is a simplified API for performing basic read and write operations.

Integrate with wiki features

Hooks let you register and fire events that you can use to extend and enhance the behavior of MediaWiki.

Format and parse system messages

Handle translatable text or HTML strings that are part of the MediaWiki interface.

Send notifications

Display pop-up notifications to users.

Interact with users

Get information about users, sessions, and user preferences.

Interact with pages

Construct and parse page elements.

Utilities

Get helpful methods for handling URLs, CSS, regular expressions, and more.

Debugging and error reporting

Log errors, send deprecation warnings, and debug your code.

Upstream

  • OOjs — JavaScript library for working with objects
  • OOUI — component-based JavaScript UI library

Contribute