Stuff
This commit is contained in:
parent
3acbac1a87
commit
f849ca5326
7 changed files with 62 additions and 6 deletions
|
@ -18,6 +18,7 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/lexer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/dragonmantank/cron-expression" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/egulias/email-validator" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/erusev/parsedown" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/facade/flare-client-php" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/facade/ignition" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/facade/ignition-contracts" />
|
||||
|
|
|
@ -113,6 +113,7 @@
|
|||
<path value="$PROJECT_DIR$/vendor/aws/aws-sdk-php" />
|
||||
<path value="$PROJECT_DIR$/vendor/mtdowling/jmespath.php" />
|
||||
<path value="$PROJECT_DIR$/vendor/gumlet/php-image-resize" />
|
||||
<path value="$PROJECT_DIR$/vendor/erusev/parsedown" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpUnit">
|
||||
|
|
|
@ -28,6 +28,10 @@ class PublicController extends BaseController
|
|||
public function listGalleriesView($name) {
|
||||
$tenant = Tenant::query()->where("url", "=", $name)->firstOrFail();
|
||||
$galleries = Gallery::query()->where("tenant", "=", $tenant->id)->orderByDesc("gallery_create_time")->orderByDesc("created_at")->get();
|
||||
$parser = new \Parsedown();
|
||||
foreach ($galleries as $gallery) {
|
||||
$gallery->html = $parser->parse($gallery->description);
|
||||
}
|
||||
return view("themes.tenant.kuvia-blog.list", ["galleries" => $galleries, "tenant" => $tenant]);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,14 +9,15 @@
|
|||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.3|^8.0",
|
||||
"almasaeed2010/adminlte": "^3.0",
|
||||
"erusev/parsedown": "^1.7",
|
||||
"fideloper/proxy": "^4.4",
|
||||
"fruitcake/laravel-cors": "^2.0",
|
||||
"gumlet/php-image-resize": "1.9.*",
|
||||
"guzzlehttp/guzzle": "^7.0.1",
|
||||
"laravel/framework": "^8.12",
|
||||
"laravel/tinker": "^2.5",
|
||||
"almasaeed2010/adminlte": "^3.0",
|
||||
"league/flysystem-aws-s3-v3": "~1.0",
|
||||
"gumlet/php-image-resize": "1.9.*"
|
||||
"league/flysystem-aws-s3-v3": "~1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"facade/ignition": "^2.5",
|
||||
|
|
52
composer.lock
generated
52
composer.lock
generated
|
@ -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": "8920d6f3aab6ae8aa7942dbb536e37b6",
|
||||
"content-hash": "fdbb8e19644f726c76bfec23d2f51743",
|
||||
"packages": [
|
||||
{
|
||||
"name": "almasaeed2010/adminlte",
|
||||
|
@ -592,6 +592,56 @@
|
|||
],
|
||||
"time": "2020-12-29T14:50:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "erusev/parsedown",
|
||||
"version": "1.7.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/erusev/parsedown.git",
|
||||
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8.35"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Parsedown": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Emanuil Rusev",
|
||||
"email": "hello@erusev.com",
|
||||
"homepage": "http://erusev.com"
|
||||
}
|
||||
],
|
||||
"description": "Parser for Markdown.",
|
||||
"homepage": "http://parsedown.org",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
"parser"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/erusev/parsedown/issues",
|
||||
"source": "https://github.com/erusev/parsedown/tree/1.7.x"
|
||||
},
|
||||
"time": "2019-12-30T22:54:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "fideloper/proxy",
|
||||
"version": "4.4.1",
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
<a class="dropdown-item" href="/g/{{$gallery->url}}/upload">Upload Images</a>
|
||||
<a class="dropdown-item" href="/g/{{$gallery->url}}">Bilder</a>
|
||||
<a class="dropdown-item" href="/g/{{$gallery->url}}/edit">Bearbeiten</a>
|
||||
<a class="dropdown-item" href="#">Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="col-md-4">
|
||||
<h3>{{ $gallery->name }}</h3>
|
||||
<p>published {{ $gallery->gallery_create_time }}</p>
|
||||
<p>{{ $gallery->description }}</p>
|
||||
<p>{{ $gallery->html }}</p>
|
||||
<a href="/{{ $tenant->url }}/{{ $gallery->url }}/" class="btn btn-outline-primary">More</a>
|
||||
</div>
|
||||
<div class="col-md-8" style="text-align: center;">
|
||||
|
|
Loading…
Reference in a new issue