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,6 @@
ul.phpdebugbar-widgets-languageErrors {
margin-top: 5px;
margin-left: 5px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 1.3em;
}

View File

@ -0,0 +1,35 @@
(function ($) {
var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-')
var languageErrorsWidget = PhpDebugBar.Widgets.languageErrorsWidget = PhpDebugBar.Widget.extend({
tagName: 'ul',
className: csscls('languageErrors'),
render: function () {
this.bindAttr('data', function (data) {
this.$el.empty()
for (var file of data.files) {
var relPath = file[0].replace(data.jroot, '')
var li = $('<li />')
if (data.xdebugLink) {
var link = $('<a />')
.text(relPath + ':' + file[1])
.attr(
'href',
data.xdebugLink
.replace('%f', file[0])
.replace('%l', file[1])
)
li.append(link)
} else {
li.text(relPath + ':' + file[1])
}
this.$el.append(li)
}
})
}
})
})(PhpDebugBar.$)

View File

@ -0,0 +1 @@
ul.phpdebugbar-widgets-languageErrors{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;line-height:1.3em;margin-left:5px;margin-top:5px}

View File

@ -0,0 +1 @@
!function(e){var a=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-");PhpDebugBar.Widgets.languageErrorsWidget=PhpDebugBar.Widget.extend({tagName:"ul",className:a("languageErrors"),render:function(){this.bindAttr("data",(function(a){for(var r of(this.$el.empty(),a.files)){var t=r[0].replace(a.jroot,""),i=e("<li />");if(a.xdebugLink){var g=e("<a />").text(t+":"+r[1]).attr("href",a.xdebugLink.replace("%f",r[0]).replace("%l",r[1]));i.append(g)}else i.text(t+":"+r[1]);this.$el.append(i)}}))}})}(PhpDebugBar.$);