login consent app sql
This commit is contained in:
1
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/ajax_layout.html.twig
vendored
Normal file
1
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/ajax_layout.html.twig
vendored
Normal file
@ -0,0 +1 @@
|
||||
{% block panel '' %}
|
20
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/bag.html.twig
vendored
Normal file
20
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/bag.html.twig
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
<table class="{{ class|default('') }}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="key">{{ labels is defined ? labels[0] : 'Key' }}</th>
|
||||
<th scope="col">{{ labels is defined ? labels[1] : 'Value' }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key in bag.keys|sort %}
|
||||
<tr>
|
||||
<th>{{ key }}</th>
|
||||
<td>{{ profiler_dump(bag.get(key), maxDepth=maxDepth|default(0)) }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="2">(no data)</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
34
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/base.html.twig
vendored
Normal file
34
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/base.html.twig
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="{{ _charset }}" />
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>{% block title %}Symfony Profiler{% endblock %}</title>
|
||||
<link rel="icon" type="image/x-icon" sizes="16x16" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFEUlEQVR4AZVXA4wm2RMf27bXDM/+3/+sYBGfrbVtezc6BWtzfPbYXtvDL9906t6v0vWl05me7q1JzXuvvu4yXnvZgJ9hH6bwZYXLFR739vauUGuDwhq1L1N4Uv/tRYUhFjwcg49hn6aYr1V4TiGp86CoP9Oh1tV414KnM6t9fHymKUZ3DAI0hW4b1AyK3lE8phh5OxWeoJgUGhi5mLm95YzBwcHuhIQEV1JSEoWGhoKWHxYWFmenhJ/B5W0GwZpDt5Ovry9lZWWRyWOu5ORk7JsUpogsq5gnmISTU+HKQoLFQv/qq6/os88+I+EVFRUlSsRZ5oRiVmwlXMWShQkahUdERJCfnx/vd+3aRTU1NXTixAmqrq6mK1eu0PTp05mnrmD+QK6XhLO0XP2O2FJAQICRjjMU4P1PP/1EfX19NGfOHM8Z0N7ezueQkBBXYGAgSWIaQ5Em2T5QzFNSUig9PV3OHOe4uDjZ87p//34C7Nm7x/NcRUUFAX799Vec8Y7m7+8Pz92SfBDXr7VwPYRbxn/MmDG8Tps2jQBd3V30/PPPe35/6qmnaPXq1TR69Gg+h4eHiwwosdLT4dBkQDSXWmJiIq/vv/8+/fvvv3ThwgWqr6+n/Px8oyCmAerq6jy03Nxc2Yv7ySSjQzrmi4i92fVpaWlYOZ79/f2MW7dtpSlTptDp06epo6ODPvroI850ASiGdyZOnEjXrl2jyspKT4XA9cgjkaPL/D8UWG62HokieyQQoKSkRGiMs2bNotraWmprayOBNWvWyO+scGdnp5zF/WYvLEb8TwpRykp1MV7feust6uzqJMD169fpueeeY/rDDz/MKzzgdrsJoGkaffvtt/TFF19wQsIDmzZtssojt+6Fo1CgzKiAvAB3DRs2jAULtLS0eErPGB5Ad3c3lZaWUnFxMfeAd955h5+JjY3FaqXAPwhBnRCNySK4b98+Aoilv/z6i/zGggSk1g0opWupAMvGP91yt96zadWqVdTc3Ezz58/31LOAy+US6zgHBP766y+mDR8+HBUgFWSnQI2EAFnqlpcaGxsJIFkMN8L9AnPnzmX6jRs3SACeAi0vL888JwYPgTEJpauhnADo6/LSgQMHCHD37l2Cp15//XXq7eslgKb+Fi1exM9lZmbaCDclIcpQQhATE4OVsrOzuamg+cyePZuzG64Hrlu3jp9ZuWolCdy+fZueeOIJpkdHR1sLHqgM0Yh0bTRz1m7fvp2KiopYkYKCApo8ebLZIwzlFeXSOXEnsLPe2Ij+p5DbYYdOdOtDQ0rNjFya5sTcsGGDcTDZoXTcNoVBMoxWyzDS2yXmOyeUtGSskmDjx4/nRgPAfBDmMpZtUIbRcsi2GsfSD2QYyd2OcdmyZSSwdu1apuXk5GB16v4bak0yX0imyIUEgwNovFTglhMZGcm0srIy43zAVUxuTLbW4xn17Fci23wly9dngUummrTaixcvMpOtW7fiiBwQpqKYU9efHuxDJE5hC9wvL9TW1RLg+PHjPGTQ8wsLC4WpDC5Y5UR4k5qKMSLT6lqeAiX0nuAaMmSI9sMPP9CZM2foyJEj9O677wpTVIuTjidNp0HibvttoH9E5OMqbWKkSaNSlojldoLF7TEP+nUEmKI62y1kOBINbVaNarcI0PuGGUlHyfYvLHg7/jhFSFYqZh0P8KHSptd5ksOPU3tvqAEUot/hFmOIYJLp87wGe9Dwm95eg5xa/R8G6d8U5EcFhwAAAABJRU5ErkJggg==">
|
||||
|
||||
{% block head %}
|
||||
<style{% if csp_style_nonce is defined and csp_style_nonce %} nonce="{{ csp_style_nonce }}"{% endif %}>
|
||||
{{ include('@WebProfiler/Profiler/profiler.css.twig') }}
|
||||
</style>
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<script{% if csp_script_nonce is defined and csp_script_nonce %} nonce="{{ csp_script_nonce }}"{% endif %}>
|
||||
if (null === localStorage.getItem('symfony/profiler/theme') || 'theme-auto' === localStorage.getItem('symfony/profiler/theme')) {
|
||||
document.body.classList.add((matchMedia('(prefers-color-scheme: dark)').matches ? 'theme-dark' : 'theme-light'));
|
||||
// needed to respond dynamically to OS changes without having to refresh the page
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
|
||||
document.body.classList.remove('theme-light', 'theme-dark');
|
||||
document.body.classList.add(e.matches ? 'theme-dark' : 'theme-light');
|
||||
});
|
||||
} else {
|
||||
document.body.classList.add(localStorage.getItem('symfony/profiler/theme'));
|
||||
}
|
||||
|
||||
document.body.classList.add(localStorage.getItem('symfony/profiler/width') || 'width-normal');
|
||||
</script>
|
||||
|
||||
{% block body '' %}
|
||||
</body>
|
||||
</html>
|
874
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/base_js.html.twig
vendored
Normal file
874
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/base_js.html.twig
vendored
Normal file
@ -0,0 +1,874 @@
|
||||
{# This file is partially duplicated in src/Symfony/Component/ErrorHandler/Resources/assets/js/exception.js.
|
||||
If you make any change in this file, verify the same change is needed in the other file. #}
|
||||
<script{% if csp_script_nonce is defined and csp_script_nonce %} nonce="{{ csp_script_nonce }}"{% endif %}>/*<![CDATA[*/
|
||||
{# Caution: the contents of this file are processed by Twig before loading
|
||||
them as JavaScript source code. Always use '/*' comments instead
|
||||
of '//' comments to avoid impossible-to-debug side-effects #}
|
||||
|
||||
if (typeof Sfjs === 'undefined' || typeof Sfjs.loadToolbar === 'undefined') {
|
||||
Sfjs = (function() {
|
||||
"use strict";
|
||||
|
||||
if ('classList' in document.documentElement) {
|
||||
var hasClass = function (el, cssClass) { return el.classList.contains(cssClass); };
|
||||
var removeClass = function(el, cssClass) { el.classList.remove(cssClass); };
|
||||
var addClass = function(el, cssClass) { el.classList.add(cssClass); };
|
||||
var toggleClass = function(el, cssClass) { el.classList.toggle(cssClass); };
|
||||
} else {
|
||||
var hasClass = function (el, cssClass) { return el.className.match(new RegExp('\\b' + cssClass + '\\b')); };
|
||||
var removeClass = function(el, cssClass) { el.className = el.className.replace(new RegExp('\\b' + cssClass + '\\b'), ' '); };
|
||||
var addClass = function(el, cssClass) { if (!hasClass(el, cssClass)) { el.className += " " + cssClass; } };
|
||||
var toggleClass = function(el, cssClass) { hasClass(el, cssClass) ? removeClass(el, cssClass) : addClass(el, cssClass); };
|
||||
}
|
||||
|
||||
var noop = function() {};
|
||||
|
||||
var profilerStorageKey = 'symfony/profiler/';
|
||||
|
||||
var addEventListener;
|
||||
|
||||
var el = document.createElement('div');
|
||||
if (!('addEventListener' in el)) {
|
||||
addEventListener = function (element, eventName, callback) {
|
||||
element.attachEvent('on' + eventName, callback);
|
||||
};
|
||||
} else {
|
||||
addEventListener = function (element, eventName, callback) {
|
||||
element.addEventListener(eventName, callback, false);
|
||||
};
|
||||
}
|
||||
|
||||
if (navigator.clipboard) {
|
||||
document.querySelectorAll('[data-clipboard-text]').forEach(function(element) {
|
||||
removeClass(element, 'hidden');
|
||||
element.addEventListener('click', function() {
|
||||
navigator.clipboard.writeText(element.getAttribute('data-clipboard-text'));
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
var request = function(url, onSuccess, onError, payload, options, tries) {
|
||||
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
|
||||
options = options || {};
|
||||
options.retry = options.retry || false;
|
||||
tries = tries || 1;
|
||||
/* this delays for 125, 375, 625, 875, and 1000, ... */
|
||||
var delay = tries < 5 ? (tries - 0.5) * 250 : 1000;
|
||||
|
||||
xhr.open(options.method || 'GET', url, true);
|
||||
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
|
||||
xhr.onreadystatechange = function(state) {
|
||||
if (4 !== xhr.readyState) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (xhr.status == 404 && options.retry && !options.stop) {
|
||||
setTimeout(function() {
|
||||
if (options.stop) {
|
||||
return;
|
||||
}
|
||||
request(url, onSuccess, onError, payload, options, tries + 1);
|
||||
}, delay);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
if (200 === xhr.status) {
|
||||
(onSuccess || noop)(xhr);
|
||||
} else {
|
||||
(onError || noop)(xhr);
|
||||
}
|
||||
};
|
||||
|
||||
if (options.onSend) {
|
||||
options.onSend(tries);
|
||||
}
|
||||
|
||||
xhr.send(payload || '');
|
||||
};
|
||||
|
||||
var getPreference = function(name) {
|
||||
if (!window.localStorage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return localStorage.getItem(profilerStorageKey + name);
|
||||
};
|
||||
|
||||
var setPreference = function(name, value) {
|
||||
if (!window.localStorage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
localStorage.setItem(profilerStorageKey + name, value);
|
||||
};
|
||||
|
||||
var requestStack = [];
|
||||
|
||||
var extractHeaders = function(xhr, stackElement) {
|
||||
/* Here we avoid to call xhr.getResponseHeader in order to */
|
||||
/* prevent polluting the console with CORS security errors */
|
||||
var allHeaders = xhr.getAllResponseHeaders();
|
||||
var ret;
|
||||
|
||||
if (ret = allHeaders.match(/^x-debug-token:\s+(.*)$/im)) {
|
||||
stackElement.profile = ret[1];
|
||||
}
|
||||
if (ret = allHeaders.match(/^x-debug-token-link:\s+(.*)$/im)) {
|
||||
stackElement.profilerUrl = ret[1];
|
||||
}
|
||||
if (ret = allHeaders.match(/^Symfony-Debug-Toolbar-Replace:\s+(.*)$/im)) {
|
||||
stackElement.toolbarReplaceFinished = false;
|
||||
stackElement.toolbarReplace = '1' === ret[1];
|
||||
}
|
||||
};
|
||||
|
||||
var successStreak = 4;
|
||||
var pendingRequests = 0;
|
||||
var renderAjaxRequests = function() {
|
||||
var requestCounter = document.querySelector('.sf-toolbar-ajax-request-counter');
|
||||
if (!requestCounter) {
|
||||
return;
|
||||
}
|
||||
requestCounter.textContent = requestStack.length;
|
||||
|
||||
var infoSpan = document.querySelector(".sf-toolbar-ajax-info");
|
||||
if (infoSpan) {
|
||||
infoSpan.textContent = requestStack.length + ' AJAX request' + (requestStack.length !== 1 ? 's' : '');
|
||||
}
|
||||
|
||||
var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');
|
||||
if (requestStack.length) {
|
||||
ajaxToolbarPanel.style.display = 'block';
|
||||
} else {
|
||||
ajaxToolbarPanel.style.display = 'none';
|
||||
}
|
||||
if (pendingRequests > 0) {
|
||||
addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');
|
||||
} else if (successStreak < 4) {
|
||||
addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
|
||||
removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');
|
||||
} else {
|
||||
removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');
|
||||
removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');
|
||||
}
|
||||
};
|
||||
|
||||
var startAjaxRequest = function(index) {
|
||||
var tbody = document.querySelector('.sf-toolbar-ajax-request-list');
|
||||
if (!tbody) {
|
||||
return;
|
||||
}
|
||||
|
||||
var nbOfAjaxRequest = tbody.rows.length;
|
||||
if (nbOfAjaxRequest >= 100) {
|
||||
tbody.deleteRow(0);
|
||||
}
|
||||
|
||||
var request = requestStack[index];
|
||||
pendingRequests++;
|
||||
var row = document.createElement('tr');
|
||||
request.DOMNode = row;
|
||||
|
||||
var requestNumberCell = document.createElement('td');
|
||||
requestNumberCell.textContent = index + 1;
|
||||
row.appendChild(requestNumberCell);
|
||||
|
||||
var profilerCell = document.createElement('td');
|
||||
profilerCell.textContent = 'n/a';
|
||||
row.appendChild(profilerCell);
|
||||
|
||||
var methodCell = document.createElement('td');
|
||||
methodCell.textContent = request.method;
|
||||
row.appendChild(methodCell);
|
||||
|
||||
var typeCell = document.createElement('td');
|
||||
typeCell.textContent = request.type;
|
||||
row.appendChild(typeCell);
|
||||
|
||||
var statusCodeCell = document.createElement('td');
|
||||
var statusCode = document.createElement('span');
|
||||
statusCode.textContent = 'n/a';
|
||||
statusCodeCell.appendChild(statusCode);
|
||||
row.appendChild(statusCodeCell);
|
||||
|
||||
var pathCell = document.createElement('td');
|
||||
pathCell.className = 'sf-ajax-request-url';
|
||||
if ('GET' === request.method) {
|
||||
var pathLink = document.createElement('a');
|
||||
pathLink.setAttribute('href', request.url);
|
||||
pathLink.textContent = request.url;
|
||||
pathCell.appendChild(pathLink);
|
||||
} else {
|
||||
pathCell.textContent = request.url;
|
||||
}
|
||||
pathCell.setAttribute('title', request.url);
|
||||
row.appendChild(pathCell);
|
||||
|
||||
var durationCell = document.createElement('td');
|
||||
durationCell.className = 'sf-ajax-request-duration';
|
||||
durationCell.textContent = 'n/a';
|
||||
row.appendChild(durationCell);
|
||||
|
||||
request.liveDurationHandle = setInterval(function() {
|
||||
durationCell.textContent = (new Date() - request.start) + ' ms';
|
||||
}, 100);
|
||||
|
||||
row.className = 'sf-ajax-request sf-ajax-request-loading';
|
||||
tbody.insertBefore(row, null);
|
||||
|
||||
var toolbarInfo = document.querySelector('.sf-toolbar-block-ajax .sf-toolbar-info');
|
||||
toolbarInfo.scrollTop = toolbarInfo.scrollHeight;
|
||||
|
||||
renderAjaxRequests();
|
||||
};
|
||||
|
||||
var finishAjaxRequest = function(index) {
|
||||
var request = requestStack[index];
|
||||
clearInterval(request.liveDurationHandle);
|
||||
|
||||
if (!request.DOMNode) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (request.toolbarReplace && !request.toolbarReplaceFinished && request.profile) {
|
||||
/* Flag as complete because finishAjaxRequest can be called multiple times. */
|
||||
request.toolbarReplaceFinished = true;
|
||||
/* Search up through the DOM to find the toolbar's container ID. */
|
||||
for (var elem = request.DOMNode; elem && elem !== document; elem = elem.parentNode) {
|
||||
if (elem.id.match(/^sfwdt/)) {
|
||||
Sfjs.loadToolbar(elem.id.replace(/^sfwdt/, ''), request.profile);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pendingRequests--;
|
||||
var row = request.DOMNode;
|
||||
/* Unpack the children from the row */
|
||||
var profilerCell = row.children[1];
|
||||
var methodCell = row.children[2];
|
||||
var statusCodeCell = row.children[4];
|
||||
var statusCodeElem = statusCodeCell.children[0];
|
||||
var durationCell = row.children[6];
|
||||
|
||||
if (request.error) {
|
||||
row.className = 'sf-ajax-request sf-ajax-request-error';
|
||||
methodCell.className = 'sf-ajax-request-error';
|
||||
successStreak = 0;
|
||||
} else {
|
||||
row.className = 'sf-ajax-request sf-ajax-request-ok';
|
||||
successStreak++;
|
||||
}
|
||||
|
||||
if (request.statusCode) {
|
||||
if (request.statusCode < 300) {
|
||||
statusCodeElem.setAttribute('class', 'sf-toolbar-status');
|
||||
} else if (request.statusCode < 400) {
|
||||
statusCodeElem.setAttribute('class', 'sf-toolbar-status sf-toolbar-status-yellow');
|
||||
} else {
|
||||
statusCodeElem.setAttribute('class', 'sf-toolbar-status sf-toolbar-status-red');
|
||||
}
|
||||
statusCodeElem.textContent = request.statusCode;
|
||||
} else {
|
||||
statusCodeElem.setAttribute('class', 'sf-toolbar-status sf-toolbar-status-red');
|
||||
}
|
||||
|
||||
if (request.duration) {
|
||||
durationCell.textContent = request.duration + ' ms';
|
||||
}
|
||||
|
||||
if (request.profilerUrl) {
|
||||
profilerCell.textContent = '';
|
||||
var profilerLink = document.createElement('a');
|
||||
profilerLink.setAttribute('href', request.profilerUrl);
|
||||
profilerLink.textContent = request.profile;
|
||||
profilerCell.appendChild(profilerLink);
|
||||
}
|
||||
|
||||
renderAjaxRequests();
|
||||
};
|
||||
|
||||
{% if excluded_ajax_paths is defined %}
|
||||
if (window.fetch && window.fetch.polyfill === undefined) {
|
||||
var oldFetch = window.fetch;
|
||||
window.fetch = function () {
|
||||
var promise = oldFetch.apply(this, arguments);
|
||||
var url = arguments[0];
|
||||
var params = arguments[1];
|
||||
var paramType = Object.prototype.toString.call(arguments[0]);
|
||||
if (paramType === '[object Request]') {
|
||||
url = arguments[0].url;
|
||||
params = {
|
||||
method: arguments[0].method,
|
||||
credentials: arguments[0].credentials,
|
||||
headers: arguments[0].headers,
|
||||
mode: arguments[0].mode,
|
||||
redirect: arguments[0].redirect
|
||||
};
|
||||
} else {
|
||||
url = String(url);
|
||||
}
|
||||
if (!url.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
|
||||
var method = 'GET';
|
||||
if (params && params.method !== undefined) {
|
||||
method = params.method;
|
||||
}
|
||||
|
||||
var stackElement = {
|
||||
error: false,
|
||||
url: url,
|
||||
method: method,
|
||||
type: 'fetch',
|
||||
start: new Date()
|
||||
};
|
||||
|
||||
var idx = requestStack.push(stackElement) - 1;
|
||||
promise.then(function (r) {
|
||||
stackElement.duration = new Date() - stackElement.start;
|
||||
stackElement.error = r.status < 200 || r.status >= 400;
|
||||
stackElement.statusCode = r.status;
|
||||
stackElement.profile = r.headers.get('x-debug-token');
|
||||
stackElement.profilerUrl = r.headers.get('x-debug-token-link');
|
||||
stackElement.toolbarReplaceFinished = false;
|
||||
stackElement.toolbarReplace = '1' === r.headers.get('Symfony-Debug-Toolbar-Replace');
|
||||
finishAjaxRequest(idx);
|
||||
}, function (e){
|
||||
stackElement.error = true;
|
||||
finishAjaxRequest(idx);
|
||||
});
|
||||
startAjaxRequest(idx);
|
||||
}
|
||||
|
||||
return promise;
|
||||
};
|
||||
}
|
||||
if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {
|
||||
var proxied = XMLHttpRequest.prototype.open;
|
||||
|
||||
XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
|
||||
var self = this;
|
||||
|
||||
/* prevent logging AJAX calls to static and inline files, like templates */
|
||||
var path = url;
|
||||
if (url.slice(0, 1) === '/') {
|
||||
if (0 === url.indexOf('{{ request.basePath|e('js') }}')) {
|
||||
path = url.slice({{ request.basePath|length }});
|
||||
}
|
||||
}
|
||||
else if (0 === url.indexOf('{{ (request.schemeAndHttpHost ~ request.basePath)|e('js') }}')) {
|
||||
path = url.slice({{ (request.schemeAndHttpHost ~ request.basePath)|length }});
|
||||
}
|
||||
|
||||
if (!path.match(new RegExp({{ excluded_ajax_paths|json_encode|raw }}))) {
|
||||
var stackElement = {
|
||||
error: false,
|
||||
url: url,
|
||||
method: method,
|
||||
type: 'xhr',
|
||||
start: new Date()
|
||||
};
|
||||
|
||||
var idx = requestStack.push(stackElement) - 1;
|
||||
|
||||
this.addEventListener('readystatechange', function() {
|
||||
if (self.readyState == 4) {
|
||||
stackElement.duration = new Date() - stackElement.start;
|
||||
stackElement.error = self.status < 200 || self.status >= 400;
|
||||
stackElement.statusCode = self.status;
|
||||
extractHeaders(self, stackElement);
|
||||
|
||||
finishAjaxRequest(idx);
|
||||
}
|
||||
}, false);
|
||||
|
||||
startAjaxRequest(idx);
|
||||
}
|
||||
|
||||
proxied.apply(this, Array.prototype.slice.call(arguments));
|
||||
};
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
return {
|
||||
hasClass: hasClass,
|
||||
|
||||
removeClass: removeClass,
|
||||
|
||||
addClass: addClass,
|
||||
|
||||
toggleClass: toggleClass,
|
||||
|
||||
getPreference: getPreference,
|
||||
|
||||
setPreference: setPreference,
|
||||
|
||||
addEventListener: addEventListener,
|
||||
|
||||
request: request,
|
||||
|
||||
renderAjaxRequests: renderAjaxRequests,
|
||||
|
||||
getSfwdt: function(token) {
|
||||
if (!this.sfwdt) {
|
||||
this.sfwdt = document.getElementById('sfwdt' + token);
|
||||
}
|
||||
|
||||
return this.sfwdt;
|
||||
},
|
||||
|
||||
load: function(selector, url, onSuccess, onError, options) {
|
||||
var el = document.getElementById(selector);
|
||||
|
||||
if (el && el.getAttribute('data-sfurl') !== url) {
|
||||
request(
|
||||
url,
|
||||
function(xhr) {
|
||||
el.innerHTML = xhr.responseText;
|
||||
el.setAttribute('data-sfurl', url);
|
||||
removeClass(el, 'loading');
|
||||
var pending = pendingRequests;
|
||||
for (var i = 0; i < requestStack.length; i++) {
|
||||
startAjaxRequest(i);
|
||||
if (requestStack[i].duration) {
|
||||
finishAjaxRequest(i);
|
||||
}
|
||||
}
|
||||
/* Revert the pending state in case there was a start called without a finish above. */
|
||||
pendingRequests = pending;
|
||||
(onSuccess || noop)(xhr, el);
|
||||
},
|
||||
function(xhr) { (onError || noop)(xhr, el); },
|
||||
'',
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
showToolbar: function(token) {
|
||||
var sfwdt = this.getSfwdt(token);
|
||||
removeClass(sfwdt, 'sf-display-none');
|
||||
|
||||
if (getPreference('toolbar/displayState') == 'none') {
|
||||
document.getElementById('sfToolbarMainContent-' + token).style.display = 'none';
|
||||
document.getElementById('sfToolbarClearer-' + token).style.display = 'none';
|
||||
document.getElementById('sfMiniToolbar-' + token).style.display = 'block';
|
||||
} else {
|
||||
document.getElementById('sfToolbarMainContent-' + token).style.display = 'block';
|
||||
document.getElementById('sfToolbarClearer-' + token).style.display = 'block';
|
||||
document.getElementById('sfMiniToolbar-' + token).style.display = 'none';
|
||||
}
|
||||
},
|
||||
|
||||
hideToolbar: function(token) {
|
||||
var sfwdt = this.getSfwdt(token);
|
||||
addClass(sfwdt, 'sf-display-none');
|
||||
},
|
||||
|
||||
initToolbar: function(token) {
|
||||
this.showToolbar(token);
|
||||
|
||||
var hideButton = document.getElementById('sfToolbarHideButton-' + token);
|
||||
var hideButtonSvg = hideButton.querySelector('svg');
|
||||
hideButtonSvg.setAttribute('aria-hidden', 'true');
|
||||
hideButtonSvg.setAttribute('focusable', 'false');
|
||||
addEventListener(hideButton, 'click', function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
var p = this.parentNode;
|
||||
p.style.display = 'none';
|
||||
(p.previousElementSibling || p.previousSibling).style.display = 'none';
|
||||
document.getElementById('sfMiniToolbar-' + token).style.display = 'block';
|
||||
setPreference('toolbar/displayState', 'none');
|
||||
});
|
||||
|
||||
var showButton = document.getElementById('sfToolbarMiniToggler-' + token);
|
||||
var showButtonSvg = showButton.querySelector('svg');
|
||||
showButtonSvg.setAttribute('aria-hidden', 'true');
|
||||
showButtonSvg.setAttribute('focusable', 'false');
|
||||
addEventListener(showButton, 'click', function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
var elem = this.parentNode;
|
||||
if (elem.style.display == 'none') {
|
||||
document.getElementById('sfToolbarMainContent-' + token).style.display = 'none';
|
||||
document.getElementById('sfToolbarClearer-' + token).style.display = 'none';
|
||||
elem.style.display = 'block';
|
||||
} else {
|
||||
document.getElementById('sfToolbarMainContent-' + token).style.display = 'block';
|
||||
document.getElementById('sfToolbarClearer-' + token).style.display = 'block';
|
||||
elem.style.display = 'none'
|
||||
}
|
||||
|
||||
setPreference('toolbar/displayState', 'block');
|
||||
});
|
||||
},
|
||||
|
||||
loadToolbar: function(token, newToken) {
|
||||
var that = this;
|
||||
var triesCounter = document.getElementById('sfLoadCounter-' + token);
|
||||
|
||||
var options = {
|
||||
retry: true,
|
||||
onSend: function (count) {
|
||||
if (count === 3) {
|
||||
that.initToolbar(token);
|
||||
}
|
||||
|
||||
if (triesCounter) {
|
||||
triesCounter.textContent = count;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
var cancelButton = document.getElementById('sfLoadCancel-' + token);
|
||||
if (cancelButton) {
|
||||
addEventListener(cancelButton, 'click', function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
options.stop = true;
|
||||
that.hideToolbar(token);
|
||||
});
|
||||
}
|
||||
|
||||
newToken = (newToken || token);
|
||||
|
||||
this.load(
|
||||
'sfwdt' + token,
|
||||
'{{ url("_wdt", { "token": "xxxxxx" })|escape('js') }}'.replace(/xxxxxx/, newToken),
|
||||
function(xhr, el) {
|
||||
/* Do nothing in the edge case where the toolbar has already been replaced with a new one */
|
||||
if (!document.getElementById('sfToolbarMainContent-' + newToken)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Evaluate in global scope scripts embedded inside the toolbar */
|
||||
var i, scripts = [].slice.call(el.querySelectorAll('script'));
|
||||
for (i = 0; i < scripts.length; ++i) {
|
||||
eval.call({}, scripts[i].firstChild.nodeValue);
|
||||
}
|
||||
|
||||
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
|
||||
|
||||
if (el.style.display == 'none') {
|
||||
return;
|
||||
}
|
||||
|
||||
that.initToolbar(newToken);
|
||||
|
||||
/* Handle toolbar-info position */
|
||||
var toolbarBlocks = [].slice.call(el.querySelectorAll('.sf-toolbar-block'));
|
||||
for (i = 0; i < toolbarBlocks.length; ++i) {
|
||||
toolbarBlocks[i].onmouseover = function () {
|
||||
var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];
|
||||
var pageWidth = document.body.clientWidth;
|
||||
var elementWidth = toolbarInfo.offsetWidth;
|
||||
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
|
||||
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
|
||||
|
||||
/* Reset right and left value, useful on window resize */
|
||||
toolbarInfo.style.right = '';
|
||||
toolbarInfo.style.left = '';
|
||||
|
||||
if (elementWidth > pageWidth) {
|
||||
toolbarInfo.style.left = 0;
|
||||
}
|
||||
else if (leftValue > 0 && rightValue > 0) {
|
||||
toolbarInfo.style.right = (rightValue * -1) + 'px';
|
||||
} else if (leftValue < 0) {
|
||||
toolbarInfo.style.left = 0;
|
||||
} else {
|
||||
toolbarInfo.style.right = '0px';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
renderAjaxRequests();
|
||||
addEventListener(document.querySelector('.sf-toolbar-ajax-clear'), 'click', function() {
|
||||
requestStack = [];
|
||||
renderAjaxRequests();
|
||||
successStreak = 4;
|
||||
document.querySelector('.sf-toolbar-ajax-request-list').innerHTML = '';
|
||||
});
|
||||
addEventListener(document.querySelector('.sf-toolbar-block-ajax'), 'mouseenter', function (event) {
|
||||
var elem = document.querySelector('.sf-toolbar-block-ajax .sf-toolbar-info');
|
||||
elem.scrollTop = elem.scrollHeight;
|
||||
});
|
||||
addEventListener(document.querySelector('.sf-toolbar-block-ajax > .sf-toolbar-icon'), 'click', function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
toggleClass(this.parentNode, 'hover');
|
||||
});
|
||||
|
||||
var dumpInfo = document.querySelector('.sf-toolbar-block-dump .sf-toolbar-info');
|
||||
if (null !== dumpInfo) {
|
||||
addEventListener(dumpInfo, 'sfbeforedumpcollapse', function () {
|
||||
dumpInfo.style.minHeight = dumpInfo.getBoundingClientRect().height+'px';
|
||||
});
|
||||
addEventListener(dumpInfo, 'mouseleave', function () {
|
||||
dumpInfo.style.minHeight = '';
|
||||
});
|
||||
}
|
||||
},
|
||||
function(xhr) {
|
||||
if (xhr.status !== 0 && !options.stop) {
|
||||
var sfwdt = that.getSfwdt(token);
|
||||
sfwdt.innerHTML = '\
|
||||
<div class="sf-toolbarreset">\
|
||||
<div class="sf-toolbar-icon"><svg width="26" height="28" xmlns="http://www.w3.org/2000/svg" version="1.1" x="0px" y="0px" viewBox="0 0 26 28" enable-background="new 0 0 26 28" xml:space="preserve"><path fill="#FFFFFF" d="M13 0C5.8 0 0 5.8 0 13c0 7.2 5.8 13 13 13c7.2 0 13-5.8 13-13C26 5.8 20.2 0 13 0z M20 7.5 c-0.6 0-1-0.3-1-0.9c0-0.2 0-0.4 0.2-0.6c0.1-0.3 0.2-0.3 0.2-0.4c0-0.3-0.5-0.4-0.7-0.4c-2 0.1-2.5 2.7-2.9 4.8l-0.2 1.1 c1.1 0.2 1.9 0 2.4-0.3c0.6-0.4-0.2-0.8-0.1-1.3C18 9.2 18.4 9 18.7 8.9c0.5 0 0.8 0.5 0.8 1c0 0.8-1.1 2-3.3 1.9 c-0.3 0-0.5 0-0.7-0.1L15 14.1c-0.4 1.7-0.9 4.1-2.6 6.2c-1.5 1.8-3.1 2.1-3.8 2.1c-1.3 0-2.1-0.6-2.2-1.6c0-0.9 0.8-1.4 1.3-1.4 c0.7 0 1.2 0.5 1.2 1.1c0 0.5-0.2 0.6-0.4 0.7c-0.1 0.1-0.3 0.2-0.3 0.4c0 0.1 0.1 0.3 0.4 0.3c0.5 0 0.9-0.3 1.2-0.5 c1.3-1 1.7-2.9 2.4-6.2l0.1-0.8c0.2-1.1 0.5-2.3 0.8-3.5c-0.9-0.7-1.4-1.5-2.6-1.8c-0.8-0.2-1.3 0-1.7 0.4C8.4 10 8.6 10.7 9 11.1 l0.7 0.7c0.8 0.9 1.3 1.7 1.1 2.7c-0.3 1.6-2.1 2.8-4.3 2.1c-1.9-0.6-2.2-1.9-2-2.7c0.2-0.6 0.7-0.8 1.2-0.6 c0.5 0.2 0.7 0.8 0.6 1.3c0 0.1 0 0.1-0.1 0.3C6 15 5.9 15.2 5.9 15.3c-0.1 0.4 0.4 0.7 0.8 0.8c0.8 0.3 1.7-0.2 1.9-0.9 c0.2-0.6-0.2-1.1-0.4-1.2l-0.8-0.9c-0.4-0.4-1.2-1.5-0.8-2.8c0.2-0.5 0.5-1 0.9-1.4c1-0.7 2-0.8 3-0.6c1.3 0.4 1.9 1.2 2.8 1.9 c0.5-1.3 1.1-2.6 2-3.8c0.9-1 2-1.7 3.3-1.8C20 4.8 21 5.4 21 6.3C21 6.7 20.8 7.5 20 7.5z"/></svg></div>\
|
||||
An error occurred while loading the web debug toolbar. <a href="{{ url("_profiler_home")|escape('js') }}' + newToken + '>Open the web profiler.</a>\
|
||||
</div>\
|
||||
';
|
||||
sfwdt.setAttribute('class', 'sf-toolbar sf-error-toolbar');
|
||||
}
|
||||
},
|
||||
options
|
||||
);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
toggle: function(selector, elOn, elOff) {
|
||||
var tmp = elOn.style.display,
|
||||
el = document.getElementById(selector);
|
||||
|
||||
elOn.style.display = elOff.style.display;
|
||||
elOff.style.display = tmp;
|
||||
|
||||
if (el) {
|
||||
el.style.display = 'none' === tmp ? 'none' : 'block';
|
||||
}
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
createTabs: function() {
|
||||
var tabGroups = document.querySelectorAll('.sf-tabs:not([data-processed=true])');
|
||||
|
||||
/* create the tab navigation for each group of tabs */
|
||||
for (var i = 0; i < tabGroups.length; i++) {
|
||||
var tabs = tabGroups[i].querySelectorAll(':scope > .tab');
|
||||
var tabNavigation = document.createElement('ul');
|
||||
tabNavigation.className = 'tab-navigation';
|
||||
|
||||
var selectedTabId = 'tab-' + i + '-0'; /* select the first tab by default */
|
||||
for (var j = 0; j < tabs.length; j++) {
|
||||
var tabId = 'tab-' + i + '-' + j;
|
||||
var tabTitle = tabs[j].querySelector('.tab-title').innerHTML;
|
||||
|
||||
var tabNavigationItem = document.createElement('li');
|
||||
tabNavigationItem.setAttribute('data-tab-id', tabId);
|
||||
if (hasClass(tabs[j], 'active')) { selectedTabId = tabId; }
|
||||
if (hasClass(tabs[j], 'disabled')) { addClass(tabNavigationItem, 'disabled'); }
|
||||
tabNavigationItem.innerHTML = tabTitle;
|
||||
tabNavigation.appendChild(tabNavigationItem);
|
||||
|
||||
var tabContent = tabs[j].querySelector('.tab-content');
|
||||
tabContent.parentElement.setAttribute('id', tabId);
|
||||
}
|
||||
|
||||
tabGroups[i].insertBefore(tabNavigation, tabGroups[i].firstChild);
|
||||
addClass(document.querySelector('[data-tab-id="' + selectedTabId + '"]'), 'active');
|
||||
}
|
||||
|
||||
/* display the active tab and add the 'click' event listeners */
|
||||
for (i = 0; i < tabGroups.length; i++) {
|
||||
tabNavigation = tabGroups[i].querySelectorAll(':scope > .tab-navigation li');
|
||||
|
||||
for (j = 0; j < tabNavigation.length; j++) {
|
||||
tabId = tabNavigation[j].getAttribute('data-tab-id');
|
||||
document.getElementById(tabId).querySelector('.tab-title').className = 'hidden';
|
||||
|
||||
if (hasClass(tabNavigation[j], 'active')) {
|
||||
document.getElementById(tabId).className = 'block';
|
||||
} else {
|
||||
document.getElementById(tabId).className = 'hidden';
|
||||
}
|
||||
|
||||
tabNavigation[j].addEventListener('click', function(e) {
|
||||
var activeTab = e.target || e.srcElement;
|
||||
|
||||
/* needed because when the tab contains HTML contents, user can click */
|
||||
/* on any of those elements instead of their parent '<li>' element */
|
||||
while (activeTab.tagName.toLowerCase() !== 'li') {
|
||||
activeTab = activeTab.parentNode;
|
||||
}
|
||||
|
||||
/* get the full list of tabs through the parent of the active tab element */
|
||||
var tabNavigation = activeTab.parentNode.children;
|
||||
for (var k = 0; k < tabNavigation.length; k++) {
|
||||
var tabId = tabNavigation[k].getAttribute('data-tab-id');
|
||||
document.getElementById(tabId).className = 'hidden';
|
||||
removeClass(tabNavigation[k], 'active');
|
||||
}
|
||||
|
||||
addClass(activeTab, 'active');
|
||||
var activeTabId = activeTab.getAttribute('data-tab-id');
|
||||
document.getElementById(activeTabId).className = 'block';
|
||||
});
|
||||
}
|
||||
|
||||
tabGroups[i].setAttribute('data-processed', 'true');
|
||||
}
|
||||
},
|
||||
|
||||
createToggles: function() {
|
||||
var toggles = document.querySelectorAll('.sf-toggle:not([data-processed=true])');
|
||||
|
||||
for (var i = 0; i < toggles.length; i++) {
|
||||
var elementSelector = toggles[i].getAttribute('data-toggle-selector');
|
||||
var element = document.querySelector(elementSelector);
|
||||
|
||||
addClass(element, 'sf-toggle-content');
|
||||
|
||||
if (toggles[i].hasAttribute('data-toggle-initial') && toggles[i].getAttribute('data-toggle-initial') == 'display') {
|
||||
addClass(toggles[i], 'sf-toggle-on');
|
||||
addClass(element, 'sf-toggle-visible');
|
||||
} else {
|
||||
addClass(toggles[i], 'sf-toggle-off');
|
||||
addClass(element, 'sf-toggle-hidden');
|
||||
}
|
||||
|
||||
addEventListener(toggles[i], 'click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if ('' !== window.getSelection().toString()) {
|
||||
/* Don't do anything on text selection */
|
||||
return;
|
||||
}
|
||||
|
||||
var toggle = e.target || e.srcElement;
|
||||
|
||||
/* needed because when the toggle contains HTML contents, user can click */
|
||||
/* on any of those elements instead of their parent '.sf-toggle' element */
|
||||
while (!hasClass(toggle, 'sf-toggle')) {
|
||||
toggle = toggle.parentNode;
|
||||
}
|
||||
|
||||
var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));
|
||||
|
||||
toggleClass(toggle, 'sf-toggle-on');
|
||||
toggleClass(toggle, 'sf-toggle-off');
|
||||
toggleClass(element, 'sf-toggle-hidden');
|
||||
toggleClass(element, 'sf-toggle-visible');
|
||||
|
||||
/* the toggle doesn't change its contents when clicking on it */
|
||||
if (!toggle.hasAttribute('data-toggle-alt-content')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!toggle.hasAttribute('data-toggle-original-content')) {
|
||||
toggle.setAttribute('data-toggle-original-content', toggle.innerHTML);
|
||||
}
|
||||
|
||||
var currentContent = toggle.innerHTML;
|
||||
var originalContent = toggle.getAttribute('data-toggle-original-content');
|
||||
var altContent = toggle.getAttribute('data-toggle-alt-content');
|
||||
toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;
|
||||
});
|
||||
|
||||
/* Prevents from disallowing clicks on links inside toggles */
|
||||
var toggleLinks = toggles[i].querySelectorAll('a');
|
||||
for (var j = 0; j < toggleLinks.length; j++) {
|
||||
addEventListener(toggleLinks[j], 'click', function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
/* Prevents from disallowing clicks on "copy to clipboard" elements inside toggles */
|
||||
var copyToClipboardElements = toggles[i].querySelectorAll('span[data-clipboard-text]');
|
||||
for (var k = 0; k < copyToClipboardElements.length; k++) {
|
||||
addEventListener(copyToClipboardElements[k], 'click', function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
||||
toggles[i].setAttribute('data-processed', 'true');
|
||||
}
|
||||
},
|
||||
|
||||
initializeLogsTable: function() {
|
||||
Sfjs.updateLogsTable();
|
||||
|
||||
document.querySelectorAll('.log-filter input').forEach((input) => {
|
||||
input.addEventListener('change', () => { Sfjs.updateLogsTable(); });
|
||||
});
|
||||
|
||||
document.querySelectorAll('.filter-select-all-or-none button').forEach((link) => {
|
||||
link.addEventListener('click', () => {
|
||||
const selectAll = link.classList.contains('select-all');
|
||||
link.closest('.log-filter-content').querySelectorAll('input').forEach((input) => {
|
||||
input.checked = selectAll;
|
||||
});
|
||||
|
||||
Sfjs.updateLogsTable();
|
||||
});
|
||||
});
|
||||
|
||||
document.body.addEventListener('click', (event) => {
|
||||
document.querySelectorAll('details.log-filter').forEach((filterElement) => {
|
||||
if (!filterElement.contains(event.target) && filterElement.open) {
|
||||
filterElement.open = false;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
updateLogsTable: function() {
|
||||
const selectedType = document.querySelector('#log-filter-type input:checked').value;
|
||||
const priorities = document.querySelectorAll('#log-filter-priority input');
|
||||
const allPriorities = Array.from(priorities).map((input) => input.value);
|
||||
const selectedPriorities = Array.from(priorities).filter((input) => input.checked).map((input) => input.value);
|
||||
const channels = document.querySelectorAll('#log-filter-channel input');
|
||||
const selectedChannels = Array.from(channels).filter((input) => input.checked).map((input) => input.value);
|
||||
|
||||
const logs = document.querySelector('table.logs');
|
||||
if (null === logs) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* hide rows that don't match the current filters */
|
||||
let numVisibleRows = 0;
|
||||
logs.querySelectorAll('tbody tr').forEach((row) => {
|
||||
if ('all' !== selectedType && selectedType !== row.getAttribute('data-type')) {
|
||||
row.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
const priority = row.getAttribute('data-priority');
|
||||
if (false === selectedPriorities.includes(priority) && true === allPriorities.includes(priority)) {
|
||||
row.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
if ('' !== row.getAttribute('data-channel') && false === selectedChannels.includes(row.getAttribute('data-channel'))) {
|
||||
row.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
row.style.display = 'table-row';
|
||||
numVisibleRows++;
|
||||
});
|
||||
|
||||
document.querySelector('table.logs').style.display = 0 === numVisibleRows ? 'none' : 'table';
|
||||
document.querySelector('.no-logs-message').style.display = 0 === numVisibleRows ? 'block' : 'none';
|
||||
|
||||
/* update the selected totals of all filters */
|
||||
document.querySelector('#log-filter-priority .filter-active-num').innerText = (priorities.length === selectedPriorities.length) ? 'All' : selectedPriorities.length;
|
||||
document.querySelector('#log-filter-channel .filter-active-num').innerText = (channels.length === selectedChannels.length) ? 'All' : selectedChannels.length;
|
||||
|
||||
/* update the currently selected "log type" tab */
|
||||
document.querySelectorAll('#log-filter-type li').forEach((tab) => tab.classList.remove('active'));
|
||||
document.querySelector(`#log-filter-type input[value="${selectedType}"]`).parentElement.classList.add('active');
|
||||
},
|
||||
};
|
||||
})();
|
||||
|
||||
Sfjs.addEventListener(document, 'DOMContentLoaded', function() {
|
||||
Sfjs.createTabs();
|
||||
Sfjs.createToggles();
|
||||
});
|
||||
}
|
||||
/*]]>*/</script>
|
25
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/cancel.html.twig
vendored
Normal file
25
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/cancel.html.twig
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
{% block toolbar %}
|
||||
{% set icon %}
|
||||
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
||||
|
||||
<span class="sf-toolbar-value sf-toolbar-ajax-request-counter">
|
||||
Loading…
|
||||
</span>
|
||||
{% endset %}
|
||||
|
||||
{% set text %}
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Loading the web debug toolbar…</b>
|
||||
</div>
|
||||
<div class="sf-toolbar-info-piece">
|
||||
Attempt #<span id="sfLoadCounter-{{ token }}"></span>
|
||||
</div>
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>
|
||||
<button class="sf-cancel-button" type="button" id="sfLoadCancel-{{ token }}" title="Cancel loading">Cancel</button>
|
||||
</b>
|
||||
</div>
|
||||
{% endset %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
||||
{% endblock %}
|
14
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/header.html.twig
vendored
Normal file
14
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/header.html.twig
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<div id="header">
|
||||
<div class="container">
|
||||
<h1>{{ include('@WebProfiler/Icon/symfony.svg') }} Symfony <span>Profiler</span></h1>
|
||||
|
||||
<div class="search">
|
||||
<form method="get" action="https://symfony.com/search" target="_blank">
|
||||
<div class="form-row">
|
||||
<input name="q" id="search-id" type="search" placeholder="search on symfony.com">
|
||||
<button type="submit" class="btn">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
22
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/info.html.twig
vendored
Normal file
22
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/info.html.twig
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
||||
|
||||
{% set messages = {
|
||||
'no_token' : {
|
||||
status: 'error',
|
||||
title: (token|default('') == 'latest') ? 'There are no profiles' : 'Token not found',
|
||||
message: (token|default('') == 'latest') ? 'No profiles found.' : 'Token "' ~ token|default('') ~ '" not found.'
|
||||
}
|
||||
} %}
|
||||
|
||||
{% block summary %}
|
||||
<div class="status status-{{ messages[about].status }}">
|
||||
<div class="container">
|
||||
<h2>{{ messages[about].status|title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
<h2>{{ messages[about].title }}</h2>
|
||||
<p>{{ messages[about].message }}</p>
|
||||
{% endblock %}
|
153
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/layout.html.twig
vendored
Normal file
153
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/layout.html.twig
vendored
Normal file
@ -0,0 +1,153 @@
|
||||
{% extends '@WebProfiler/Profiler/base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
{{ include('@WebProfiler/Profiler/header.html.twig', with_context = false) }}
|
||||
|
||||
<div id="summary">
|
||||
{% block summary %}
|
||||
{% if profile is defined %}
|
||||
{% set request_collector = profile.collectors.request|default(false) %}
|
||||
{% set status_code = request_collector ? request_collector.statuscode|default(0) : 0 %}
|
||||
{% set css_class = status_code > 399 ? 'status-error' : status_code > 299 ? 'status-warning' : 'status-success' %}
|
||||
|
||||
<div class="status {{ css_class }}">
|
||||
<div class="container">
|
||||
<h2 class="break-long-words">
|
||||
{% if profile.method|upper in ['GET', 'HEAD'] %}
|
||||
<a href="{{ profile.url }}">{{ profile.url }}</a>
|
||||
{% else %}
|
||||
{{ profile.url }}
|
||||
{% set referer = request_collector ? request_collector.requestheaders.get('referer') : null %}
|
||||
{% if referer %}
|
||||
<a href="{{ referer }}" class="referer">Return to referer URL</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</h2>
|
||||
|
||||
{% if request_collector and request_collector.redirect -%}
|
||||
{%- set redirect = request_collector.redirect -%}
|
||||
{%- set controller = redirect.controller -%}
|
||||
{%- set redirect_route = '@' ~ redirect.route %}
|
||||
<dl class="metadata">
|
||||
<dt>
|
||||
<span class="label">{{ redirect.status_code }}</span>
|
||||
Redirect from
|
||||
</dt>
|
||||
<dd>
|
||||
{{ 'GET' != redirect.method ? redirect.method }}
|
||||
{% if redirect.controller.class is defined -%}
|
||||
{%- set link = controller.file|file_link(controller.line) -%}
|
||||
{% if link %}<a href="{{ link }}" title="{{ controller.file }}">{% endif -%}
|
||||
{{ redirect_route }}
|
||||
{%- if link %}</a>{% endif -%}
|
||||
{%- else -%}
|
||||
{{ redirect_route }}
|
||||
{%- endif %}
|
||||
(<a href="{{ path('_profiler', { token: redirect.token, panel: request.query.get('panel', 'request') }) }}">{{ redirect.token }}</a>)
|
||||
</dd>
|
||||
</dl>
|
||||
{%- endif %}
|
||||
|
||||
{% if request_collector and request_collector.forwardtoken -%}
|
||||
{% set forward_profile = profile.childByToken(request_collector.forwardtoken) %}
|
||||
{% set controller = forward_profile ? forward_profile.collector('request').controller : 'n/a' %}
|
||||
<dl class="metadata">
|
||||
<dt>Forwarded to</dt>
|
||||
<dd>
|
||||
{% set link = controller.file is defined ? controller.file|file_link(controller.line) : null -%}
|
||||
{%- if link %}<a href="{{ link }}" title="{{ controller.file }}">{% endif -%}
|
||||
{% if controller.class is defined %}
|
||||
{{- controller.class|abbr_class|striptags -}}
|
||||
{{- controller.method ? ' :: ' ~ controller.method -}}
|
||||
{% else %}
|
||||
{{- controller -}}
|
||||
{% endif %}
|
||||
{%- if link %}</a>{% endif %}
|
||||
(<a href="{{ path('_profiler', { token: request_collector.forwardtoken }) }}">{{ request_collector.forwardtoken }}</a>)
|
||||
</dd>
|
||||
</dl>
|
||||
{%- endif %}
|
||||
|
||||
<dl class="metadata">
|
||||
<dt>Method</dt>
|
||||
<dd>{{ profile.method|upper }}</dd>
|
||||
|
||||
<dt>HTTP Status</dt>
|
||||
<dd>{{ status_code }}</dd>
|
||||
|
||||
<dt>IP</dt>
|
||||
<dd>
|
||||
<a href="{{ path('_profiler_search_results', { token: token, limit: 10, ip: profile.ip }) }}">{{ profile.ip }}</a>
|
||||
</dd>
|
||||
|
||||
<dt>Profiled on</dt>
|
||||
<dd><time datetime="{{ profile.time|date('c') }}">{{ profile.time|date('r') }}</time></dd>
|
||||
|
||||
<dt>Token</dt>
|
||||
<dd>{{ profile.token }}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<div id="content" class="container">
|
||||
<div id="main">
|
||||
<div id="sidebar">
|
||||
<div id="sidebar-shortcuts">
|
||||
<div class="shortcuts">
|
||||
<a href="#" id="sidebarShortcutsMenu" class="visible-small">
|
||||
<span class="icon">{{ include('@WebProfiler/Icon/menu.svg') }}</span>
|
||||
</a>
|
||||
|
||||
<a class="btn btn-sm" href="{{ path('_profiler_search', { limit: 10 }) }}">Last 10</a>
|
||||
<a class="btn btn-sm" href="{{ path('_profiler', { token: 'latest' }|merge(request.query.all)) }}">Latest</a>
|
||||
|
||||
<a class="sf-toggle btn btn-sm" data-toggle-selector="#sidebar-search" {% if tokens is defined or about is defined %}data-toggle-initial="display"{% endif %}>
|
||||
{{ include('@WebProfiler/Icon/search.svg') }} <span class="hidden-small">Search</span>
|
||||
</a>
|
||||
|
||||
{{ render(controller('web_profiler.controller.profiler::searchBarAction', request.query.all)) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if templates is defined %}
|
||||
<ul id="menu-profiler">
|
||||
{% for name, template in templates %}
|
||||
{% set menu -%}
|
||||
{%- if block('menu', template) is defined -%}
|
||||
{% with { collector: profile.getcollector(name), profiler_markup_version: profiler_markup_version } %}
|
||||
{{- block('menu', template) -}}
|
||||
{% endwith %}
|
||||
{%- endif -%}
|
||||
{%- endset %}
|
||||
{% if menu is not empty %}
|
||||
<li class="{{ name }} {{ name == panel ? 'selected' }}">
|
||||
<a href="{{ path('_profiler', { token: token, panel: name }) }}">{{ menu|raw }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{{ include('@WebProfiler/Profiler/settings.html.twig') }}
|
||||
</div>
|
||||
|
||||
<div id="collector-wrapper">
|
||||
<div id="collector-content">
|
||||
{{ include('@WebProfiler/Profiler/base_js.html.twig') }}
|
||||
{% block panel '' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
(function () {
|
||||
Sfjs.addEventListener(document.getElementById('sidebarShortcutsMenu'), 'click', function (event) {
|
||||
event.preventDefault();
|
||||
Sfjs.toggleClass(document.getElementById('sidebar'), 'expanded');
|
||||
})
|
||||
}());
|
||||
</script>
|
||||
{% endblock %}
|
79
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/open.css.twig
vendored
Normal file
79
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/open.css.twig
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
{# Mixins
|
||||
========================================================================= #}
|
||||
{% set mixins = {
|
||||
'break_long_words': '-ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto;',
|
||||
'monospace_font': 'font-family: monospace; font-size: 13px; font-size-adjust: 0.5;',
|
||||
'sans_serif_font': 'font-family: Helvetica, Arial, sans-serif;',
|
||||
'subtle_border_and_shadow': 'background: #FFF; border: 1px solid #E0E0E0; box-shadow: 0px 0px 1px rgba(128, 128, 128, .2);'
|
||||
} %}
|
||||
|
||||
{# Normalization
|
||||
(normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css)
|
||||
========================================================================= #}
|
||||
html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}
|
||||
|
||||
{# Basic styles
|
||||
========================================================================= #}
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
body {
|
||||
background-color: #F9F9F9;
|
||||
color: #aaa;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
{{ mixins.sans_serif_font|raw }}
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.header {
|
||||
background-color: #222;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.header h1 {
|
||||
color: #FFF;
|
||||
font-weight: normal;
|
||||
font-size: 21px;
|
||||
margin: 0;
|
||||
padding: 10px 10px 8px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a.doc {
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
margin: auto;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
a.doc:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: 10px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.source {
|
||||
margin-top: 41px;
|
||||
}
|
||||
|
||||
.source li code {
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.source li.selected {
|
||||
background: rgba(255, 255, 153, 0.5);
|
||||
}
|
||||
|
||||
.anchor {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
top: -7em;
|
||||
visibility: hidden;
|
||||
}
|
22
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/open.html.twig
vendored
Normal file
22
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/open.html.twig
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
{% extends '@WebProfiler/Profiler/base.html.twig' %}
|
||||
|
||||
{% block head %}
|
||||
<style>
|
||||
{{ include('@WebProfiler/Profiler/open.css.twig') }}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% set source = filename|file_excerpt(line, -1) %}
|
||||
<div class="header">
|
||||
<h1>{{ file }}{% if 0 < line %} <small>line {{ line }}</small>{% endif %}</h1>
|
||||
<a class="doc" href="https://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}/reference/configuration/framework.html#ide" rel="help">Open in your IDE?</a>
|
||||
</div>
|
||||
<div class="source">
|
||||
{% if source is null %}
|
||||
<p class="empty">The file is not readable.</p>
|
||||
{% else %}
|
||||
{{ source|raw }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
1477
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/profiler.css.twig
vendored
Normal file
1477
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/profiler.css.twig
vendored
Normal file
@ -0,0 +1,1477 @@
|
||||
{# This file is partially duplicated in TwigBundle/Resources/views/exceotion.css.twig.
|
||||
If you make any change in this file, verify the same change is needed in the other file. #}
|
||||
{# Normalization
|
||||
(normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css)
|
||||
========================================================================= #}
|
||||
*{-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}
|
||||
|
||||
:root {
|
||||
--font-sans-serif: Helvetica, Arial, sans-serif;
|
||||
--page-background: #f9f9f9;
|
||||
--color-text: #222;
|
||||
--color-muted: #999;
|
||||
--color-link: #218BC3;
|
||||
/* when updating any of these colors, do the same in toolbar.css.twig */
|
||||
--color-success: #4f805d;
|
||||
--color-warning: #a46a1f;
|
||||
--color-error: #b0413e;
|
||||
--badge-background: #f5f5f5;
|
||||
--badge-color: #666;
|
||||
--badge-warning-background: #FEF3C7;
|
||||
--badge-warning-color: #B45309;
|
||||
--badge-danger-background: #FEE2E2;
|
||||
--badge-danger-color: #B91C1C;
|
||||
--tab-background: #fff;
|
||||
--tab-color: #444;
|
||||
--tab-active-background: #666;
|
||||
--tab-active-color: #fafafa;
|
||||
--tab-disabled-background: #f5f5f5;
|
||||
--tab-disabled-color: #999;
|
||||
--log-filter-button-background: #fff;
|
||||
--log-filter-button-border: #999;
|
||||
--log-filter-button-color: #555;
|
||||
--log-filter-active-num-color: #2563EB;
|
||||
--log-timestamp-color: #555;
|
||||
--metric-value-background: #fff;
|
||||
--metric-value-color: inherit;
|
||||
--metric-unit-color: #999;
|
||||
--metric-label-background: #e0e0e0;
|
||||
--metric-label-color: inherit;
|
||||
--trace-selected-background: #F7E5A1;
|
||||
--table-border: #e0e0e0;
|
||||
--table-background: #fff;
|
||||
--table-header: #e0e0e0;
|
||||
--info-background: #ddf;
|
||||
--tree-active-background: #F7E5A1;
|
||||
--exception-title-color: var(--base-2);
|
||||
--shadow: 0px 0px 1px rgba(128, 128, 128, .2);
|
||||
--border: 1px solid #e0e0e0;
|
||||
--background-error: var(--color-error);
|
||||
--highlight-comment: #969896;
|
||||
--highlight-default: #222222;
|
||||
--highlight-keyword: #a71d5d;
|
||||
--highlight-string: #183691;
|
||||
--base-0: #fff;
|
||||
--base-1: #f5f5f5;
|
||||
--base-2: #e0e0e0;
|
||||
--base-3: #ccc;
|
||||
--base-4: #666;
|
||||
--base-5: #444;
|
||||
--base-6: #222;
|
||||
--card-label-background: #eee;
|
||||
--card-label-color: var(--base-6);
|
||||
}
|
||||
|
||||
.theme-dark {
|
||||
--page-background: #36393e;
|
||||
--color-text: #e0e0e0;
|
||||
--color-muted: #777;
|
||||
--color-link: #93C5FD;
|
||||
--color-error: #d43934;
|
||||
--badge-background: #555;
|
||||
--badge-color: #ddd;
|
||||
--badge-warning-background: #B45309;
|
||||
--badge-warning-color: #FEF3C7;
|
||||
--badge-danger-background: #B91C1C;
|
||||
--badge-danger-color: #FEE2E2;
|
||||
--tab-background: #555;
|
||||
--tab-color: #ccc;
|
||||
--tab-active-background: #888;
|
||||
--tab-active-color: #fafafa;
|
||||
--tab-disabled-background: var(--page-background);
|
||||
--tab-disabled-color: #777;
|
||||
--log-filter-button-background: #555;
|
||||
--log-filter-button-border: #999;
|
||||
--log-filter-button-color: #ccc;
|
||||
--log-filter-active-num-color: #93C5FD;
|
||||
--log-timestamp-color: #ccc;
|
||||
--metric-value-background: #555;
|
||||
--metric-value-color: inherit;
|
||||
--metric-unit-color: #999;
|
||||
--metric-label-background: #777;
|
||||
--metric-label-color: #e0e0e0;
|
||||
--trace-selected-background: #71663acc;
|
||||
--table-border: #444;
|
||||
--table-background: #333;
|
||||
--table-header: #555;
|
||||
--info-background: rgba(79, 148, 195, 0.5);
|
||||
--tree-active-background: var(--metric-label-background);
|
||||
--exception-title-color: var(--base-2);
|
||||
--shadow: 0px 0px 1px rgba(32, 32, 32, .2);
|
||||
--border: 1px solid #666;
|
||||
--background-error: #b0413e;
|
||||
--highlight-comment: #dedede;
|
||||
--highlight-default: var(--base-6);
|
||||
--highlight-keyword: #ff413c;
|
||||
--highlight-string: #70a6fd;
|
||||
--base-0: #2e3136;
|
||||
--base-1: #444;
|
||||
--base-2: #666;
|
||||
--base-3: #666;
|
||||
--base-4: #666;
|
||||
--base-5: #e0e0e0;
|
||||
--base-6: #f5f5f5;
|
||||
--card-label-background: var(--tab-active-background);
|
||||
--card-label-color: var(--tab-active-color);
|
||||
}
|
||||
|
||||
{# Basic styles
|
||||
========================================================================= #}
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
body {
|
||||
background-color: var(--page-background);
|
||||
color: var(--base-6);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: var(--font-sans-serif);
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
h2, h3, h4 {
|
||||
font-weight: 500;
|
||||
margin: 1.5em 0 .5em;
|
||||
}
|
||||
h2 + h3,
|
||||
h3 + h4 {
|
||||
margin-top: 1em;
|
||||
}
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
h3 {
|
||||
font-size: 21px;
|
||||
}
|
||||
h4 {
|
||||
font-size: 18px;
|
||||
}
|
||||
h2 span, h3 span, h4 span,
|
||||
h2 small, h3 small, h4 small {
|
||||
color: var(--color-muted);
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 16px;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a.link-inverse {
|
||||
text-decoration: underline;
|
||||
}
|
||||
a.link-inverse:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
h2 a,
|
||||
h3 a,
|
||||
h4 a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
h2 a:hover,
|
||||
h3 a:hover,
|
||||
h4 a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
abbr {
|
||||
border-bottom: 1px dotted var(--base-5);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
{# Buttons (the colors of this element don't change based on the selected theme)
|
||||
------------------------------------------------------------------------- #}
|
||||
button {
|
||||
font-family: var(--font-sans-serif);
|
||||
}
|
||||
.btn {
|
||||
background: #777;
|
||||
border-radius: 2px;
|
||||
border: 0;
|
||||
color: #f5f5f5;
|
||||
display: inline-block;
|
||||
padding: .5em .75em;
|
||||
}
|
||||
.btn:hover {
|
||||
cursor: pointer;
|
||||
opacity: 0.8;
|
||||
text-decoration: none;
|
||||
}
|
||||
.btn-sm {
|
||||
font-size: 12px;
|
||||
}
|
||||
.btn-sm svg {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.btn-link {
|
||||
border-color: transparent;
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.btn-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
{# Tables
|
||||
------------------------------------------------------------------------- #}
|
||||
table, tr, th, td {
|
||||
background: var(--table-background);
|
||||
border-collapse: collapse;
|
||||
line-height: 1.5;
|
||||
vertical-align: top;
|
||||
}
|
||||
table {
|
||||
background: var(--base-0);
|
||||
border: var(--border);
|
||||
box-shadow: var(--shadow);
|
||||
margin: 1em 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table th, table td {
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
table th {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
table thead th {
|
||||
background-color: var(--table-header);
|
||||
}
|
||||
table thead th.key {
|
||||
width: 19%;
|
||||
}
|
||||
table thead.small th {
|
||||
font-size: 12px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
|
||||
table tbody th,
|
||||
table tbody td {
|
||||
border: 1px solid var(--base-2);
|
||||
border-width: 1px 0;
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
table tbody div {
|
||||
margin: .25em 0;
|
||||
}
|
||||
table tbody ul {
|
||||
margin: 0;
|
||||
padding: 0 0 0 1em;
|
||||
}
|
||||
|
||||
table thead th.num-col,
|
||||
table tbody td.num-col {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
{# Utility classes
|
||||
========================================================================= #}
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
.nowrap {
|
||||
white-space: pre;
|
||||
}
|
||||
.prewrap {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.newline {
|
||||
display: block;
|
||||
}
|
||||
.break-long-words {
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-all;
|
||||
word-break: break-word;
|
||||
-webkit-hyphens: auto;
|
||||
-moz-hyphens: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
.text-small {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
.text-muted {
|
||||
color: var(--color-muted);
|
||||
}
|
||||
.text-danger {
|
||||
color: var(--color-error);
|
||||
}
|
||||
.text-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.font-normal {
|
||||
font-family: var(--font-sans-serif);
|
||||
font-size: 14px;
|
||||
}
|
||||
.help {
|
||||
color: var(--color-muted);
|
||||
font-size: 14px;
|
||||
margin-bottom: .5em;
|
||||
}
|
||||
.empty {
|
||||
border: 4px dashed var(--base-2);
|
||||
color: var(--color-muted);
|
||||
margin: 1em 0;
|
||||
padding: .5em 2em;
|
||||
}
|
||||
|
||||
.label {
|
||||
background-color: var(--base-4);
|
||||
color: #FAFAFA;
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
padding: 3px 7px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.label.same-width {
|
||||
min-width: 70px;
|
||||
text-align: center;
|
||||
}
|
||||
.label.status-success { background: var(--color-success); color: #FFF; }
|
||||
.label.status-warning { background: var(--color-warning); color: #FFF; }
|
||||
.label.status-error { background: var(--background-error); color: #FFF; }
|
||||
|
||||
{# Metrics
|
||||
------------------------------------------------------------------------- #}
|
||||
.metrics {
|
||||
margin: 1em 0 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.metrics .metric {
|
||||
float: left;
|
||||
margin: 0 1em 1em 0;
|
||||
}
|
||||
|
||||
.metric {
|
||||
background: var(--metric-value-background);
|
||||
border: 1px solid var(--table-border);
|
||||
box-shadow: var(--shadow);
|
||||
color: var(--metric-value-color);
|
||||
min-width: 100px;
|
||||
min-height: 70px;
|
||||
}
|
||||
.metric .value {
|
||||
display: block;
|
||||
font-size: 28px;
|
||||
padding: 8px 15px 4px;
|
||||
text-align: center;
|
||||
}
|
||||
.metric .value svg {
|
||||
margin: 5px 0 -5px;
|
||||
}
|
||||
.metric .unit {
|
||||
color: var(--metric-unit-color);
|
||||
font-size: 18px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
.metric .label {
|
||||
background: var(--metric-label-background);
|
||||
color: var(--metric-label-color);
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.metrics-horizontal .metric {
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
.metrics-horizontal .metric .value,
|
||||
.metrics-horizontal .metric .label {
|
||||
display: inline;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
.metrics-horizontal .metric .label {
|
||||
display: inline-block;
|
||||
padding: 6px;
|
||||
}
|
||||
.metrics-horizontal .metric .value {
|
||||
font-size: 16px;
|
||||
}
|
||||
.metrics-horizontal .metric .value svg {
|
||||
max-height: 14px;
|
||||
line-height: 10px;
|
||||
margin: 0;
|
||||
padding-left: 4px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.metric-divider {
|
||||
float: left;
|
||||
margin: 0 1em;
|
||||
min-height: 1px; {# required to apply 'margin' to an empty 'div' #}
|
||||
}
|
||||
|
||||
{# Cards
|
||||
------------------------------------------------------------------------- #}
|
||||
.card {
|
||||
background: var(--base-0);
|
||||
border: var(--border);
|
||||
box-shadow: var(--shadow);
|
||||
margin: 1em 0;
|
||||
padding: 10px;
|
||||
}
|
||||
.card-block + .card-block {
|
||||
border-top: 1px solid var(--base-2);
|
||||
padding-top: 10px;
|
||||
}
|
||||
.card *:first-child,
|
||||
.card-block *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.card .label {
|
||||
background-color: var(--card-label-background);
|
||||
color: var(--card-label-color);
|
||||
}
|
||||
|
||||
{# Status
|
||||
------------------------------------------------------------------------- #}
|
||||
.status-success {
|
||||
background: rgba(94, 151, 110, 0.3);
|
||||
}
|
||||
.status-warning {
|
||||
background: rgba(240, 181, 24, 0.3);
|
||||
}
|
||||
.status-error {
|
||||
background: rgba(176, 65, 62, 0.2);
|
||||
}
|
||||
.status-success td,
|
||||
.status-warning td,
|
||||
.status-error td {
|
||||
background: transparent;
|
||||
}
|
||||
tr.status-error td,
|
||||
tr.status-warning td {
|
||||
border-bottom: 1px solid var(--base-2);
|
||||
border-top: 1px solid var(--base-2);
|
||||
}
|
||||
|
||||
.status-warning .colored {
|
||||
color: var(--color-warning);
|
||||
}
|
||||
.status-error .colored {
|
||||
color: var(--color-error);
|
||||
}
|
||||
|
||||
{# Syntax highlighting
|
||||
========================================================================= #}
|
||||
.highlight pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.highlight .keyword { color: #8959A8; font-weight: bold; }
|
||||
.highlight .word { color: var(--color-text); }
|
||||
.highlight .variable { color: #916319; }
|
||||
.highlight .symbol { color: var(--color-text); }
|
||||
.highlight .comment { color: #999999; }
|
||||
.highlight .backtick { color: #718C00; }
|
||||
.highlight .string { color: #718C00; }
|
||||
.highlight .number { color: #F5871F; font-weight: bold; }
|
||||
.highlight .error { color: #C82829; }
|
||||
|
||||
{# Icons
|
||||
========================================================================= #}
|
||||
.sf-icon {
|
||||
vertical-align: middle;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: inline-block;
|
||||
}
|
||||
.sf-icon svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.sf-icon.sf-medium,
|
||||
.sf-icon.sf-medium svg {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.sf-icon.sf-large,
|
||||
.sf-icon.sf-large svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
|
||||
{# Layout
|
||||
========================================================================= #}
|
||||
.container {
|
||||
max-width: 1300px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
#header {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#header .container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
#summary {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#content {
|
||||
height: 100%;
|
||||
}
|
||||
#main {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
min-height: 100%;
|
||||
}
|
||||
#sidebar {
|
||||
flex: 0 0 220px;
|
||||
}
|
||||
#collector-wrapper {
|
||||
flex: 0 1 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
#collector-content {
|
||||
margin: 0 0 30px 0;
|
||||
padding: 14px 0 14px 20px;
|
||||
}
|
||||
|
||||
#main h2:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
{# Header (the colors of this element don't change based on the selected theme)
|
||||
========================================================================= #}
|
||||
#header {
|
||||
background-color: #222;
|
||||
overflow: hidden;
|
||||
}
|
||||
#header h1 {
|
||||
color: #fff;
|
||||
flex: 1;
|
||||
font-weight: normal;
|
||||
font-size: 21px;
|
||||
margin: 0;
|
||||
padding: 10px 10px 8px;
|
||||
}
|
||||
#header h1 span {
|
||||
color: #ccc;
|
||||
}
|
||||
#header h1 svg {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
margin-top: -4px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#header h1 svg path,
|
||||
#header h1 svg .sf-svg-path {
|
||||
fill: #fff;
|
||||
}
|
||||
#header .search {
|
||||
padding-top: 11px;
|
||||
}
|
||||
#header .search input {
|
||||
border: 1px solid #ddd;
|
||||
margin-right: 4px;
|
||||
padding: 7px 8px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
{# Summary
|
||||
========================================================================= #}
|
||||
#summary .status {
|
||||
background: var(--base-2);
|
||||
border: solid rgba(0, 0, 0, 0.1);
|
||||
border-width: 2px 0;
|
||||
padding: 10px;
|
||||
}
|
||||
#summary h2,
|
||||
#summary h2 a {
|
||||
color: var(--base-6);
|
||||
font-size: 21px;
|
||||
margin: 0;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
#summary h2 a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#summary h2 a.referer {
|
||||
margin-left: .5em;
|
||||
font-size: 75%;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
#summary h2 a.referer:before {
|
||||
content: '\1F503\00a0';
|
||||
}
|
||||
|
||||
#summary .status-success { background: var(--color-success); }
|
||||
#summary .status-warning { background: var(--color-warning); }
|
||||
#summary .status-error { background: var(--background-error); }
|
||||
|
||||
#summary .status-success h2,
|
||||
#summary .status-success a,
|
||||
#summary .status-warning h2,
|
||||
#summary .status-warning a,
|
||||
#summary .status-error h2,
|
||||
#summary .status-error a {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#summary dl.metadata,
|
||||
#summary dl.metadata a {
|
||||
margin: 5px 0 0;
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
}
|
||||
#summary dl.metadata dt,
|
||||
#summary dl.metadata dd {
|
||||
display: inline-block;
|
||||
font-size: 13px;
|
||||
}
|
||||
#summary dl.metadata dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
#summary dl.metadata dt:after {
|
||||
content: ':';
|
||||
}
|
||||
#summary dl.metadata dd {
|
||||
margin: 0 1.5em 0 0;
|
||||
}
|
||||
|
||||
#summary dl.metadata .label {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
{# Sidebar
|
||||
========================================================================= #}
|
||||
#sidebar {
|
||||
background: #444;
|
||||
color: #ccc;
|
||||
padding-bottom: 30px;
|
||||
position: relative;
|
||||
width: 220px;
|
||||
z-index: 9999;
|
||||
}
|
||||
#sidebar .module {
|
||||
padding: 10px;
|
||||
width: 220px;
|
||||
}
|
||||
|
||||
{# Sidebar Shortcuts
|
||||
------------------------------------------------------------------------- #}
|
||||
#sidebar #sidebar-shortcuts {
|
||||
background: #333;
|
||||
width: 220px;
|
||||
}
|
||||
#sidebar #sidebar-shortcuts .shortcuts {
|
||||
position: relative;
|
||||
padding: 16px 10px;
|
||||
}
|
||||
#sidebar-shortcuts .icon {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 50px;
|
||||
margin: 2px 0 0 -10px;
|
||||
text-align: center;
|
||||
}
|
||||
#sidebar #sidebar-shortcuts .btn {
|
||||
color: #f5f5f5;
|
||||
}
|
||||
#sidebar #sidebar-shortcuts .btn + .btn {
|
||||
margin-left: 5px;
|
||||
}
|
||||
#sidebar #sidebar-shortcuts .btn {
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
{# Sidebar Search (the colors of this element don't change based on the selected theme)
|
||||
------------------------------------------------------------------------- #}
|
||||
#sidebar-search .form-group:first-of-type {
|
||||
padding-top: 20px;
|
||||
}
|
||||
#sidebar-search .form-group {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
#sidebar-search .form-group label {
|
||||
float: left;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
width: 60px;
|
||||
}
|
||||
#sidebar-search .form-group input,
|
||||
#sidebar-search .form-group select {
|
||||
float: left;
|
||||
font-size: 13px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
#sidebar-search .form-group input {
|
||||
background: #ccc;
|
||||
border: 1px solid var(--color-muted);
|
||||
color: #222;
|
||||
width: 120px;
|
||||
}
|
||||
#sidebar-search .form-group select {
|
||||
color: #222;
|
||||
}
|
||||
#sidebar-search .form-group .btn {
|
||||
float: right;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
{# Sidebar Menu (the colors of this element don't change based on the selected theme)
|
||||
------------------------------------------------------------------------- #}
|
||||
#menu-profiler {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
#menu-profiler li {
|
||||
position: relative;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
#menu-profiler li a {
|
||||
border: solid transparent;
|
||||
border-width: 2px 0;
|
||||
color: var(--base-3);
|
||||
display: block;
|
||||
}
|
||||
#menu-profiler li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
#menu-profiler li a .label {
|
||||
background: transparent;
|
||||
color: #EEE;
|
||||
display: block;
|
||||
padding: 8px 10px 8px 50px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#menu-profiler li a .label .icon {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 8px;
|
||||
width: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
#menu-profiler .label .icon img,
|
||||
#menu-profiler .label .icon svg {
|
||||
height: 24px;
|
||||
max-width: 24px;
|
||||
}
|
||||
#menu-profiler li a .label .icon svg path,
|
||||
#menu-profiler li a .label .icon svg .sf-svg-path {
|
||||
fill: #DDD;
|
||||
}
|
||||
#menu-profiler li a .label strong {
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
}
|
||||
#menu-profiler li a .label.disabled {
|
||||
opacity: .25;
|
||||
}
|
||||
#menu-profiler li a:hover .label.disabled,
|
||||
#menu-profiler li.selected a .label.disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#menu-profiler li.selected a,
|
||||
#menu-profiler:hover li.selected a:hover,
|
||||
#menu-profiler li a:hover {
|
||||
background: #666;
|
||||
border: solid #555;
|
||||
border-width: 2px 0;
|
||||
}
|
||||
#menu-profiler li.selected a .label,
|
||||
#menu-profiler li a:hover .label {
|
||||
color: #FFF;
|
||||
}
|
||||
#menu-profiler li.selected a .icon svg path,
|
||||
#menu-profiler li.selected a .icon svg .sf-svg-path,
|
||||
#menu-profiler li a:hover .icon svg path,
|
||||
#menu-profiler li a:hover .icon svg .sf-svg-path {
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
#menu-profiler li a .count {
|
||||
background-color: #666;
|
||||
color: #fff;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
min-width: 10px;
|
||||
padding: 2px 6px;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
text-align: center;
|
||||
vertical-align: baseline;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#menu-profiler li a span.count span {
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
#menu-profiler li a span.count span + span::before {
|
||||
content: " / ";
|
||||
color: #AAA;
|
||||
}
|
||||
|
||||
#menu-profiler .label-status-warning .count {
|
||||
background: var(--color-warning);
|
||||
}
|
||||
#menu-profiler .label-status-error .count {
|
||||
background: var(--background-error);
|
||||
}
|
||||
|
||||
{# Timeline panel
|
||||
========================================================================= #}
|
||||
#timeline-control {
|
||||
background: var(--table-background);
|
||||
box-shadow: var(--shadow);
|
||||
margin: 1em 0;
|
||||
padding: 10px;
|
||||
}
|
||||
#timeline-control label {
|
||||
font-weight: bold;
|
||||
margin-right: 1em;
|
||||
}
|
||||
#timeline-control input {
|
||||
background: var(--metric-value-background);
|
||||
border: 1px solid var(--table-border);
|
||||
font-size: 16px;
|
||||
padding: 4px;
|
||||
text-align: right;
|
||||
width: 5em;
|
||||
}
|
||||
#timeline-control .help {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.sf-profiler-timeline .legends {
|
||||
font-size: 12px;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
.sf-profiler-timeline + p.help {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
{# Tabbed navigation
|
||||
========================================================================= #}
|
||||
.tab-navigation {
|
||||
margin: 0 0 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
.tab-navigation li {
|
||||
background: var(--tab-background);
|
||||
border: 1px solid var(--table-border);
|
||||
color: var(--tab-color);
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
margin: 0 0 0 -1px;
|
||||
padding: .5em .75em;
|
||||
z-index: 1;
|
||||
}
|
||||
.tab-navigation li .badge {
|
||||
background-color: var(--base-1);
|
||||
color: var(--base-4);
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
margin-left: 8px;
|
||||
min-width: 10px;
|
||||
padding: 1px 6px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.tab-navigation li.disabled {
|
||||
background: var(--tab-disabled-background);
|
||||
color: var(--tab-disabled-color);
|
||||
}
|
||||
.tab-navigation li.active {
|
||||
background: var(--tab-active-background);
|
||||
color: var(--tab-active-color);
|
||||
z-index: 1100;
|
||||
}
|
||||
.tab-navigation li.active .badge {
|
||||
background-color: var(--base-5);
|
||||
color: var(--base-2);
|
||||
}
|
||||
.tab-content > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.tab-navigation li .badge.status-warning { background: var(--color-warning); color: #FFF; }
|
||||
.tab-navigation li .badge.status-error { background: var(--background-error); color: #FFF; }
|
||||
|
||||
.sf-tabs .tab:not(:first-child) { display: none; }
|
||||
|
||||
{# Toggles
|
||||
========================================================================= #}
|
||||
.sf-toggle-content {
|
||||
-moz-transition: display .25s ease;
|
||||
-webkit-transition: display .25s ease;
|
||||
transition: display .25s ease;
|
||||
}
|
||||
.sf-toggle-content.sf-toggle-hidden {
|
||||
display: none;
|
||||
}
|
||||
.sf-toggle-content.sf-toggle-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
{# Filters
|
||||
========================================================================= #}
|
||||
[data-filters] { position: relative; }
|
||||
[data-filtered] { cursor: pointer; }
|
||||
[data-filtered]:after { content: '\00a0\25BE'; }
|
||||
[data-filtered]:hover .filter-list li { display: inline-flex; }
|
||||
[class*="filter-hidden-"] { display: none; }
|
||||
.filter-list { position: absolute; border: var(--border); box-shadow: var(--shadow); margin: 0; padding: 0; display: flex; flex-direction: column; }
|
||||
.filter-list :after { content: ''; }
|
||||
.filter-list li {
|
||||
background: var(--tab-disabled-background);
|
||||
border-bottom: var(--border);
|
||||
color: var(--tab-disabled-color);
|
||||
display: none;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
}
|
||||
.filter-list li.active {
|
||||
background: var(--tab-background);
|
||||
color: var(--tab-color);
|
||||
}
|
||||
.filter-list li.last-active {
|
||||
background: var(--tab-active-background);
|
||||
color: var(--tab-active-color);
|
||||
}
|
||||
|
||||
.filter-list-level li { cursor: s-resize; }
|
||||
.filter-list-level li.active { cursor: n-resize; }
|
||||
.filter-list-level li.last-active { cursor: default; }
|
||||
.filter-list-level li.last-active:before { content: '\2714\00a0'; }
|
||||
.filter-list-choice li:before { content: '\2714\00a0'; color: transparent; }
|
||||
.filter-list-choice li.active:before { color: unset; }
|
||||
|
||||
{# Twig panel
|
||||
========================================================================= #}
|
||||
#twig-dump pre {
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
background-color: var(--base-0);
|
||||
border: var(--border);
|
||||
padding: 15px;
|
||||
box-shadow: 0 0 1px rgba(128, 128, 128, .2);
|
||||
}
|
||||
#twig-dump span {
|
||||
border-radius: 2px;
|
||||
padding: 1px 2px;
|
||||
}
|
||||
#twig-dump .status-error { background: transparent; color: var(--color-error); }
|
||||
#twig-dump .status-warning { background: rgba(240, 181, 24, 0.3); }
|
||||
#twig-dump .status-success { background: rgba(100, 189, 99, 0.2); }
|
||||
#twig-dump .status-info { background: var(--info-background); }
|
||||
|
||||
#twig-table tbody td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
#twig-table tbody td > a {
|
||||
margin-left: -5px;
|
||||
}
|
||||
#twig-table tbody td div {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.icon-twig {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.icon-twig svg path {
|
||||
fill: #7eea12;
|
||||
}
|
||||
|
||||
{# Logger panel
|
||||
========================================================================= #}
|
||||
.badge {
|
||||
background: var(--badge-background);
|
||||
border-radius: 4px;
|
||||
color: var(--badge-color);
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
.badge-warning {
|
||||
background: var(--badge-warning-background);
|
||||
color: var(--badge-warning-color);
|
||||
}
|
||||
|
||||
.log-filters {
|
||||
display: flex;
|
||||
}
|
||||
.log-filters .log-filter {
|
||||
position: relative;
|
||||
}
|
||||
.log-filters .log-filter + .log-filter {
|
||||
margin-left: 15px;
|
||||
}
|
||||
.log-filters .log-filter summary {
|
||||
align-items: center;
|
||||
background: var(--log-filter-button-background);
|
||||
border-radius: 2px;
|
||||
border: 1px solid var(--log-filter-button-border);
|
||||
color: var(--log-filter-button-color);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
padding: 5px 8px;
|
||||
}
|
||||
.log-filters .log-filter summary .icon {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
margin: 0 7px 0 0;
|
||||
}
|
||||
.log-filters .log-filter summary svg {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
.log-filters .log-filter summary .filter-active-num {
|
||||
color: var(--log-filter-active-num-color);
|
||||
font-weight: bold;
|
||||
padding: 0 1px;
|
||||
}
|
||||
.log-filter .tab-navigation {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.log-filter .tab-navigation li:first-child {
|
||||
border-top-left-radius: 2px;
|
||||
border-bottom-left-radius: 2px;
|
||||
}
|
||||
.log-filter .tab-navigation li:last-child {
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
}
|
||||
.log-filter .tab-navigation li {
|
||||
border-color: var(--log-filter-button-border);
|
||||
padding: 0;
|
||||
}
|
||||
.log-filter .tab-navigation li + li {
|
||||
margin-left: -5px;
|
||||
}
|
||||
.log-filter .tab-navigation li .badge {
|
||||
font-size: 13px;
|
||||
padding: 0 6px;
|
||||
}
|
||||
.log-filter .tab-navigation li input {
|
||||
display: none;
|
||||
}
|
||||
.log-filter .tab-navigation li label {
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
display: inline-flex;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.log-filters .log-filter .log-filter-content {
|
||||
background: var(--base-0);
|
||||
border: 1px solid var(--table-border);
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
padding: 15px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 36px;
|
||||
max-width: 400px;
|
||||
min-width: 200px;
|
||||
z-index: 9999;
|
||||
}
|
||||
.log-filters .log-filter .log-filter-content .log-filter-option {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
.log-filter .filter-select-all-or-none {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.log-filter .filter-select-all-or-none button + button {
|
||||
margin-left: 15px;
|
||||
}
|
||||
.log-filters .log-filter .log-filter-content .log-filter-option + .log-filter-option {
|
||||
margin: 7px 0 0;
|
||||
}
|
||||
.log-filters .log-filter .log-filter-content .log-filter-option label {
|
||||
cursor: pointer;
|
||||
flex: 1;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
table.logs .metadata {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
}
|
||||
.theme-dark tr.status-error td,
|
||||
.theme-dark tr.status-warning td { border-bottom: unset; border-top: unset; }
|
||||
|
||||
table.logs .log-timestamp {
|
||||
color: var(--log-timestamp-color);
|
||||
}
|
||||
table.logs .log-metadata {
|
||||
margin: 8px 0 0;
|
||||
}
|
||||
table.logs .log-metadata > span {
|
||||
display: inline-block;
|
||||
}
|
||||
table.logs .log-metadata > span + span {
|
||||
margin-left: 10px;
|
||||
}
|
||||
table.logs .log-metadata .log-channel {
|
||||
color: var(--base-1);
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
}
|
||||
table.logs .log-metadata .log-num-occurrences {
|
||||
color: var(--color-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.log-type-badge {
|
||||
display: inline-block;
|
||||
font-family: var(--font-sans-serif);
|
||||
margin-top: 5px;
|
||||
}
|
||||
.log-type-badge.badge-deprecation {
|
||||
background: var(--badge-warning-background);
|
||||
color: var(--badge-warning-color);
|
||||
}
|
||||
.log-type-badge.badge-error {
|
||||
background: var(--badge-danger-background);
|
||||
color: var(--badge-danger-color);
|
||||
}
|
||||
.log-type-badge.badge-silenced {
|
||||
background: #EDE9FE;
|
||||
color: #6D28D9;
|
||||
}
|
||||
.theme-dark .log-type-badge.badge-silenced {
|
||||
background: #5B21B6;
|
||||
color: #EDE9FE;
|
||||
}
|
||||
|
||||
tr.log-status-warning {
|
||||
border-left: 4px solid #F59E0B;
|
||||
}
|
||||
tr.log-status-error {
|
||||
border-left: 4px solid #EF4444;
|
||||
}
|
||||
tr.log-status-silenced {
|
||||
border-left: 4px solid #A78BFA;
|
||||
}
|
||||
|
||||
.container-compilation-logs {
|
||||
background: var(--table-background);
|
||||
border: 1px solid var(--base-2);
|
||||
margin-top: 30px;
|
||||
padding: 15px;
|
||||
}
|
||||
.container-compilation-logs summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
.container-compilation-logs summary h4 {
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.container-compilation-logs summary p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
{# Doctrine panel
|
||||
========================================================================= #}
|
||||
.sql-runnable {
|
||||
background: var(--base-1);
|
||||
margin: .5em 0;
|
||||
padding: 1em;
|
||||
}
|
||||
.sql-explain {
|
||||
overflow-x: auto;
|
||||
max-width: 920px;
|
||||
}
|
||||
.sql-explain table td, .sql-explain table tr {
|
||||
word-break: normal;
|
||||
}
|
||||
.queries-table pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-all;
|
||||
word-break: break-word;
|
||||
-webkit-hyphens: auto;
|
||||
-moz-hyphens: auto;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
{# Security panel
|
||||
========================================================================= #}
|
||||
#collector-content .decision-log .voter_result td {
|
||||
border-top-width: 1px;
|
||||
border-bottom-width: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#collector-content .decision-log .voter_details td {
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 1px;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#collector-content .decision-log .voter_details table {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
box-shadow: unset;
|
||||
}
|
||||
|
||||
#collector-content .decision-log .voter_details table td {
|
||||
border: 0;
|
||||
padding: 0 0 8px 0;
|
||||
}
|
||||
|
||||
{# Validator panel
|
||||
========================================================================= #}
|
||||
|
||||
#collector-content .sf-validator {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
#collector-content .sf-validator .sf-validator-context,
|
||||
#collector-content .sf-validator .trace {
|
||||
border: var(--border);
|
||||
background: var(--base-0);
|
||||
padding: 10px;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
#collector-content .sf-validator .trace {
|
||||
font-size: 12px;
|
||||
}
|
||||
#collector-content .sf-validator .trace li {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#collector-content .sf-validator .trace li.selected {
|
||||
background: rgba(255, 255, 153, 0.5);
|
||||
}
|
||||
|
||||
{# Messenger panel
|
||||
========================================================================= #}
|
||||
|
||||
#collector-content .message-bus .trace {
|
||||
border: 1px solid #DDD;
|
||||
background: #FFF;
|
||||
padding: 10px;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
#collector-content .message-bus .trace {
|
||||
font-size: 12px;
|
||||
}
|
||||
#collector-content .message-bus .trace li {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#collector-content .message-bus .trace li.selected {
|
||||
background: rgba(255, 255, 153, 0.5);
|
||||
}
|
||||
|
||||
{# Dump panel
|
||||
========================================================================= #}
|
||||
pre.sf-dump, pre.sf-dump .sf-dump-default {
|
||||
z-index: 1000 !important;
|
||||
}
|
||||
|
||||
#collector-content .sf-dump {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
#collector-content pre.sf-dump,
|
||||
#collector-content .sf-dump code,
|
||||
#collector-content .sf-dump samp {
|
||||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
#collector-content .sf-dump a {
|
||||
cursor: pointer;
|
||||
}
|
||||
#collector-content .sf-dump pre.sf-dump,
|
||||
#collector-content .sf-dump .trace {
|
||||
border: var(--border);
|
||||
padding: 10px;
|
||||
margin: 0.5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#collector-content pre.sf-dump,
|
||||
#collector-content .sf-dump-default {
|
||||
background: none;
|
||||
}
|
||||
#collector-content .sf-dump-ellipsis { max-width: 100em; }
|
||||
|
||||
#collector-content .sf-dump {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#collector-content .dump-inline .sf-dump {
|
||||
display: inline;
|
||||
white-space: normal;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
#collector-content .dump-inline .sf-dump:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#collector-content .sf-dump .trace {
|
||||
font-size: 12px;
|
||||
}
|
||||
#collector-content .sf-dump .trace li {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
{# Search Results page
|
||||
========================================================================= #}
|
||||
#search-results td {
|
||||
font-family: var(--font-sans-serif);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#search-results .sf-search {
|
||||
visibility: hidden;
|
||||
margin-left: 2px;
|
||||
}
|
||||
#search-results tr:hover .sf-search {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
{# Small screens
|
||||
========================================================================= #}
|
||||
|
||||
.visible-small {
|
||||
display: none;
|
||||
}
|
||||
.hidden-small {
|
||||
display: inherit;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#sidebar {
|
||||
flex-basis: 50px;
|
||||
overflow-x: hidden;
|
||||
transition: flex-basis 200ms ease-out;
|
||||
}
|
||||
#sidebar:hover, #sidebar.expanded {
|
||||
flex-basis: 220px;
|
||||
}
|
||||
|
||||
#sidebar-search {
|
||||
display: none;
|
||||
}
|
||||
#sidebar:hover #sidebar-search.sf-toggle-visible, #sidebar.expanded #sidebar-search.sf-toggle-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sidebar .module {
|
||||
display: none;
|
||||
}
|
||||
#sidebar:hover .module, #sidebar.expanded .module {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sidebar:not(:hover):not(.expanded) .label .count {
|
||||
border-radius: 50%;
|
||||
border: 1px solid #eee;
|
||||
height: 8px;
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
right: 4px;
|
||||
text-indent: -9999px;
|
||||
top: 50%;
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.visible-small {
|
||||
display: inherit;
|
||||
}
|
||||
.hidden-small {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.btn-sm svg {
|
||||
margin-left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
{# Config Options
|
||||
========================================================================= #}
|
||||
body.width-full .container {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
body.theme-light #collector-content .sf-dump pre.sf-dump,
|
||||
body.theme-light #collector-content .sf-dump .trace {
|
||||
background: #FFF;
|
||||
}
|
||||
body.theme-light #collector-content pre.sf-dump,
|
||||
body.theme-light #collector-content .sf-dump-default {
|
||||
color: #CC7832;
|
||||
}
|
||||
body.theme-light #collector-content .sf-dump-str { color: #629755; }
|
||||
body.theme-light #collector-content .sf-dump-private,
|
||||
body.theme-light #collector-content .sf-dump-protected,
|
||||
body.theme-light #collector-content .sf-dump-public { color: #262626; }
|
||||
body.theme-light #collector-content .sf-dump-note { color: #6897BB; }
|
||||
body.theme-light #collector-content .sf-dump-key { color: #789339; }
|
||||
body.theme-light #collector-content .sf-dump-ref { color: #6E6E6E; }
|
||||
body.theme-light #collector-content .sf-dump-ellipsis { color: #CC7832; max-width: 100em; }
|
||||
body.theme-light #collector-content .sf-dump-ellipsis-path { max-width: 5em; }
|
||||
body.theme-light #collector-content .sf-dump .trace li.selected {
|
||||
background: rgba(255, 255, 153, 0.5);
|
||||
}
|
67
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/results.html.twig
vendored
Normal file
67
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/results.html.twig
vendored
Normal file
@ -0,0 +1,67 @@
|
||||
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
||||
|
||||
{% macro profile_search_filter(request, result, property) %}
|
||||
{%- if request.hasSession -%}
|
||||
<a href="{{ path('_profiler_search_results', request.query.all|merge({token: result.token})|merge({ (property): result[property] })) }}" title="Search"><span title="Search" class="sf-icon sf-search">{{ include('@WebProfiler/Icon/search.svg') }}</span></a>
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
|
||||
{% import _self as helper %}
|
||||
|
||||
{% block summary %}
|
||||
<div class="status">
|
||||
<div class="container">
|
||||
<h2>Profile Search</h2>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block panel %}
|
||||
<h2>{{ tokens ? tokens|length : 'No' }} results found</h2>
|
||||
|
||||
{% if tokens %}
|
||||
<table id="search-results">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="text-center">Status</th>
|
||||
<th scope="col">IP</th>
|
||||
<th scope="col">Method</th>
|
||||
<th scope="col">URL</th>
|
||||
<th scope="col">Time</th>
|
||||
<th scope="col">Token</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for result in tokens %}
|
||||
{% set css_class = result.status_code|default(0) > 399 ? 'status-error' : result.status_code|default(0) > 299 ? 'status-warning' : 'status-success' %}
|
||||
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<span class="label {{ css_class }}">{{ result.status_code|default('n/a') }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="nowrap">{{ result.ip }} {{ helper.profile_search_filter(request, result, 'ip') }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="nowrap">{{ result.method }} {{ helper.profile_search_filter(request, result, 'method') }}</span>
|
||||
</td>
|
||||
<td class="break-long-words">
|
||||
{{ result.url }}
|
||||
{{ helper.profile_search_filter(request, result, 'url') }}
|
||||
</td>
|
||||
<td class="text-small">
|
||||
<span class="nowrap">{{ result.time|date('d-M-Y') }}</span>
|
||||
<span class="nowrap newline">{{ result.time|date('H:i:s') }}</span>
|
||||
</td>
|
||||
<td class="nowrap"><a href="{{ path('_profiler', { token: result.token }) }}">{{ result.token }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<div class="empty">
|
||||
<p>The query returned no result.</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
56
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/search.html.twig
vendored
Normal file
56
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/search.html.twig
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
<div id="sidebar-search" class="hidden">
|
||||
<form action="{{ path('_profiler_search') }}" method="get">
|
||||
<div class="form-group">
|
||||
<label for="ip">IP</label>
|
||||
<input type="text" name="ip" id="ip" value="{{ ip }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="method">Method</label>
|
||||
<select name="method" id="method">
|
||||
<option value="">Any</option>
|
||||
{% for m in ['DELETE', 'GET', 'HEAD', 'PATCH', 'POST', 'PUT'] %}
|
||||
<option {{ m == method ? 'selected="selected"' }}>{{ m }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="status_code">Status</label>
|
||||
<input type="number" name="status_code" id="status_code" min="100" max="599" value="{{ status_code }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="url">URL</label>
|
||||
<input type="text" name="url" id="url" value="{{ url }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="token">Token</label>
|
||||
<input type="text" name="token" id="token" value="{{ token }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="start">From</label>
|
||||
<input type="date" name="start" id="start" value="{{ start }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="end">Until</label>
|
||||
<input type="date" name="end" id="end" value="{{ end }}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="limit">Results</label>
|
||||
<select name="limit" id="limit">
|
||||
{% for l in [10, 50, 100] %}
|
||||
<option {{ l == limit ? 'selected="selected"' }}>{{ l }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-sm">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
193
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/settings.html.twig
vendored
Normal file
193
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/settings.html.twig
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
<style>
|
||||
#open-settings {
|
||||
color: var(--color-muted);
|
||||
display: block;
|
||||
margin: 15px 15px 5px;
|
||||
}
|
||||
|
||||
.modal-wrap {
|
||||
-webkit-transition: all 0.3s ease-in-out;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
left: 0;
|
||||
opacity: 1;
|
||||
overflow: auto;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
transition: all 0.3s ease-in-out;
|
||||
visibility: hidden;
|
||||
width: 100%;
|
||||
z-index: 100000;
|
||||
}
|
||||
.modal-wrap.visible {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
.modal-wrap .modal-container {
|
||||
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5);
|
||||
color: var(--base-6);
|
||||
margin: 1em;
|
||||
max-width: 94%;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.modal-wrap .modal-header {
|
||||
align-items: center;
|
||||
background: var(--table-header);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 15px 30px;
|
||||
}
|
||||
.modal-wrap .modal-header h3 {
|
||||
color: var(--base-6);
|
||||
margin: 0;
|
||||
}
|
||||
.modal-wrap .modal-header .close-modal {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: var(--base-4);
|
||||
cursor: pointer;
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.modal-wrap .modal-header .close-modal:hover { opacity: 1; }
|
||||
|
||||
.modal-wrap .modal-content {
|
||||
background: var(--base-1);
|
||||
margin: 0;
|
||||
padding: 15px 30px;
|
||||
width: 100%;
|
||||
z-index: 100000;
|
||||
}
|
||||
.modal-content h4 {
|
||||
border-bottom: var(--border);
|
||||
margin: 0 0 15px;
|
||||
padding: 0 0 5px;
|
||||
}
|
||||
.modal-content input, .modal-content .form-help {
|
||||
margin-left: 15px;
|
||||
}
|
||||
.modal-content label {
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
.modal-content .form-help {
|
||||
color: var(--color-muted);
|
||||
font-size: 14px;
|
||||
margin: 5px 0 15px 33px;
|
||||
}
|
||||
.modal-content .form-help + h4 {
|
||||
margin-top: 45px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#open-settings {
|
||||
color: transparent;
|
||||
}
|
||||
#sidebar:hover #open-settings, #sidebar.expanded #open-settings {
|
||||
color: var(--color-muted);
|
||||
}
|
||||
#open-settings:before {
|
||||
content: '\2699';
|
||||
font-weight: bold;
|
||||
font-size: 25px;
|
||||
color: var(--color-muted);
|
||||
}
|
||||
#sidebar:hover #open-settings:before, #sidebar.expanded #open-settings:before {
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<a href="#" id="open-settings">Settings</a>
|
||||
|
||||
<div class="modal-wrap" id="profiler-settings">
|
||||
<div class="modal-container">
|
||||
<div class="modal-header">
|
||||
<h3>Configuration Settings</h3>
|
||||
<button class="close-modal">×</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-content">
|
||||
<h4>Theme</h4>
|
||||
|
||||
<input class="config-option" type="radio" name="theme" value="auto" id="settings-theme-auto">
|
||||
<label for="settings-theme-auto">Auto</label>
|
||||
<p class="form-help"><strong>Default theme</strong>. It switches between Light and Dark automatically to match the operating system theme.</p>
|
||||
|
||||
<input class="config-option" type="radio" name="theme" value="light" id="settings-theme-light">
|
||||
<label for="settings-theme-light">Light</label>
|
||||
<p class="form-help">Provides greatest readability, but requires a well-lit environment.</p>
|
||||
|
||||
<input class="config-option" type="radio" name="theme" value="dark" id="settings-theme-dark">
|
||||
<label for="settings-theme-dark">Dark</label>
|
||||
<p class="form-help">Reduces eye fatigue. Ideal for low light environments.</p>
|
||||
|
||||
<h4>Page Width</h4>
|
||||
|
||||
<input class="config-option" type="radio" name="width" value="normal" id="settings-width-normal">
|
||||
<label for="settings-width-normal">Normal</label>
|
||||
<p class="form-help">Fixed page width. Improves readability.</p>
|
||||
|
||||
<input class="config-option" type="radio" name="width" value="full" id="settings-width-full">
|
||||
<label for="settings-width-full">Full-page</label>
|
||||
<p class="form-help">Dynamic page width. As wide as the browser window.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
const configOptions = document.querySelectorAll('.config-option');
|
||||
const allSettingValues = ['theme-auto', 'theme-ligh', 'theme-dark', 'width-normal', 'width-full'];
|
||||
[...configOptions].forEach(option => {
|
||||
option.addEventListener('change', function (event) {
|
||||
const optionName = option.name;
|
||||
const optionValue = option.value;
|
||||
const settingName = 'symfony/profiler/' + optionName;
|
||||
const settingValue = optionName + '-' + optionValue;
|
||||
|
||||
localStorage.setItem(settingName, settingValue);
|
||||
|
||||
document.body.classList.forEach((cssClass) => {
|
||||
if (cssClass.startsWith(optionName)) {
|
||||
document.body.classList.remove(cssClass);
|
||||
}
|
||||
});
|
||||
|
||||
if ('theme-auto' === settingValue) {
|
||||
document.body.classList.add((matchMedia('(prefers-color-scheme: dark)').matches ? 'theme-dark' : 'theme-light'));
|
||||
} else {
|
||||
document.body.classList.add(settingValue);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
const openModalButton = document.getElementById('open-settings');
|
||||
const modalWindow = document.getElementById('profiler-settings');
|
||||
const closeModalButton = document.getElementsByClassName('close-modal')[0];
|
||||
const modalWrapper = document.getElementsByClassName('modal-wrap')[0]
|
||||
|
||||
openModalButton.addEventListener('click', function(event) {
|
||||
document.getElementById('settings-' + (localStorage.getItem('symfony/profiler/theme') || 'theme-auto')).checked = 'checked';
|
||||
document.getElementById('settings-' + (localStorage.getItem('symfony/profiler/width') || 'width-normal')).checked = 'checked';
|
||||
|
||||
modalWindow.classList.toggle('visible');
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
closeModalButton.addEventListener('click', function() {
|
||||
modalWindow.classList.remove('visible');
|
||||
});
|
||||
modalWrapper.addEventListener('click', function(event) {
|
||||
if (event.target == event.currentTarget) {
|
||||
modalWindow.classList.remove('visible');
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
16
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/table.html.twig
vendored
Normal file
16
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/table.html.twig
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<table class="{{ class|default('') }}">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="key">{{ labels is defined ? labels[0] : 'Key' }}</th>
|
||||
<th scope="col">{{ labels is defined ? labels[1] : 'Value' }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key in data|keys|sort %}
|
||||
<tr>
|
||||
<th scope="row">{{ key }}</th>
|
||||
<td>{{ profiler_dump(data[key]) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
562
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar.css.twig
vendored
Normal file
562
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar.css.twig
vendored
Normal file
@ -0,0 +1,562 @@
|
||||
{# when updating any of these colors, do the same in profiler.css.twig #}
|
||||
{% set colors = { 'success': '#4F805D', 'warning': '#A46A1F', 'error': '#B0413E' } %}
|
||||
|
||||
.sf-minitoolbar {
|
||||
background-color: #222;
|
||||
border-top-left-radius: 4px;
|
||||
bottom: 0;
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
height: 36px;
|
||||
padding: 6px;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.sf-minitoolbar button {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
border: none;
|
||||
}
|
||||
.sf-minitoolbar svg,
|
||||
.sf-minitoolbar img {
|
||||
max-height: 24px;
|
||||
max-width: 24px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sf-toolbar-clearer {
|
||||
clear: both;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.sf-display-none {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sf-toolbarreset * {
|
||||
box-sizing: content-box;
|
||||
vertical-align: baseline;
|
||||
letter-spacing: normal;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.sf-toolbarreset {
|
||||
background-color: #222;
|
||||
bottom: 0;
|
||||
box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
|
||||
color: #EEE;
|
||||
font: 11px Arial, sans-serif;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
padding: 0 36px 0 0;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
text-align: left;
|
||||
text-transform: none;
|
||||
z-index: 99999;
|
||||
direction: ltr;
|
||||
|
||||
/* neutralize the aliasing defined by external CSS styles */
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
.sf-toolbarreset abbr {
|
||||
border: dashed #777;
|
||||
border-width: 0 0 1px;
|
||||
}
|
||||
.sf-toolbarreset svg,
|
||||
.sf-toolbarreset img {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.sf-toolbarreset .sf-cancel-button {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.sf-toolbarreset .hide-button {
|
||||
background: #444;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.sf-toolbarreset .hide-button svg {
|
||||
max-height: 18px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block {
|
||||
cursor: default;
|
||||
display: block;
|
||||
float: left;
|
||||
height: 36px;
|
||||
margin-right: 0;
|
||||
white-space: nowrap;
|
||||
max-width: 15%;
|
||||
}
|
||||
.sf-toolbar-block > a,
|
||||
.sf-toolbar-block > a:hover {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.sf-toolbar-block span {
|
||||
display: inline-block;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-value {
|
||||
color: #F5F5F5;
|
||||
font-size: 13px;
|
||||
line-height: 36px;
|
||||
padding: 0;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-label,
|
||||
.sf-toolbar-block .sf-toolbar-class-separator {
|
||||
color: #AAA;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info {
|
||||
border-collapse: collapse;
|
||||
display: table;
|
||||
z-index: 100000;
|
||||
}
|
||||
.sf-toolbar-block hr {
|
||||
border-top: 1px solid #777;
|
||||
margin: 4px 0;
|
||||
padding-top: 4px;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-piece {
|
||||
/* this 'border-bottom' trick is needed because 'margin-bottom' doesn't work for table rows */
|
||||
border-bottom: solid transparent 3px;
|
||||
display: table-row;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional,
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional-detail {
|
||||
display: none;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-group {
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 2px;
|
||||
border-bottom: 1px solid #333333;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-group:last-child {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info-piece .sf-toolbar-status {
|
||||
padding: 2px 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-piece .sf-toolbar-status + .sf-toolbar-status {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info-piece:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
div.sf-toolbar .sf-toolbar-block .sf-toolbar-info-piece a {
|
||||
color: #99CDD8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
div.sf-toolbar .sf-toolbar-block a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info-piece b {
|
||||
color: #AAA;
|
||||
display: table-cell;
|
||||
font-size: 11px;
|
||||
padding: 4px 8px 4px 0;
|
||||
}
|
||||
.sf-toolbar-block:not(.sf-toolbar-block-dump) .sf-toolbar-info-piece span {
|
||||
color: #F5F5F5;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-piece span {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info {
|
||||
background-color: #444;
|
||||
bottom: 36px;
|
||||
color: #F5F5F5;
|
||||
display: none;
|
||||
padding: 9px 0;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info:empty {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-status {
|
||||
display: inline-block;
|
||||
color: #FFF;
|
||||
background-color: #666;
|
||||
padding: 3px 6px;
|
||||
margin-bottom: 2px;
|
||||
vertical-align: middle;
|
||||
min-width: 15px;
|
||||
min-height: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-status-green {
|
||||
background-color: {{ colors.success|raw }};
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-status-red {
|
||||
background-color: {{ colors.error|raw }};
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-status-yellow {
|
||||
background-color: {{ colors.warning|raw }};
|
||||
}
|
||||
|
||||
.sf-toolbar-block.sf-toolbar-status-green {
|
||||
background-color: {{ colors.success|raw }};
|
||||
color: #FFF;
|
||||
}
|
||||
.sf-toolbar-block.sf-toolbar-status-red {
|
||||
background-color: {{ colors.error|raw }};
|
||||
color: #FFF;
|
||||
}
|
||||
.sf-toolbar-block.sf-toolbar-status-yellow {
|
||||
background-color: {{ colors.warning|raw }};
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.sf-toolbar-block-request .sf-toolbar-status {
|
||||
color: #FFF;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
height: 36px;
|
||||
line-height: 36px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-info-piece a {
|
||||
background-color: transparent;
|
||||
text-decoration: none;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-info-piece a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-redirection-status {
|
||||
font-weight: normal;
|
||||
padding: 2px 4px;
|
||||
line-height: 18px;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-info-piece span.sf-toolbar-redirection-method {
|
||||
font-size: 12px;
|
||||
height: 17px;
|
||||
line-height: 17px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block-ajax .sf-toolbar-icon {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sf-toolbar-status-green .sf-toolbar-label,
|
||||
.sf-toolbar-status-yellow .sf-toolbar-label,
|
||||
.sf-toolbar-status-red .sf-toolbar-label {
|
||||
color: #FFF;
|
||||
}
|
||||
.sf-toolbar-status-green svg path,
|
||||
.sf-toolbar-status-green svg .sf-svg-path,
|
||||
.sf-toolbar-status-red svg path,
|
||||
.sf-toolbar-status-red svg .sf-svg-path,
|
||||
.sf-toolbar-status-yellow svg path,
|
||||
.sf-toolbar-status-yellow svg .sf-svg-path {
|
||||
fill: #FFF;
|
||||
}
|
||||
.sf-toolbar-block-config svg path,
|
||||
.sf-toolbar-block-config svg .sf-svg-path {
|
||||
fill: #FFF;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon {
|
||||
display: block;
|
||||
height: 36px;
|
||||
padding: 0 7px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-icon {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon img,
|
||||
.sf-toolbar-block .sf-toolbar-icon svg {
|
||||
border-width: 0;
|
||||
position: relative;
|
||||
top: 8px;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon img + span,
|
||||
.sf-toolbar-block .sf-toolbar-icon svg + span {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.sf-toolbar-block-config .sf-toolbar-icon .sf-toolbar-value {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block:hover,
|
||||
.sf-toolbar-block.hover {
|
||||
position: relative;
|
||||
}
|
||||
.sf-toolbar-block:hover .sf-toolbar-icon,
|
||||
.sf-toolbar-block.hover .sf-toolbar-icon {
|
||||
background-color: #444;
|
||||
position: relative;
|
||||
z-index: 10002;
|
||||
}
|
||||
.sf-toolbar-block-ajax.hover .sf-toolbar-info {
|
||||
z-index: 10001;
|
||||
}
|
||||
.sf-toolbar-block:hover .sf-toolbar-info,
|
||||
.sf-toolbar-block.hover .sf-toolbar-info {
|
||||
display: block;
|
||||
padding: 10px;
|
||||
max-width: 480px;
|
||||
max-height: 480px;
|
||||
word-wrap: break-word;
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.sf-toolbar-info-piece b.sf-toolbar-ajax-info {
|
||||
color: #F5F5F5;
|
||||
}
|
||||
.sf-toolbar-ajax-requests {
|
||||
table-layout: auto;
|
||||
width: 100%;
|
||||
}
|
||||
.sf-toolbar-ajax-requests td {
|
||||
background-color: #444;
|
||||
border-bottom: 1px solid #777;
|
||||
color: #F5F5F5;
|
||||
font-size: 12px;
|
||||
padding: 4px;
|
||||
}
|
||||
.sf-toolbar-ajax-requests tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
.sf-toolbar-ajax-requests th {
|
||||
background-color: #222;
|
||||
border-bottom: 0;
|
||||
color: #AAA;
|
||||
font-size: 11px;
|
||||
padding: 4px;
|
||||
}
|
||||
.sf-ajax-request-url {
|
||||
max-width: 250px;
|
||||
line-height: 9px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.sf-toolbar-ajax-requests .sf-ajax-request-url a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.sf-toolbar-ajax-requests .sf-ajax-request-url a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.sf-ajax-request-duration {
|
||||
text-align: right;
|
||||
}
|
||||
.sf-ajax-request-loading {
|
||||
animation: sf-blink .5s ease-in-out infinite;
|
||||
}
|
||||
@keyframes sf-blink {
|
||||
0% { background: #222; }
|
||||
50% { background: #444; }
|
||||
100% { background: #222; }
|
||||
}
|
||||
|
||||
.sf-toolbar-block.sf-toolbar-block-dump .sf-toolbar-info {
|
||||
max-width: none;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
box-sizing: border-box;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.sf-toolbar-block-dump pre.sf-dump {
|
||||
background-color: #222;
|
||||
border-color: #777;
|
||||
border-radius: 0;
|
||||
margin: 6px 0 12px 0;
|
||||
}
|
||||
.sf-toolbar-block-dump pre.sf-dump:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.sf-toolbar-block-dump pre.sf-dump .sf-dump-search-wrapper {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.sf-toolbar-block-dump pre.sf-dump span.sf-dump-search-count {
|
||||
color: #333;
|
||||
font-size: 12px;
|
||||
}
|
||||
.sf-toolbar-block-dump .sf-toolbar-info-piece {
|
||||
display: block;
|
||||
}
|
||||
.sf-toolbar-block-dump .sf-toolbar-info-piece .sf-toolbar-file-line {
|
||||
color: #AAA;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.sf-toolbar-block-dump .sf-toolbar-info img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Responsive Design */
|
||||
.sf-toolbar-icon .sf-toolbar-label,
|
||||
.sf-toolbar-icon .sf-toolbar-value {
|
||||
display: none;
|
||||
}
|
||||
.sf-toolbar-block-config .sf-toolbar-icon .sf-toolbar-label {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Legacy Design - these styles are maintained to make old panels look
|
||||
a bit better on the new toolbar */
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional-detail {
|
||||
color: #AAA;
|
||||
font-size: 12px;
|
||||
}
|
||||
.sf-toolbar-status-green .sf-toolbar-info-piece-additional-detail,
|
||||
.sf-toolbar-status-yellow .sf-toolbar-info-piece-additional-detail,
|
||||
.sf-toolbar-status-red .sf-toolbar-info-piece-additional-detail {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
.sf-toolbar-icon .sf-toolbar-label,
|
||||
.sf-toolbar-icon .sf-toolbar-value {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon img,
|
||||
.sf-toolbar-block .sf-toolbar-icon svg {
|
||||
top: 6px;
|
||||
}
|
||||
.sf-toolbar-block-time .sf-toolbar-icon svg,
|
||||
.sf-toolbar-block-memory .sf-toolbar-icon svg {
|
||||
display: none;
|
||||
}
|
||||
.sf-toolbar-block-time .sf-toolbar-icon svg + span,
|
||||
.sf-toolbar-block-memory .sf-toolbar-icon svg + span {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon {
|
||||
padding: 0 10px;
|
||||
}
|
||||
.sf-toolbar-block-time .sf-toolbar-icon {
|
||||
padding-right: 5px;
|
||||
}
|
||||
.sf-toolbar-block-memory .sf-toolbar-icon {
|
||||
padding-left: 5px;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-icon {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-label {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-status + svg {
|
||||
margin-left: 5px;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-icon svg + .sf-toolbar-label {
|
||||
margin-left: 0;
|
||||
}
|
||||
.sf-toolbar-block-request .sf-toolbar-label + .sf-toolbar-value {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block-request:hover .sf-toolbar-info {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info-piece b {
|
||||
font-size: 12px;
|
||||
}
|
||||
.sf-toolbar-block .sf-toolbar-info-piece span {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block-right {
|
||||
float: right;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional,
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional-detail {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional:empty,
|
||||
.sf-toolbar-block .sf-toolbar-info-piece-additional-detail:empty {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/***** Error Toolbar *****/
|
||||
.sf-error-toolbar .sf-toolbarreset {
|
||||
background: #222;
|
||||
color: #f5f5f5;
|
||||
font: 13px/36px Arial, sans-serif;
|
||||
height: 36px;
|
||||
padding: 0 15px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sf-error-toolbar .sf-toolbarreset svg {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.sf-error-toolbar .sf-toolbarreset a {
|
||||
color: #99cdd8;
|
||||
margin-left: 5px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.sf-error-toolbar .sf-toolbarreset a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sf-error-toolbar .sf-toolbarreset .sf-toolbar-icon {
|
||||
float: left;
|
||||
padding: 5px 0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sf-full-stack {
|
||||
left: 0px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/***** Media query print: Do not print the Toolbar. *****/
|
||||
@media print {
|
||||
.sf-toolbar {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
46
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar.html.twig
vendored
Normal file
46
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar.html.twig
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
<!-- START of Symfony Web Debug Toolbar -->
|
||||
<div id="sfMiniToolbar-{{ token }}" class="sf-minitoolbar" data-no-turbolink>
|
||||
<button type="button" title="Show Symfony toolbar" id="sfToolbarMiniToggler-{{ token }}" accesskey="D" aria-expanded="false" aria-controls="sfToolbarMainContent-{{ token }}">
|
||||
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
||||
</button>
|
||||
</div>
|
||||
<div id="sfToolbarClearer-{{ token }}" class="sf-toolbar-clearer"></div>
|
||||
|
||||
<div id="sfToolbarMainContent-{{ token }}" class="sf-toolbarreset clear-fix" data-no-turbolink>
|
||||
{% for name, template in templates %}
|
||||
{% if block('toolbar', template) is defined %}
|
||||
{% with {
|
||||
collector: profile ? profile.getcollector(name) : null,
|
||||
profiler_url: profiler_url,
|
||||
token: token ?? (profile ? profile.token : null),
|
||||
name: name,
|
||||
profiler_markup_version: profiler_markup_version,
|
||||
csp_script_nonce: csp_script_nonce,
|
||||
csp_style_nonce: csp_style_nonce
|
||||
} %}
|
||||
{{ block('toolbar', template) }}
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if full_stack %}
|
||||
<div class="sf-full-stack sf-toolbar-block sf-toolbar-block-full-stack sf-toolbar-status-red sf-toolbar-block-right">
|
||||
<div class="sf-toolbar-icon">
|
||||
<span class="sf-toolbar-value">Using symfony/symfony is NOT supported</span>
|
||||
</div>
|
||||
<div class="sf-toolbar-info sf-toolbar-status-red">
|
||||
<p>This project is using Symfony via the "symfony/symfony" package.</p>
|
||||
<p>This is NOT supported anymore since Symfony 4.0.</p>
|
||||
<p>Even if it seems to work well, it has some important limitations with no workarounds.</p>
|
||||
<p>Using this package also makes your project slower.</p>
|
||||
|
||||
<strong>Please, stop using this package and replace it with individual packages instead.</strong>
|
||||
</div>
|
||||
<div></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<button class="hide-button" type="button" id="sfToolbarHideButton-{{ token }}" title="Close Toolbar" accesskey="D" aria-expanded="true" aria-controls="sfToolbarMainContent-{{ token }}">
|
||||
{{ include('@WebProfiler/Icon/close.svg') }}
|
||||
</button>
|
||||
</div>
|
||||
<!-- END of Symfony Web Debug Toolbar -->
|
6
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_item.html.twig
vendored
Normal file
6
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_item.html.twig
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }} {{ additional_classes|default('') }}" {{ block_attrs|default('')|raw }}>
|
||||
{% if link is not defined or link %}<a href="{{ url('_profiler', { token: token, panel: name }) }}">{% endif %}
|
||||
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
|
||||
{% if link|default(false) %}</a>{% endif %}
|
||||
<div class="sf-toolbar-info">{{ text|default('') }}</div>
|
||||
</div>
|
21
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_js.html.twig
vendored
Normal file
21
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_js.html.twig
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
<div id="sfwdt{{ token }}" class="sf-toolbar sf-display-none" role="region" aria-label="Symfony Web Debug Toolbar">
|
||||
{% include('@WebProfiler/Profiler/toolbar.html.twig') with {
|
||||
templates: {
|
||||
'request': '@WebProfiler/Profiler/cancel.html.twig'
|
||||
},
|
||||
profile: null,
|
||||
profiler_url: url('_profiler', {token: token}),
|
||||
profiler_markup_version: 2,
|
||||
} %}
|
||||
</div>
|
||||
|
||||
{{ include('@WebProfiler/Profiler/base_js.html.twig') }}
|
||||
|
||||
<style{% if csp_style_nonce %} nonce="{{ csp_style_nonce }}"{% endif %}>
|
||||
{{ include('@WebProfiler/Profiler/toolbar.css.twig') }}
|
||||
</style>
|
||||
<script{% if csp_script_nonce %} nonce="{{ csp_script_nonce }}"{% endif %}>/*<![CDATA[*/
|
||||
(function () {
|
||||
Sfjs.loadToolbar('{{ token }}');
|
||||
})();
|
||||
/*]]>*/</script>
|
18
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_redirect.html.twig
vendored
Normal file
18
vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_redirect.html.twig
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends '@WebProfiler/Profiler/base.html.twig' %}
|
||||
|
||||
{% block title 'Redirection Intercepted' %}
|
||||
|
||||
{% block body %}
|
||||
<div class="sf-reset">
|
||||
<div class="block-exception">
|
||||
<h1>This request redirects to <a href="{{ location }}">{{ location }}</a>.</h1>
|
||||
|
||||
<p>
|
||||
<small>
|
||||
The redirect was intercepted by the web debug toolbar to help debugging.
|
||||
For more information, see the "intercept-redirects" option of the Profiler.
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user