primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,33 @@
@charset "UTF-8";
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 {
border-bottom: 1px solid silver;
padding-right: 10px;
}
table.phpdebugbar-widgets-info dt {
float: left;
clear: left;
text-align: left;
width: 30%;
padding: .25em;
}
table.phpdebugbar-widgets-info dd {
float: left;
width: 60%;
padding: .25em 0;
}
table.phpdebugbar-widgets-info dl:after {
clear: both;
content: "";
display: table;
}

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 @@
@charset "UTF-8";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{border-bottom:1px solid silver;padding-right:10px}table.phpdebugbar-widgets-info dt{float:left;clear:left;text-align:left;width:30%;padding:.25em}table.phpdebugbar-widgets-info dd{float:left;width:60%;padding:.25em 0}table.phpdebugbar-widgets-info dl:after{clear:both;content:"";display:table}

Binary file not shown.

View File

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

Binary file not shown.