Update Kirby and dependencies

This commit is contained in:
Paul Nicoué 2022-08-31 16:08:03 +02:00
parent 07150a0011
commit c7c5d615a4
451 changed files with 67540 additions and 63740 deletions

View file

@ -1,4 +1,7 @@
<?php
use Kirby\Cms\Url;
/**
* @var \Kirby\Cms\App $kirby
* @var string $icons
@ -32,7 +35,13 @@
<?php endforeach ?>
<?php foreach ($assets['icons'] as $rel => $icon): ?>
<link nonce="<?= $nonce ?>" rel="<?= $rel ?>" href="<?= url($icon['url']) ?>" type="<?= $icon['type'] ?>">
<link nonce="<?= $nonce ?>" rel="<?= $rel ?>" href="<?= Url::to($icon['url']) ?>" type="<?= $icon['type'] ?>">
<?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 ?>">
@ -56,8 +65,15 @@
window.fiber = json;
</script>
<?php foreach ($assets['js'] as $js): ?>
<?php foreach ($assets['js'] as $key => $js): ?>
<?php if ($key === 'index'): ?>
<script type="module" nonce="<?= $nonce ?>">
<?= $assets['plugin-imports'] ?>
import('<?= $js['src'] ?>')
</script>
<?php else: ?>
<?= Html::tag('script', '', $js) . PHP_EOL ?>
<?php endif ?>
<?php endforeach ?>
</body>