Initial commit

This commit is contained in:
Paul Nicoué 2022-06-17 17:51:59 +02:00
commit 73c6b816c0
716 changed files with 170045 additions and 0 deletions

21
kirby/views/browser.php Normal file
View file

@ -0,0 +1,21 @@
<?php include __DIR__ . '/snippets/header.php' ?>
<p class="notice">
We are really sorry, but your browser does not support
all features required for the Kirby Panel.
</p>
<div class="admin-advice">
<p>
<strong>Fetch</strong><br>
We use Javascript's new Fetch API. You can find a list of supported browsers for this feature on
<strong><a href="https://caniuse.com/#feat=fetch">caniuse.com</a></strong>
</p>
<p>
<strong>CSS Grid</strong><br>
We use CSS Grids for all our layouts. You can find a list of supported browsers for this feature on
<strong><a href="https://caniuse.com/#feat=css-grid">caniuse.com</a></strong>
</p>
</div>
<?php include __DIR__ . '/snippets/footer.php' ?>

11
kirby/views/fatal.php Normal file
View file

@ -0,0 +1,11 @@
<?php include __DIR__ . '/snippets/header.php' ?>
<p class="notice">
This page is currently offline due to an unexpected error. We are very sorry for the inconvenience and will fix it as soon as possible.
</p>
<p class="admin-advice">
Advice for developers and administrators:<br>
Enable <a href="https://getkirby.com/docs/reference/system/options/debug">debug mode</a> to get further information about the error.
</p>
<?php include __DIR__ . '/snippets/footer.php' ?>

64
kirby/views/panel.php Normal file
View file

@ -0,0 +1,64 @@
<?php
/**
* @var \Kirby\Cms\App $kirby
* @var string $icons
* @var array<string, mixed> $assets
* @var array<string, mixed> $fiber
* @var string $panelUrl
* @var string $nonce
*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="same-origin">
<title>Kirby Panel</title>
<script nonce="<?= $nonce ?>">
if (
!window.CSS ||
window.CSS.supports("display", "grid") === false ||
!window.fetch
) {
window.location.href = "<?= $panelUrl ?>browser";
}
</script>
<?php foreach ($assets['css'] as $css): ?>
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $css ?>">
<?php endforeach ?>
<?php foreach ($assets['icons'] as $rel => $icon): ?>
<link nonce="<?= $nonce ?>" rel="<?= $rel ?>" href="<?= url($icon['url']) ?>" type="<?= $icon['type'] ?>">
<?php endforeach ?>
<base href="<?= $panelUrl ?>">
</head>
<body>
<div id="app"></div>
<noscript>
Please enable JavaScript in your browser
</noscript>
<?= $icons ?>
<script nonce="<?= $nonce ?>">
// Panel state
const json = <?= json_encode($fiber) ?>;
window.panel = JSON.parse(JSON.stringify(json));
// Fiber setup
window.fiber = json;
</script>
<?php foreach ($assets['js'] as $js): ?>
<?= Html::tag('script', '', $js) . PHP_EOL ?>
<?php endforeach ?>
</body>
</html>

11
kirby/views/php.php Normal file
View file

@ -0,0 +1,11 @@
<?php include __DIR__ . '/snippets/header.php' ?>
<p class="notice">
This page is currently offline. We are very sorry for the inconvenience and will fix it as soon as possible.
</p>
<p class="admin-advice">
Advice for developers and administrators:<br>
Change the PHP version to one supported by your version of Kirby
</p>
<?php include __DIR__ . '/snippets/footer.php' ?>

View file

@ -0,0 +1,2 @@
</body>
</html>

View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
padding: 10%;
text-align: center;
line-height: 1.5em;
}
a {
color: inherit;
}
a:hover,
a:focus {
color: #000;
}
p {
max-width: 30em;
margin: 0 auto;
}
.notice {
font-weight: bold;
}
.admin-advice {
font-size: .8em;
font-style: italic;
color: #999;
padding-top: 3rem;
}
.admin-advice p {
margin-bottom: 1.5rem;
}
</style>
</head>
<body>