User:PerfektesChaos/js/lintHint/d.js: Difference between revisions

Content deleted Content added
-5.1
-5.2
Line 1:
/// User:PerfektesChaos/js/lintHint/d.js
/// 2022-0204-0725 PerfektesChaos@de.wikipedia
// Show LintErrors analysis live
// ResourceLoader: compatible;
Line 17:
( function ( mw, $ ) {
"use strict";
var Version = -5.12,
Signature = "lintHint",
HINT = { cmodels: { "wikitext": true,
Line 877:
// Precondition:
// $area -- mw-content-text
// mediawiki.api.messages available
// Uses:
// > BOX.$collapsed
Line 994:
// mw.message()
// UPDATE.feed()
// mw.hook()
// BOX.future()
// (BOX.find)
// (BOX.future)
// 20212022-1204-2325 PerfektesChaos@de.wikipedia
var n = 0,
e, i, k, loc, par, s, $e, $e2, $e3, $td, $tr;
for ( i = 0; i < API.errors.length; i++ ) {
e = API.errors[ i ];
Line 1,085 ⟶ 1,086:
.data( "range", e.dsr )
.data( "sort-value", i )
.attr( { "data-beg": "" + e.dsr[ 0 ],
"data-end": "" + e.dsr[ 1 ],
"data-type": e.type } )
.text( String.fromCharCode( 160, 8595, 160 ) );
if ( typeof BOX.swift === "string" ) {
Line 1,090 ⟶ 1,094:
}
$tr.append( $td );
loc = true;
}
BOX.$tbody.append( $tr );
Line 1,104 ⟶ 1,109:
}
BOX.$table.show();
if ( loc ) {
mw.hook( PREGO.signature + ".table-range" );
}
} else {
BOX.$table.hide();
Line 2,067 ⟶ 2,075:
// Request messages
// Precondition:
// mediawiki.api.messages available
// Uses:
// >< API.Api