init with kirby, vue and pagedjs interactive
This commit is contained in:
commit
dc0ae26464
968 changed files with 211706 additions and 0 deletions
21
public/kirby/views/browser.php
Normal file
21
public/kirby/views/browser.php
Normal 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
public/kirby/views/fatal.php
Normal file
11
public/kirby/views/fatal.php
Normal 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' ?>
|
||||
81
public/kirby/views/panel.php
Normal file
81
public/kirby/views/panel.php
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<?php
|
||||
|
||||
use Kirby\Toolkit\Html;
|
||||
|
||||
/**
|
||||
* @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 type="importmap">
|
||||
{
|
||||
"imports": <?= json_encode($assets['import-maps'] ?? []) ?>
|
||||
}
|
||||
</script>
|
||||
|
||||
<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 $icon): ?>
|
||||
<?= Html::tag('link', null, $icon) ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php foreach ($assets['js'] as $js): ?>
|
||||
<?php if (($js['type'] ?? null) === 'module'): ?>
|
||||
<link rel="modulepreload" href="<?= $js['src'] ?>">
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<base href="<?= $panelUrl ?>">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<noscript>
|
||||
Please enable JavaScript in your browser
|
||||
</noscript>
|
||||
|
||||
<?= $icons ?>
|
||||
|
||||
<script nonce="<?= $nonce ?>">
|
||||
// Fiber setup
|
||||
window.fiber = <?= json_encode($fiber) ?>;
|
||||
</script>
|
||||
|
||||
<?php foreach ($assets['js'] as $key => $js): ?>
|
||||
<?php if ($key === 'index'): ?>
|
||||
<script type="module" nonce="<?= $nonce ?>" defer>
|
||||
<?= $assets['plugin-imports'] ?>
|
||||
import('<?= $js['src'] ?>')
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<?= Html::tag('script', '', $js) . PHP_EOL ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
public/kirby/views/php.php
Normal file
11
public/kirby/views/php.php
Normal 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 <a href="https://getkirby.com/fatal/php">supported by your version of Kirby</a>
|
||||
</p>
|
||||
|
||||
<?php include __DIR__ . '/snippets/footer.php' ?>
|
||||
2
public/kirby/views/snippets/footer.php
Normal file
2
public/kirby/views/snippets/footer.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
||||
42
public/kirby/views/snippets/header.php
Normal file
42
public/kirby/views/snippets/header.php
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue