Add blueprints and fake content
This commit is contained in:
parent
1ff19bf38f
commit
8235816462
592 changed files with 22385 additions and 31535 deletions
|
@ -1,15 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* @var \Kirby\Cms\App $kirby
|
||||
* @var array<string, mixed> $config
|
||||
* @var string $assetUrl
|
||||
* @var string|false $customCss
|
||||
* @var string $icons
|
||||
* @var string $pluginCss
|
||||
* @var string $pluginJs
|
||||
* @var array<string, mixed> $assets
|
||||
* @var array<string, mixed> $fiber
|
||||
* @var string $panelUrl
|
||||
* @var string $nonce
|
||||
* @var array<string, mixed> $options
|
||||
*/ ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
@ -21,24 +17,27 @@
|
|||
|
||||
<title>Kirby Panel</title>
|
||||
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $assetUrl ?>/css/app.css">
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $pluginCss ?>">
|
||||
<script>
|
||||
if (
|
||||
!window.CSS ||
|
||||
window.CSS.supports("display", "grid") === false ||
|
||||
!window.fetch
|
||||
) {
|
||||
window.location.href = "<?= $panelUrl ?>browser";
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php if ($customCss) : ?>
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $customCss ?>">
|
||||
<?php endif ?>
|
||||
<?php foreach ($assets['css'] as $css): ?>
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $css ?>">
|
||||
<?php endforeach ?>
|
||||
|
||||
<link nonce="<?= $nonce ?>" rel="apple-touch-icon" href="<?= $assetUrl ?>/apple-touch-icon.png" />
|
||||
<link nonce="<?= $nonce ?>" rel="icon" href="<?= $assetUrl ?>/favicon.svg" type="image/svg+xml">
|
||||
<link nonce="<?= $nonce ?>" rel="alternate icon" href="<?= $assetUrl ?>/favicon.png" type="image/png">
|
||||
<?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>
|
||||
<svg aria-hidden="true" class="k-icons" xmlns="http://www.w3.org/2000/svg" overflow="hidden" nonce="<?= $nonce ?>">
|
||||
<defs />
|
||||
</svg>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<noscript>
|
||||
|
@ -47,14 +46,19 @@
|
|||
|
||||
<?= $icons ?>
|
||||
|
||||
<script nonce="<?= $nonce ?>">window.panel = <?= json_encode($options, JSON_UNESCAPED_SLASHES) ?></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/plugins.js" defer></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/vendor.js" defer></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $pluginJs ?>" defer></script>
|
||||
<?php if (isset($config['js'])) : ?>
|
||||
<script nonce="<?= $nonce ?>" src="<?= Url::to($config['js']) ?>" defer></script>
|
||||
<?php endif ?>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/app.js" defer></script>
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue