dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eslint: Re-enable valid-jsdoc and make a pass
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
mediawiki.debug.js
diff --git
a/resources/src/mediawiki/mediawiki.debug.js
b/resources/src/mediawiki/mediawiki.debug.js
index
3153fd4
..
3c1a668
100644
(file)
--- a/
resources/src/mediawiki/mediawiki.debug.js
+++ b/
resources/src/mediawiki/mediawiki.debug.js
@@
-190,9
+190,9
@@
}
bitDiv( 'phpversion' )
}
bitDiv( 'phpversion' )
- .append( $( this.data.phpEngine === 'HHVM'
- ? '<a href="http://hhvm.com/">HHVM</a>'
-
:
'<a href="https://php.net/">PHP</a>'
+ .append( $( this.data.phpEngine === 'HHVM'
?
+ '<a href="http://hhvm.com/">HHVM</a>' :
+ '<a href="https://php.net/">PHP</a>'
) )
.append( ': ' + this.data.phpVersion );
) )
.append( ': ' + this.data.phpVersion );
@@
-222,7
+222,7
@@
className: 'mw-debug-pane',
id: 'mw-debug-pane-' + id
} )
className: 'mw-debug-pane',
id: 'mw-debug-pane-' + id
} )
- .append( panes[
id
] )
+ .append( panes[
id
] )
.appendTo( $container );
}
.appendTo( $container );
}
@@
-231,6
+231,8
@@
/**
* Build the console panel
/**
* Build the console panel
+ *
+ * @return {jQuery} Console panel
*/
buildConsoleTable: function () {
var $table, entryTypeText, i, length, entry;
*/
buildConsoleTable: function () {
var $table, entryTypeText, i, length, entry;
@@
-255,7
+257,7
@@
};
for ( i = 0, length = this.data.log.length; i < length; i += 1 ) {
};
for ( i = 0, length = this.data.log.length; i < length; i += 1 ) {
- entry = this.data.log[
i
];
+ entry = this.data.log[
i
];
entry.typeText = entryTypeText( entry.type );
$( '<tr>' )
entry.typeText = entryTypeText( entry.type );
$( '<tr>' )
@@
-282,23
+284,21
@@
$table = $( '<table id="mw-debug-querylist"></table>' );
$( '<tr>' )
$table = $( '<table id="mw-debug-querylist"></table>' );
$( '<tr>' )
- .append( $( '<th>#</th>' ).css( 'width', '4em' )
)
+ .append( $( '<th>#</th>' ).css( 'width', '4em' ) )
.append( $( '<th>SQL</th>' ) )
.append( $( '<th>SQL</th>' ) )
- .append( $( '<th>Time</th>' ).css( 'width', '8em'
) )
+ .append( $( '<th>Time</th>' ).css( 'width', '8em' ) )
.append( $( '<th>Call</th>' ).css( 'width', '18em' ) )
.appendTo( $table );
for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) {
.append( $( '<th>Call</th>' ).css( 'width', '18em' ) )
.appendTo( $table );
for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) {
- query = this.data.queries[
i
];
+ query = this.data.queries[
i
];
- // jscs: disable requireDotNotation
$( '<tr>' )
.append( $( '<td>' ).text( i + 1 ) )
.append( $( '<td>' ).text( query.sql ) )
.append( $( '<td class="stats">' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) )
$( '<tr>' )
.append( $( '<td>' ).text( i + 1 ) )
.append( $( '<td>' ).text( query.sql ) )
.append( $( '<td class="stats">' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) )
- .append( $( '<td>' ).text( query[
'function'
] ) )
+ .append( $( '<td>' ).text( query[
'function'
] ) )
.appendTo( $table );
.appendTo( $table );
- // jscs: enable requireDotNotation
}
return $table;
}
return $table;
@@
-314,7
+314,7
@@
$list = $( '<ul>' );
for ( i = 0, length = this.data.debugLog.length; i < length; i += 1 ) {
$list = $( '<ul>' );
for ( i = 0, length = this.data.debugLog.length; i < length; i += 1 ) {
- line = this.data.debugLog[
i
];
+ line = this.data.debugLog[
i
];
$( '<li>' )
.html( mw.html.escape( line ).replace( /\n/g, '<br />\n' ) )
.appendTo( $list );
$( '<li>' )
.html( mw.html.escape( line ).replace( /\n/g, '<br />\n' ) )
.appendTo( $list );
@@
-348,7
+348,7
@@
$( '<tr>' )
.append( $( '<th>' ).text( key ) )
$( '<tr>' )
.append( $( '<th>' ).text( key ) )
- .append( $( '<td>' ).text( data[
key
] ) )
+ .append( $( '<td>' ).text( data[
key
] ) )
.appendTo( $table );
}
.appendTo( $table );
}
@@
-372,7
+372,7
@@
$table = $( '<table>' );
for ( i = 0, length = this.data.includes.length; i < length; i += 1 ) {
$table = $( '<table>' );
for ( i = 0, length = this.data.includes.length; i < length; i += 1 ) {
- file = this.data.includes[
i
];
+ file = this.data.includes[
i
];
$( '<tr>' )
.append( $( '<td>' ).text( file.name ) )
.append( $( '<td class="nr">' ).text( file.size ) )
$( '<tr>' )
.append( $( '<td>' ).text( file.name ) )
.append( $( '<td class="nr">' ).text( file.size ) )
@@
-383,4
+383,8
@@
}
};
}
};
+ $( function () {
+ debug.init();
+ } );
+
}( mediaWiki, jQuery ) );
}( mediaWiki, jQuery ) );