aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.template.regexp.js
Commit message (Collapse)AuthorAgeFilesLines
* Remove mediawiki.template.regexp moduleTimo Tijhof2020-02-251-15/+0
| | | | | | | | | | This was created for mediawiki.Uri, which no longer uses it as of I1baa1465d88. It was never used anywhere else in any repo in Wikimedia Gerrit, nor anywhere else indexed by Codesearch. Bug: T233676 Change-Id: Idcc31732fcfec95be63793e870966ab8cb2c2212
* resources: Strip '$' and 'mw' from file closuresTimo Tijhof2018-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* resources: Move more various single-file mediawiki.* modules to src/Timo Tijhof2018-05-091-0/+15
* Reduce clutter in src/mediawiki/. * Make these files and modules easier to discover and associate. Follows-up I677edac3b5e, which only moved simple cases where no related modules existed. This commit also moves files for modules that have some related multi-file modules. As well as files that previously did not strictly have their path match directly to their module name. For example: - 'mediawiki.checkboxtoggle.css' to 'mediawiki.checkboxtoggle.styles.css', because its module name is 'mediawiki.checkboxtoggle.styles'. - 'mediawiki/page/gallery-slideshow.js' to 'mediawiki.page.gallery.slideshow.js', because its module name uses a dot, not a dash. - 'mediawiki/page/watch.js' to 'mediawiki.page.watch.ajax.js', because its module name also includes 'ajax'. This also makes it matches the way "mediawiki.page.patrol.ajax" files were already named. Ideas for later: - Consider merging 'mediawiki.ForeignApi' and 'mediawiki.ForeignApi.core.'. - Consider merging 'mediawiki.page.ready' and 'mediawiki.page.startup'. Bug: T193826 Change-Id: I9564b05df305b7d217c9a03b80ce92476279e5c8