fix: if service img not found, use github as a source

This commit is contained in:
Andras Bacsai
2024-11-14 13:04:51 +01:00
parent b0f3f5378f
commit a77ed93695
2 changed files with 9 additions and 3 deletions

View File

@@ -91,9 +91,12 @@ class Select extends Component
{
$services = get_service_templates(true);
$services = collect($services)->map(function ($service, $key) {
$logo = data_get($service, 'logo', 'svgs/coolify.png');
return [
'name' => str($key)->headline(),
'logo' => asset(data_get($service, 'logo', 'svgs/coolify.png')),
'logo' => asset($logo),
'logo_github_url' => 'https://raw.githubusercontent.com/coollabsio/coolify/refs/heads/main/public/'.$logo,
] + (array) $service;
})->all();
$gitBasedApplications = [