develop
HerrHase 3 years ago
parent 09f2467b01
commit d69bbc2357

@ -40,7 +40,7 @@ class PageRepository extends RepositoryAbstract
'media_teaser.*', 'media_teaser.*',
'media_hero.*' 'media_hero.*'
]) ])
->aliases('view', 'template') ->aliases('template', 'view')
->filter([ ->filter([
'status' => 'published', 'status' => 'published',
'slug' => $slug 'slug' => $slug

@ -33,7 +33,7 @@ class SiteRepository extends RepositoryAbstract
'description', 'description',
'logo' 'logo'
]) ])
->aliases('logo[id]', 'logo') ->aliases('logo', 'logo[id]')
->findOne(); ->findOne();
} }
} }

@ -25,19 +25,20 @@ class SnippetRepository extends RepositoryAbstract
* @param string $slug * @param string $slug
* @return array * @return array
*/ */
public function findByType($type) public function findByName($name)
{ {
$results = $this->queryBuilder $results = $this->queryBuilder
->fields([ ->fields([
'title', 'title',
'content', 'content',
'name',
'view', 'view',
'blocks', 'file.id',
'files.directus_files_id' 'file.description'
]) ])
->aliases('template', 'view') ->aliases('template', 'view')
->filter([ ->filter([
'type' => $type 'name' => $name
]) ])
->find(); ->find();

@ -1,6 +1,6 @@
{ {
"name": "tentakelfabrik/super-gear-directus", "name": "tentakelfabrik/super-gear-directus",
"version": "1.0.0-rc2", "version": "1.0.0-rc3",
"type": "project", "type": "project",
"license": "MIT", "license": "MIT",
"authors": [ "authors": [
@ -16,7 +16,7 @@
"erusev/parsedown": "1.7.*", "erusev/parsedown": "1.7.*",
"vlucas/phpdotenv": "5.3.*", "vlucas/phpdotenv": "5.3.*",
"jenssegers/blade": "1.4.*", "jenssegers/blade": "1.4.*",
"tentakelfabrik/pirectus": "^0.1.2", "tentakelfabrik/pirectus": "^0.1.3",
"cocur/slugify": "^4.0" "cocur/slugify": "^4.0"
}, },
"autoload": { "autoload": {

232
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "fcd79dd392240661e898bba640146723", "content-hash": "5263bc5e77eb9849e010bbef6fa46c6f",
"packages": [ "packages": [
{ {
"name": "cocur/slugify", "name": "cocur/slugify",
@ -82,34 +82,30 @@
}, },
{ {
"name": "doctrine/inflector", "name": "doctrine/inflector",
"version": "2.0.3", "version": "2.0.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/inflector.git", "url": "https://github.com/doctrine/inflector.git",
"reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210" "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/9cf661f4eb38f7c881cac67c75ea9b00bf97b210", "url": "https://api.github.com/repos/doctrine/inflector/zipball/8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89",
"reference": "9cf661f4eb38f7c881cac67c75ea9b00bf97b210", "reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2 || ^8.0" "php": "^7.2 || ^8.0"
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^7.0", "doctrine/coding-standard": "^8.2",
"phpstan/phpstan": "^0.11", "phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.11", "phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-strict-rules": "^0.11", "phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"vimeo/psalm": "^4.10"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Doctrine\\Inflector\\": "lib/Doctrine/Inflector" "Doctrine\\Inflector\\": "lib/Doctrine/Inflector"
@ -157,7 +153,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/inflector/issues", "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": [ "funding": [
{ {
@ -173,7 +169,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-05-29T15:13:26+00:00" "time": "2021-10-22T20:16:43+00:00"
}, },
{ {
"name": "erusev/parsedown", "name": "erusev/parsedown",
@ -227,16 +223,16 @@
}, },
{ {
"name": "graham-campbell/result-type", "name": "graham-campbell/result-type",
"version": "v1.0.2", "version": "v1.0.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/GrahamCampbell/Result-Type.git", "url": "https://github.com/GrahamCampbell/Result-Type.git",
"reference": "84afea85c6841deeea872f36249a206e878a5de0" "reference": "296c015dc30ec4322168c5ad3ee5cc11dae827ac"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/84afea85c6841deeea872f36249a206e878a5de0", "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/296c015dc30ec4322168c5ad3ee5cc11dae827ac",
"reference": "84afea85c6841deeea872f36249a206e878a5de0", "reference": "296c015dc30ec4322168c5ad3ee5cc11dae827ac",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -272,7 +268,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/GrahamCampbell/Result-Type/issues", "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": [ "funding": [
{ {
@ -284,28 +280,29 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-08-28T21:34:50+00:00" "time": "2021-10-17T19:48:54+00:00"
}, },
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
"version": "7.3.0", "version": "7.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/guzzle.git", "url": "https://github.com/guzzle/guzzle.git",
"reference": "7008573787b430c1c1f650e3722d9bba59967628" "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94",
"reference": "7008573787b430c1c1f650e3722d9bba59967628", "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"guzzlehttp/promises": "^1.4", "guzzlehttp/promises": "^1.5",
"guzzlehttp/psr7": "^1.7 || ^2.0", "guzzlehttp/psr7": "^1.8.3 || ^2.1",
"php": "^7.2.5 || ^8.0", "php": "^7.2.5 || ^8.0",
"psr/http-client": "^1.0" "psr/http-client": "^1.0",
"symfony/deprecation-contracts": "^2.2"
}, },
"provide": { "provide": {
"psr/http-client-implementation": "1.0" "psr/http-client-implementation": "1.0"
@ -315,7 +312,7 @@
"ext-curl": "*", "ext-curl": "*",
"php-http/client-integration-tests": "^3.0", "php-http/client-integration-tests": "^3.0",
"phpunit/phpunit": "^8.5.5 || ^9.3.5", "phpunit/phpunit": "^8.5.5 || ^9.3.5",
"psr/log": "^1.1" "psr/log": "^1.1 || ^2.0 || ^3.0"
}, },
"suggest": { "suggest": {
"ext-curl": "Required for CURL handler support", "ext-curl": "Required for CURL handler support",
@ -325,7 +322,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "7.3-dev" "dev-master": "7.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -341,19 +338,43 @@
"MIT" "MIT"
], ],
"authors": [ "authors": [
{
"name": "Graham Campbell",
"email": "hello@gjcampbell.co.uk",
"homepage": "https://github.com/GrahamCampbell"
},
{ {
"name": "Michael Dowling", "name": "Michael Dowling",
"email": "mtdowling@gmail.com", "email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling" "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", "name": "Márk Sági-Kazár",
"email": "mark.sagikazar@gmail.com", "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", "description": "Guzzle is a PHP HTTP client library",
"homepage": "http://guzzlephp.org/",
"keywords": [ "keywords": [
"client", "client",
"curl", "curl",
@ -367,7 +388,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/guzzle/issues", "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": [ "funding": [
{ {
@ -379,28 +400,24 @@
"type": "github" "type": "github"
}, },
{ {
"url": "https://github.com/alexeyshockov", "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle",
"type": "github" "type": "tidelift"
},
{
"url": "https://github.com/gmponos",
"type": "github"
} }
], ],
"time": "2021-03-23T11:33:13+00:00" "time": "2021-10-18T09:52:00+00:00"
}, },
{ {
"name": "guzzlehttp/promises", "name": "guzzlehttp/promises",
"version": "1.5.0", "version": "1.5.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/promises.git", "url": "https://github.com/guzzle/promises.git",
"reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0" "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/136a635e2b4a49b9d79e9c8fee267ffb257fdba0", "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
"reference": "136a635e2b4a49b9d79e9c8fee267ffb257fdba0", "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -455,7 +472,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/promises/issues", "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": [ "funding": [
{ {
@ -471,7 +488,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-10-07T13:05:22+00:00" "time": "2021-10-22T20:56:57+00:00"
}, },
{ {
"name": "guzzlehttp/psr7", "name": "guzzlehttp/psr7",
@ -590,16 +607,16 @@
}, },
{ {
"name": "illuminate/bus", "name": "illuminate/bus",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/bus.git", "url": "https://github.com/illuminate/bus.git",
"reference": "a222094903c473b6b0ade0b0b0e20b83ae1472b6" "reference": "be400399687b97d5558a224e970060fd5d5f2735"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/bus/zipball/a222094903c473b6b0ade0b0b0e20b83ae1472b6", "url": "https://api.github.com/repos/illuminate/bus/zipball/be400399687b97d5558a224e970060fd5d5f2735",
"reference": "a222094903c473b6b0ade0b0b0e20b83ae1472b6", "reference": "be400399687b97d5558a224e970060fd5d5f2735",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -639,20 +656,20 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "illuminate/collections",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/collections.git", "url": "https://github.com/illuminate/collections.git",
"reference": "8e6c29c49f28b90e9de0cac1c14290feb99202c5" "reference": "05f286ec5fd2dd286e8384577047efc375c8954c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/collections/zipball/8e6c29c49f28b90e9de0cac1c14290feb99202c5", "url": "https://api.github.com/repos/illuminate/collections/zipball/05f286ec5fd2dd286e8384577047efc375c8954c",
"reference": "8e6c29c49f28b90e9de0cac1c14290feb99202c5", "reference": "05f286ec5fd2dd286e8384577047efc375c8954c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -693,11 +710,11 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "illuminate/container",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/container.git", "url": "https://github.com/illuminate/container.git",
@ -748,16 +765,16 @@
}, },
{ {
"name": "illuminate/contracts", "name": "illuminate/contracts",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/contracts.git", "url": "https://github.com/illuminate/contracts.git",
"reference": "ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913" "reference": "e76f4bce73a2a1656add24bd5210ebc4b8af49c0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/contracts/zipball/ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913", "url": "https://api.github.com/repos/illuminate/contracts/zipball/e76f4bce73a2a1656add24bd5210ebc4b8af49c0",
"reference": "ab4bb4ec3b36905ccf972c84f9aaa2bdd1153913", "reference": "e76f4bce73a2a1656add24bd5210ebc4b8af49c0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -792,11 +809,11 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "illuminate/events",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/events.git", "url": "https://github.com/illuminate/events.git",
@ -851,16 +868,16 @@
}, },
{ {
"name": "illuminate/filesystem", "name": "illuminate/filesystem",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/filesystem.git", "url": "https://github.com/illuminate/filesystem.git",
"reference": "f33219e5550f8f280169e933b91a95250920de06" "reference": "a7bc30dac4e27dbeb37b026f3dbaee13bd578861"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/filesystem/zipball/f33219e5550f8f280169e933b91a95250920de06", "url": "https://api.github.com/repos/illuminate/filesystem/zipball/a7bc30dac4e27dbeb37b026f3dbaee13bd578861",
"reference": "f33219e5550f8f280169e933b91a95250920de06", "reference": "a7bc30dac4e27dbeb37b026f3dbaee13bd578861",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -909,11 +926,11 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "illuminate/macroable",
"version": "v8.62.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/macroable.git", "url": "https://github.com/illuminate/macroable.git",
@ -959,7 +976,7 @@
}, },
{ {
"name": "illuminate/pipeline", "name": "illuminate/pipeline",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/pipeline.git", "url": "https://github.com/illuminate/pipeline.git",
@ -1007,16 +1024,16 @@
}, },
{ {
"name": "illuminate/support", "name": "illuminate/support",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/support.git", "url": "https://github.com/illuminate/support.git",
"reference": "259993e2119e99be17c10486f66c5a13b7fe4a70" "reference": "1ed88eed1d179e5a27171324e57692366449eca0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/support/zipball/259993e2119e99be17c10486f66c5a13b7fe4a70", "url": "https://api.github.com/repos/illuminate/support/zipball/1ed88eed1d179e5a27171324e57692366449eca0",
"reference": "259993e2119e99be17c10486f66c5a13b7fe4a70", "reference": "1ed88eed1d179e5a27171324e57692366449eca0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1026,7 +1043,7 @@
"illuminate/collections": "^8.0", "illuminate/collections": "^8.0",
"illuminate/contracts": "^8.0", "illuminate/contracts": "^8.0",
"illuminate/macroable": "^8.0", "illuminate/macroable": "^8.0",
"nesbot/carbon": "^2.31", "nesbot/carbon": "^2.53.1",
"php": "^7.3|^8.0", "php": "^7.3|^8.0",
"voku/portable-ascii": "^1.4.8" "voku/portable-ascii": "^1.4.8"
}, },
@ -1071,20 +1088,20 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "illuminate/view",
"version": "v8.63.0", "version": "v8.70.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/view.git", "url": "https://github.com/illuminate/view.git",
"reference": "875ca9f548b17e1a225469e0b0f8bae3c9e4ff71" "reference": "5e497ed2bf3452201a992bba7552306e49b17978"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/illuminate/view/zipball/875ca9f548b17e1a225469e0b0f8bae3c9e4ff71", "url": "https://api.github.com/repos/illuminate/view/zipball/5e497ed2bf3452201a992bba7552306e49b17978",
"reference": "875ca9f548b17e1a225469e0b0f8bae3c9e4ff71", "reference": "5e497ed2bf3452201a992bba7552306e49b17978",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1125,7 +1142,7 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "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", "name": "jenssegers/blade",
@ -1238,16 +1255,16 @@
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
"version": "2.53.1", "version": "2.54.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/briannesbitt/Carbon.git", "url": "https://github.com/briannesbitt/Carbon.git",
"reference": "f4655858a784988f880c1b8c7feabbf02dfdf045" "reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/f4655858a784988f880c1b8c7feabbf02dfdf045", "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/eed83939f1aed3eee517d03a33f5ec587ac529b5",
"reference": "f4655858a784988f880c1b8c7feabbf02dfdf045", "reference": "eed83939f1aed3eee517d03a33f5ec587ac529b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1258,6 +1275,7 @@
"symfony/translation": "^3.4 || ^4.0 || ^5.0" "symfony/translation": "^3.4 || ^4.0 || ^5.0"
}, },
"require-dev": { "require-dev": {
"doctrine/dbal": "^2.0 || ^3.0",
"doctrine/orm": "^2.7", "doctrine/orm": "^2.7",
"friendsofphp/php-cs-fixer": "^3.0", "friendsofphp/php-cs-fixer": "^3.0",
"kylekatarnls/multi-tester": "^2.0", "kylekatarnls/multi-tester": "^2.0",
@ -1328,7 +1346,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-09-06T09:29:23+00:00" "time": "2021-11-01T21:22:20+00:00"
}, },
{ {
"name": "phpoption/phpoption", "name": "phpoption/phpoption",
@ -1401,20 +1419,20 @@
}, },
{ {
"name": "psr/container", "name": "psr/container",
"version": "1.1.1", "version": "1.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/php-fig/container.git", "url": "https://github.com/php-fig/container.git",
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" "reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", "reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.0" "php": ">=7.4.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -1443,9 +1461,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/php-fig/container/issues", "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", "name": "psr/http-client",
@ -2075,16 +2093,16 @@
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v5.3.9", "version": "v5.3.10",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "6e69f3551c1a3356cf6ea8d019bf039a0f8b6886" "reference": "6ef197aea2ac8b9cd63e0da7522b3771714035aa"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/6e69f3551c1a3356cf6ea8d019bf039a0f8b6886", "url": "https://api.github.com/repos/symfony/translation/zipball/6ef197aea2ac8b9cd63e0da7522b3771714035aa",
"reference": "6e69f3551c1a3356cf6ea8d019bf039a0f8b6886", "reference": "6ef197aea2ac8b9cd63e0da7522b3771714035aa",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2150,7 +2168,7 @@
"description": "Provides tools to internationalize your application", "description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/translation/tree/v5.3.9" "source": "https://github.com/symfony/translation/tree/v5.3.10"
}, },
"funding": [ "funding": [
{ {
@ -2166,7 +2184,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-08-26T08:22:53+00:00" "time": "2021-10-10T06:43:24+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
@ -2248,16 +2266,16 @@
}, },
{ {
"name": "tentakelfabrik/pirectus", "name": "tentakelfabrik/pirectus",
"version": "0.1.1", "version": "0.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/tentakelfabrik/pirectus.git", "url": "https://github.com/tentakelfabrik/pirectus.git",
"reference": "64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0" "reference": "58ed57814f1851b05aeec3ddc3717e087e07f7d8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/tentakelfabrik/pirectus/zipball/64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0", "url": "https://api.github.com/repos/tentakelfabrik/pirectus/zipball/58ed57814f1851b05aeec3ddc3717e087e07f7d8",
"reference": "64d168bb3d5e4c4d8eec3faa7cdcaba22fdd9ca0", "reference": "58ed57814f1851b05aeec3ddc3717e087e07f7d8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2282,9 +2300,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/tentakelfabrik/pirectus/issues", "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", "name": "vlucas/phpdotenv",

@ -1,12 +1,29 @@
@extends('layout') @extends('layout')
@inject('markdownHelper', 'App\Helpers\MarkdownHelper') @inject('markdownHelper', 'App\Helpers\MarkdownHelper')
@inject('snippetRepository', 'App\Repositories\SnippetRepository')
@section('content') @section('content')
<h1> <h1>
{{ $page['data']['title'] }} {{ $page['data']['title'] }}
</h1> </h1>
<div class="content"> <div class="content">
{!! $markdownHelper->parse($page['data']['content']) !!} {!! $markdownHelper->parse($page['data']['content']) !!}
</div> </div>
@foreach($snippetRepository->findByName('default')['data'] as $snippet)
<div class="snippet">
<h3>
{{ $snippet['title'] }}
</h3>
<div class="snippet__media">
<img src="{{ assetsUrl($snippet['file']['id']) }}" alt="{{ $snippet['file']['description'] }}" />
</div>
<div class="snippet__content content">
{!! $markdownHelper->parse($snippet['content']) !!}
</div>
</div>
@endforeach
@endsection @endsection

Loading…
Cancel
Save