X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.debug%2Fdebug.js;h=32dbdc199eacd974cce54c96f8d1d8e1ff003cb0;hb=2cf4a2c2966d5679cd8935a0807bba1fe21a7381;hp=f0c2601139df45e7e672d9c46bc1158c2a03f67e;hpb=e2e9117a51f5c08e32817f474e1c7b2882307785;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.debug/debug.js b/resources/src/mediawiki.debug/debug.js index f0c2601139..32dbdc199e 100644 --- a/resources/src/mediawiki.debug/debug.js +++ b/resources/src/mediawiki.debug/debug.js @@ -112,9 +112,15 @@ buildHtml: function () { var $container, $bits, panes, id, gitInfo; - $container = $( '
' ); + $container = $( '
' ) + .attr( { + id: 'mw-debug-toolbar', + lang: 'en', + dir: 'ltr' + } ) + .addClass( 'mw-debug' ); - $bits = $( '
' ); + $bits = $( '
' ).addClass( 'mw-debug-bits' ); /** * Returns a jQuery element for a debug-bit div @@ -189,7 +195,7 @@ } bitDiv( 'mwversion' ) - .append( $( 'MediaWiki' ) ) + .append( $( '' ).attr( 'href', '//www.mediawiki.org/' ).text( 'MediaWiki' ) ) .append( document.createTextNode( ': ' + this.data.mwVersion + ' ' ) ) .append( gitInfo ); @@ -198,10 +204,10 @@ } bitDiv( 'phpversion' ) - .append( $( this.data.phpEngine === 'HHVM' ? - 'HHVM' : - 'PHP' - ) ) + .append( this.data.phpEngine === 'HHVM' ? + $( '' ).attr( 'href', 'https://hhvm.com/' ).text( 'HHVM' ) : + $( '' ).attr( 'href', 'https://php.net/' ).text( 'PHP' ) + ) .append( ': ' + this.data.phpVersion ); bitDiv( 'time' ) @@ -241,7 +247,7 @@ buildConsoleTable: function () { var $table, entryTypeText, i, length, entry; - $table = $( '' ); + $table = $( '
' ).attr( 'id', 'mw-debug-console' ); $( '' ).css( 'width', /* padding = */ 20 + ( 10 * /* fontSize = */ 11 ) ).appendTo( $table ); $( '' ).appendTo( $table ); @@ -285,13 +291,13 @@ buildQueryTable: function () { var $table, i, length, query; - $table = $( '
' ); + $table = $( '' ).attr( 'id', 'mw-debug-querylist' ); $( '' ) - .append( $( '' ).css( 'width', '4em' ) ) - .append( $( '' ) ) - .append( $( '' ).css( 'width', '8em' ) ) - .append( $( '' ).css( 'width', '18em' ) ) + .append( $( '' ) .append( $( '' ) .append( $( '
#SQLTimeCall' ).text( '#' ).css( 'width', '4em' ) ) + .append( $( '' ).text( 'SQL' ) ) + .append( $( '' ).text( 'Time' ).css( 'width', '8em' ) ) + .append( $( '' ).text( 'Call' ).css( 'width', '18em' ) ) .appendTo( $table ); for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) { @@ -300,8 +306,8 @@ $( '
' ).text( i + 1 ) ) .append( $( '' ).text( query.sql ) ) - .append( $( '' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) ) - .append( $( '' ).text( query[ 'function' ] ) ) + .append( $( '' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ).addClass( 'stats' ) ) + .append( $( '' ).text( query.function ) ) .appendTo( $table ); } @@ -375,7 +381,7 @@ file = this.data.includes[ i ]; $( '
' ).text( file.name ) ) - .append( $( '' ).text( file.size ) ) + .append( $( '' ).text( file.size ).addClass( 'nr' ) ) .appendTo( $table ); }