CoreFiles by mySites.guru
widget.min.js1 lines, 2,752 bytes, from Joomla_6.1.4-Stable-Full_Package.zip
Raw History Compare with 6.1.3
md5
59d43f7744fcd6053101cd0d26771d63
sha1
04ca25e1317b3e5b203d435ddf84644aa218c567
sha256
58a338cd24bd995a4745296b15083406683ea3ebefd141c84e5fc73053ea7364
(function(s){var a=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-"),p=PhpDebugBar.Widgets.TemplatesWidget=PhpDebugBar.Widget.extend({className:a("templates"),render:function(){this.$status=s("<div />").addClass(a("status")).appendTo(this.$el),this.$list=new PhpDebugBar.Widgets.ListWidget({itemRenderer:function(t,e){var r=s("<span />").addClass(a("name")).appendTo(t);if(e.html?r.html(e.html):r.text(e.name),typeof e.xdebug_link<"u"&&e.xdebug_link!==null){var d=s("<span />").addClass(a("filename")).text(e.xdebug_link.filename+(e.xdebug_link.line?"#"+e.xdebug_link.line:""));e.xdebug_link&&s('<a href="'+e.xdebug_link.url+'"></a>').on("click",function(){event.stopPropagation(),e.xdebug_link.ajax&&(fetch(e.xdebug_link.url),event.preventDefault())}).addClass(a("editor-link")).appendTo(d),d.appendTo(t)}if(e.render_time_str&&s('<span title="Render time" />').addClass(a("render-time")).text(e.render_time_str).appendTo(t),e.memory_str&&s('<span title="Memory usage" />').addClass(a("memory")).text(e.memory_str).appendTo(t),typeof e.param_count<"u"&&s('<span title="Parameter count" />').addClass(a("param-count")).text(e.param_count).appendTo(t),typeof e.type<"u"&&e.type&&s('<span title="Type" />').addClass(a("type")).text(e.type).appendTo(t),typeof e.editorLink<"u"&&e.editorLink&&s('<a href="'+e.editorLink+'" />').on("click",function(o){o.stopPropagation()}).addClass(a("editor-link")).text("file").appendTo(t),e.params&&!s.isEmptyObject(e.params)){var n=s('<table><tr><th colspan="2">Params</th></tr></table>').addClass(a("params")).appendTo(t);for(var i in e.params)typeof e.params[i]!="function"&&n.append('<tr><td class="'+a("name")+'">'+i+'</td><td class="'+a("value")+'"><pre><code>'+e.params[i]+"</code></pre></td></tr>");t.css("cursor","pointer").click(function(){if(window.getSelection().type=="Range")return"";n.is(":visible")?n.hide():n.show()})}}}),this.$list.$el.appendTo(this.$el),this.$callgraph=s("<div />").addClass(a("callgraph")).appendTo(this.$el),this.bindAttr("data",function(t){this.$list.set("data",t.templates),this.$status.empty(),this.$callgraph.empty();var e=t.sentence||"templates were rendered";s("<span />").text(t.nb_templates+" "+e).appendTo(this.$status),t.accumulated_render_time_str&&this.$status.append(s('<span title="Accumulated render time" />').addClass(a("render-time")).text(t.accumulated_render_time_str)),t.memory_usage_str&&this.$status.append(s('<span title="Memory usage" />').addClass(a("memory")).text(t.memory_usage_str)),t.nb_blocks>0&&s("<div />").text(t.nb_blocks+" blocks were rendered").appendTo(this.$status),t.nb_macros>0&&s("<div />").text(t.nb_macros+" macros were rendered").appendTo(this.$status),typeof t.callgraph<"u"&&this.$callgraph.html(t.callgraph)})}})})(PhpDebugBar.$);

The same content is in 31 releases, Joomla 6.1.0-alpha3 to 6.3.0-alpha1. See them all, or every version of this file.