From d69bbc235792f60b94055295de28e191690b3bab Mon Sep 17 00:00:00 2001 From: HerrHase Date: Sun, 14 Nov 2021 11:03:21 +0100 Subject: [PATCH] adding #14 --- app/Repositories/PageRepository.php | 2 +- app/Repositories/SiteRepository.php | 4 +- app/Repositories/SnippetRepository.php | 9 +- composer.json | 4 +- composer.lock | 232 +++++++++++++------------ resources/views/page/default.blade.php | 17 ++ 6 files changed, 152 insertions(+), 116 deletions(-) diff --git a/app/Repositories/PageRepository.php b/app/Repositories/PageRepository.php index c736454..c26caee 100644 --- a/app/Repositories/PageRepository.php +++ b/app/Repositories/PageRepository.php @@ -40,7 +40,7 @@ class PageRepository extends RepositoryAbstract 'media_teaser.*', 'media_hero.*' ]) - ->aliases('view', 'template') + ->aliases('template', 'view') ->filter([ 'status' => 'published', 'slug' => $slug diff --git a/app/Repositories/SiteRepository.php b/app/Repositories/SiteRepository.php index 19d94be..81ddf39 100644 --- a/app/Repositories/SiteRepository.php +++ b/app/Repositories/SiteRepository.php @@ -29,11 +29,11 @@ class SiteRepository extends RepositoryAbstract { return $this->queryBuilder ->fields([ - 'title', + 'title', 'description', 'logo' ]) - ->aliases('logo[id]', 'logo') + ->aliases('logo', 'logo[id]') ->findOne(); } } diff --git a/app/Repositories/SnippetRepository.php b/app/Repositories/SnippetRepository.php index 5e0513e..67f2426 100644 --- a/app/Repositories/SnippetRepository.php +++ b/app/Repositories/SnippetRepository.php @@ -25,19 +25,20 @@ class SnippetRepository extends RepositoryAbstract * @param string $slug * @return array */ - public function findByType($type) + public function findByName($name) { $results = $this->queryBuilder ->fields([ 'title', 'content', + 'name', 'view', - 'blocks', - 'files.directus_files_id' + 'file.id', + 'file.description' ]) ->aliases('template', 'view') ->filter([ - 'type' => $type + 'name' => $name ]) ->find(); diff --git a/composer.json b/composer.json index f606d21..cbae854 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tentakelfabrik/super-gear-directus", - "version": "1.0.0-rc2", + "version": "1.0.0-rc3", "type": "project", "license": "MIT", "authors": [ @@ -16,7 +16,7 @@ "erusev/parsedown": "1.7.*", "vlucas/phpdotenv": "5.3.*", "jenssegers/blade": "1.4.*", - "tentakelfabrik/pirectus": "^0.1.2", + "tentakelfabrik/pirectus": "^0.1.3", "cocur/slugify": "^4.0" }, "autoload": { diff --git a/composer.lock b/composer.lock index 475b371..13c9fc9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fcd79dd392240661e898bba640146723", + "content-hash": "5263bc5e77eb9849e010bbef6fa46c6f", "packages": [ { "name": "cocur/slugify", @@ -82,34 +82,30 @@ }, { "name": "doctrine/inflector", - "version": "2.0.3", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210" + "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/9cf661f4eb38f7c881cac67c75ea9b00bf97b210", - "reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", + "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89", "shasum": "" }, "require": { "php": "^7.2 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^7.0", - "phpstan/phpstan": "^0.11", - "phpstan/phpstan-phpunit": "^0.11", - "phpstan/phpstan-strict-rules": "^0.11", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "doctrine/coding-standard": "^8.2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0", + "vimeo/psalm": "^4.10" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, "autoload": { "psr-4": { "Doctrine\\Inflector\\": "lib/Doctrine/Inflector" @@ -157,7 +153,7 @@ ], "support": { "issues": "https://github.com/doctrine/inflector/issues", - "source": "https://github.com/doctrine/inflector/tree/2.0.x" + "source": "https://github.com/doctrine/inflector/tree/2.0.4" }, "funding": [ { @@ -173,7 +169,7 @@ "type": "tidelift" } ], - "time": "2020-05-29T15:13:26+00:00" + "time": "2021-10-22T20:16:43+00:00" }, { "name": "erusev/parsedown", @@ -227,16 +223,16 @@ }, { "name": "graham-campbell/result-type", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/GrahamCampbell/Result-Type.git", - "reference": "84afea85c6841deeea872f36249a206e878a5de0" + "reference": "296c015dc30ec4322168c5ad3ee5cc11dae827ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/84afea85c6841deeea872f36249a206e878a5de0", - "reference": "84afea85c6841deeea872f36249a206e878a5de0", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/296c015dc30ec4322168c5ad3ee5cc11dae827ac", + "reference": "296c015dc30ec4322168c5ad3ee5cc11dae827ac", "shasum": "" }, "require": { @@ -272,7 +268,7 @@ ], "support": { "issues": "https://github.com/GrahamCampbell/Result-Type/issues", - "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.2" + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.0.3" }, "funding": [ { @@ -284,28 +280,29 @@ "type": "tidelift" } ], - "time": "2021-08-28T21:34:50+00:00" + "time": "2021-10-17T19:48:54+00:00" }, { "name": "guzzlehttp/guzzle", - "version": "7.3.0", + "version": "7.4.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "7008573787b430c1c1f650e3722d9bba59967628" + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628", - "reference": "7008573787b430c1c1f650e3722d9bba59967628", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.4", - "guzzlehttp/psr7": "^1.7 || ^2.0", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", "php": "^7.2.5 || ^8.0", - "psr/http-client": "^1.0" + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2" }, "provide": { "psr/http-client-implementation": "1.0" @@ -315,7 +312,7 @@ "ext-curl": "*", "php-http/client-integration-tests": "^3.0", "phpunit/phpunit": "^8.5.5 || ^9.3.5", - "psr/log": "^1.1" + "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { "ext-curl": "Required for CURL handler support", @@ -325,7 +322,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "7.3-dev" + "dev-master": "7.4-dev" } }, "autoload": { @@ -341,19 +338,43 @@ "MIT" ], "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, { "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, { "name": "Márk Sági-Kazár", "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" } ], "description": "Guzzle is a PHP HTTP client library", - "homepage": "http://guzzlephp.org/", "keywords": [ "client", "curl", @@ -367,7 +388,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.3.0" + "source": "https://github.com/guzzle/guzzle/tree/7.4.0" }, "funding": [ { @@ -379,28 +400,24 @@ "type": "github" }, { - "url": "https://github.com/alexeyshockov", - "type": "github" - }, - { - "url": "https://github.com/gmponos", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" } ], - "time": "2021-03-23T11:33:13+00:00" + "time": "2021-10-18T09:52:00+00:00" }, { "name": "guzzlehttp/promises", - "version": "1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0" + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/136a635e2b4a49b9d79e9c8fee267ffb257fdba0", - "reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", "shasum": "" }, "require": { @@ -455,7 +472,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.0" + "source": "https://github.com/guzzle/promises/tree/1.5.1" }, "funding": [ { @@ -471,7 +488,7 @@ "type": "tidelift" } ], - "time": "2021-10-07T13:05:22+00:00" + "time": "2021-10-22T20:56:57+00:00" }, { "name": "guzzlehttp/psr7", @@ -590,16 +607,16 @@ }, { "name": "illuminate/bus", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/bus.git", - "reference": "a222094903c473b6b0ade0b0b0e20b83ae1472b6" + "reference": "be400399687b97d5558a224e970060fd5d5f2735" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/bus/zipball/a222094903c473b6b0ade0b0b0e20b83ae1472b6", - "reference": "a222094903c473b6b0ade0b0b0e20b83ae1472b6", + "url": "https://api.github.com/repos/illuminate/bus/zipball/be400399687b97d5558a224e970060fd5d5f2735", + "reference": "be400399687b97d5558a224e970060fd5d5f2735", "shasum": "" }, "require": { @@ -639,20 +656,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-09-15T14:32:50+00:00" + "time": "2021-10-21T19:19:36+00:00" }, { "name": "illuminate/collections", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "8e6c29c49f28b90e9de0cac1c14290feb99202c5" + "reference": "05f286ec5fd2dd286e8384577047efc375c8954c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/8e6c29c49f28b90e9de0cac1c14290feb99202c5", - "reference": "8e6c29c49f28b90e9de0cac1c14290feb99202c5", + "url": "https://api.github.com/repos/illuminate/collections/zipball/05f286ec5fd2dd286e8384577047efc375c8954c", + "reference": "05f286ec5fd2dd286e8384577047efc375c8954c", "shasum": "" }, "require": { @@ -693,11 +710,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-09-30T15:04:19+00:00" + "time": "2021-10-22T18:01:46+00:00" }, { "name": "illuminate/container", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/container.git", @@ -748,16 +765,16 @@ }, { "name": "illuminate/contracts", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913" + "reference": "e76f4bce73a2a1656add24bd5210ebc4b8af49c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913", - "reference": "ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/e76f4bce73a2a1656add24bd5210ebc4b8af49c0", + "reference": "e76f4bce73a2a1656add24bd5210ebc4b8af49c0", "shasum": "" }, "require": { @@ -792,11 +809,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-09-08T12:09:40+00:00" + "time": "2021-10-22T18:01:46+00:00" }, { "name": "illuminate/events", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/events.git", @@ -851,16 +868,16 @@ }, { "name": "illuminate/filesystem", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", - "reference": "f33219e5550f8f280169e933b91a95250920de06" + "reference": "a7bc30dac4e27dbeb37b026f3dbaee13bd578861" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/filesystem/zipball/f33219e5550f8f280169e933b91a95250920de06", - "reference": "f33219e5550f8f280169e933b91a95250920de06", + "url": "https://api.github.com/repos/illuminate/filesystem/zipball/a7bc30dac4e27dbeb37b026f3dbaee13bd578861", + "reference": "a7bc30dac4e27dbeb37b026f3dbaee13bd578861", "shasum": "" }, "require": { @@ -909,11 +926,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-07-20T13:46:01+00:00" + "time": "2021-10-22T13:20:42+00:00" }, { "name": "illuminate/macroable", - "version": "v8.62.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -959,7 +976,7 @@ }, { "name": "illuminate/pipeline", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/pipeline.git", @@ -1007,16 +1024,16 @@ }, { "name": "illuminate/support", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "259993e2119e99be17c10486f66c5a13b7fe4a70" + "reference": "1ed88eed1d179e5a27171324e57692366449eca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/259993e2119e99be17c10486f66c5a13b7fe4a70", - "reference": "259993e2119e99be17c10486f66c5a13b7fe4a70", + "url": "https://api.github.com/repos/illuminate/support/zipball/1ed88eed1d179e5a27171324e57692366449eca0", + "reference": "1ed88eed1d179e5a27171324e57692366449eca0", "shasum": "" }, "require": { @@ -1026,7 +1043,7 @@ "illuminate/collections": "^8.0", "illuminate/contracts": "^8.0", "illuminate/macroable": "^8.0", - "nesbot/carbon": "^2.31", + "nesbot/carbon": "^2.53.1", "php": "^7.3|^8.0", "voku/portable-ascii": "^1.4.8" }, @@ -1071,20 +1088,20 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-10-04T13:02:25+00:00" + "time": "2021-11-09T17:40:38+00:00" }, { "name": "illuminate/view", - "version": "v8.63.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/illuminate/view.git", - "reference": "875ca9f548b17e1a225469e0b0f8bae3c9e4ff71" + "reference": "5e497ed2bf3452201a992bba7552306e49b17978" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/view/zipball/875ca9f548b17e1a225469e0b0f8bae3c9e4ff71", - "reference": "875ca9f548b17e1a225469e0b0f8bae3c9e4ff71", + "url": "https://api.github.com/repos/illuminate/view/zipball/5e497ed2bf3452201a992bba7552306e49b17978", + "reference": "5e497ed2bf3452201a992bba7552306e49b17978", "shasum": "" }, "require": { @@ -1125,7 +1142,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-09-20T14:39:52+00:00" + "time": "2021-11-06T15:10:53+00:00" }, { "name": "jenssegers/blade", @@ -1238,16 +1255,16 @@ }, { "name": "nesbot/carbon", - "version": "2.53.1", + "version": "2.54.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "f4655858a784988f880c1b8c7feabbf02dfdf045" + "reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f4655858a784988f880c1b8c7feabbf02dfdf045", - "reference": "f4655858a784988f880c1b8c7feabbf02dfdf045", + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/eed83939f1aed3eee517d03a33f5ec587ac529b5", + "reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5", "shasum": "" }, "require": { @@ -1258,6 +1275,7 @@ "symfony/translation": "^3.4 || ^4.0 || ^5.0" }, "require-dev": { + "doctrine/dbal": "^2.0 || ^3.0", "doctrine/orm": "^2.7", "friendsofphp/php-cs-fixer": "^3.0", "kylekatarnls/multi-tester": "^2.0", @@ -1328,7 +1346,7 @@ "type": "tidelift" } ], - "time": "2021-09-06T09:29:23+00:00" + "time": "2021-11-01T21:22:20+00:00" }, { "name": "phpoption/phpoption", @@ -1401,20 +1419,20 @@ }, { "name": "psr/container", - "version": "1.1.1", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", "autoload": { @@ -1443,9 +1461,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/1.1.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:50:12+00:00" }, { "name": "psr/http-client", @@ -2075,16 +2093,16 @@ }, { "name": "symfony/translation", - "version": "v5.3.9", + "version": "v5.3.10", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "6e69f3551c1a3356cf6ea8d019bf039a0f8b6886" + "reference": "6ef197aea2ac8b9cd63e0da7522b3771714035aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/6e69f3551c1a3356cf6ea8d019bf039a0f8b6886", - "reference": "6e69f3551c1a3356cf6ea8d019bf039a0f8b6886", + "url": "https://api.github.com/repos/symfony/translation/zipball/6ef197aea2ac8b9cd63e0da7522b3771714035aa", + "reference": "6ef197aea2ac8b9cd63e0da7522b3771714035aa", "shasum": "" }, "require": { @@ -2150,7 +2168,7 @@ "description": "Provides tools to internationalize your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/translation/tree/v5.3.9" + "source": "https://github.com/symfony/translation/tree/v5.3.10" }, "funding": [ { @@ -2166,7 +2184,7 @@ "type": "tidelift" } ], - "time": "2021-08-26T08:22:53+00:00" + "time": "2021-10-10T06:43:24+00:00" }, { "name": "symfony/translation-contracts", @@ -2248,16 +2266,16 @@ }, { "name": "tentakelfabrik/pirectus", - "version": "0.1.1", + "version": "0.1.3", "source": { "type": "git", "url": "https://github.com/tentakelfabrik/pirectus.git", - "reference": "64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0" + "reference": "58ed57814f1851b05aeec3ddc3717e087e07f7d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tentakelfabrik/pirectus/zipball/64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0", - "reference": "64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0", + "url": "https://api.github.com/repos/tentakelfabrik/pirectus/zipball/58ed57814f1851b05aeec3ddc3717e087e07f7d8", + "reference": "58ed57814f1851b05aeec3ddc3717e087e07f7d8", "shasum": "" }, "require": { @@ -2282,9 +2300,9 @@ ], "support": { "issues": "https://github.com/tentakelfabrik/pirectus/issues", - "source": "https://github.com/tentakelfabrik/pirectus/tree/v0.1.1" + "source": "https://github.com/tentakelfabrik/pirectus/tree/v0.1.3" }, - "time": "2021-10-11T07:32:53+00:00" + "time": "2021-10-15T09:39:24+00:00" }, { "name": "vlucas/phpdotenv", diff --git a/resources/views/page/default.blade.php b/resources/views/page/default.blade.php index 251ed8d..2f606c0 100644 --- a/resources/views/page/default.blade.php +++ b/resources/views/page/default.blade.php @@ -1,12 +1,29 @@ @extends('layout') @inject('markdownHelper', 'App\Helpers\MarkdownHelper') +@inject('snippetRepository', 'App\Repositories\SnippetRepository') @section('content') +

{{ $page['data']['title'] }}

{!! $markdownHelper->parse($page['data']['content']) !!}
+ +@foreach($snippetRepository->findByName('default')['data'] as $snippet) +
+

+ {{ $snippet['title'] }} +

+
+ {{ $snippet['file']['description'] }} +
+
+ {!! $markdownHelper->parse($snippet['content']) !!} +
+
+@endforeach + @endsection