Skip to content

Commit bf7603c

Browse files
committed
Update Tracy core
1 parent 5c48591 commit bf7603c

File tree

15 files changed

+59
-30
lines changed

15 files changed

+59
-30
lines changed

TracyDebugger.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function getModuleInfo() {
2727
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
2828
'author' => 'Adrian Jones',
2929
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
30-
'version' => '4.26.41',
30+
'version' => '4.26.42',
3131
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
3232
'singular' => true,
3333
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',

includes/GetPageById.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
$pageInfo['url'] = $p->url;
99
$pageInfo['template_id'] = $p->template->id;
1010
$pageInfo['template_name'] = $p->template->name;
11+
$pageInfo['template_label'] = $p->template->label;
1112
$pageInfo['path'] = $p->path;
1213
$pageInfo['unpublished'] = $p->isUnpublished();
1314
$pageInfo['hidden'] = $p->isHidden();

panels/ProcesswireInfoPanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function tracyClearGoToPageID(matchStatus) {
113113
if(xmlhttp.status == 200 && xmlhttp.responseText !== "[]") {
114114
var pageDetails = JSON.parse(xmlhttp.responseText);
115115
console.log(pageDetails.trash);
116-
document.getElementById("pageDetails").innerHTML = "<span uk-tooltip title='" + pageDetails.path + "' style='" + (pageDetails.unpublished ? 'text-decoration: line-through' : '') + (pageDetails.hidden ? '; opacity: 0.5' : '') + "'>" + (pageDetails.trash ? '🗑︎ ' : '') + pageDetails.title + "</span>&nbsp;(<a href='{$this->wire('config')->urls->admin}setup/template/edit?id=" + pageDetails.template_id + "' style='color:#888'>" + pageDetails.template_name + "</a>)";
116+
document.getElementById("pageDetails").innerHTML = "<span uk-tooltip title='" + pageDetails.path + "' style='" + (pageDetails.unpublished ? 'text-decoration: line-through' : '') + (pageDetails.hidden ? '; opacity: 0.5' : '') + "'>" + (pageDetails.trash ? '🗑︎ ' : '') + pageDetails.title + "</span>&nbsp;(<a href='{$this->wire('config')->urls->admin}setup/template/edit?id=" + pageDetails.template_id + "' style='color:#888' title='" + (pageDetails.template_label ? pageDetails.template_label : '') + "' uk-tooltip>" + pageDetails.template_name + "</a>)";
117117
document.getElementById("idGoToEdit").href = "{$this->wire('config')->urls->admin}page/edit/?id=" + pageDetails.id;
118118
document.getElementById("idGoToView").href = pageDetails.url;
119119
document.getElementById("idGoToOpen").href = "{$this->wire('config')->urls->admin}page/?open=" + pageDetails.id;

tracy-2.10.x/src/Tracy/Bar/assets/bar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ class Panel {
150150

151151
let doc = win.document;
152152
doc.write('<!DOCTYPE html><meta charset="utf-8">'
153-
+ '<script src="' + (baseUrl.replace(/&/g, '&amp;').replace(/"/g, '&quot;')) + '_tracy_bar=js&amp;XDEBUG_SESSION_STOP=1" onload="Tracy.Dumper.init()" async></script>'
154-
+ '<body id="tracy-debug">',
153+
+ '<script src="' + (baseUrl.replace(/&/g, '&amp;').replace(/"/g, '&quot;')) + '_tracy_bar=js&amp;XDEBUG_SESSION_STOP=1" onload="Tracy.Dumper.init()" async></script>'
154+
+ '<body id="tracy-debug">',
155155
);
156156

157157
let meta = this.elem.parentElement.lastElementChild;

tracy-2.10.x/src/Tracy/BlueScreen/assets/page.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ array_map(function ($file) { echo '(function(){', str_replace(['<!--', '</s'], [
4646
__DIR__ . '/../../assets/toggle.js',
4747
__DIR__ . '/../../assets/table-sort.js',
4848
__DIR__ . '/../../assets/tabs.js',
49+
__DIR__ . '/../../assets/helpers.js',
4950
__DIR__ . '/../../Dumper/assets/dumper.js',
5051
__DIR__ . '/bluescreen.js',
5152
]);

tracy-2.10.x/src/Tracy/Debugger/Debugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class Debugger
1919
{
20-
public const Version = '2.10.8';
20+
public const Version = '2.10.9';
2121

2222
/** server modes for Debugger::enable() */
2323
public const

tracy-2.10.x/src/Tracy/Debugger/DeferredContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ private function buildJsCss(): string
126126
__DIR__ . '/../assets/toggle.js',
127127
__DIR__ . '/../assets/table-sort.js',
128128
__DIR__ . '/../assets/tabs.js',
129+
__DIR__ . '/../assets/helpers.js',
129130
__DIR__ . '/../Dumper/assets/dumper.js',
130131
__DIR__ . '/../BlueScreen/assets/bluescreen.js',
131132
]);

tracy-2.10.x/src/Tracy/Debugger/assets/error.500.phtml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ namespace Tracy;
1919
<title>Server Error</title>
2020

2121
<style>
22-
#tracy-error { all: initial; position: absolute; top: 0; left: 0; right: 0; height: 70vh; min-height: 400px; display: flex; align-items: center; justify-content: center; z-index: 1000 }
23-
#tracy-error div { all: initial; max-width: 550px; background: white; color: #333; display: block }
24-
#tracy-error h1 { all: initial; font: bold 50px/1.1 sans-serif; display: block; margin: 40px }
25-
#tracy-error p { all: initial; font: 20px/1.4 sans-serif; margin: 40px; display: block }
26-
#tracy-error small { color: gray }
22+
#tracy-error { all: initial; position: absolute; top: 0; left: 0; right: 0; height: 70vh; min-height: 400px; display: flex; align-items: center; justify-content: center; z-index: 1000; font: 16px/1.4 sans-serif; color: #333 }
23+
#tracy-error * { all: initial; background: transparent; color: inherit; font: inherit }
24+
#tracy-error div { max-width: 550px; background: white; display: block }
25+
#tracy-error h1 { font: bold 50px/1.1 sans-serif; margin: 40px; display: block }
26+
#tracy-error p { font: 20px/1.4 sans-serif; margin: 40px; display: block }
27+
#tracy-error small { color: gray; font-size: 80% }
2728
#tracy-error small span { color: silver }
2829
</style>
2930

tracy-2.10.x/src/Tracy/Dumper/Dumper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public static function renderAssets(): void
163163

164164
if (!Debugger::isEnabled()) {
165165
$s = '(function(){' . file_get_contents(__DIR__ . '/../assets/toggle.js') . '})();'
166+
. '(function(){' . file_get_contents(__DIR__ . '/../assets/helpers.js') . '})();'
166167
. '(function(){' . file_get_contents(__DIR__ . '/../Dumper/assets/dumper.js') . '})();';
167168
echo "<script{$nonceAttr}>", str_replace(['<!--', '</s'], ['<\!--', '<\/s'], Helpers::minifyJs($s)), "</script>\n";
168169
}

tracy-2.10.x/src/Tracy/Dumper/Exposer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public static function exposeDOMNode(\DOMNode $obj, Value $value, Describer $des
146146
$props = preg_match_all('#^\s*\[([^\]]+)\] =>#m', print_r($obj, return: true), $tmp) ? $tmp[1] : [];
147147
sort($props);
148148
foreach ($props as $p) {
149-
$describer->addPropertyTo($value, $p, $obj->$p, Value::PropertyPublic);
149+
$describer->addPropertyTo($value, $p, @$obj->$p, Value::PropertyPublic); // @ some props may be deprecated
150150
}
151151
}
152152

0 commit comments

Comments
 (0)