BigW Consortium Gitlab

Commit d16a3cf7 by Rémy Coutable

Fix replacement of Pygments with Rouge

Signed-off-by: 's avatarRémy Coutable <remy@rymai.me>
parent da3ad00c
import 'vendor/peek';
import 'vendor/peek.performance_bar';
import 'vendor/peek.rblineprof';
(function() {
$(document).on('click', '#peek-show-queries', function(e) {
console.log('peek!');
var $modal;
$('.peek-rblineprof-modal').hide();
$modal = $('#modal-peek-pg-queries');
if ($modal.length) {
$modal.modal('toggle');
}
return e.preventDefault();
});
$(document).on('click', '.js-lineprof-file', function(e) {
$(this).parents('.heading').next('div').toggle();
return e.preventDefault();
});
}).call(window);
......@@ -77,7 +77,7 @@ module Peek
output << "<pre class='duration'>#{times.join("\n")}</pre>"
# The following line was changed from
# https://github.com/peek/peek-rblineprof/blob/8d3b7a283a27de2f40abda45974516693d882258/lib/peek/rblineprof/controller_helpers.rb#L125
output << "<pre class='code highlight'>#{pygmentize(file_name, code.join, 'ruby')}</pre>"
output << "<pre class='code highlight white'>#{pygmentize(file_name, code.join, 'ruby')}</pre>"
output << "</div></div>" # .data then .peek-rblineprof-file
end
......
$(document).on('click', '.js-lineprof-file', function(e) {
$(this).parents('.heading').next('div').toggle();
e.preventDefault();
return false;
});
//= require peek/views/performance_bar
//= require peek/views/rblineprof
//= require peek/views/rblineprof/pygments
#peek {
background: #000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment