Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
release: v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Oct 19, 2021
1 parent b336064 commit 6887155
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "kirby-vue3-starterkit",
"version": "4.0.0",
"version": "4.1.0",
"scripts": {
"kirby": "env-cmd --use-shell \"php -S \\$KIRBY_DEV_HOSTNAME:\\$KIRBY_DEV_PORT -t public server.php\"",
"dev": "shx touch src/.lock && concurrently \"npm:kirby\" \"vite\"",
Expand Down
4 changes: 1 addition & 3 deletions site/plugins/gallery/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

use Kirby\Cms\App as Kirby;

Kirby::plugin('starterkit/gallery', [
\Kirby\Cms\App::plugin('starterkit/gallery', [
'snippets' => [
'gallery' => __DIR__ . '/snippets/gallery.php'
],
Expand Down
6 changes: 3 additions & 3 deletions site/plugins/kirby-vite/classes/KirbyExtended/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function useManifest(): ?array

if (!F::exists($manifestFile)) {
if (option('debug')) {
throw new Exception('The `manifest.json` does not exist. Run `npm run build`.');
throw new Exception('manifest.json not found. Run `npm run build` first.');
}

return [];
Expand All @@ -89,7 +89,7 @@ protected function getManifestProperty(string $entry, $key = 'file')
$manifestEntry = $this->useManifest()[$entry] ?? null;
if (!$manifestEntry) {
if (option('debug')) {
throw new Exception("`$entry` is not a manifest entry.");
throw new Exception("{$entry} is not a manifest entry");
}

return;
Expand All @@ -98,7 +98,7 @@ protected function getManifestProperty(string $entry, $key = 'file')
$value = $manifestEntry[$key] ?? null;
if (!$value) {
if (option('debug')) {
throw new Exception("Manifest entry `$entry` does not have property `$key`.");
throw new Exception("{$key} not found in manifest entry {$entry}");
}

return;
Expand Down

0 comments on commit 6887155

Please sign in to comment.