first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,32 @@
table.phpdebugbar-widgets-info {
width: 75%;
margin-top: 5px;
margin-left: 5px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 1.3em;
}
table.phpdebugbar-widgets-info td {
padding-right: 10px;
border-bottom: 1px solid #c0c0c0;
}
table.phpdebugbar-widgets-info dt {
float: left;
width: 30%;
padding: .25em;
clear: left;
text-align: left;
}
table.phpdebugbar-widgets-info dd {
float: left;
width: 60%;
padding: .25em 0;
}
table.phpdebugbar-widgets-info dl:after {
display: table;
clear: both;
content: "";
}

View File

@ -0,0 +1,67 @@
(function ($) {
var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-')
var InfoWidget = PhpDebugBar.Widgets.InfoWidget = PhpDebugBar.Widget.extend({
tagName: 'table',
className: csscls('info'),
render: function () {
this.bindAttr('data', function (data) {
this.$el.empty()
var tr
/*
// @todo enable Info link
var link = $('<a />')
.text('Info')
.attr('href', 'index.php?option=com_content&view=debug&id=' + data.requestId)
.attr('target', '_blank');
tr = $('<tr />')
.append($('<td />').text('Info'))
.append($('<td />').append(link));
this.$el.append(tr);
*/
tr = $('<tr />')
.append($('<td />').text('Joomla! Version'))
.append($('<td />').text(data.joomlaVersion))
this.$el.append(tr)
tr = $('<tr />')
.append($('<td />').text('PHP Version'))
.append($('<td />').text(data.phpVersion))
this.$el.append(tr)
tr = $('<tr />')
.append($('<td />').text('Identity'))
.append($('<td />').text(data.identity.type))
this.$el.append(tr)
tr = $('<tr />')
.append($('<td />').text('Response'))
.append($('<td />').text(data.response.status_code))
this.$el.append(tr)
tr = $('<tr />')
.append($('<td />').text('Template'))
.append($('<td />').text(data.template.template))
this.$el.append(tr)
tr = $('<tr />')
.append($('<td />').text('Database'))
.append($('<td />').html(
'<dl>'
+ '<dt>Server</dt><dd>' + data.database.dbserver + '</dd>'
+ '<dt>Version</dt><dd>' + data.database.dbversion + '</dd>'
+ '<dt>Collation</dt><dd>' + data.database.dbcollation + '</dd>'
+ '<dt>Conn Collation</dt><dd>' + data.database.dbconnectioncollation + '</dd>'
+ '</dl>'
))
this.$el.append(tr)
})
}
})
})(PhpDebugBar.$)

View File

@ -0,0 +1 @@
table.phpdebugbar-widgets-info{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;line-height:1.3em;margin-left:5px;margin-top:5px;width:75%}table.phpdebugbar-widgets-info td{border-bottom:1px solid silver;padding-right:10px}table.phpdebugbar-widgets-info dt{clear:left;float:left;padding:.25em;text-align:left;width:30%}table.phpdebugbar-widgets-info dd{float:left;padding:.25em 0;width:60%}table.phpdebugbar-widgets-info dl:after{clear:both;content:"";display:table}

Binary file not shown.

View File

@ -0,0 +1 @@
!function(t){var e=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-");PhpDebugBar.Widgets.InfoWidget=PhpDebugBar.Widget.extend({tagName:"table",className:e("info"),render:function(){this.bindAttr("data",(function(e){var d;this.$el.empty(),d=t("<tr />").append(t("<td />").text("Joomla! Version")).append(t("<td />").text(e.joomlaVersion)),this.$el.append(d),d=t("<tr />").append(t("<td />").text("PHP Version")).append(t("<td />").text(e.phpVersion)),this.$el.append(d),d=t("<tr />").append(t("<td />").text("Identity")).append(t("<td />").text(e.identity.type)),this.$el.append(d),d=t("<tr />").append(t("<td />").text("Response")).append(t("<td />").text(e.response.status_code)),this.$el.append(d),d=t("<tr />").append(t("<td />").text("Template")).append(t("<td />").text(e.template.template)),this.$el.append(d),d=t("<tr />").append(t("<td />").text("Database")).append(t("<td />").html("<dl><dt>Server</dt><dd>"+e.database.dbserver+"</dd><dt>Version</dt><dd>"+e.database.dbversion+"</dd><dt>Collation</dt><dd>"+e.database.dbcollation+"</dd><dt>Conn Collation</dt><dd>"+e.database.dbconnectioncollation+"</dd></dl>")),this.$el.append(d)}))}})}(PhpDebugBar.$);

Binary file not shown.