image processor added

This commit is contained in:
HolgerHatGarKeineNode
2023-02-15 11:25:31 +01:00
parent 5b1d0886dc
commit 2949ff5cb0
22 changed files with 278 additions and 177 deletions

View File

@@ -46,8 +46,9 @@ class ImportGithubMeetups extends Command
['name' => $meetup['name']],
[
'city_id' => $city->id,
'webpage' => $meetup['url'],
'webpage' => $meetup['url'],
'created_by' => 1,
'community' => 'einundzwanzig'
]);
}

View File

@@ -82,6 +82,9 @@ class ReadAndSyncPodcastFeeds extends Command
'created_at' => Carbon::parse($item->datePublished),
]);
}
if (app()->environment('local')) {
break;
}
}
return Command::SUCCESS;

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Support\Facades\Storage;
use League\Glide\Responses\LaravelResponseFactory;
use League\Glide\ServerFactory;
class ImageController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*/
public function __invoke($path)
{
$filesystem = Storage::disk('public');
$server = ServerFactory::create([
'response' => new LaravelResponseFactory(app('request')),
'source' => $filesystem->getDriver(),
'cache' => $filesystem->getDriver(),
'cache_path_prefix' => '.cache',
'base_url' => 'img',
]);
return $server->getImageResponse($path, request()->all());
}
}

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
@@ -91,4 +92,25 @@ class Meetup extends Model implements HasMedia
{
return $this->hasMany(MeetupEvent::class);
}
protected function logoSquare(): Attribute
{
$getPath = $this->getFirstMediaPath('logo');
if ($getPath !== '') {
$path = $this->getFirstMediaPath('logo');
} else {
$path = 'fallback/einundzwanzig.png';
}
return Attribute::make(
get: fn() => url()->route('img',
[
'path' => $path,
'w' => 900,
'h' => 900,
'fit' => 'crop',
'fm' => 'webp'
]),
);
}
}

View File

@@ -27,6 +27,7 @@
"laravel/sanctum": "^3.0",
"laravel/socialite": "^5.5",
"laravel/tinker": "^2.7",
"league/glide-laravel": "^1.0",
"livewire/livewire": "^2.5",
"nova/start": "*",
"oneduo/nova-time-field": "^1.0",

235
composer.lock generated
View File

@@ -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": "1c4001e831e2129cc09124c228198ef2",
"content-hash": "7bfd9957a6ea50d4bad46bd722c049fa",
"packages": [
{
"name": "akuechler/laravel-geoly",
@@ -2787,16 +2787,16 @@
},
{
"name": "laravel/framework",
"version": "v9.51.0",
"version": "v9.52.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "b81123134349a013a738a9f7f715c6ce99d5a414"
"reference": "eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/b81123134349a013a738a9f7f715c6ce99d5a414",
"reference": "b81123134349a013a738a9f7f715c6ce99d5a414",
"url": "https://api.github.com/repos/laravel/framework/zipball/eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e",
"reference": "eb85cd9d72e5bfa54b4d0d9040786f26d6184a9e",
"shasum": ""
},
"require": {
@@ -2981,20 +2981,20 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2023-02-07T15:37:18+00:00"
"time": "2023-02-14T14:51:14+00:00"
},
{
"name": "laravel/horizon",
"version": "v5.14.1",
"version": "v5.14.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/horizon.git",
"reference": "a990617de27700df73841f6ccaff46e09ba9ec3f"
"reference": "d41a14c601766af0e2cce9486fd5dd143688c25f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/horizon/zipball/a990617de27700df73841f6ccaff46e09ba9ec3f",
"reference": "a990617de27700df73841f6ccaff46e09ba9ec3f",
"url": "https://api.github.com/repos/laravel/horizon/zipball/d41a14c601766af0e2cce9486fd5dd143688c25f",
"reference": "d41a14c601766af0e2cce9486fd5dd143688c25f",
"shasum": ""
},
"require": {
@@ -3056,9 +3056,9 @@
],
"support": {
"issues": "https://github.com/laravel/horizon/issues",
"source": "https://github.com/laravel/horizon/tree/v5.14.1"
"source": "https://github.com/laravel/horizon/tree/v5.14.2"
},
"time": "2023-02-07T14:56:05+00:00"
"time": "2023-02-10T15:40:38+00:00"
},
{
"name": "laravel/jetstream",
@@ -3900,16 +3900,16 @@
},
{
"name": "league/glide",
"version": "2.2.2",
"version": "2.2.3",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/glide.git",
"reference": "bff5b0fe2fd26b2fde2d6958715fde313887d79d"
"reference": "446b1fc9f15101db52e8ddb7bec8cb16e814b244"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/glide/zipball/bff5b0fe2fd26b2fde2d6958715fde313887d79d",
"reference": "bff5b0fe2fd26b2fde2d6958715fde313887d79d",
"url": "https://api.github.com/repos/thephpleague/glide/zipball/446b1fc9f15101db52e8ddb7bec8cb16e814b244",
"reference": "446b1fc9f15101db52e8ddb7bec8cb16e814b244",
"shasum": ""
},
"require": {
@@ -3959,9 +3959,102 @@
],
"support": {
"issues": "https://github.com/thephpleague/glide/issues",
"source": "https://github.com/thephpleague/glide/tree/2.2.2"
"source": "https://github.com/thephpleague/glide/tree/2.2.3"
},
"time": "2022-02-21T07:40:55+00:00"
"time": "2023-02-14T06:15:26+00:00"
},
{
"name": "league/glide-laravel",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/glide-laravel.git",
"reference": "b525e33e32940f3b047d6ca357131aba0e973e72"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/glide-laravel/zipball/b525e33e32940f3b047d6ca357131aba0e973e72",
"reference": "b525e33e32940f3b047d6ca357131aba0e973e72",
"shasum": ""
},
"require": {
"league/glide-symfony": "^1.0"
},
"require-dev": {
"mockery/mockery": "^0.9",
"phpunit/phpunit": "^4.0"
},
"type": "library",
"autoload": {
"psr-4": {
"League\\Glide\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jonathan Reinink",
"email": "jonathan@reinink.ca",
"homepage": "http://reinink.ca"
}
],
"description": "Glide adapter for Laravel",
"homepage": "http://glide.thephpleague.com",
"support": {
"issues": "https://github.com/thephpleague/glide-laravel/issues",
"source": "https://github.com/thephpleague/glide-laravel/tree/master"
},
"time": "2015-12-26T15:40:35+00:00"
},
{
"name": "league/glide-symfony",
"version": "1.1.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/glide-symfony.git",
"reference": "8d0b117d5335699c374288a7cd6a041b7612e198"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/glide-symfony/zipball/8d0b117d5335699c374288a7cd6a041b7612e198",
"reference": "8d0b117d5335699c374288a7cd6a041b7612e198",
"shasum": ""
},
"require": {
"league/glide": "^2.0",
"symfony/http-foundation": "^2.3|^3.0|^4.0|^5.0|^6.0"
},
"require-dev": {
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.5|^9.4"
},
"type": "library",
"autoload": {
"psr-4": {
"League\\Glide\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jonathan Reinink",
"email": "jonathan@reinink.ca",
"homepage": "http://reinink.ca"
}
],
"description": "Glide adapter for Symfony",
"homepage": "http://glide.thephpleague.com",
"support": {
"issues": "https://github.com/thephpleague/glide-symfony/issues",
"source": "https://github.com/thephpleague/glide-symfony/tree/1.1.0"
},
"time": "2021-12-01T13:25:09+00:00"
},
{
"name": "league/mime-type-detection",
@@ -13329,16 +13422,16 @@
},
{
"name": "zbateson/mail-mime-parser",
"version": "2.3.0",
"version": "2.4.0",
"source": {
"type": "git",
"url": "https://github.com/zbateson/mail-mime-parser.git",
"reference": "d59e0c5eeb1442fca94bcb3b9d3c6be66318a500"
"reference": "20b3e48eb799537683780bc8782fbbe9bc25934a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/d59e0c5eeb1442fca94bcb3b9d3c6be66318a500",
"reference": "d59e0c5eeb1442fca94bcb3b9d3c6be66318a500",
"url": "https://api.github.com/repos/zbateson/mail-mime-parser/zipball/20b3e48eb799537683780bc8782fbbe9bc25934a",
"reference": "20b3e48eb799537683780bc8782fbbe9bc25934a",
"shasum": ""
},
"require": {
@@ -13400,7 +13493,7 @@
"type": "github"
}
],
"time": "2023-01-30T19:04:55+00:00"
"time": "2023-02-14T22:58:03+00:00"
},
{
"name": "zbateson/mb-wrapper",
@@ -14263,20 +14356,20 @@
},
{
"name": "jasonmccreary/laravel-test-assertions",
"version": "v2.1.1",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/jasonmccreary/laravel-test-assertions.git",
"reference": "2547c0366f1ee9a2d58b031468b26edc63faef4e"
"reference": "7bef0bf655b67264177ecd2ca0054a53e863a4c0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jasonmccreary/laravel-test-assertions/zipball/2547c0366f1ee9a2d58b031468b26edc63faef4e",
"reference": "2547c0366f1ee9a2d58b031468b26edc63faef4e",
"url": "https://api.github.com/repos/jasonmccreary/laravel-test-assertions/zipball/7bef0bf655b67264177ecd2ca0054a53e863a4c0",
"reference": "7bef0bf655b67264177ecd2ca0054a53e863a4c0",
"shasum": ""
},
"require": {
"illuminate/testing": "^8.0|^9.0",
"illuminate/testing": "^8.0|^9.0|^10.0",
"mockery/mockery": "^1.4.2",
"php": ">=7.3|^8.0",
"phpunit/phpunit": "^9.3.3"
@@ -14307,27 +14400,26 @@
"description": "A set of helpful assertions when testing Laravel applications.",
"support": {
"issues": "https://github.com/jasonmccreary/laravel-test-assertions/issues",
"source": "https://github.com/jasonmccreary/laravel-test-assertions/tree/v2.1.1"
"source": "https://github.com/jasonmccreary/laravel-test-assertions/tree/v2.2.0"
},
"time": "2022-03-08T14:47:39+00:00"
"time": "2023-02-13T14:52:08+00:00"
},
{
"name": "laravel-lang/attributes",
"version": "v2.1.2",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/attributes.git",
"reference": "2b11c7ece66cb26cdf59746460593451484af89a"
"reference": "dc89aeb1a4e3dcb801f467d4345791e127cb5797"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/2b11c7ece66cb26cdf59746460593451484af89a",
"reference": "2b11c7ece66cb26cdf59746460593451484af89a",
"url": "https://api.github.com/repos/Laravel-Lang/attributes/zipball/dc89aeb1a4e3dcb801f467d4345791e127cb5797",
"reference": "dc89aeb1a4e3dcb801f467d4345791e127cb5797",
"shasum": ""
},
"require": {
"ext-json": "*",
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0"
"ext-json": "*"
},
"conflict": {
"laravel-lang/publisher": "<14.0.0"
@@ -14380,7 +14472,7 @@
],
"support": {
"issues": "https://github.com/Laravel-Lang/attributes/issues",
"source": "https://github.com/Laravel-Lang/attributes/tree/v2.1.2"
"source": "https://github.com/Laravel-Lang/attributes/tree/v2.2.0"
},
"funding": [
{
@@ -14388,20 +14480,20 @@
"type": "open_collective"
}
],
"time": "2023-02-05T09:34:20+00:00"
"time": "2023-02-14T17:28:03+00:00"
},
{
"name": "laravel-lang/http-statuses",
"version": "v3.2.1",
"version": "v3.2.2",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/http-statuses.git",
"reference": "31d74be0981c27c093bb80ee28e2fdec962be825"
"reference": "7184e1e906014db910e832137afbf42eaaf35d64"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/31d74be0981c27c093bb80ee28e2fdec962be825",
"reference": "31d74be0981c27c093bb80ee28e2fdec962be825",
"url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/7184e1e906014db910e832137afbf42eaaf35d64",
"reference": "7184e1e906014db910e832137afbf42eaaf35d64",
"shasum": ""
},
"require": {
@@ -14456,7 +14548,7 @@
],
"support": {
"issues": "https://github.com/Laravel-Lang/http-statuses/issues",
"source": "https://github.com/Laravel-Lang/http-statuses/tree/v3.2.1"
"source": "https://github.com/Laravel-Lang/http-statuses/tree/v3.2.2"
},
"funding": [
{
@@ -14464,20 +14556,20 @@
"type": "open_collective"
}
],
"time": "2023-02-01T07:47:32+00:00"
"time": "2023-02-15T08:19:04+00:00"
},
{
"name": "laravel-lang/lang",
"version": "12.16.0",
"version": "12.17.0",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/lang.git",
"reference": "0536e0617b3ed07d4fab04b28960d611a3709eb2"
"reference": "fc84652189915bcc9b8f44104ad1344da5d70e9f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/0536e0617b3ed07d4fab04b28960d611a3709eb2",
"reference": "0536e0617b3ed07d4fab04b28960d611a3709eb2",
"url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/fc84652189915bcc9b8f44104ad1344da5d70e9f",
"reference": "fc84652189915bcc9b8f44104ad1344da5d70e9f",
"shasum": ""
},
"require": {
@@ -14539,20 +14631,20 @@
"type": "open_collective"
}
],
"time": "2023-02-11T09:51:27+00:00"
"time": "2023-02-14T22:05:52+00:00"
},
{
"name": "laravel-lang/publisher",
"version": "v14.6.0",
"version": "v14.6.1",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/publisher.git",
"reference": "56bc9e7e2d2593ac95d5518a25085c34f8113b11"
"reference": "2ca37c783003106de3f86ed6e1c9f040d8cfc02d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/publisher/zipball/56bc9e7e2d2593ac95d5518a25085c34f8113b11",
"reference": "56bc9e7e2d2593ac95d5518a25085c34f8113b11",
"url": "https://api.github.com/repos/Laravel-Lang/publisher/zipball/2ca37c783003106de3f86ed6e1c9f040d8cfc02d",
"reference": "2ca37c783003106de3f86ed6e1c9f040d8cfc02d",
"shasum": ""
},
"require": {
@@ -14574,9 +14666,8 @@
},
"require-dev": {
"laravel-lang/json-fallback-hotfix": "^1.0",
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.4",
"orchestra/testbench": "^6.25 || ^7.22 || ^8.0",
"phpunit/phpunit": "^9.6",
"symfony/var-dumper": "^5.0 || ^6.0"
},
"suggest": {
@@ -14647,7 +14738,7 @@
"type": "open_collective"
}
],
"time": "2023-02-10T08:21:43+00:00"
"time": "2023-02-14T20:37:21+00:00"
},
{
"name": "laravel-shift/blueprint",
@@ -14749,16 +14840,16 @@
},
{
"name": "laravel/pint",
"version": "v1.4.1",
"version": "v1.5.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8"
"reference": "e0a8cef58b74662f27355be9cdea0e726bbac362"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/80ddf23a5d97825e79bb1018eebb6f3f985d4fa8",
"reference": "80ddf23a5d97825e79bb1018eebb6f3f985d4fa8",
"url": "https://api.github.com/repos/laravel/pint/zipball/e0a8cef58b74662f27355be9cdea0e726bbac362",
"reference": "e0a8cef58b74662f27355be9cdea0e726bbac362",
"shasum": ""
},
"require": {
@@ -14769,13 +14860,13 @@
"php": "^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.14",
"illuminate/view": "^9.32.0",
"friendsofphp/php-cs-fixer": "^3.14.4",
"illuminate/view": "^9.51.0",
"laravel-zero/framework": "^9.2.0",
"mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.2.0",
"nunomaduro/termwind": "^1.14.0",
"pestphp/pest": "^1.22.1"
"nunomaduro/larastan": "^2.4.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest": "^1.22.4"
},
"bin": [
"builds/pint"
@@ -14811,20 +14902,20 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2023-01-31T15:50:45+00:00"
"time": "2023-02-14T16:31:02+00:00"
},
{
"name": "laravel/sail",
"version": "v1.20.1",
"version": "v1.20.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/sail.git",
"reference": "4b85dbfa3dceeaf7227e3029707562fd60297e86"
"reference": "5ae072b182b1efbec927409e8a3ce3b1078cc42c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/sail/zipball/4b85dbfa3dceeaf7227e3029707562fd60297e86",
"reference": "4b85dbfa3dceeaf7227e3029707562fd60297e86",
"url": "https://api.github.com/repos/laravel/sail/zipball/5ae072b182b1efbec927409e8a3ce3b1078cc42c",
"reference": "5ae072b182b1efbec927409e8a3ce3b1078cc42c",
"shasum": ""
},
"require": {
@@ -14872,7 +14963,7 @@
"issues": "https://github.com/laravel/sail/issues",
"source": "https://github.com/laravel/sail"
},
"time": "2023-02-08T02:08:37+00:00"
"time": "2023-02-08T20:22:21+00:00"
},
{
"name": "mockery/mockery",

View File

@@ -4,6 +4,7 @@ namespace Database\Seeders;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Console\Commands\Database\CreateTags;
use App\Console\Commands\Database\ImportGithubMeetups;
use App\Console\Commands\Feed\ReadAndSyncPodcastFeeds;
use App\Console\Commands\OpenBooks\SyncOpenBooks;
use App\Models\BitcoinEvent;
@@ -387,13 +388,7 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
->attach($libraryItem);
Artisan::call(ReadAndSyncPodcastFeeds::class);
Artisan::call(SyncOpenBooks::class);
Meetup::create([
'city_id' => 6,
'name' => 'Einundzwanzig Hessen',
'telegram_link' => 'https://t.me/EinundzwanzigHessen',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Artisan::call(ImportGithubMeetups::class);
MeetupEvent::create([
'meetup_id' => 1,
'start' => now()
@@ -416,69 +411,6 @@ Deshalb werden Sie von mir in diesem Kurs leicht verständlich an das Thema hera
'link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
]);
Meetup::create([
'city_id' => 2,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 3,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
Meetup::create([
'city_id' => 1,
'name' => 'Einundzwanzig ' . str()->random(5),
'telegram_link' => 'https://t.me/EinundzwanzigKempten',
'created_by' => 1,
'intro' => fake()->text(80),
]);
BitcoinEvent::create([
'venue_id' => 4,
'from' => Carbon::parse('2023-09-12')

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"/app.js": "/app.js?id=766b568d1924aa83b2a1f279d2c5ab9e",
"/app.js": "/app.js?id=6148211f5802ae601d59d3dfa95d1d35",
"/app-dark.css": "/app-dark.css?id=15c72df05e2b1147fa3e4b0670cfb435",
"/app.css": "/app.css?id=4d6a1a7fe095eedc2cb2a4ce822ea8a5",
"/img/favicon.png": "/img/favicon.png?id=1542bfe8a0010dcbee710da13cce367f",

View File

@@ -765,5 +765,6 @@
"File": "Datei",
"Article already tweeted": "Artikel bereits getwittert",
"Is this a news article?": "Dieser Artikel ist ein News-Artikel",
"Are your sure?": "Bist du dir sicher?"
"Are your sure?": "Bist du dir sicher?",
"Nostr public key": ""
}

View File

@@ -762,5 +762,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -762,5 +762,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -763,5 +763,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -725,5 +725,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -737,5 +737,6 @@
"File": "",
"Article already tweeted": "",
"Is this a news article?": "",
"Are your sure?": ""
"Are your sure?": "",
"Nostr public key": ""
}

View File

@@ -53,32 +53,35 @@ Route::middleware([])
Route::get('btc-map-communities', function () {
return response()->json(\App\Models\Meetup::query()
->with([
'media',
'city.country',
])
->where('community', '=', 'einundzwanzig')
->whereHas('city',
fn($query) => $query
->whereNotNull('cities.simplified_geojson')
->whereNotNull('cities.population')
->whereNotNull('cities.population_date')
)
->when(app()->environment('production'),
fn($query) => $query->whereHas('city',
fn($query) => $query
->whereNotNull('cities.simplified_geojson')
->whereNotNull('cities.population')
->whereNotNull('cities.population_date')
))
->get()
->map(fn($meetup) => [
'id' => $meetup->slug,
'tags' => [
'type' => 'community',
'name' => $meetup->name,
'continent' => 'europe',
'icon:square' => $meetup->getFirstMediaUrl('logo'),
'contact:email' => null,
'contact:twitter' => 'https://twitter.com/'.$meetup->twitter_username,
'contact:website' => $meetup->webpage,
'tips:lightning_address' => null,
'organization' => 'einundzwanzig',
'language' => $meetup->city->country->language_codes[0],
'geo_json' => $meetup->city->simplified_geojson,
'population' => $meetup->city->population,
'population:date' => $meetup->city->population_date,
'type' => 'community',
'name' => $meetup->name,
'continent' => 'europe',
'icon:square' => $meetup->logoSquare,
//'contact:email' => null,
'contact:twitter' => 'https://twitter.com/'.$meetup->twitter_username,
'contact:website' => $meetup->webpage,
'contact:nostr' => $meetup->nostr,
//'tips:lightning_address' => null,
'organization' => 'einundzwanzig',
'language' => $meetup->city->country->language_codes[0] ?? 'de',
'geo_json' => $meetup->city->simplified_geojson,
'population' => $meetup->city->population,
'population:date' => $meetup->city->population_date,
],
])
->toArray(), 200,

View File

@@ -8,6 +8,9 @@ Route::middleware([])
->get('/', \App\Http\Livewire\Frontend\Welcome::class)
->name('welcome');
Route::get('/img/{path}', \App\Http\Controllers\ImageController::class)
->where('path', '.*')->name('img');
Route::get('auth/auth47', \App\Http\Livewire\Auth\Auth47Component::class)
->name('auth.auth47');
@@ -146,7 +149,8 @@ Route::middleware([])
->prefix('/{country:code}/library')
->group(function () {
Route::get('/library-item/form/{libraryItem?}', \App\Http\Livewire\Library\Form\LibraryItemForm::class)
->name('libraryItem.form')->middleware(['auth']);
->name('libraryItem.form')
->middleware(['auth']);
Route::get('/library-item', \App\Http\Livewire\Library\LibraryTable::class)
->name('table.libraryItems');