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,56 @@
@charset "UTF-8";
table.phpdebugbar-widgets-languageStrings {
width: 100%;
margin-top: 5px;
margin-left: 5px;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
line-height: 1.3em;
}
table.phpdebugbar-widgets-languageStrings th {
border-bottom: 1px solid #000;
}
table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack {
border-collapse: collapse;
border: 1px solid #ddd;
width: 100%;
margin: 10px;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
display: none;
}
table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack tr.caller {
background-color: #fff9b6;
}
table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack tbody tr:hover {
background-color: #eee;
}
table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack th {
font-weight: bold;
}
table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye, table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash {
color: #888;
margin-left: 8px;
}
table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash {
color: #000;
background-color: #eee;
}
table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye:before, table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash:before {
margin-right: 4px;
font-family: "Font Awesome 6 Free";
}
table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye:before {
content: "";
}
table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash:before {
content: "";
}

View File

@ -0,0 +1,87 @@
(function ($) {
var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-')
var languageStringsWidget = PhpDebugBar.Widgets.languageStringsWidget = PhpDebugBar.Widget.extend({
tagName: 'table',
className: csscls('languageStrings'),
render: function () {
this.bindAttr('data', function (data) {
this.$el.empty()
for (var orphan in data.orphans) {
var tr = $('<tr />')
$('<th valign="top" style="width:10%" />').text(orphan).appendTo(tr)
var td = $('<th />').appendTo(tr)
var ul = $('<ul />').appendTo(td)
var tableStack
for (var oc in data.orphans[orphan]) {
var occurence = data.orphans[orphan][oc]
var relPath = occurence['caller'].replace(data.jroot, '')
var li = $('<li />')
if (data.xdebugLink) {
var parts = occurence['caller'].split(':')
var link = $('<a />')
.text(relPath)
.attr(
'href',
data.xdebugLink
.replace('%f', parts[0])
.replace('%l', parts[1])
)
li.append(link)
} else {
li.text(relPath)
}
if (occurence['trace'] && !$.isEmptyObject(occurence['trace'])) {
$('<span title="Call Stack" />')
.text('Stack')
.addClass(csscls('eye'))
.css('cursor', 'pointer')
.on('click', function (e) {
var btn = $(e.target)
var table = btn.next()
if (table.is(':visible')) {
table.hide()
btn.addClass(csscls('eye'))
btn.removeClass(csscls('eye-dash'))
} else {
table.show()
btn.addClass(csscls('eye-dash'))
btn.removeClass(csscls('eye'))
}
})
.appendTo(li)
tableStack = $('<table><thead><tr><th colspan="3">Call Stack</th></tr></thead></table>')
.addClass(csscls('callstack'))
.appendTo(li)
for (var i in occurence['trace']) {
var entry = occurence['trace'][i]
var location = entry[3] ? entry[3].replace(data.jroot, '') + ':' + entry[4] : ''
var caller = entry[2].replace(data.jroot, '')
var cssClass = entry[1] ? 'caller' : ''
if (location && data.xdebugLink) {
location = '<a href="' + data.xdebugLink.replace('%f', entry[3]).replace('%l', entry[4]) + '">' + location + '</a>'
}
tableStack.append('<tr class="' + cssClass + '"><th>' + entry[0] + '</th><td>' + caller + '</td><td>' + location + '</td></tr>')
}
}
li.appendTo(ul)
}
this.$el.append(tr)
}
})
}
})
})(PhpDebugBar.$)

View File

@ -0,0 +1 @@
@charset "UTF-8";table.phpdebugbar-widgets-languageStrings{width:100%;margin-top:5px;margin-left:5px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;line-height:1.3em}table.phpdebugbar-widgets-languageStrings th{border-bottom:1px solid #000}table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack{border-collapse:collapse;border:1px solid #ddd;width:100%;margin:10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;display:none}table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack tr.caller{background-color:#fff9b6}table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack tbody tr:hover{background-color:#eee}table.phpdebugbar-widgets-languageStrings table.phpdebugbar-widgets-callstack th{font-weight:700}table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye,table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash{color:#888;margin-left:8px}table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash{color:#000;background-color:#eee}table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye:before,table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash:before{margin-right:4px;font-family:"Font Awesome 6 Free"}table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye:before{content:""}table.phpdebugbar-widgets-languageStrings span.phpdebugbar-widgets-eye-dash:before{content:""}

View File

@ -0,0 +1 @@
(function(e){var r=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-"),T=PhpDebugBar.Widgets.languageStringsWidget=PhpDebugBar.Widget.extend({tagName:"table",className:r("languageStrings"),render:function(){this.bindAttr("data",function(a){this.$el.empty();for(var d in a.orphans){var g=e("<tr />");e('<th valign="top" style="width:10%" />').text(d).appendTo(g);var o=e("<th />").appendTo(g),c=e("<ul />").appendTo(o),v;for(var f in a.orphans[d]){var s=a.orphans[d][f],h=s.caller.replace(a.jroot,""),l=e("<li />");if(a.xdebugLink){var b=s.caller.split(":"),u=e("<a />").text(h).attr("href",a.xdebugLink.replace("%f",b[0]).replace("%l",b[1]));l.append(u)}else l.text(h);if(s.trace&&!e.isEmptyObject(s.trace)){e('<span title="Call Stack" />').text("Stack").addClass(r("eye")).css("cursor","pointer").on("click",function(m){var p=e(m.target),n=p.next();n.is(":visible")?(n.hide(),p.addClass(r("eye")),p.removeClass(r("eye-dash"))):(n.show(),p.addClass(r("eye-dash")),p.removeClass(r("eye")))}).appendTo(l),v=e('<table><thead><tr><th colspan="3">Call Stack</th></tr></thead></table>').addClass(r("callstack")).appendTo(l);for(var x in s.trace){var t=s.trace[x],i=t[3]?t[3].replace(a.jroot,"")+":"+t[4]:"",k=t[2].replace(a.jroot,""),C=t[1]?"caller":"";i&&a.xdebugLink&&(i='<a href="'+a.xdebugLink.replace("%f",t[3]).replace("%l",t[4])+'">'+i+"</a>"),v.append('<tr class="'+C+'"><th>'+t[0]+"</th><td>"+k+"</td><td>"+i+"</td></tr>")}}l.appendTo(c)}this.$el.append(g)}})}})})(PhpDebugBar.$);