Update to Kirby 5
This commit is contained in:
parent
5d9979fca8
commit
0fefc5e2e1
472 changed files with 30853 additions and 10301 deletions
1
kirby/vendor/filp/whoops/composer.json
vendored
1
kirby/vendor/filp/whoops/composer.json
vendored
|
@ -12,6 +12,7 @@
|
|||
}
|
||||
],
|
||||
"scripts": {
|
||||
"demo": "php -S localhost:8000 ./examples/example.php",
|
||||
"test": "phpunit --testdox tests"
|
||||
},
|
||||
"require": {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* PrismJS 1.29.0
|
||||
/* PrismJS 1.30.0
|
||||
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+markup-templating+php&plugins=line-highlight+line-numbers */
|
||||
code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
|
||||
pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}@media print{.line-highlight{-webkit-print-color-adjust:exact;color-adjust:exact}}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:#f4f1ef;font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:after,.line-numbers .line-highlight:before{content:none}pre[id].linkable-line-numbers span.line-numbers-rows{pointer-events:all}pre[id].linkable-line-numbers span.line-numbers-rows>span:before{cursor:pointer}pre[id].linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(128,128,128,.2)}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -43,8 +43,11 @@ Zepto(function($) {
|
|||
});
|
||||
|
||||
var line = $activeFrame.find('.code-block .line-highlight').first()[0];
|
||||
line.scrollIntoView();
|
||||
line.parentElement.scrollTop -= 180;
|
||||
// [internal] frames might not contain a code-block
|
||||
if (line) {
|
||||
line.scrollIntoView();
|
||||
line.parentElement.scrollTop -= 180;
|
||||
}
|
||||
|
||||
$container.scrollTop(0);
|
||||
}
|
||||
|
@ -76,7 +79,7 @@ Zepto(function($) {
|
|||
|
||||
});
|
||||
|
||||
var clipboard = new Clipboard('.clipboard');
|
||||
var clipboard = new ClipboardJS('.clipboard');
|
||||
var showTooltip = function(elem, msg) {
|
||||
elem.classList.add('tooltipped', 'tooltipped-s');
|
||||
elem.setAttribute('aria-label', msg);
|
||||
|
|
File diff suppressed because one or more lines are too long
12
kirby/vendor/filp/whoops/src/Whoops/Run.php
vendored
12
kirby/vendor/filp/whoops/src/Whoops/Run.php
vendored
|
@ -87,6 +87,11 @@ final class Run implements RunInterface
|
|||
$this->inspectorFactory = new InspectorFactory();
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
$this->unregister();
|
||||
}
|
||||
|
||||
/**
|
||||
* Explicitly request your handler runs as the last of all currently registered handlers.
|
||||
*
|
||||
|
@ -502,6 +507,11 @@ final class Run implements RunInterface
|
|||
// to the exception handler. Pass that information along.
|
||||
$this->canThrowExceptions = false;
|
||||
|
||||
// If we are not currently registered, we should not do anything
|
||||
if (!$this->isRegistered) {
|
||||
return;
|
||||
}
|
||||
|
||||
$error = $this->system->getLastError();
|
||||
if ($error && Misc::isLevelFatal($error['type'])) {
|
||||
// If there was a fatal error,
|
||||
|
@ -531,7 +541,7 @@ final class Run implements RunInterface
|
|||
{
|
||||
if (!is_callable($filterCallback)) {
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
"A frame filter must be of type callable, %s type given.",
|
||||
"A frame filter must be of type callable, %s type given.",
|
||||
gettype($filterCallback)
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue