repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/vendor/mail/text/footer.blade.php
resources/views/vendor/mail/text/footer.blade.php
{{ $slot }}
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/400.blade.php
resources/views/errors/400.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">400</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">Bad Request</h1> @if ($exception->getMessage()) <p class="text-base leading-7 text-red-500">{{ $exception->getMessage() }}</p> @else <p class="text-base leading-7 dark:text-neutral-400 text-black">The request could not be understood by the server due to malformed syntax. </p> @endif <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/500.blade.php
resources/views/errors/500.blade.php
@extends('layouts.base') <div class="flex items-center justify-center min-h-screen"> <div class="w-full max-w-3xl px-8"> <p class="font-mono font-semibold text-red-500 text-[200px] leading-none">500</p> <h1 class="text-3xl font-bold tracking-tight dark:text-white">Wait, this is not cool...</h1> <p class="mt-2 text-lg leading-7 dark:text-neutral-400 text-black">There has been an error with the following error message:</p> @if ($exception->getMessage() !== '') <div class="mt-6 text-sm text-red-500"> {!! Purify::clean($exception->getMessage()) !!} </div> @endif <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/503.blade.php
resources/views/errors/503.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">503</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">We are working on serious things.</h1> <p class="text-base leading-7 dark:text-neutral-400 text-black">Service Unavailable. Be right back. Thanks for your patience. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/429.blade.php
resources/views/errors/429.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">429</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">Woah, slow down there!</h1> <p class="text-base leading-7 dark:text-neutral-400 text-black">You're making too many requests. Please wait a few seconds before trying again. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/403.blade.php
resources/views/errors/403.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">403</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1> <p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/401.blade.php
resources/views/errors/401.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">401</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">You shall not pass!</h1> <p class="text-base leading-7 dark:text-neutral-400 text-black">You don't have permission to access this page. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/404.blade.php
resources/views/errors/404.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">404</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">How did you get here?</h1> <p class="text-base leading-7 dark:text-neutral-400 text-black">Sorry, we couldn't find the page you're looking for. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/402.blade.php
resources/views/errors/402.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">402</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">Payment required.</h1> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/errors/419.blade.php
resources/views/errors/419.blade.php
@extends('layouts.base') <div class="flex flex-col items-center justify-center h-full"> <div> <p class="font-mono font-semibold text-7xl dark:text-warning">419</p> <h1 class="mt-4 font-bold tracking-tight dark:text-white">This page is definitely old, not like you!</h1> <p class="text-base leading-7 dark:text-neutral-300 text-black">Sorry, we couldn't find the page you're looking for. </p> <div class="flex items-center mt-10 gap-x-2"> <a href="{{ url()->previous() }}"> <x-forms.button>Go back</x-forms.button> </a> <a href="{{ route('dashboard') }}" {{ wireNavigate() }}> <x-forms.button>Dashboard</x-forms.button> </a> <a target="_blank" class="text-xs" href="{{ config('constants.urls.contact') }}">Contact support <x-external-link /> </a> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/container-restarted.blade.php
resources/views/emails/container-restarted.blade.php
<x-emails.layout> A resource ({{ $containerName }}) has been restarted automatically on {{ $serverName }}, because it was stopped unexpectedly. @if ($containerName === 'coolify-proxy') Coolify Proxy should run on your server as you have FQDNs set up in one of your resources. If you don't want to use Coolify Proxy, please remove FQDN from your resources or set Proxy type to Custom(None). @endif </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/invitation-link.blade.php
resources/views/emails/invitation-link.blade.php
<x-emails.layout> You have been invited to "{{ $team }}" on "{{ config('app.name') }}". Please [click here]({{ $invitation_link }}) to accept the invitation. If you have any questions, please contact the team owner.<br><br> If it was not you who requested this invitation, please ignore this email. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/test.blade.php
resources/views/emails/test.blade.php
<x-emails.layout> If you are seeing this, it means that your Email settings are correct. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/backup-success-with-s3-warning.blade.php
resources/views/emails/backup-success-with-s3-warning.blade.php
<x-emails.layout> Database backup for {{ $name }} @if($database_name)(db:{{ $database_name }})@endif with frequency of {{ $frequency }} succeeded locally but failed to upload to S3. S3 Error: {{ $s3_error }} @if($s3_storage_url) Check S3 Configuration: {{ $s3_storage_url }} @endif </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/scheduled-task-success.blade.php
resources/views/emails/scheduled-task-success.blade.php
<x-emails.layout> Scheduled task ({{ $task->name }}) completed successfully with the following output: <pre> {{ $output }} </pre> Click [here]({{ $url }}) to view the task. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-force-enabled.blade.php
resources/views/emails/server-force-enabled.blade.php
<x-emails.layout> Your server ({{ $name }}) is enabled again! </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-revived.blade.php
resources/views/emails/server-revived.blade.php
<x-emails.layout> Your server ({{ $name }}) was offline for a while, but it is back online now. All automations & integrations are turned on again. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/before-trial-conversion.blade.php
resources/views/emails/before-trial-conversion.blade.php
<x-emails.layout> We would like to inform you that a {{ config('constants.limits.trial_period') }} days of trial has been added to all subscription plans. You can try out Coolify, without payment information for free. If you like it, you can upgrade to a paid plan at any time. [Click here](https://app.coolify.io/subscription/new) to start your trial. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-patches.blade.php
resources/views/emails/server-patches.blade.php
<x-emails.layout> {{ $total_updates }} package updates are available for your server {{ $name }}. ## Summary - Operating System: {{ ucfirst($osId) }} - Package Manager: {{ $package_manager }} - Total Updates: {{ $total_updates }} ## Available Updates @if ($total_updates > 0) @foreach ($updates as $update) Package: {{ $update['package'] }} ({{ $update['architecture'] }}), from version {{ $update['current_version'] }} to {{ $update['new_version'] }} at repository {{ $update['repository'] ?? 'Unknown' }} @endforeach ## Security Considerations Some of these updates may include important security patches. We recommend reviewing and applying these updates promptly. ### Critical packages that may require container/server/service restarts: @php $criticalPackages = collect($updates)->filter(function ($update) { return str_contains(strtolower($update['package']), 'docker') || str_contains(strtolower($update['package']), 'kernel') || str_contains(strtolower($update['package']), 'openssh') || str_contains(strtolower($update['package']), 'ssl'); }); @endphp @if ($criticalPackages->count() > 0) @foreach ($criticalPackages as $package) - {{ $package['package'] }}: {{ $package['current_version'] }} → {{ $package['new_version'] }} @endforeach @else No critical packages requiring container restarts detected. @endif ## Next Steps 1. Review the available updates 2. Plan maintenance window if critical packages are involved 3. Apply updates through the Coolify dashboard 4. Monitor services after updates are applied @else Your server is up to date! No packages require updating at this time. @endif --- You can manage server patches in your [Coolify Dashboard]({{ $server_url }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/scheduled-task-failed.blade.php
resources/views/emails/scheduled-task-failed.blade.php
<x-emails.layout> Scheduled task ({{ $task->name }}) was FAILED with the following error: <pre> {{ $output }} </pre> Click [here]({{ $url }}) to view the task. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/docker-cleanup-success.blade.php
resources/views/emails/docker-cleanup-success.blade.php
<x-emails.layout> Docker Cleanup on {{ $name }} succeeded with the following message: <pre> {{ $text }} </pre> </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/daily-backup.blade.php
resources/views/emails/daily-backup.blade.php
<x-emails.layout> @foreach ($databases as $database_name => $databases) @if(data_get($databases,'failed_count') > 0) <div style="color:red"> "{{ $database_name }}" backups: There were some failed backups. Please login and check the logs for more details. </div> @else "{{ $database_name }}" backups: All backups were successful. @endif @endforeach </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/backup-failed.blade.php
resources/views/emails/backup-failed.blade.php
<x-emails.layout> Database backup for {{ $name }} @if($database_name)(db:{{ $database_name }})@endif with frequency of {{ $frequency }} was FAILED. ### Reason {{ $output }} </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/trial-ended.blade.php
resources/views/emails/trial-ended.blade.php
<x-emails.layout> Your trial ended. All automations and integrations are disabled for all of your servers. Please update payment details [here]({{ $stripeCustomerPortal }}) or in [Coolify Cloud](https://app.coolify.io) to continue using our services. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/s3-connection-error.blade.php
resources/views/emails/s3-connection-error.blade.php
<x-emails.layout> Connection could not be established with one of your S3 Storage ({{ $name }}). Please fix it [here]({{ $url }}). {{ $reason }} </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/hetzner-deletion-failed.blade.php
resources/views/emails/hetzner-deletion-failed.blade.php
<x-emails.layout> Failed to delete Hetzner server #{{ $hetznerServerId }} from Hetzner Cloud. Error: <pre> {{ $errorMessage }} </pre> The server has been removed from Coolify, but may still exist in your Hetzner Cloud account. Please check your Hetzner Cloud console and manually delete the server if needed to avoid ongoing charges. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/application-deployment-failed.blade.php
resources/views/emails/application-deployment-failed.blade.php
<x-emails.layout> @if ($pull_request_id === 0) Failed to deploy a new version of {{ $name }} at [{{ $fqdn }}]({{ $fqdn }}) . @else Failed to deploy a pull request #{{ $pull_request_id }} of {{ $name }} at [{{ $fqdn }}]({{ $fqdn }}). @endif [View Deployment Logs]({{ $deployment_url }}) </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/traefik-version-outdated.blade.php
resources/views/emails/traefik-version-outdated.blade.php
<x-emails.layout> {{ $count }} server(s) are running outdated Traefik proxy. Update recommended for security and features. ## Affected Servers @foreach ($servers as $server) @php $serverName = data_get($server, 'name', 'Unknown Server'); $serverUrl = data_get($server, 'url', '#'); $info = data_get($server, 'outdatedInfo', []); $current = data_get($info, 'current', 'unknown'); $latest = data_get($info, 'latest', 'unknown'); $isPatch = (data_get($info, 'type', 'patch_update') === 'patch_update'); $hasNewerBranch = isset($info['newer_branch_target']); $hasUpgrades = $hasUpgrades ?? false; if (!$isPatch || $hasNewerBranch) { $hasUpgrades = true; } // Add 'v' prefix for display $current = str_starts_with($current, 'v') ? $current : "v{$current}"; $latest = str_starts_with($latest, 'v') ? $latest : "v{$latest}"; // For minor upgrades, use the upgrade_target (e.g., "v3.6") if (!$isPatch && data_get($info, 'upgrade_target')) { $upgradeTarget = data_get($info, 'upgrade_target'); $upgradeTarget = str_starts_with($upgradeTarget, 'v') ? $upgradeTarget : "v{$upgradeTarget}"; } else { // For patch updates, show the full version $upgradeTarget = $latest; } // Get newer branch info if available if ($hasNewerBranch) { $newerBranchTarget = data_get($info, 'newer_branch_target', 'unknown'); $newerBranchLatest = data_get($info, 'newer_branch_latest', 'unknown'); $newerBranchLatest = str_starts_with($newerBranchLatest, 'v') ? $newerBranchLatest : "v{$newerBranchLatest}"; } @endphp @if ($isPatch && $hasNewerBranch) - [**{{ $serverName }}**]({{ $serverUrl }}): {{ $current }} → {{ $upgradeTarget }} (patch update available) | Also available: {{ $newerBranchTarget }} (latest patch: {{ $newerBranchLatest }}) - new minor version @elseif ($isPatch) - [**{{ $serverName }}**]({{ $serverUrl }}): {{ $current }} → {{ $upgradeTarget }} (patch update available) @else - [**{{ $serverName }}**]({{ $serverUrl }}): {{ $current }} (latest patch: {{ $latest }}) → {{ $upgradeTarget }} (new minor version available) @endif @endforeach ## Recommendation It is recommended to test the new Traefik version before switching it in production environments. You can update your proxy configuration by clicking on any server name above. @if ($hasUpgrades ?? false) **Important for minor version upgrades:** Before upgrading to a new minor version, please read the [Traefik changelog](https://github.com/traefik/traefik/releases) to understand breaking changes and new features. @endif ## Next Steps 1. Review the [Traefik release notes](https://github.com/traefik/traefik/releases) for changes 2. Test the new version in a non-production environment 3. Update your proxy configuration when ready 4. Monitor services after the update --- Click on any server name above to manage its proxy settings. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/reset-password.blade.php
resources/views/emails/reset-password.blade.php
<x-emails.layout> A password reset has been requested for this email address. Click [here]({{ $url }}) to reset your password. This link will expire in {{ $count }} minutes. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/trial-ends-soon.blade.php
resources/views/emails/trial-ends-soon.blade.php
<x-emails.layout> Your trial ends soon. Please update payment details [here]({{ $stripeCustomerPortal }}), Your servers & deployed resources will be untouched, but you won't be able to deploy new resources and lose all automations and integrations. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/application-deployment-success.blade.php
resources/views/emails/application-deployment-success.blade.php
<x-emails.layout> @if ($pull_request_id === 0) A new version of {{ $name }} is available at [{{ $fqdn }}]({{ $fqdn }}) . @else Pull request #{{ $pull_request_id }} of {{ $name }} deployed successfully [{{ $fqdn }}]({{ $fqdn }}). @endif [View Deployment Logs]({{ $deployment_url }}) </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/subscription-invoice-failed.blade.php
resources/views/emails/subscription-invoice-failed.blade.php
<x-emails.layout> Your last invoice has failed to be paid for Coolify Cloud. Please update payment details [here]({{ $stripeCustomerPortal }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/backup-success.blade.php
resources/views/emails/backup-success.blade.php
<x-emails.layout> Database backup for {{ $name }} @if($database_name)(db:{{ $database_name }})@endif with frequency of {{ $frequency }} was successful. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/email-verification.blade.php
resources/views/emails/email-verification.blade.php
<x-emails.layout> Verify your email [here]({{ $url }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/email-change-verification.blade.php
resources/views/emails/email-change-verification.blade.php
<x-emails.layout> You have requested to change your email address to: {{ $newEmail }} Please use the following verification code to confirm this change: Verification Code: {{ $verificationCode }} This code is valid for {{ $expiryMinutes }} minutes. If you did not request this change, please ignore this email and your email address will remain unchanged. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/updates.blade.php
resources/views/emails/updates.blade.php
<x-emails.layout> If you do not like to receive these emails, you can unsubscribe [here]({{ $unsubscribeUrl }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/help.blade.php
resources/views/emails/help.blade.php
{{ $description }} {{ Illuminate\Mail\Markdown::parse('---') }} {{-- {{ Illuminate\Mail\Markdown::parse($debug) }} --}}
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-patches-error.blade.php
resources/views/emails/server-patches-error.blade.php
<x-emails.layout> Failed to check for package updates on your server {{ $name }}. ## Error Details - Operating System: {{ ucfirst($osId) }} - Package Manager: {{ $package_manager }} - Error: {{ $error }} --- You can manage your server and view more details in your [Coolify Dashboard]({{ $server_url }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/ssl-certificate-renewed.blade.php
resources/views/emails/ssl-certificate-renewed.blade.php
<x-emails.layout> <h2>SSL Certificates Renewed</h2> <p>SSL certificates have been renewed for the following resources:</p> <ul> @foreach($resources as $resource) <li>{{ $resource->name }}</li> @endforeach </ul> <div style="margin: 20px 0; padding: 15px; background-color: #fff3cd; border: 1px solid #ffeeba; border-radius: 4px;"> <strong>⚠️ Action Required:</strong> These resources need to be redeployed manually for the new SSL certificates to take effect. Please do this in the next few days to ensure your database connections remain accessible. </div> <p>The old SSL certificates will remain valid for approximately 14 more days, as we renew certificates 14 days before their expiration.</p> @if(isset($urls) && count($urls) > 0) <div style="margin-top: 20px;"> <p>You can redeploy these resources here:</p> <ul> @foreach($urls as $name => $url) <li><a href="{{ $url }}">{{ $name }}</a></li> @endforeach </ul> </div> @endif </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/docker-cleanup-failed.blade.php
resources/views/emails/docker-cleanup-failed.blade.php
<x-emails.layout> Docker Cleanup on {{ $name }} FAILED with the following error: <pre> {{ $text }} </pre> </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/container-stopped.blade.php
resources/views/emails/container-stopped.blade.php
<x-emails.layout> A resource ({{ $containerName }}) has been stopped unexpectedly on {{ $serverName }}. @if ($url) Please check what is going on [here]({{ $url }}). @endif </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/high-disk-usage.blade.php
resources/views/emails/high-disk-usage.blade.php
<x-emails.layout> Your server ({{ $name }}) has high disk usage ({{ $disk_usage }}% used). Threshold is {{ $threshold }}%. Please cleanup your disk to prevent data-loss. Here are some [tips](https://coolify.io/docs/knowledge-base/server/automated-cleanup). (You can change the threshold in the Server Settings menu.) </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-force-disabled.blade.php
resources/views/emails/server-force-disabled.blade.php
<x-emails.layout> Your server ({{ $name }}) disabled because it is not paid! All automations and integrations are stopped. Please update your subscription to enable the server again [here](https://app.coolify.io/subscriptions). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/application-status-changes.blade.php
resources/views/emails/application-status-changes.blade.php
<x-emails.layout> {{ $name }} has been stopped. If it was your intention to stop this application, you can ignore this email. If not, [check what is going on]({{ $application_url }}). </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/emails/server-lost-connection.blade.php
resources/views/emails/server-lost-connection.blade.php
<x-emails.layout> Coolify cannot connect to your server ({{ $name }}). Please check your server and make sure it is running. All automations & integrations are turned off! IMPORTANT: We automatically try to revive your server and turn on all automations & integrations. If you have any questions, please contact us. </x-emails.layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/source/all.blade.php
resources/views/source/all.blade.php
<x-layout> <x-slot:title> Sources | Coolify </x-slot> <div class="flex items-center gap-2"> <h1>Sources</h1> @can('createAnyResource') <x-modal-input buttonTitle="+ Add" title="New GitHub App" :closeOutside="false"> <livewire:source.github.create /> </x-modal-input> @endcan </div> <div class="subtitle">Git sources for your applications.</div> <div class="grid gap-4 lg:grid-cols-2 -mt-1"> @forelse ($sources as $source) @if ($source->getMorphClass() === 'App\Models\GithubApp') <a class="flex gap-2 text-center hover:no-underline coolbox group" {{ wireNavigate() }} href="{{ route('source.github.show', ['github_app_uuid' => data_get($source, 'uuid')]) }}"> {{-- <x-git-icon class="dark:text-white w-8 h-8 mt-1" git="{{ $source->getMorphClass() }}" /> --}} <div class="text-left dark:group-hover:text-white flex flex-col justify-center mx-6"> <div class="box-title">{{ $source->name }}</div> @if (is_null($source->app_id)) <span class="box-description text-error! ">Configuration is not finished.</span> @else @if ($source->organization) <span class="box-description">Organization: {{ $source->organization }}</span> @endif @endif </div> </a> @endif @empty <div> <div>No sources found.</div> </div> @endforelse </div> </x-layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/source/github/show.blade.php
resources/views/source/github/show.blade.php
<x-layout> <livewire:source.github.change :github_app="$github_app" :name="$name" :ipv4="$ipv4" :ipv6="$ipv6" :fqdn="$fqdn" /> </x-layout>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/upgrade-progress.blade.php
resources/views/components/upgrade-progress.blade.php
@props(['step' => 0]) {{-- Step Mapping (Backend → UI): Backend steps 1-2 (config download, env update) → UI Step 1: Preparing Backend step 3 (pulling images) → UI Step 2: Helper + UI Step 3: Image Backend steps 4-5 (stop/start containers) → UI Step 4: Restart Backend step 6 (complete) → mapped in JS mapStepToUI() in upgrade.blade.php The currentStep variable is inherited from parent Alpine component (upgradeModal). --}} <div class="w-full" x-data="{ activeStep: {{ $step }} }" x-effect="activeStep = $el.closest('[x-data]')?.__x?.$data?.currentStep ?? {{ $step }}"> <div class="flex items-center justify-between"> {{-- Step 1: Preparing --}} <div class="flex items-center flex-1"> <div class="flex flex-col items-center"> <div class="flex items-center justify-center size-8 rounded-full border-2 transition-all duration-300" :class="{ 'bg-success border-success': currentStep > 1, 'bg-black/20 border-black dark:bg-warning/20 dark:border-warning': currentStep === 1, 'border-neutral-400 dark:border-coolgray-300': currentStep < 1 }"> <template x-if="currentStep > 1"> <svg class="size-4 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /> </svg> </template> <template x-if="currentStep === 1"> <svg class="size-4 text-black dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> </template> <template x-if="currentStep < 1"> <span class="text-xs font-medium text-neutral-500 dark:text-neutral-400">1</span> </template> </div> <span class="mt-1.5 text-xs font-medium transition-colors duration-300" :class="{ 'text-success': currentStep > 1, 'text-black dark:text-warning': currentStep === 1, 'text-neutral-500 dark:text-neutral-400': currentStep < 1 }">Preparing</span> </div> <div class="flex-1 h-0.5 mx-2 transition-all duration-300" :class="currentStep > 1 ? 'bg-success' : 'bg-neutral-300 dark:bg-coolgray-300'"></div> </div> {{-- Step 2: Helper --}} <div class="flex items-center flex-1"> <div class="flex flex-col items-center"> <div class="flex items-center justify-center size-8 rounded-full border-2 transition-all duration-300" :class="{ 'bg-success border-success': currentStep > 2, 'bg-black/20 border-black dark:bg-warning/20 dark:border-warning': currentStep === 2, 'border-neutral-400 dark:border-coolgray-300': currentStep < 2 }"> <template x-if="currentStep > 2"> <svg class="size-4 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /> </svg> </template> <template x-if="currentStep === 2"> <svg class="size-4 text-black dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> </template> <template x-if="currentStep < 2"> <span class="text-xs font-medium text-neutral-500 dark:text-neutral-400">2</span> </template> </div> <span class="mt-1.5 text-xs font-medium transition-colors duration-300" :class="{ 'text-success': currentStep > 2, 'text-black dark:text-warning': currentStep === 2, 'text-neutral-500 dark:text-neutral-400': currentStep < 2 }">Helper</span> </div> <div class="flex-1 h-0.5 mx-2 transition-all duration-300" :class="currentStep > 2 ? 'bg-success' : 'bg-neutral-300 dark:bg-coolgray-300'"></div> </div> {{-- Step 3: Image --}} <div class="flex items-center flex-1"> <div class="flex flex-col items-center"> <div class="flex items-center justify-center size-8 rounded-full border-2 transition-all duration-300" :class="{ 'bg-success border-success': currentStep > 3, 'bg-black/20 border-black dark:bg-warning/20 dark:border-warning': currentStep === 3, 'border-neutral-400 dark:border-coolgray-300': currentStep < 3 }"> <template x-if="currentStep > 3"> <svg class="size-4 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /> </svg> </template> <template x-if="currentStep === 3"> <svg class="size-4 text-black dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> </template> <template x-if="currentStep < 3"> <span class="text-xs font-medium text-neutral-500 dark:text-neutral-400">3</span> </template> </div> <span class="mt-1.5 text-xs font-medium transition-colors duration-300" :class="{ 'text-success': currentStep > 3, 'text-black dark:text-warning': currentStep === 3, 'text-neutral-500 dark:text-neutral-400': currentStep < 3 }">Image</span> </div> <div class="flex-1 h-0.5 mx-2 transition-all duration-300" :class="currentStep > 3 ? 'bg-success' : 'bg-neutral-300 dark:bg-coolgray-300'"></div> </div> {{-- Step 4: Restart --}} <div class="flex items-center"> <div class="flex flex-col items-center"> <div class="flex items-center justify-center size-8 rounded-full border-2 transition-all duration-300" :class="{ 'bg-success border-success': currentStep > 4, 'bg-black/20 border-black dark:bg-warning/20 dark:border-warning': currentStep === 4, 'border-neutral-400 dark:border-coolgray-300': currentStep < 4 }"> <template x-if="currentStep > 4"> <svg class="size-4 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /> </svg> </template> <template x-if="currentStep === 4"> <svg class="size-4 text-black dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> </template> <template x-if="currentStep < 4"> <span class="text-xs font-medium text-neutral-500 dark:text-neutral-400">4</span> </template> </div> <span class="mt-1.5 text-xs font-medium transition-colors duration-300" :class="{ 'text-success': currentStep > 4, 'text-black dark:text-warning': currentStep === 4, 'text-neutral-500 dark:text-neutral-400': currentStep < 4 }">Restart</span> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/navbar.blade.php
resources/views/components/navbar.blade.php
<nav class="flex flex-col flex-1 px-2 bg-white border-r dark:border-coolgray-200 border-neutral-300 dark:bg-base" x-data="{ switchWidth() { if (this.full === 'full') { localStorage.setItem('pageWidth', 'center'); } else { localStorage.setItem('pageWidth', 'full'); } window.location.reload(); }, setZoom(zoom) { localStorage.setItem('zoom', zoom); window.location.reload(); }, init() { this.full = localStorage.getItem('pageWidth'); this.zoom = localStorage.getItem('zoom'); window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => { const userSettings = localStorage.getItem('theme'); if (userSettings !== 'system') { return; } if (e.matches) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } }); this.queryTheme(); this.checkZoom(); }, setTheme(type) { this.theme = type; localStorage.setItem('theme', type); this.queryTheme(); }, queryTheme() { const darkModePreference = window.matchMedia('(prefers-color-scheme: dark)').matches; const userSettings = localStorage.getItem('theme') || 'dark'; localStorage.setItem('theme', userSettings); if (userSettings === 'dark') { document.documentElement.classList.add('dark'); this.theme = 'dark'; } else if (userSettings === 'light') { document.documentElement.classList.remove('dark'); this.theme = 'light'; } else if (darkModePreference) { this.theme = 'system'; document.documentElement.classList.add('dark'); } else if (!darkModePreference) { this.theme = 'system'; document.documentElement.classList.remove('dark'); } }, checkZoom() { if (this.zoom === null) { this.setZoom(100); } if (this.zoom === '90') { const style = document.createElement('style'); style.textContent = ` html { font-size: 93.75%; } :root { --vh: 1vh; } @media (min-width: 1024px) { html { font-size: 87.5%; } } `; document.head.appendChild(style); } } }"> <div class="flex lg:pt-6 pt-4 pb-4 pl-2"> <div class="flex flex-col w-full"> <a href="/" {{ wireNavigate() }} class="text-2xl font-bold tracking-wide dark:text-white hover:opacity-80 transition-opacity">Coolify</a> <x-version /> </div> <div> <!-- Search button that triggers global search modal --> <button @click="$dispatch('open-global-search')" type="button" title="Search (Press / or ⌘K)" class="flex items-center gap-1.5 px-2.5 py-1.5 bg-neutral-100 dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-200 rounded-md hover:bg-neutral-200 dark:hover:bg-coolgray-200 transition-colors"> <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 text-neutral-500 dark:text-neutral-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> </svg> <kbd class="px-1 py-0.5 text-xs font-semibold text-neutral-500 dark:text-neutral-400 bg-neutral-200 dark:bg-coolgray-200 rounded">/</kbd> </button> </div> <livewire:settings-dropdown /> </div> <div class="px-2 pt-2 pb-7"> <livewire:switch-team /> </div> <ul role="list" class="flex flex-col flex-1 gap-y-7"> <li class="flex-1 overflow-x-hidden"> <ul role="list" class="flex flex-col h-full space-y-1.5"> @if (isSubscribed() || !isCloud()) <li> <a title="Dashboard" href="/" {{ wireNavigate() }} class="{{ request()->is('/') ? 'menu-item-active menu-item' : 'menu-item' }}"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" /> </svg> Dashboard </a> </li> <li> <a title="Projects" {{ wireNavigate() }} class="{{ request()->is('project/*') || request()->is('projects') ? 'menu-item menu-item-active' : 'menu-item' }}" href="/projects"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 4l-8 4l8 4l8 -4l-8 -4" /> <path d="M4 12l8 4l8 -4" /> <path d="M4 16l8 4l8 -4" /> </svg> Projects </a> </li> <li> <a title="Servers" {{ wireNavigate() }} class="{{ request()->is('server/*') || request()->is('servers') ? 'menu-item menu-item-active' : 'menu-item' }}" href="/servers"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z" /> <path d="M15 20h-9a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3h12" /> <path d="M7 8v.01" /> <path d="M7 16v.01" /> <path d="M20 15l-2 3h3l-2 3" /> </svg> Servers </a> </li> <li> <a title="Sources" {{ wireNavigate() }} class="{{ request()->is('source*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('source.all') }}"> <svg class="icon" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="m6.793 1.207l.353.354l-.353-.354ZM1.207 6.793l-.353-.354l.353.354Zm0 1.414l.354-.353l-.354.353Zm5.586 5.586l-.354.353l.354-.353Zm1.414 0l-.353-.354l.353.354Zm5.586-5.586l.353.354l-.353-.354Zm0-1.414l-.354.353l.354-.353ZM8.207 1.207l.354-.353l-.354.353ZM6.44.854L.854 6.439l.707.707l5.585-5.585L6.44.854ZM.854 8.56l5.585 5.585l.707-.707l-5.585-5.585l-.707.707Zm7.707 5.585l5.585-5.585l-.707-.707l-5.585 5.585l.707.707Zm5.585-7.707L8.561.854l-.707.707l5.585 5.585l.707-.707Zm0 2.122a1.5 1.5 0 0 0 0-2.122l-.707.707a.5.5 0 0 1 0 .708l.707.707ZM6.44 14.146a1.5 1.5 0 0 0 2.122 0l-.707-.707a.5.5 0 0 1-.708 0l-.707.707ZM.854 6.44a1.5 1.5 0 0 0 0 2.122l.707-.707a.5.5 0 0 1 0-.708L.854 6.44Zm6.292-4.878a.5.5 0 0 1 .708 0L8.56.854a1.5 1.5 0 0 0-2.122 0l.707.707Zm-2 1.293l1 1l.708-.708l-1-1l-.708.708ZM7.5 5a.5.5 0 0 1-.5-.5H6A1.5 1.5 0 0 0 7.5 6V5Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 9 4.5H8ZM7.5 4a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 7.5 3v1Zm0-1A1.5 1.5 0 0 0 6 4.5h1a.5.5 0 0 1 .5-.5V3Zm.646 2.854l1.5 1.5l.707-.708l-1.5-1.5l-.707.708ZM10.5 8a.5.5 0 0 1-.5-.5H9A1.5 1.5 0 0 0 10.5 9V8Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 12 7.5h-1Zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 10.5 6v1Zm0-1A1.5 1.5 0 0 0 9 7.5h1a.5.5 0 0 1 .5-.5V6ZM7 5.5v4h1v-4H7Zm.5 5.5a.5.5 0 0 1-.5-.5H6A1.5 1.5 0 0 0 7.5 12v-1Zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 9 10.5H8Zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 7.5 9v1Zm0-1A1.5 1.5 0 0 0 6 10.5h1a.5.5 0 0 1 .5-.5V9Z" /> </svg> Sources </a> </li> <li> <a title="Destinations" {{ wireNavigate() }} class="{{ request()->is('destination*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('destination.index') }}"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 4L3 8v12l6-3l6 3l6-4V4l-6 3l-6-3zm-2 8.001V12m4 .001V12m3-2l2 2m2 2l-2-2m0 0l2-2m-2 2l-2 2" /> </svg> Destinations </a> </li> <li> <a title="S3 Storages" {{ wireNavigate() }} class="{{ request()->is('storages*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('storage.index') }}"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M4 6a8 3 0 1 0 16 0A8 3 0 1 0 4 6" /> <path d="M4 6v6a8 3 0 0 0 16 0V6" /> <path d="M4 12v6a8 3 0 0 0 16 0v-6" /> </g> </svg> S3 Storages </a> </li> <li> <a title="Shared variables" {{ wireNavigate() }} class="{{ request()->is('shared-variables*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('shared-variables.index') }}"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M5 4C2.5 9 2.5 14 5 20M19 4c2.5 5 2.5 10 0 16M9 9h1c1 0 1 1 2.016 3.527C13 15 13 16 14 16h1" /> <path d="M8 16c1.5 0 3-2 4-3.5S14.5 9 16 9" /> </g> </svg> Shared Variables </a> </li> <li> <a title="Notifications" {{ wireNavigate() }} class="{{ request()->is('notifications*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('notifications.email') }}"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3H4a4 4 0 0 0 2-3v-3a7 7 0 0 1 4-6M9 17v1a3 3 0 0 0 6 0v-1" /> </svg> Notifications </a> </li> <li> <a title="Keys & Tokens" {{ wireNavigate() }} class="{{ request()->is('security*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('security.private-key.index') }}"> <svg class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1-4.069 0l-.301-.301l-6.558 6.558a2 2 0 0 1-1.239.578L5.172 21H4a1 1 0 0 1-.993-.883L3 20v-1.172a2 2 0 0 1 .467-1.284l.119-.13L4 17h2v-2h2v-2l2.144-2.144l-.301-.301a2.877 2.877 0 0 1 0-4.069l2.643-2.643a2.877 2.877 0 0 1 4.069 0zM15 9h.01" /> </svg> Keys & Tokens </a> </li> <li> <a title="Tags" {{ wireNavigate() }} class="{{ request()->is('tags*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('tags.show') }}"> <svg class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M3 8v4.172a2 2 0 0 0 .586 1.414l5.71 5.71a2.41 2.41 0 0 0 3.408 0l3.592-3.592a2.41 2.41 0 0 0 0-3.408l-5.71-5.71A2 2 0 0 0 9.172 6H5a2 2 0 0 0-2 2" /> <path d="m18 19l1.592-1.592a4.82 4.82 0 0 0 0-6.816L15 6m-8 4h-.01" /> </g> </svg> Tags </a> </li> @can('canAccessTerminal') <li> <a title="Terminal" class="{{ request()->is('terminal*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('terminal') }}"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M5 7l5 5l-5 5" /> <path d="M12 19l7 0" /> </svg> Terminal </a> </li> @endcan <li> <a title="Profile" {{ wireNavigate() }} class="{{ request()->is('profile*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('profile') }}"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /> <path d="M12 10m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855" /> </svg> Profile </a> </li> <li> <a title="Teams" {{ wireNavigate() }} class="{{ request()->is('team*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('team.index') }}"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M10 13a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M8 21v-1a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v1" /> <path d="M15 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M17 10h2a2 2 0 0 1 2 2v1" /> <path d="M5 5a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M3 13v-1a2 2 0 0 1 2 -2h2" /> </svg> Teams </a> </li> @if (isCloud() && auth()->user()->isAdmin()) <li> <a title="Subscription" {{ wireNavigate() }} class="{{ request()->is('subscription*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('subscription.show') }}"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm0 2h18M7 15h.01M11 15h2" /> </svg> Subscription </a> </li> @endif @if (isInstanceAdmin()) <li> <a title="Settings" {{ wireNavigate() }} class="{{ request()->is('settings*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="/settings"> <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" /> <path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" /> </svg> Settings </a> </li> @endif @if (isCloud() || isDev()) @if (isInstanceAdmin() || session('impersonating')) <li> <a title="Admin" class="menu-item" href="/admin" {{ wireNavigate() }}> <svg class="text-pink-500 icon" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M177.62 159.6a52 52 0 0 1-34 34a12.2 12.2 0 0 1-3.6.55a12 12 0 0 1-3.6-23.45a28 28 0 0 0 18.32-18.32a12 12 0 0 1 22.9 7.2ZM220 144a92 92 0 0 1-184 0c0-28.81 11.27-58.18 33.48-87.28a12 12 0 0 1 17.9-1.33l19.69 19.11L127 19.89a12 12 0 0 1 18.94-5.12C168.2 33.25 220 82.85 220 144m-24 0c0-41.71-30.61-78.39-52.52-99.29l-20.21 55.4a12 12 0 0 1-19.63 4.5L80.71 82.36C67 103.38 60 124.06 60 144a68 68 0 0 0 136 0" /> </svg> Admin </a> </li> @endif @endif <div class="flex-1"></div> @if (isInstanceAdmin() && !isCloud()) @persist('upgrade') <li> <livewire:upgrade /> </li> @endpersist @endif {{-- <li> <a title="Onboarding" class="{{ request()->is('onboarding*') ? 'menu-item-active menu-item' : 'menu-item' }}" href="{{ route('onboarding') }}"> <svg class="icon" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M224 128a8 8 0 0 1-8 8h-88a8 8 0 0 1 0-16h88a8 8 0 0 1 8 8m-96-56h88a8 8 0 0 0 0-16h-88a8 8 0 0 0 0 16m88 112h-88a8 8 0 0 0 0 16h88a8 8 0 0 0 0-16M82.34 42.34L56 68.69L45.66 58.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32 0l32-32a8 8 0 0 0-11.32-11.32m0 64L56 132.69l-10.34-10.35a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32 0l32-32a8 8 0 0 0-11.32-11.32m0 64L56 196.69l-10.34-10.35a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32 0l32-32a8 8 0 0 0-11.32-11.32" /> </svg> Onboarding </a> </li> --}} <li> <a title="Sponsor us" class="menu-item" href="https://coolify.io/sponsorships" target="_blank"> <svg class="text-pink-500 icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M19.5 12.572L12 20l-7.5-7.428A5 5 0 1 1 12 6.006a5 5 0 1 1 7.5 6.572" /> <path d="M12 6L8.707 9.293a1 1 0 0 0 0 1.414l.543.543c.69.69 1.81.69 2.5 0l1-1a3.182 3.182 0 0 1 4.5 0l2.25 2.25m-7 3l2 2M15 13l2 2" /> </g> </svg> Sponsor us </a> </li> @endif @if (!isSubscribed() && isCloud() && auth()->user()->teams()->get()->count() > 1) <livewire:navbar-delete-team /> @endif <li> <x-modal-input title="How can we help?"> <x-slot:content> <div title="Send us feedback or get help!" class="cursor-pointer menu-item" wire:click="help"> <svg class="icon" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88" /> </svg> Feedback </div> </x-slot:content> <livewire:help /> </x-modal-input> </li> <li> <form action="/logout" method="POST"> @csrf <button title="Logout" type="submit" class="gap-2 mb-6 menu-item"> <svg class="icon mr-1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.985 9.985 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.985 9.985 0 0 1 12 22m7-6v-3h-8v-2h8V8l5 4z" /> </svg> Logout </button> </form> </li> </ul> </li> </ul> </nav>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/confirm-modal.blade.php
resources/views/components/confirm-modal.blade.php
<script> document.addEventListener('alpine:init', () => { Alpine.data('confirmModal', () => ({ open: false, confirmAction: null, message: 'Are you sure?', toggleConfirmModal(customMessage, confirmAction) { this.confirmAction = confirmAction this.message = customMessage this.open = !this.open }, confirmed() { this.open = false this.$dispatch(this.confirmAction) } })) }) </script> <div x-cloak x-show="open" x-transition.opacity class="fixed inset-0 bg-slate-900/75"></div> <div x-cloak x-show="open" x-transition class="fixed inset-0 z-50 flex pt-10"> <div @click.away="open = false" class="w-screen h-20 max-w-xl mx-auto bg-black rounded-lg"> <div class="flex flex-col items-center justify-center h-full"> <div class="pb-5 dark:text-white" x-text="message"></div> <div> <x-forms.button x-on:click='confirmed()'>Confirm</x-forms.button> <x-forms.button x-on:click="open = false">Cancel</x-forms.button> </div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/popup-small.blade.php
resources/views/components/popup-small.blade.php
@props(['title' => 'Default title', 'description' => 'Default Description', 'buttonText' => 'Default Button Text']) <div x-data="{ bannerVisible: true, bannerVisibleAfter: 100 }" x-show="bannerVisible" x-transition:enter="transition ease-out duration-100" x-transition:enter-start="translate-y-full" x-transition:enter-end="translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="translate-y-0" x-transition:leave-end="translate-y-full" x-init="setTimeout(() => { bannerVisible = true }, bannerVisibleAfter);" class="fixed bottom-0 right-0 h-auto duration-300 ease-out px-5 pb-5 max-w-[46rem] z-999" x-cloak> <div class="flex flex-row items-center justify-between w-full h-full max-w-4xl p-6 mx-auto bg-white border shadow-lg lg:border-t dark:border-coolgray-300 dark:bg-coolgray-100 border-neutral-200 dark:hover:bg-coolgray-100 lg:p-8 sm:rounded-sm"> <div class="flex flex-col items-start h-full pb-0 text-xs lg:items-center lg:flex-row lg:pr-6 lg:space-x-5 dark:text-neutral-300 "> @if (isset($icon)) {{ $icon }} @endif <div class="pt-0"> <h4 class="w-full mb-1 text-base font-bold leading-none -translate-y-1 text-neutral-900 dark:text-white"> {{ $title }} </h4> <div>{{ $description }}</div> </div> </div> <button @click="bannerVisible=false" class="pl-6 lg:pl-0"> <svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-full h-full"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/boarding-step.blade.php
resources/views/components/boarding-step.blade.php
<div class="w-full max-w-4xl"> <div class=" rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 overflow-hidden"> <div class="p-8 lg:p-12"> <h1 class="text-3xl font-bold lg:text-4xl mb-4">{{ $title }}</h1> @isset($question) <div class="text-base lg:text-lg dark:text-neutral-400 mb-8"> {{ $question }} </div> @endisset @if ($actions) <div class="flex flex-col gap-4"> {{ $actions }} </div> @endif </div> @isset($explanation) <div class=" border-t border-neutral-200 dark:border-coolgray-300 p-8 lg:p-12 "> <h3 class="text-sm font-bold uppercase tracking-wide mb-4 dark:text-neutral-400"> Technical Details </h3> <div class="space-y-3 text-sm dark:text-neutral-400"> {{ $explanation }} </div> </div> @endisset </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/layout.blade.php
resources/views/components/layout.blade.php
@extends('layouts.app')
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/environment-variable-warning.blade.php
resources/views/components/environment-variable-warning.blade.php
@props(['problematicVariables' => []]) <template x-data="{ problematicVars: @js($problematicVariables), get showWarning() { const currentKey = $wire.key; const currentValue = $wire.value; const isBuildtime = $wire.is_buildtime; if (!isBuildtime || !currentKey) return false; if (!this.problematicVars.hasOwnProperty(currentKey)) return false; const config = this.problematicVars[currentKey]; if (!config || !config.problematic_values) return false; // Check if current value matches any problematic values const lowerValue = String(currentValue).toLowerCase(); return config.problematic_values.some(pv => pv.toLowerCase() === lowerValue); }, get warningMessage() { if (!this.showWarning) return null; const config = this.problematicVars[$wire.key]; if (!config) return null; return config.issue; }, get recommendation() { if (!this.showWarning) return null; const config = this.problematicVars[$wire.key]; if (!config) return null; return `Recommendation: ${config.recommendation}`; } }" x-if="showWarning"> <x-callout type="warning" title="Caution"> <div class="text-sm" x-text="warningMessage"></div> <div class="text-sm" x-text="recommendation"></div> </x-callout> </template>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/resource-view.blade.php
resources/views/components/resource-view.blade.php
<div @class([ 'coolbox group', '!cursor-not-allowed hover:border-l-red-500' => $upgrade, ])> <div class="flex items-center"> <div class="w-[4.5rem] h-[4.5rem] flex items-center justify-center text-black dark:text-white shrink-0 rounded-lg overflow-hidden"> {{ $logo }} </div> <div class="flex flex-col pl-3 space-y-1"> <div class="dark:text-white text-md font-medium"> {{ $title }} </div> @if ($upgrade) <div>{{ $upgrade }}</div> @else <div class="text-xs dark:text-neutral-400 dark:group-hover:text-neutral-200 line-clamp-2"> {{ $description }} </div> @endif </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/popup.blade.php
resources/views/components/popup.blade.php
@props(['title' => 'Default title', 'description' => 'Default Description', 'buttonText' => 'Default Button Text']) <div x-data="{ bannerVisible: false, bannerVisibleAfter: 300 }" x-show="bannerVisible" x-transition:enter="transition ease-out duration-500" x-transition:enter-start="translate-y-full" x-transition:enter-end="translate-y-0" x-transition:leave="transition ease-in duration-300" x-transition:leave-start="translate-y-0" x-transition:leave-end="translate-y-full" x-init="setTimeout(() => { bannerVisible = true }, bannerVisibleAfter);" class="fixed bottom-0 right-0 w-full h-auto duration-300 ease-out sm:px-5 sm:pb-5 w-full z-999" x-cloak> @isset($customActions) {{ $customActions }} @else <div class="flex lg:items-center flex-col justify-between w-full h-full max-w-4xl p-6 mx-auto bg-white border shadow-lg lg:border-t dark:border-coolgray-300 border-neutral-200 dark:bg-coolgray-100 lg:p-8 lg:flex-row sm:rounded-sm"> <div class="flex flex-col items-start h-full pb-6 text-xs lg:items-center lg:flex-row lg:pb-0 lg:pr-6 lg:space-x-5 dark:text-neutral-300"> @if (isset($icon)) <div class="hidden lg:block"> {{ $icon }} </div> @endif <div class="pt-6 lg:pt-0"> <h4 class="w-full mb-1 text-xl font-bold leading-none -translate-y-1 text-neutral-900 dark:text-white"> {{ $title }} </h4> <p>{{ $description }}</span></p> </div> </div> <button @if ($buttonText->attributes->whereStartsWith('@click')->first()) @click="bannerVisible=false;{{ $buttonText->attributes->get('@click') }}" @else @click="bannerVisible=false;" @endif class="w-full px-4 py-2 text-sm font-medium tracking-wide transition-colors duration-200 rounded-md bg-neutral-100 hover:bg-neutral-200 dark:bg-coolgray-200 lg:w-auto dark:text-neutral-200 dark:hover:bg-coolgray-300 focus:shadow-outline focus:outline-hidden"> {{ $buttonText }} </button> </div> @endisset </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/layout-simple.blade.php
resources/views/components/layout-simple.blade.php
@extends('layouts.simple')
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/callout.blade.php
resources/views/components/callout.blade.php
@props(['type' => 'warning', 'title' => 'Warning', 'class' => '', 'dismissible' => false, 'onDismiss' => null]) @php $icons = [ 'warning' => '<svg class="w-5 h-5 text-warning-600 dark:text-warning-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path></svg>', 'danger' => '<svg class="w-5 h-5 text-red-600 dark:text-red-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"></path></svg>', 'info' => '<svg class="w-5 h-5 text-blue-600 dark:text-blue-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path></svg>', 'success' => '<svg class="w-5 h-5 text-green-600 dark:text-green-400" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>' ]; $colors = [ 'warning' => [ 'bg' => 'bg-warning-50 dark:bg-warning-900/30', 'border' => 'border-warning-300 dark:border-warning-800', 'title' => 'text-warning-800 dark:text-warning-300', 'text' => 'text-warning-700 dark:text-warning-200' ], 'danger' => [ 'bg' => 'bg-red-50 dark:bg-red-900/30', 'border' => 'border-red-300 dark:border-red-800', 'title' => 'text-red-800 dark:text-red-300', 'text' => 'text-red-700 dark:text-red-200' ], 'info' => [ 'bg' => 'bg-blue-50 dark:bg-blue-900/30', 'border' => 'border-blue-300 dark:border-blue-800', 'title' => 'text-blue-800 dark:text-blue-300', 'text' => 'text-blue-700 dark:text-blue-200' ], 'success' => [ 'bg' => 'bg-green-50 dark:bg-green-900/30', 'border' => 'border-green-300 dark:border-green-800', 'title' => 'text-green-800 dark:text-green-300', 'text' => 'text-green-700 dark:text-green-200' ] ]; $colorScheme = $colors[$type] ?? $colors['warning']; $icon = $icons[$type] ?? $icons['warning']; @endphp <div {{ $attributes->merge(['class' => 'relative p-4 border rounded-lg ' . $colorScheme['bg'] . ' ' . $colorScheme['border'] . ' ' . $class]) }}> <div class="flex items-start"> <div class="flex-shrink-0"> {!! $icon !!} </div> <div class="ml-3 {{ $dismissible ? 'pr-8' : '' }}"> <div class="text-base font-bold {{ $colorScheme['title'] }}"> {{ $title }} </div> <div class="mt-2 text-sm {{ $colorScheme['text'] }}"> {{ $slot }} </div> </div> @if($dismissible && $onDismiss) <button type="button" @click.stop="{{ $onDismiss }}" class="absolute top-2 right-2 p-1 rounded hover:bg-black/10 dark:hover:bg-white/10 transition-colors" aria-label="Dismiss"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" class="w-4 h-4 {{ $colorScheme['text'] }}"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> @endif </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/page-loading.blade.php
resources/views/components/page-loading.blade.php
@props(['text' => "Loading..."]) <div class="inline-flex items-center justify-center" {{ $attributes }}> @if (isset($text)) <div>{{ $text }}</div> @endif <svg class="w-4 h-4 mx-1 ml-3 text-coollabs dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/dropdown.blade.php
resources/views/components/dropdown.blade.php
<div x-data="{ dropdownOpen: false }" class="relative" @click.outside="dropdownOpen = false"> <button @click="dropdownOpen=true" class="inline-flex items-center justify-start pr-8 transition-colors focus:outline-hidden disabled:opacity-50 disabled:pointer-events-none"> <span class="flex flex-col items-start h-full leading-none"> {{ $title }} </span> <svg class="absolute right-0 w-4 h-4 mr-3" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /> </svg> </button> <div x-show="dropdownOpen" @click.away="dropdownOpen=false" x-transition:enter="ease-out duration-200" x-transition:enter-start="-translate-y-2" x-transition:enter-end="translate-y-0" class="absolute top-0 z-50 mt-6 min-w-max" x-cloak> <div class="p-1 mt-1 bg-white border rounded-sm shadow-sm dark:bg-coolgray-200 dark:border-coolgray-300 border-neutral-300"> {{ $slot }} </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/git-icon.blade.php
resources/views/components/git-icon.blade.php
@props([ 'git' => null, ]) @if ($git === 'App\Models\GithubApp') <svg xmlns="http://www.w3.org/2000/svg" {{ $attributes->merge(['class' => 'w-6 h-6']) }} viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" /> </svg> @elseif($git === 'App\Models\GitlabApp') <svg xmlns="http://www.w3.org/2000/svg" {{ $attributes->merge(['class' => 'w-6 h-6']) }} viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M21 14l-9 7l-9 -7l3 -11l3 7h6l3 -7z" /> </svg> @else <svg xmlns="http://www.w3.org/2000/svg" {{ $attributes->merge(['class' => 'w-6 h-6']) }} viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M16 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /> <path d="M12 8m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /> <path d="M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /> <path d="M12 15v-6" /> <path d="M15 11l-2 -2" /> <path d="M11 7l-1.9 -1.9" /> <path d="M13.446 2.6l7.955 7.954a2.045 2.045 0 0 1 0 2.892l-7.955 7.955a2.045 2.045 0 0 1 -2.892 0l-7.955 -7.955a2.045 2.045 0 0 1 0 -2.892l7.955 -7.955a2.045 2.045 0 0 1 2.892 0z" /> </svg> @endif
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/slide-over.blade.php
resources/views/components/slide-over.blade.php
@props(['closeWithX' => false, 'fullScreen' => false]) <div x-data="{ slideOverOpen: false }" x-init="$watch('slideOverOpen', value => { if (!value) { $dispatch('slideOverClosed') } })" {{ $attributes->merge(['class' => 'relative w-auto h-auto']) }}> {{ $slot }} <template x-teleport="body"> <div x-show="slideOverOpen" @if (!$closeWithX) @keydown.window.escape="slideOverOpen=false" @endif class="relative z-99 "> <div x-show="slideOverOpen" @if (!$closeWithX) @click="slideOverOpen = false" @endif class="fixed inset-0 dark:bg-black/60 backdrop-blur-xs"></div> <div class="fixed inset-0 overflow-hidden"> <div class="absolute inset-0 overflow-hidden "> <div class="fixed inset-y-0 right-0 flex max-w-full pl-10"> <div x-show="slideOverOpen" @if (!$closeWithX) @click.away="slideOverOpen = false" @endif x-transition:enter="transform transition ease-in-out duration-100 sm:duration-300" x-transition:enter-start="translate-x-full" x-transition:enter-end="translate-x-0" x-transition:leave="transform transition ease-in-out duration-100 sm:duration-300" x-transition:leave-start="translate-x-0" x-transition:leave-end="translate-x-full" @class([ 'max-w-xl w-screen' => !$fullScreen, 'max-w-4xl w-screen' => $fullScreen, ])> <div class="flex flex-col h-full py-6 overflow-hidden border-l shadow-lg bg-neutral-50 dark:bg-base dark:border-neutral-800 border-neutral-200"> <div class="px-4 pb-4 sm:px-5"> <div class="flex items-start justify-between pb-1"> <h2 class="text-2xl leading-6" id="slide-over-title"> {{ $title }}</h2> <div class="flex items-center h-auto ml-3"> <button @click="slideOverOpen=false" class="absolute top-0 right-0 z-30 flex items-center justify-center px-3 py-2 mt-4 mr-2 space-x-1 text-xs font-normal border-none rounded-sm"> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path> </svg> </button> </div> </div> </div> <div class="relative flex-1 px-4 mt-5 overflow-auto sm:px-5 scrollbar"> <div class="absolute inset-0 px-4 sm:px-5"> {{ $content }} </div> </div> </div> </div> </div> </div> </div> </div> </template> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/use-magic-bar.blade.php
resources/views/components/use-magic-bar.blade.php
<div class="pt-4"> @if (isset($link)) Create a new one <a href="{{ $link }}" class="underline dark:text-warning"> here. </a> {{-- @else Use the magic bar (press <span class="kbd-custom">/</span>) to create a new one. --}} @endif </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/version.blade.php
resources/views/components/version.blade.php
<a {{ $attributes->merge(['class' => 'text-xs cursor-pointer opacity-90 hover:opacity-100 dark:hover:text-white hover:text-black']) }} href="https://github.com/coollabsio/coolify/releases/tag/v{{ config('constants.coolify.version') }}" target="_blank"> v{{ config('constants.coolify.version') }} </a>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/boarding-progress.blade.php
resources/views/components/boarding-progress.blade.php
@props(['currentStep' => 1, 'totalSteps' => 3]) <div class="w-full max-w-2xl mx-auto mb-8"> <div class="flex items-center justify-between"> @for ($i = 1; $i <= $totalSteps; $i++) <div class="flex items-center {{ $i < $totalSteps ? 'flex-1' : '' }}"> <div class="flex flex-col items-center"> <div class="flex items-center justify-center size-10 rounded-full border-2 transition-all duration-300 {{ $i < $currentStep ? 'bg-success border-success' : 'border-neutral-200 dark:border-coolgray-300' }} {{ $i === $currentStep ? 'bg-white dark:bg-coolgray-500' : '' }} "> @if ($i < $currentStep) <svg class="size-5 text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"> <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" /> </svg> @else <span class="text-sm font-bold text-black dark:text-white"> {{ $i }} </span> @endif </div> <span class="mt-2 text-xs font-medium text-black dark:text-white"> @if ($i === 1) Server @elseif ($i === 2) Connection @elseif ($i === 3) Complete @endif </span> </div> @if ($i < $totalSteps) <div class="flex-1 h-0.5 mx-4 transition-all duration-300 {{ $i < $currentStep ? 'bg-success' : 'bg-neutral-200 dark:bg-coolgray-300' }}"> </div> @endif </div> @endfor </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/internal-link.blade.php
resources/views/components/internal-link.blade.php
<svg class="inline-flex w-4 h-4 text-black dark:text-white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-6 6l6-6m-6-6l6 6"/> </svg>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/external-link.blade.php
resources/views/components/external-link.blade.php
@props(['class' => 'inline-flex w-3 h-3 dark:text-neutral-400 text-black']) <svg {{ $attributes->merge(['class' => $class]) }} fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14" /> </svg>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/limit-reached.blade.php
resources/views/components/limit-reached.blade.php
<div class="flex flex-col items-center justify-center h-32"> <span class="text-xl font-bold dark:text-white">You have reached the limit of {{ $name }} you can create.</span> <span>Please <a class="dark:text-white underline" {{ wireNavigate() }} href="{{ route('subscription.show') }}">upgrade your subscription</a> to create more {{ $name }}.</span> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/loading.blade.php
resources/views/components/loading.blade.php
@props(['text' => null]) <div class="inline-flex items-center justify-center" {{ $attributes }}> @if (isset($text)) <div>{{ $text }}</div> @endif <svg class="w-4 h-4 mx-1 ml-3 text-coollabs dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/modal-confirmation.blade.php
resources/views/components/modal-confirmation.blade.php
@props([ 'title' => 'Are you sure?', 'isErrorButton' => false, 'isHighlightedButton' => false, 'buttonTitle' => 'Confirm Action', 'buttonFullWidth' => false, 'customButton' => null, 'disabled' => false, 'dispatchAction' => false, 'submitAction' => 'delete', 'content' => null, 'checkboxes' => [], 'actions' => [], 'warningMessage' => null, 'confirmWithText' => true, 'confirmationText' => 'Confirm Deletion', 'confirmationLabel' => 'Please confirm the execution of the actions by entering the Name below', 'shortConfirmationLabel' => 'Name', 'confirmWithPassword' => true, 'step1ButtonText' => 'Continue', 'step2ButtonText' => 'Continue', 'step3ButtonText' => 'Confirm', 'dispatchEvent' => false, 'dispatchEventType' => 'success', 'dispatchEventMessage' => '', 'ignoreWire' => true, 'temporaryDisableTwoStepConfirmation' => false, ]) @php use App\Models\InstanceSettings; // Global setting to disable ALL two-step confirmation (text + password) $disableTwoStepConfirmation = data_get(InstanceSettings::get(), 'disable_two_step_confirmation'); // Skip ONLY password confirmation for OAuth users (they have no password) $skipPasswordConfirmation = shouldSkipPasswordConfirmation(); if ($temporaryDisableTwoStepConfirmation) { $disableTwoStepConfirmation = false; $skipPasswordConfirmation = false; } // When password step is skipped, Step 2 becomes final - change button text from "Continue" to "Confirm" $effectiveStep2ButtonText = ($skipPasswordConfirmation && $step2ButtonText === 'Continue') ? 'Confirm' : $step2ButtonText; @endphp <div {{ $ignoreWire ? 'wire:ignore' : '' }} x-data="{ modalOpen: false, step: {{ empty($checkboxes) ? 2 : 1 }}, initialStep: {{ empty($checkboxes) ? 2 : 1 }}, finalStep: {{ $confirmWithPassword && !$skipPasswordConfirmation ? 3 : 2 }}, deleteText: '', password: '', actions: @js($actions), confirmationText: (() => { const textarea = document.createElement('textarea'); textarea.innerHTML = @js($confirmationText); return textarea.value; })(), userConfirmationText: '', confirmWithText: @js($confirmWithText && !$disableTwoStepConfirmation), confirmWithPassword: @js($confirmWithPassword && !$skipPasswordConfirmation), submitAction: @js($submitAction), dispatchAction: @js($dispatchAction), passwordError: '', selectedActions: @js(collect($checkboxes)->pluck('id')->filter(fn($id) => $this->$id)->values()->all()), dispatchEvent: @js($dispatchEvent), dispatchEventType: @js($dispatchEventType), dispatchEventMessage: @js($dispatchEventMessage), disableTwoStepConfirmation: @js($disableTwoStepConfirmation), skipPasswordConfirmation: @js($skipPasswordConfirmation), resetModal() { this.step = this.initialStep; this.deleteText = ''; this.password = ''; this.userConfirmationText = ''; this.selectedActions = @js(collect($checkboxes)->pluck('id')->filter(fn($id) => $this->$id)->values()->all()); $wire.$refresh(); }, step1ButtonText: @js($step1ButtonText), step2ButtonText: @js($effectiveStep2ButtonText), step3ButtonText: @js($step3ButtonText), validatePassword() { if (this.confirmWithPassword && !this.password) { return 'Password is required.'; } return ''; }, submitForm() { if (this.confirmWithPassword) { this.passwordError = this.validatePassword(); if (this.passwordError) { return Promise.resolve(this.passwordError); } } if (this.dispatchAction) { $wire.dispatch(this.submitAction); return true; } const methodName = this.submitAction.split('(')[0]; const paramsMatch = this.submitAction.match(/\((.*?)\)/); const params = paramsMatch ? paramsMatch[1].split(',').map(param => param.trim()) : []; // Always pass password parameter (empty string if password confirmation is skipped) // This ensures consistent method signature for backend Livewire methods params.push(this.confirmWithPassword ? this.password : ''); // Only pass selectedActions if there are checkboxes with selections if (this.selectedActions.length > 0) { params.push(this.selectedActions); } return $wire[methodName](...params) .then(result => { if (result === true) { return true; } else if (typeof result === 'string') { return result; } }); }, toggleAction(id) { const index = this.selectedActions.indexOf(id); if (index > -1) { this.selectedActions.splice(index, 1); } else { this.selectedActions.push(id); } } }" @keydown.escape.window="if (modalOpen) { modalOpen = false; resetModal(); }" :class="{ 'z-40': modalOpen }" class="relative w-auto h-auto"> @if ($customButton) @if ($buttonFullWidth) <x-forms.button @click="modalOpen=true" class="w-full"> {{ $customButton }} </x-forms.button> @else <x-forms.button @click="modalOpen=true"> {{ $customButton }} </x-forms.button> @endif @else @if ($content) <div @click="modalOpen=true"> {{ $content }} </div> @else @if ($disabled) @if ($buttonFullWidth) <x-forms.button class="w-full" isError disabled wire:target> {{ $buttonTitle }} </x-forms.button> @else <x-forms.button isError disabled wire:target> {{ $buttonTitle }} </x-forms.button> @endif @elseif ($isErrorButton) @if ($buttonFullWidth) <x-forms.button class="w-full" isError @click="modalOpen=true"> {{ $buttonTitle }} </x-forms.button> @else <x-forms.button isError @click="modalOpen=true"> {{ $buttonTitle }} </x-forms.button> @endif @elseif($isHighlightedButton) @if ($buttonFullWidth) <x-forms.button @click="modalOpen=true" class="flex gap-2 w-full" isHighlighted wire:target> {{ $buttonTitle }} </x-forms.button> @else <x-forms.button @click="modalOpen=true" class="flex gap-2" isHighlighted wire:target> {{ $buttonTitle }} </x-forms.button> @endif @else @if ($buttonFullWidth) <x-forms.button @click="modalOpen=true" class="flex gap-2 w-full" wire:target> {{ $buttonTitle }} </x-forms.button> @else <x-forms.button @click="modalOpen=true" class="flex gap-2" wire:target> {{ $buttonTitle }} </x-forms.button> @endif @endif @endif @endif <template x-teleport="body"> <div x-show="modalOpen" class="fixed top-0 left-0 z-99 flex items-center justify-center w-screen h-screen p-4" x-cloak> <div x-show="modalOpen" class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"> </div> <div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95" class="relative w-full border rounded-sm min-w-full lg:min-w-[36rem] max-w-[48rem] max-h-[calc(100vh-2rem)] bg-neutral-100 border-neutral-400 dark:bg-base dark:border-coolgray-300 flex flex-col"> <div class="flex justify-between items-center py-6 px-7 shrink-0"> <h3 class="pr-8 text-2xl font-bold">{{ $title }}</h3> <button @click="modalOpen = false; resetModal()" class="flex absolute top-2 right-2 justify-center items-center w-8 h-8 rounded-full dark:text-white hover:bg-coolgray-300"> <svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> <div class="relative w-auto overflow-y-auto px-7 pb-6" style="-webkit-overflow-scrolling: touch;"> @if (!empty($checkboxes)) <!-- Step 1: Select actions --> <div x-show="step === 1"> @foreach ($checkboxes as $index => $checkbox) <div class="flex justify-between items-center mb-2"> <x-forms.checkbox fullWidth :label="$checkbox['label']" :id="$checkbox['id']" :wire:model="$checkbox['id']" x-on:change="toggleAction('{{ $checkbox['id'] }}')" :checked="$this->{$checkbox['id']}" x-bind:checked="selectedActions.includes('{{ $checkbox['id'] }}')" /> </div> @endforeach <div class="flex flex-wrap gap-2 justify-between mt-4"> <x-forms.button @click="modalOpen = false; resetModal()" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300"> Cancel </x-forms.button> <x-forms.button @click="step++" class="w-auto" isError> <span x-text="step1ButtonText"></span> </x-forms.button> </div> </div> @endif <!-- Step 2: Confirm deletion --> <div x-show="step === 2"> <x-callout type="danger" title="Warning" class="mb-4"> {!! $warningMessage ?: 'This operation is permanent and cannot be undone. Please think again before proceeding!' !!} </x-callout> <div class="mb-4">The following actions will be performed:</div> <ul class="mb-4 space-y-2"> @foreach ($actions as $action) <li class="flex items-center text-red-500"> <svg class="shrink-0 mr-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> </svg> <span>{{ $action }}</span> </li> @endforeach @foreach ($checkboxes as $checkbox) <template x-if="selectedActions.includes('{{ $checkbox['id'] }}')"> <li class="flex items-center text-red-500"> <svg class="shrink-0 mr-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> </svg> <span>{{ $checkbox['label'] }}</span> </li> </template> @if (isset($checkbox['default_warning'])) <template x-if="!selectedActions.includes('{{ $checkbox['id'] }}')"> <li class="flex items-center text-red-500"> <svg class="shrink-0 mr-2 w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path> </svg> <span>{{ $checkbox['default_warning'] }}</span> </li> </template> @endif @endforeach </ul> @if (!$disableTwoStepConfirmation) @if ($confirmWithText) <div class="mb-4"> <h4 class="mb-2 text-lg font-semibold">Confirm Actions</h4> <p class="mb-2 text-sm">{{ $confirmationLabel }}</p> <div class="relative mb-2" x-data="{ decodedText: confirmationText }"> <div class="relative"> <input type="text" x-model="decodedText" readonly class="input"> <button x-show="window.isSecureContext" @click.prevent="navigator.clipboard.writeText(decodedText); $el.innerHTML = '<svg class=\'w-5 h-5 text-green-500\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 13l4 4L19 7\' /></svg>'; setTimeout(() => $el.innerHTML = '<svg class=\'w-5 h-5\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\' /></svg>', 1000)" class="absolute right-2 top-1/2 -translate-y-1/2 p-1.5 text-gray-400 hover:text-gray-300 transition-colors" title="Copy to clipboard"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" /> </svg> </button> </div> </div> <label for="userConfirmationText" class="block mt-4 text-sm font-medium text-gray-700 dark:text-gray-300"> {{ $shortConfirmationLabel }} </label> <input type="text" x-model="userConfirmationText" class="p-2 mt-1 px-3 w-full rounded-sm input"> </div> @endif @endif <div class="flex flex-wrap gap-2 justify-between mt-4"> @if (!empty($checkboxes)) <x-forms.button @click="step--" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300"> Back </x-forms.button> @else <x-forms.button @click="modalOpen = false; resetModal()" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300"> Cancel </x-forms.button> @endif <x-forms.button x-bind:disabled="!disableTwoStepConfirmation && confirmWithText && userConfirmationText !== confirmationText" class="w-auto" isError @click=" if (dispatchEvent) { $wire.dispatch(dispatchEventType, dispatchEventMessage); } if (confirmWithPassword && !skipPasswordConfirmation) { step++; } else { modalOpen = false; resetModal(); submitForm(); } "> <span x-text="step2ButtonText"></span> </x-forms.button> </div> </div> <!-- Step 3: Password confirmation --> @if (!$skipPasswordConfirmation) <div x-show="step === 3 && confirmWithPassword"> <x-callout type="danger" title="Final Confirmation" class="mb-4"> Please enter your password to confirm this destructive action. </x-callout> <div class="flex flex-col gap-2 mb-4"> @php $passwordConfirm = Str::uuid(); @endphp <label for="password-confirm-{{ $passwordConfirm }}" class="block text-sm font-medium text-gray-700 dark:text-gray-300"> Your Password </label> <form @submit.prevent="false" @keydown.enter.prevent> <input type="text" name="username" autocomplete="username" value="{{ auth()->user()->email }}" style="display: none;"> <input type="password" id="password-confirm-{{ $passwordConfirm }}" x-model="password" class="w-full input" placeholder="Enter your password" autocomplete="current-password"> </form> <p x-show="passwordError" x-text="passwordError" class="mt-1 text-sm text-red-500"> </p> @error('password') <p class="mt-1 text-sm text-red-500">{{ $message }}</p> @enderror </div> <div class="flex flex-wrap gap-2 justify-between mt-4"> <x-forms.button @click="step--" class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300"> Back </x-forms.button> <x-forms.button x-bind:disabled="!password" class="w-auto" isError @click=" if (dispatchEvent) { $wire.dispatch(dispatchEventType, dispatchEventMessage); } submitForm().then((result) => { if (result === true) { modalOpen = false; resetModal(); } else { passwordError = result; password = ''; // Clear the password field } }); "> <span x-text="step3ButtonText"></span> </x-forms.button> </div> </div> @endif </div> </div> </div> </template> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/chevron-down.blade.php
resources/views/components/chevron-down.blade.php
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M6 9l6 6l6 -6" /> </svg>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/highlighted.blade.php
resources/views/components/highlighted.blade.php
<span class="text-helper">{{ $text }}</span>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/banner.blade.php
resources/views/components/banner.blade.php
@props(['closable' => true]) <div x-data="{ bannerVisible: false, bannerVisibleAfter: 100, }" x-show="bannerVisible" x-transition:enter="transition ease-out duration-200" x-transition:enter-start="-translate-y-10" x-transition:enter-end="translate-y-0" x-transition:leave="transition ease-in duration-100" x-transition:leave-start="translate-y-0" x-transition:leave-end="-translate-y-10" x-init="setTimeout(() => { bannerVisible = true }, bannerVisibleAfter);" class="relative z-999 w-full py-2 mx-auto duration-100 ease-out shadow-xs bg-coolgray-100 sm:py-0 sm:h-14" x-cloak> <div class="flex items-center justify-between h-full px-3"> {{ $slot }} @if ($closable) <button @click="bannerVisible=false" class="flex items-center shrink-0 translate-x-1 ease-out duration-150 justify-center w-6 h-6 p-1.5 text-neutral-200 rounded-full hover:bg-coolgray-500"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-full h-full"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> @endif </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/loading-on-button.blade.php
resources/views/components/loading-on-button.blade.php
@props(['text' => null]) <div class="inline-flex items-center justify-center" {{ $attributes }}> @if (isset($text)) <div>{{ $text }}</div> @endif <svg class="w-4 h-4 mx-1 ml-3 dark:text-warning animate-spin" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"> </path> </svg> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/modal.blade.php
resources/views/components/modal.blade.php
<dialog id="{{ $modalId }}" class="modal"> @if ($yesOrNo) <form method="dialog" class="rounded-sm modal-box max-h-[calc(100vh-5rem)] flex flex-col" @if (!$noSubmit) wire:submit='submit' @endif> <div class="flex items-start overflow-y-auto" style="-webkit-overflow-scrolling: touch;"> <div class="flex items-center justify-center shrink-0 w-10 h-10 mr-4 rounded-full"> <svg class="w-8 h-8 text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"> <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z" /> </svg> </div> <div class="flex flex-col w-full gap-2"> @isset($modalTitle) <h3 class="text-lg font-bold">{{ $modalTitle }}</h3> @endisset @isset($modalBody) {{ $modalBody }} @endisset @if ($modalSubmit) {{ $modalSubmit }} @else <div class="flex gap-4 mt-4"> <x-forms.button class="w-24 bg-coolgray-200 hover:bg-coolgray-100" type="button" onclick="{{ $modalId }}.close()">Cancel </x-forms.button> <div class="flex-1"></div> <x-forms.button class="w-24" isError type="button" wire:click.prevent='{{ $action }}' onclick="{{ $modalId }}.close()">Continue </x-forms.button> </div> @endif </div> </div> </form> @else <form method="dialog" class="flex flex-col w-11/12 max-w-5xl max-h-[calc(100vh-5rem)] gap-2 rounded-sm modal-box overflow-y-auto" style="-webkit-overflow-scrolling: touch;" @if ($submitWireAction) wire:submit={{ $submitWireAction }} @endif @if (!$noSubmit && !$submitWireAction) wire:submit='submit' @endif> @isset($modalTitle) <h3 class="text-lg font-bold">{{ $modalTitle }}</h3> @endisset @isset($modalBody) {{ $modalBody }} @endisset @if ($modalSubmit) {{ $modalSubmit }} @endif </form> @endif <form method="dialog" class="modal-backdrop"> <button>close</button> </form> </dialog>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/modal-input.blade.php
resources/views/components/modal-input.blade.php
@props([ 'title' => 'Are you sure?', 'buttonTitle' => 'Open Modal', 'isErrorButton' => false, 'isHighlightedButton' => false, 'disabled' => false, 'action' => 'delete', 'content' => null, 'closeOutside' => true, 'minWidth' => '36rem', 'maxWidth' => '48rem', 'isFullWidth' => false, ]) @php $modalId = 'modal-' . uniqid(); @endphp <div x-data="{ modalOpen: false }" x-init="$watch('modalOpen', value => { if (!value) { $wire.dispatch('modalClosed') } })" :class="{ 'z-40': modalOpen }" @keydown.window.escape="modalOpen=false" class="relative w-auto h-auto" wire:ignore> @if ($content) <div @click="modalOpen=true"> {{ $content }} </div> @else @if ($disabled) <x-forms.button isError disabled @class(['w-full' => $isFullWidth])>{{ $buttonTitle }}</x-forms.button> @elseif ($isErrorButton) <x-forms.button isError @click="modalOpen=true" @class(['w-full' => $isFullWidth])>{{ $buttonTitle }}</x-forms.button> @elseif ($isHighlightedButton) <x-forms.button isHighlighted @click="modalOpen=true" @class(['w-full' => $isFullWidth])>{{ $buttonTitle }}</x-forms.button> @else <x-forms.button @click="modalOpen=true" @class(['w-full' => $isFullWidth])>{{ $buttonTitle }}</x-forms.button> @endif @endif <template x-teleport="body"> <div x-show="modalOpen" x-init="$watch('modalOpen', value => { if(value) { $nextTick(() => { const firstInput = $el.querySelector('input, textarea, select'); firstInput?.focus(); }) } })" class="fixed top-0 left-0 z-99 flex items-center justify-center w-screen h-screen p-4"> <div x-show="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" @if ($closeOutside) @click="modalOpen=false" @endif class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div> <div id="{{ $modalId }}" x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95" class="relative w-full min-w-full lg:min-w-[{{ $minWidth }}] max-w-[{{ $maxWidth }}] max-h-[calc(100vh-2rem)] border rounded-sm drop-shadow-sm bg-white border-neutral-200 dark:bg-base dark:border-coolgray-300 flex flex-col"> <div class="flex items-center justify-between py-6 px-6 shrink-0"> <h3 class="text-2xl font-bold">{{ $title }}</h3> <button @click="modalOpen=false" class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 rounded-full dark:text-white hover:bg-neutral-100 dark:hover:bg-coolgray-300 outline-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-coollabs dark:focus-visible:ring-warning focus-visible:ring-offset-2 dark:focus-visible:ring-offset-base"> <svg class="w-5 h-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> <div class="relative flex items-center justify-center w-auto overflow-y-auto px-6 pb-6" style="-webkit-overflow-scrolling: touch;"> {{ $slot }} </div> </div> </div> </template> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/domain-conflict-modal.blade.php
resources/views/components/domain-conflict-modal.blade.php
@props([ 'conflicts' => [], 'showModal' => false, 'confirmAction' => 'confirmDomainUsage', ]) @if ($showModal && count($conflicts) > 0) <div x-data="{ modalOpen: true }" x-init="$nextTick(() => { modalOpen = true })" @keydown.escape.window="modalOpen = false; $wire.set('showDomainConflictModal', false)" :class="{ 'z-40': modalOpen }" class="relative w-auto h-auto"> <template x-teleport="body"> <div x-show="modalOpen" class="fixed top-0 lg:pt-10 left-0 z-99 flex items-start justify-center w-screen h-screen" x-cloak> <div x-show="modalOpen" class="absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs"></div> <div x-show="modalOpen" x-trap.inert.noscroll="modalOpen" x-transition:enter="ease-out duration-100" x-transition:enter-start="opacity-0 -translate-y-2 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-100" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 -translate-y-2 sm:scale-95" class="relative w-full py-6 border rounded-sm min-w-full lg:min-w-[36rem] max-w-[48rem] bg-neutral-100 border-neutral-400 dark:bg-base px-7 dark:border-coolgray-300"> <div class="flex justify-between items-center pb-3"> <h2 class="pr-8 font-bold">Domain Already In Use</h2> <button @click="modalOpen = false; $wire.set('showDomainConflictModal', false)" class="flex absolute top-2 right-2 justify-center items-center w-8 h-8 rounded-full dark:text-white hover:bg-coolgray-300"> <svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" /> </svg> </button> </div> <div class="relative w-auto"> <x-callout type="danger" title="Domain Conflict Detected" class="mb-4"> The following domain(s) are already in use by other resources. Using the same domain for multiple resources can cause routing conflicts and unpredictable behavior. </x-callout> <div class="mb-4"> <ul class="space-y-2"> @foreach ($conflicts as $conflict) <li class="flex items-start text-red-500"> <div> <strong>{{ $conflict['domain'] }}</strong> is used by @if ($conflict['resource_type'] === 'instance') <strong>{{ $conflict['resource_name'] }}</strong> @else <a href="{{ $conflict['resource_link'] }}" target="_blank" class="underline hover:text-red-400"> {{ $conflict['resource_name'] }} </a> @endif ({{ $conflict['resource_type'] }}) </div> </li> @endforeach </ul> </div> <x-callout type="warning" title="What will happen if you continue?" class="mb-4"> @if (isset($consequences)) {{ $consequences }} @else <ul class="mt-2 ml-4 list-disc"> <li>Only one resource will be accessible at this domain</li> <li>The routing behavior will be unpredictable</li> <li>You may experience service disruptions</li> <li>SSL certificates might not work correctly</li> </ul> @endif </x-callout> <div class="flex flex-wrap gap-2 justify-between mt-4"> <x-forms.button @click="modalOpen = false; $wire.set('showDomainConflictModal', false)" class="w-auto dark:bg-coolgray-200 dark:hover:bg-coolgray-300"> Cancel </x-forms.button> <x-forms.button wire:click="{{ $confirmAction }}" @click="modalOpen = false" class="w-auto" isError> I understand, proceed anyway </x-forms.button> </div> </div> </div> </div> </template> </div> @endif
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/helper.blade.php
resources/views/components/helper.blade.php
<div {{ $attributes->merge(['class' => 'group']) }}> <div class="info-helper"> @isset($icon) {{ $icon }} @else <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="w-4 h-4 stroke-current"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path> </svg> @endisset </div> <div class="info-helper-popup"> <div class="p-4"> {!! $helper !!} </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/pricing-plans.blade.php
resources/views/components/pricing-plans.blade.php
@props([ 'showSubscribeButtons' => true, ]) <div x-data="{ selected: 'monthly' }" class="w-full pb-20"> <div class="px-6 mx-auto lg:px-8"> <div class="flex justify-center"> <fieldset class="grid grid-cols-2 p-1 text-xs font-semibold leading-5 text-center rounded-sm dark:text-white gap-x-1 bg-white/5"> <legend class="sr-only">Payment frequency</legend> <label class="cursor-pointer rounded-sm px-2.5 py-1" :class="selected === 'monthly' ? 'bg-coollabs-100 text-white' : ''"> <input type="radio" x-on:click="selected = 'monthly'" name="frequency" value="monthly" class="sr-only"> <span>Monthly</span> </label> <label class="cursor-pointer rounded-sm px-2.5 py-1" :class="selected === 'yearly' ? 'bg-coollabs-100 text-white' : ''"> <input type="radio" x-on:click="selected = 'yearly'" name="frequency" value="annually" class="sr-only"> <span>Annually</span> </label> </fieldset> </div> @if (config('constants.limits.trial_period') > 0) <div class="py-2 text-center"><span class="font-bold dark:text-warning">{{ config('constants.limits.trial_period') }} days trial</span> included on all plans, without credit card details.</div> @endif <div x-show="selected === 'monthly'" class="flex justify-center h-10 mt-3 text-sm leading-6 "> <div>Save <span class="font-bold text-black dark:text-warning">10%</span> annually with the yearly plans. </div> </div> <div x-show="selected === 'yearly'" class="flex justify-center h-10 mt-3 text-sm leading-6 "> <div> </div> </div> <div class="p-4 rounded-sm bg-coolgray-400"> <h2 id="tier-hobby" class="flex items-start gap-4 text-4xl font-bold tracking-tight">Unlimited Trial <x-forms.button><a class="font-bold dark:text-white hover:no-underline" href="https://github.com/coollabsio/coolify">Get Started</a></x-forms.button> </h2> <p class="mt-4 text-sm leading-6">Start self-hosting <span class="dark:text-warning">without limits</span> with our OSS version. Same features as the paid version, but you have to manage by yourself.</p> </div> <div class="flow-root mt-12"> <div class="pb-10 text-xl text-center">For the detailed list of features, please visit our landing page: <a class="font-bold underline dark:text-white" href="https://coolify.io">coolify.io</a></div> <div class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-neutral-200 dark:divide-coolgray-500 isolate gap-y-16 sm:mx-auto lg:-mx-8 lg:mt-0 lg:max-w-none lg:grid-cols-3 lg:divide-x lg:divide-y-0 xl:-mx-4"> <div class="pt-16 lg:px-8 lg:pt-0 xl:px-14"> <h3 id="tier-basic" class="text-base font-semibold leading-7 dark:text-white">Basic</h3> <p class="flex items-baseline mt-6 gap-x-1"> <span x-show="selected === 'monthly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">$5</span> <span class="text-sm font-semibold leading-6 ">/month + VAT</span> </span> <span x-show="selected === 'yearly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">$4</span> <span class="text-sm font-semibold leading-6 ">/month + VAT</span> </span> </p> <span x-show="selected === 'monthly'" x-cloak> <span>billed monthly</span> </span> <span x-show="selected === 'yearly'" x-cloak> <span>billed annually</span> </span> @if ($showSubscribeButtons) @isset($basic) {{ $basic }} @endisset @endif <p class="mt-10 text-sm leading-6 dark:text-white h-[6.5rem]">Begin hosting your own services in the cloud. </p> <ul role="list" class="space-y-3 text-sm leading-6 "> <li class="flex"> <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.775 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Connect <span class="px-1 font-bold dark:text-white">2</span> servers </li> <li class="flex gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Included Email System </li> <li class="flex gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Email Support </li> <li class="flex font-bold dark:text-white gap-x-3"> <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" /> <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" /> </g> </svg> + All upcoming features </li> </ul> </div> <div class="pt-16 lg:px-8 lg:pt-0 xl:px-14"> <h3 id="tier-pro" class="text-base font-semibold leading-7 dark:text-white">Pro</h3> <p class="flex items-baseline mt-6 gap-x-1"> <span x-show="selected === 'monthly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">$30</span> <span class="text-sm font-semibold leading-6 ">/month + VAT</span> </span> <span x-show="selected === 'yearly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">$27</span> <span class="text-sm font-semibold leading-6 ">/month + VAT</span> </span> </p> <span x-show="selected === 'monthly'" x-cloak> <span>billed monthly</span> </span> <span x-show="selected === 'yearly'" x-cloak> <span>billed annually</span> </span> @if ($showSubscribeButtons) @isset($pro) {{ $pro }} @endisset @endif <p class="h-20 mt-10 text-sm leading-6 dark:text-white">Expand your business or set up your own hosting environment. </p> <ul role="list" class="mt-6 space-y-3 text-sm leading-6 "> <li class="flex "> <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Connect <span class="px-1 font-bold dark:text-white">10</span> servers </li> <li class="flex gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Included Email System </li> <li class="flex gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Priority Email Support </li> <li class="flex font-bold dark:text-white gap-x-3"> <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" /> <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" /> </g> </svg> + All upcoming features </li> </ul> </div> <div class="pt-16 lg:px-8 lg:pt-0 xl:px-12"> <h3 id="tier-ultimate" class="text-base font-semibold leading-7 dark:text-white">Ultimate</h3> <p class="flex items-baseline mt-6 gap-x-1"> <span x-show="selected === 'monthly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">Custom</span> {{-- <span class="text-sm font-semibold leading-6 ">pay-as-you-go</span> --}} </span> <span x-show="selected === 'yearly'" x-cloak> <span class="text-4xl font-bold tracking-tight dark:text-white">Custom</span> {{-- <span class="text-sm font-semibold leading-6 ">/month + VAT</span> --}} </span> </p> <span x-show="selected === 'monthly'" x-cloak> <span>pay-as-you-go</span> </span> <span x-show="selected === 'yearly'" x-cloak> <span>pay-as-you-go</span> </span> @if ($showSubscribeButtons) @isset($ultimate) {{ $ultimate }} @endisset @endif <p class="h-20 mt-10 text-sm leading-6 dark:text-white">Easily manage complex infrastructures in a single location.</p> <ul role="list" class="mt-6 space-y-3 text-sm leading-6 "> <li class="flex "> <svg class="flex-none w-5 h-6 mr-3 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Connect <span class="px-1 font-bold dark:text-white">10+</span> servers </li> <li class="flex gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Included Email System </li> <li class="flex font-bold dark:text-white gap-x-3"> <svg class="flex-none w-5 h-6 dark:text-warning" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd" /> </svg> Priority (Email/Chat) Support </li> <li class="flex font-bold dark:text-white gap-x-3"> <svg width="512" height="512" class="flex-none w-5 h-6 text-green-600" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M4 13a8 8 0 0 1 7 7a6 6 0 0 0 3-5a9 9 0 0 0 6-8a3 3 0 0 0-3-3a9 9 0 0 0-8 6a6 6 0 0 0-5 3" /> <path d="M7 14a6 6 0 0 0-3 6a6 6 0 0 0 6-3m4-8a1 1 0 1 0 2 0a1 1 0 1 0-2 0" /> </g> </svg> + All upcoming features </li> </ul> </div> </div> {{-- <div class="p-4 mt-10 rounded-sm"> <div class="flex items-start gap-4 text-xl tracking-tight">Need official support for your self-hosted instance? <x-forms.button> <a class="font-bold dark:text-white hover:no-underline" href="{{ config('constants.urls.contact') }}">Contact Us</a> </x-forms.button> </div> </div> --}} </div> {{-- <div class="pt-8 pb-12 text-4xl font-bold text-center dark:text-white">Included in all plans</div> <div class="grid grid-cols-1 gap-10 md:grid-cols-2 gap-y-28"> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 7a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3zm12 13H6a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h12M7 8v.01M7 16v.01M20 15l-2 3h3l-2 3" /> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Bring Your Own Servers</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Bring your own server from any cloud providers, or even your own server at home! All you need is SSH access. You will have full control over your server, and you can even use it for other purposes. </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M7 7h10a2 2 0 0 1 2 2v1l1 1v3l-1 1v3a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3l-1-1v-3l1-1V9a2 2 0 0 1 2-2zm3 9h4" /> <circle cx="8.5" cy="11.5" r=".5" fill="#000000" /> <circle cx="15.5" cy="11.5" r=".5" fill="#000000" /> <path d="M9 7L8 3m7 4l1-4" /> </g> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Server Automations</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Once you connected your server, Coolify will start managing it and do a lot of administrative tasks for you. You can also write your own scripts to automate your server<span class="dark:text-warning">*</span>. </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" viewBox="0 0 24 24" class="icon" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M15 11h2a2 2 0 0 1 2 2v2m0 4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h4" /> <path d="M11 16a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-3-5V8m.347-3.631A4 4 0 0 1 16 6M3 3l18 18" /> </g> </svg> </div> <div class="text-2xl font-semibold dark:text-white">No Vendor Lock-in</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> You own your own data. All configurations saved on your own servers, so if you decide to stop using Coolify, you can still continue to manage your deployed resources. </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <rect x="3" y="4" width="18" height="12" rx="1" /> <path d="M7 20h10" /> <path d="M9 16v4" /> <path d="M15 16v4" /> <path d="M7 10h2l2 3l2 -6l1 3h3" /> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Monitoring</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Coolify will automatically monitor your configured servers and deployed resources. Notifies you if something goes wrong on your favourite channels, like Discord, Telegram, via Email and more... </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M6 4h10l4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" /> <path d="M10 14a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10v4H8V4" /> </g> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Automatic Backups</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> We automatically backup your databases to any S3 compatible solution. If something goes wrong, you can easily restore your data with a few clicks. </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <polyline points="5 7 10 12 5 17" /> <line x1="13" y1="17" x2="19" y2="17" /> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Powerful API</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Programmatically deploy, query, and manage your servers & resources. Integrate to your CI/CD pipelines, or build your own custom integrations. <span class="dark:text-warning">*</span> </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"> <path d="M4 18a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0m12 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0M6 8v8" /> <path d="M11 6h5a2 2 0 0 1 2 2v8" /> <path d="m14 9l-3-3l3-3" /> </g> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Push to Deploy</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Git integration is default today. We support hosted (github.com, gitlab.com<span class="inline-block dark:text-warning">*</span>) or self-hosted<span class="dark:text-warning">*</span> (Github Enterprise, Gitlab) Git repositories. </div> </div> <div> <div class="flex items-center gap-4 mb-4"> <div class="flex items-center justify-center w-10 h-10 rounded-lg dark:text-white bg-coolgray-500"> <svg width="512" height="512" class="icon" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 13a2 2 0 1 0 4 0a2 2 0 0 0-4 0m-2 8v-1a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1M15 5a2 2 0 1 0 4 0a2 2 0 0 0-4 0m2 5h2a2 2 0 0 1 2 2v1M5 5a2 2 0 1 0 4 0a2 2 0 0 0-4 0m-2 8v-1a2 2 0 0 1 2-2h2" /> </svg> </div> <div class="text-2xl font-semibold dark:text-white">Pull Request Deployments</div> </div> <div class="mt-1 text-base leading-7 text-gray-300"> Automagically deploy new commits and pull requests separately to quickly review contributions and speed up your teamwork! </div> </div> </div> <div class="pt-20 text-xs"> <span class="dark:text-warning">*</span> Some features are work in progress and will be available soon. </div> --}} </div> @isset($other) {{ $other }} @endisset
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/toast.blade.php
resources/views/components/toast.blade.php
<div x-data="{ title: 'Default Toast Notification', description: '', type: 'default', expanded: false, popToast(custom) { let html = ''; if (typeof custom != 'undefined') { html = window.sanitizeHTML(custom); } toast(this.title, { description: this.description, type: this.type, position: this.position, html: html }) } }" x-init="window.toast = function(message, options = {}) { try { let description = ''; let type = 'default'; let position = 'top-center'; let html = ''; if (typeof options.description != 'undefined') description = options.description; if (typeof options.type != 'undefined') type = options.type; if (typeof options.position != 'undefined') position = options.position; if (typeof options.html != 'undefined') html = options.html; window.dispatchEvent(new CustomEvent('toast-show', { detail: { type: type, message: message, description: description, position: position, html: html } })); } catch (error) { console.error('Error showing toast:', error); } }" class="relative space-y-5"> <template x-teleport="body"> <ul x-data="{ toasts: [], toastsHovered: false, timeout: null, expanded: false, layout: 'default', position: '', paddingBetweenToasts: 15, deleteToastWithId(id) { for (let i = 0; i < this.toasts.length; i++) { if (this.toasts[i].id === id) { this.toasts.splice(i, 1); break; } } }, burnToast(id) { burnToast = this.getToastWithId(id); burnToastElement = document.getElementById(burnToast.id); if (burnToastElement) { if (this.toasts.length == 1) { if (this.layout == 'default') { this.expanded = false; } burnToastElement.classList.remove('translate-y-0'); if (this.position.includes('bottom')) { burnToastElement.classList.add('translate-y-full'); } else { burnToastElement.classList.add('-translate-y-full'); } burnToastElement.classList.add('-translate-y-full'); } burnToastElement.classList.add('opacity-0'); let that = this; setTimeout(function() { that.deleteToastWithId(id); setTimeout(function() { that.stackToasts(); }, 1) }, 300); } }, getToastWithId(id) { for (let i = 0; i < this.toasts.length; i++) { if (this.toasts[i].id === id) { return this.toasts[i]; } } }, stackToasts() { this.positionToasts(); this.calculateHeightOfToastsContainer(); let that = this; setTimeout(function() { that.calculateHeightOfToastsContainer(); }, 300); }, positionToasts() { if (this.toasts.length == 0) return; let topToast = document.getElementById(this.toasts[0].id); topToast.style.zIndex = 100; if (this.expanded) { if (this.position.includes('bottom')) { topToast.style.top = 'auto'; topToast.style.bottom = '0px'; } else { topToast.style.top = '0px'; } } let bottomPositionOfFirstToast = this.getBottomPositionOfElement(topToast); if (this.toasts.length == 1) return; let middleToast = document.getElementById(this.toasts[1].id); middleToast.style.zIndex = 90; if (this.expanded) { middleToastPosition = topToast.getBoundingClientRect().height + this.paddingBetweenToasts + 'px'; if (this.position.includes('bottom')) { middleToast.style.top = 'auto'; middleToast.style.bottom = middleToastPosition; } else { middleToast.style.top = middleToastPosition; } middleToast.style.scale = '100%'; middleToast.style.transform = 'translateY(0px)'; } else { middleToast.style.scale = '94%'; if (this.position.includes('bottom')) { middleToast.style.transform = 'translateY(-16px)'; } else { this.alignBottom(topToast, middleToast); middleToast.style.transform = 'translateY(16px)'; } } if (this.toasts.length == 2) return; let bottomToast = document.getElementById(this.toasts[2].id); bottomToast.style.zIndex = 80; if (this.expanded) { bottomToastPosition = topToast.getBoundingClientRect().height + this.paddingBetweenToasts + middleToast.getBoundingClientRect().height + this.paddingBetweenToasts + 'px'; if (this.position.includes('bottom')) { bottomToast.style.top = 'auto'; bottomToast.style.bottom = bottomToastPosition; } else { bottomToast.style.top = bottomToastPosition; } bottomToast.style.scale = '100%'; bottomToast.style.transform = 'translateY(0px)'; } else { bottomToast.style.scale = '88%'; if (this.position.includes('bottom')) { bottomToast.style.transform = 'translateY(-32px)'; } else { this.alignBottom(topToast, bottomToast); bottomToast.style.transform = 'translateY(32px)'; } } if (this.toasts.length == 3) return; let burnToast = document.getElementById(this.toasts[3].id); burnToast.style.zIndex = 70; if (this.expanded) { burnToastPosition = topToast.getBoundingClientRect().height + this.paddingBetweenToasts + middleToast.getBoundingClientRect().height + this.paddingBetweenToasts + bottomToast.getBoundingClientRect().height + this.paddingBetweenToasts + 'px'; if (this.position.includes('bottom')) { burnToast.style.top = 'auto'; burnToast.style.bottom = burnToastPosition; } else { burnToast.style.top = burnToastPosition; } burnToast.style.scale = '100%'; burnToast.style.transform = 'translateY(0px)'; } else { burnToast.style.scale = '82%'; this.alignBottom(topToast, burnToast); burnToast.style.transform = 'translateY(48px)'; } burnToast.firstElementChild.classList.remove('opacity-100'); burnToast.firstElementChild.classList.add('opacity-0'); let that = this; // Burn 🔥 (remove) last toast setTimeout(function() { that.toasts.pop(); }, 300); if (this.position.includes('bottom')) { middleToast.style.top = 'auto'; } return; }, alignBottom(element1, element2) { // Get the top position and height of the first element let top1 = element1.offsetTop; let height1 = element1.offsetHeight; // Get the height of the second element let height2 = element2.offsetHeight; // Calculate the top position for the second element let top2 = top1 + (height1 - height2); // Apply the calculated top position to the second element element2.style.top = top2 + 'px'; }, alignTop(element1, element2) { // Get the top position of the first element let top1 = element1.offsetTop; // Apply the same top position to the second element element2.style.top = top1 + 'px'; }, resetBottom() { for (let i = 0; i < this.toasts.length; i++) { if (document.getElementById(this.toasts[i].id)) { let toastElement = document.getElementById(this.toasts[i].id); toastElement.style.bottom = '0px'; } } }, resetTop() { for (let i = 0; i < this.toasts.length; i++) { if (document.getElementById(this.toasts[i].id)) { let toastElement = document.getElementById(this.toasts[i].id); toastElement.style.top = '0px'; } } }, getBottomPositionOfElement(el) { return (el.getBoundingClientRect().height + el.getBoundingClientRect().top); }, calculateHeightOfToastsContainer() { if (this.toasts.length == 0) { $el.style.height = '0px'; return; } lastToast = this.toasts[this.toasts.length - 1]; lastToastRectangle = document.getElementById(lastToast.id).getBoundingClientRect(); firstToast = this.toasts[0]; firstToastRectangle = document.getElementById(firstToast.id).getBoundingClientRect(); if (this.toastsHovered) { if (this.position.includes('bottom')) { $el.style.height = ((firstToastRectangle.top + firstToastRectangle.height) - lastToastRectangle.top) + 'px'; } else { $el.style.height = ((lastToastRectangle.top + lastToastRectangle.height) - firstToastRectangle.top) + 'px'; } } else { $el.style.height = firstToastRectangle.height + 'px'; } } }" @set-toasts-layout.window=" layout=event.detail.layout; if(layout == 'expanded'){ expanded=true; } else { expanded=false; } stackToasts(); " @toast-show.window=" event.stopPropagation(); if(event.detail.position){ position = event.detail.position; } // Sanitize HTML content to prevent XSS let sanitizedHtml = event.detail.html ? window.sanitizeHTML(event.detail.html) : ''; toasts.unshift({ id: 'toast-' + Math.random().toString(16).slice(2), show: false, message: event.detail.message, description: event.detail.description, type: event.detail.type, html: sanitizedHtml }); " @mouseenter="toastsHovered=true;" @mouseleave="toastsHovered=false" x-init="if (layout == 'expanded') { expanded = true; } stackToasts(); $watch('toastsHovered', function(value) { if (layout == 'default') { if (position.includes('bottom')) { resetBottom(); } else { resetTop(); } if (value) { // calculate the new positions expanded = true; if (layout == 'default') { stackToasts(); } } else { if (layout == 'default') { expanded = false; //setTimeout(function(){ stackToasts(); //}, 10); setTimeout(function() { stackToasts(); }, 10) } } } });" class="fixed block w-full group z-9999 sm:max-w-xs" :class="{ 'right-0 top-0 sm:mt-6 sm:mr-6': position=='top-right', 'left-0 top-0 sm:mt-6 sm:ml-6': position=='top-left', 'left-1/2 -translate-x-1/2 top-0 sm:mt-6': position=='top-center', 'right-0 bottom-0 sm:mr-6 sm:mb-6': position=='bottom-right', 'left-0 bottom-0 sm:ml-6 sm:mb-6': position=='bottom-left', 'left-1/2 -translate-x-1/2 bottom-0 sm:mb-6': position=='bottom-center' }" x-cloak> <template x-for="(toast, index) in toasts" :key="toast.id"> <li :id="toast.id" x-data="{ toastHovered: false, copyNotification: false, copyToClipboard() { navigator.clipboard.writeText(toast.description); this.copyNotification = true; let that = this; setTimeout(function() { that.copyNotification = false; }, 1000); } }" x-init="if (position.includes('bottom')) { $el.firstElementChild.classList.add('toast-bottom'); $el.firstElementChild.classList.add('opacity-0', 'translate-y-full'); } else { $el.firstElementChild.classList.add('opacity-0', '-translate-y-full'); } $watch('toastsHovered', function(value) { if (value && this.timeout) { clearTimeout(this.timeout); } else { this.timeout = setTimeout(function() { setTimeout(function() { $el.firstElementChild.classList.remove('opacity-100'); $el.firstElementChild.classList.add('opacity-0'); if (toasts.length == 1) { $el.firstElementChild.classList.remove('translate-y-0'); $el.firstElementChild.classList.add('-translate-y-full'); } setTimeout(function() { deleteToastWithId(toast.id) }, 300); }, 5); }, 2000) } }); setTimeout(function() { setTimeout(function() { if (position.includes('bottom')) { $el.firstElementChild.classList.remove('opacity-0', 'translate-y-full'); } else { $el.firstElementChild.classList.remove('opacity-0', '-translate-y-full'); } $el.firstElementChild.classList.add('opacity-100', 'translate-y-0'); setTimeout(function() { stackToasts(); }, 10); }, 5); }, 50); this.timeout = setTimeout(function() { setTimeout(function() { $el.firstElementChild.classList.remove('opacity-100'); $el.firstElementChild.classList.add('opacity-0'); if (toasts.length == 1) { $el.firstElementChild.classList.remove('translate-y-0'); $el.firstElementChild.classList.add('-translate-y-full'); } setTimeout(function() { deleteToastWithId(toast.id) }, 300); }, 5); }, 4000);" @mouseover="toastHovered=true" @mouseout="toastHovered=false" class="absolute w-full duration-100 ease-out sm:max-w-xs " :class="{ 'toast-no-description': !toast.description }"> <span class="relative flex flex-col items-start shadow-[0_5px_15px_-3px_rgb(0_0_0_/_0.08)] w-full transition-all duration-100 ease-out dark:bg-coolgray-100 bg-white dark:border dark:border-coolgray-200 rounded-sm sm:max-w-xs group" :class="{ 'p-4': !toast.html, 'p-0': toast.html }"> <template x-if="!toast.html"> <div class="relative w-full"> <div class="flex items-center" :class="{ 'text-green-500': toast.type=='success', 'text-blue-500': toast.type=='info', 'text-orange-400': toast.type=='warning', 'text-red-500': toast.type=='danger', 'text-gray-800': toast.type=='default' }"> <svg x-show="toast.type=='success'" class="w-[18px] h-[18px] mr-1.5 -ml-1 flex-shrink-0" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM16.7744 9.63269C17.1238 9.20501 17.0604 8.57503 16.6327 8.22559C16.2051 7.87615 15.5751 7.93957 15.2256 8.36725L10.6321 13.9892L8.65936 12.2524C8.24484 11.8874 7.61295 11.9276 7.248 12.3421C6.88304 12.7566 6.92322 13.3885 7.33774 13.7535L9.31046 15.4903C10.1612 16.2393 11.4637 16.1324 12.1808 15.2547L16.7744 9.63269Z" fill="currentColor"></path> </svg> <svg x-show="toast.type=='info'" class="w-[18px] h-[18px] mr-1.5 -ml-1 flex-shrink-0" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V12Z" fill="currentColor"></path> </svg> <svg x-show="toast.type=='warning'" class="w-[18px] h-[18px] mr-1.5 -ml-1 flex-shrink-0" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M9.44829 4.46472C10.5836 2.51208 13.4105 2.51168 14.5464 4.46401L21.5988 16.5855C22.7423 18.5509 21.3145 21 19.05 21L4.94967 21C2.68547 21 1.25762 18.5516 2.4004 16.5862L9.44829 4.46472ZM11.9995 8C12.5518 8 12.9995 8.44772 12.9995 9V13C12.9995 13.5523 12.5518 14 11.9995 14C11.4473 14 10.9995 13.5523 10.9995 13V9C10.9995 8.44772 11.4473 8 11.9995 8ZM12.0009 15.99C11.4486 15.9892 11.0003 16.4363 10.9995 16.9886L10.9995 16.9986C10.9987 17.5509 11.4458 17.9992 11.9981 18C12.5504 18.0008 12.9987 17.5537 12.9995 17.0014L12.9995 16.9914C13.0003 16.4391 12.5532 15.9908 12.0009 15.99Z" fill="currentColor"></path> </svg> <svg x-show="toast.type=='danger'" class="w-[18px] h-[18px] mr-1.5 -ml-1 flex-shrink-0" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9996 7C12.5519 7 12.9996 7.44772 12.9996 8V12C12.9996 12.5523 12.5519 13 11.9996 13C11.4474 13 10.9996 12.5523 10.9996 12V8C10.9996 7.44772 11.4474 7 11.9996 7ZM12.001 14.99C11.4488 14.9892 11.0004 15.4363 10.9997 15.9886L10.9996 15.9986C10.9989 16.5509 11.446 16.9992 11.9982 17C12.5505 17.0008 12.9989 16.5537 12.9996 16.0014L12.9996 15.9914C13.0004 15.4391 12.5533 14.9908 12.001 14.99Z" fill="currentColor"></path> </svg> <p class="text-black leading-2 dark:text-neutral-200" x-text="toast.message"> </p> </div> <div x-show="toast.description" :class="{ 'pl-5': toast.type!='default' }" class="mt-1.5 text-xs px-2 opacity-90 whitespace-pre-wrap w-full break-words" x-html="window.sanitizeHTML(toast.description)"></div> </div> </template> <template x-if="toast.html"> <div x-html="window.sanitizeHTML(toast.html)"></div> </template> <span class="absolute mt-1 text-xs right-[4.4rem] text-success font-bold" x-show="copyNotification" :class="{ 'opacity-100': toastHovered, 'opacity-0': ! toastHovered }"> Copied </span> <span @click="copyToClipboard()" class="absolute right-7 p-1.5 mr-2.5 text-neutral-700 hover:text-neutral-900 dark:text-neutral-400 hover:bg-neutral-300 duration-100 ease-in-out rounded-full opacity-0 cursor-pointer dark:hover:bg-coolgray-400 dark:hover:text-neutral-300" :class="{ 'top-1/2 -translate-y-1/2': !toast.description && !toast.html, 'top-0 mt-3': (toast .description || toast.html), 'opacity-100': toastHovered, 'opacity-0': ! toastHovered }"> <svg class="w-4 h-4 stroke-current" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> <path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /> </svg> </span> <span @click="burnToast(toast.id)" class="absolute right-0 p-1.5 mr-2.5 text-neutral-700 hover:text-neutral-900 dark:text-neutral-400 duration-100 ease-in-out rounded-full opacity-0 cursor-pointer hover:bg-neutral-300 dark:hover:bg-coolgray-400 dark:hover:text-neutral-300" :class="{ 'top-1/2 -translate-y-1/2': !toast.description && !toast.html, 'top-0 mt-3.5': (toast .description || toast.html), 'opacity-100': toastHovered, 'opacity-0': ! toastHovered }"> <svg class="w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path> </svg> </span> </span> </li> </template> </ul> </template> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/services/advanced.blade.php
resources/views/components/services/advanced.blade.php
<x-dropdown> <x-slot:title> Advanced </x-slot> @if (str($service->status)->contains('running')) <div class="dropdown-item" @click="$wire.dispatch('pullAndRestartEvent')"> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" /> <path d="M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" /> <path d="M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" /> <path d="M3 3l18 18" /> </svg> Pull Latest Images & Restart </div> @elseif (str($service->status)->contains('degraded')) <div class="dropdown-item" @click="$wire.dispatch('forceDeployEvent')"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" data-darkreader-inline-stroke="" style="--darkreader-inline-stroke: currentColor;" class="w-6 h-6" stroke-width="2"> <path d="M7 7l5 5l-5 5"></path> <path d="M13 7l5 5l-5 5"></path> </svg> Force Restart </div> @else <div class="dropdown-item" @click="$wire.dispatch('forceDeployEvent')"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" data-darkreader-inline-stroke="" style="--darkreader-inline-stroke: currentColor;" class="w-4 h-4" stroke-width="2"> <path d="M7 7l5 5l-5 5"></path> <path d="M13 7l5 5l-5 5"></path> </svg> Force Deploy </div> <div class="dropdown-item" wire:click='stop(true)''> <svg class="w-4 h-4" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="M26 20h-6v-2h6zm4 8h-6v-2h6zm-2-4h-6v-2h6z" /> <path fill="currentColor" d="M17.003 20a4.895 4.895 0 0 0-2.404-4.173L22 3l-1.73-1l-7.577 13.126a5.699 5.699 0 0 0-5.243 1.503C3.706 20.24 3.996 28.682 4.01 29.04a1 1 0 0 0 1 .96h14.991a1 1 0 0 0 .6-1.8c-3.54-2.656-3.598-8.146-3.598-8.2Zm-5.073-3.003A3.11 3.11 0 0 1 15.004 20c0 .038.002.208.017.469l-5.9-2.624a3.8 3.8 0 0 1 2.809-.848ZM15.45 28A5.2 5.2 0 0 1 14 25h-2a6.5 6.5 0 0 0 .968 3h-2.223A16.617 16.617 0 0 1 10 24H8a17.342 17.342 0 0 0 .665 4H6c.031-1.836.29-5.892 1.803-8.553l7.533 3.35A13.025 13.025 0 0 0 17.596 28Z" /> </svg> Force Cleanup Containers </div> @endif </x-dropdown>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/services/links.blade.php
resources/views/components/services/links.blade.php
@if ($links->count() > 0) <x-dropdown> <x-slot:title> Links </x-slot> @foreach ($links as $link) <a class="dropdown-item" target="_blank" href="{{ $link }}"> <x-external-link class="size-3.5" />{{ $link }} </a> @endforeach </x-dropdown> @endif
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/settings/navbar.blade.php
resources/views/components/settings/navbar.blade.php
<div class="pb-5"> <h1>Settings</h1> <div class="subtitle">Instance wide settings for Coolify.</div> <div class="navbar-main"> <nav class="flex items-center gap-6 min-h-10 whitespace-nowrap"> <a class="{{ request()->routeIs('settings.index') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('settings.index') }}"> Configuration </a> <a class="{{ request()->routeIs('settings.backup') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('settings.backup') }}"> Backup </a> <a class="{{ request()->routeIs('settings.email') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('settings.email') }}"> Transactional Email </a> <a class="{{ request()->routeIs('settings.oauth') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('settings.oauth') }}"> OAuth </a> <div class="flex-1"></div> </nav> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/settings/sidebar.blade.php
resources/views/components/settings/sidebar.blade.php
<div class="flex flex-col items-start gap-2 min-w-fit"> <a class="menu-item {{ $activeMenu === 'general' ? 'menu-item-active' : '' }}" {{ wireNavigate() }} href="{{ route('settings.index') }}">General</a> <a class="menu-item {{ $activeMenu === 'advanced' ? 'menu-item-active' : '' }}" {{ wireNavigate() }} href="{{ route('settings.advanced') }}">Advanced</a> <a class="menu-item {{ $activeMenu === 'updates' ? 'menu-item-active' : '' }}" {{ wireNavigate() }} href="{{ route('settings.updates') }}">Updates</a> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/notification/navbar.blade.php
resources/views/components/notification/navbar.blade.php
<div class="pb-6"> <h1>Notifications</h1> <div class="subtitle">Get notified about your infrastructure.</div> <div class="navbar-main"> <nav class="flex items-center gap-6 min-h-10"> <a class="{{ request()->routeIs('notifications.email') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.email') }}"> <button>Email</button> </a> <a class="{{ request()->routeIs('notifications.discord') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.discord') }}"> <button>Discord</button> </a> <a class="{{ request()->routeIs('notifications.telegram') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.telegram') }}"> <button>Telegram</button> </a> <a class="{{ request()->routeIs('notifications.slack') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.slack') }}"> <button>Slack</button> </a> <a class="{{ request()->routeIs('notifications.pushover') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.pushover') }}"> <button>Pushover</button> </a> <a class="{{ request()->routeIs('notifications.webhook') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('notifications.webhook') }}"> <button>Webhook</button> </a> </nav> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/emails/layout.blade.php
resources/views/components/emails/layout.blade.php
<x-emails.header /> {{ Illuminate\Mail\Markdown::parse($slot) }} <x-emails.footer />
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/emails/header.blade.php
resources/views/components/emails/header.blade.php
Hello,
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/emails/footer.blade.php
resources/views/components/emails/footer.blade.php
{{ Illuminate\Mail\Markdown::parse('---') }} Thank you,<br> {{ config('app.name') ?? 'Coolify' }} {{ Illuminate\Mail\Markdown::parse('[Contact Support](https://coolify.io/docs/contact)') }}
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/datalist.blade.php
resources/views/components/forms/datalist.blade.php
<div class="w-full"> @if ($label) <label class="flex gap-1 items-center mb-1 text-sm font-medium {{ $disabled ? 'text-neutral-600' : '' }}"> {{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif @if ($multiple) {{-- Multiple Selection Mode with Alpine.js --}} <div x-data="{ open: false, search: '', selected: @entangle($modelBinding).live, options: [], filteredOptions: [], init() { this.options = Array.from(this.$refs.datalist.querySelectorAll('option')).map(opt => { // Try to parse as integer, fallback to string let value = opt.value; const intValue = parseInt(value, 10); if (!isNaN(intValue) && intValue.toString() === value) { value = intValue; } return { value: value, text: opt.textContent.trim() }; }); this.filteredOptions = this.options; // Ensure selected is always an array if (!Array.isArray(this.selected)) { this.selected = []; } }, filterOptions() { if (!this.search) { this.filteredOptions = this.options; return; } const searchLower = this.search.toLowerCase(); this.filteredOptions = this.options.filter(opt => opt.text.toLowerCase().includes(searchLower) ); }, toggleOption(value) { // Ensure selected is an array if (!Array.isArray(this.selected)) { this.selected = []; } const index = this.selected.indexOf(value); if (index > -1) { this.selected.splice(index, 1); } else { this.selected.push(value); } this.search = ''; this.filterOptions(); // Focus input after selection this.$refs.searchInput.focus(); }, removeOption(value, event) { // Ensure selected is an array if (!Array.isArray(this.selected)) { this.selected = []; return; } // Prevent triggering container click event.stopPropagation(); const index = this.selected.indexOf(value); if (index > -1) { this.selected.splice(index, 1); } }, isSelected(value) { // Ensure selected is an array if (!Array.isArray(this.selected)) { return false; } return this.selected.includes(value); }, getSelectedText(value) { const option = this.options.find(opt => opt.value == value); return option ? option.text : value; } }" @click.outside="open = false" class="relative"> {{-- Unified Input Container with Tags Inside --}} <div @click="$refs.searchInput.focus()" x-data="{ focused: false }" @focusin="focused = true" @focusout="focused = false" class="flex flex-wrap gap-1.5 max-h-40 overflow-y-auto scrollbar py-1.5 px-2 w-full text-sm rounded-sm border-0 bg-white dark:bg-coolgray-100 cursor-text px-1 text-black dark:text-white" :style="focused ? 'box-shadow: inset 4px 0 0 #6b16ed, inset 0 0 0 2px #e5e5e5;' : 'box-shadow: inset 4px 0 0 transparent, inset 0 0 0 2px #e5e5e5;'" x-init="$watch('focused', () => { if ($root.classList.contains('dark') || document.documentElement.classList.contains('dark')) { $el.style.boxShadow = focused ? 'inset 4px 0 0 #fcd452, inset 0 0 0 2px #242424' : 'inset 4px 0 0 transparent, inset 0 0 0 2px #242424'; } })" :class="{ 'opacity-50': {{ $disabled ? 'true' : 'false' }} }" wire:loading.class="opacity-50" wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]"> {{-- Selected Tags Inside Input --}} <template x-for="value in selected" :key="value"> <button type="button" @click.stop="removeOption(value, $event)" :disabled="{{ $disabled ? 'true' : 'false' }}" class="inline-flex items-center gap-1.5 px-2 py-0.5 text-xs bg-coolgray-200 dark:bg-coolgray-700 rounded whitespace-nowrap {{ $disabled ? 'cursor-not-allowed opacity-50' : 'cursor-pointer hover:bg-red-100 dark:hover:bg-red-900/20 hover:text-red-600 dark:hover:text-red-400' }}" aria-label="Remove"> <span x-text="getSelectedText(value)" class="max-w-[200px] truncate"></span> </button> </template> {{-- Search Input (Borderless, Inside Container) --}} <input type="text" x-model="search" x-ref="searchInput" @input="filterOptions()" @focus="open = true" @keydown.escape="open = false" :placeholder="(Array.isArray(selected) && selected.length > 0) ? '' : {{ json_encode($placeholder ?: 'Search...') }}" @required($required) @readonly($readonly) @disabled($disabled) @if ($autofocus) autofocus @endif class="flex-1 min-w-[120px] text-sm border-0 outline-none bg-transparent p-0 focus:ring-0 placeholder:text-neutral-400 dark:placeholder:text-neutral-600 text-black dark:text-white" /> </div> {{-- Dropdown Options --}} <div x-show="open && !{{ $disabled ? 'true' : 'false' }}" x-transition class="absolute z-50 w-full mt-1 bg-white dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-400 rounded shadow-lg max-h-60 overflow-auto scrollbar"> <template x-if="filteredOptions.length === 0"> <div class="px-3 py-2 text-sm text-neutral-500 dark:text-neutral-400"> No options found </div> </template> <template x-for="option in filteredOptions" :key="option.value"> <div @click="toggleOption(option.value)" class="px-3 py-2 cursor-pointer hover:bg-neutral-100 dark:hover:bg-coolgray-200 flex items-center gap-3" :class="{ 'bg-neutral-50 dark:bg-coolgray-300': isSelected(option.value) }"> <input type="checkbox" :checked="isSelected(option.value)" class="w-4 h-4 rounded border-neutral-300 dark:border-neutral-600 bg-white dark:bg-coolgray-100 text-black dark:text-white checked:bg-white dark:checked:bg-coolgray-100 focus:ring-coollabs dark:focus:ring-warning pointer-events-none" tabindex="-1"> <span class="text-sm flex-1" x-text="option.text"></span> </div> </template> </div> {{-- Hidden datalist for options --}} <datalist x-ref="datalist" style="display: none;"> {{ $slot }} </datalist> </div> @else {{-- Single Selection Mode with Alpine.js --}} <div x-data="{ open: false, search: '', selected: @entangle(($attributes->whereStartsWith('wire:model')->first() ? $attributes->wire('model')->value() : $modelBinding)).live, options: [], filteredOptions: [], init() { this.options = Array.from(this.$refs.datalist.querySelectorAll('option')).map(opt => { // Skip disabled options if (opt.disabled) { return null; } // Try to parse as integer, fallback to string let value = opt.value; const intValue = parseInt(value, 10); if (!isNaN(intValue) && intValue.toString() === value) { value = intValue; } return { value: value, text: opt.textContent.trim() }; }).filter(opt => opt !== null); this.filteredOptions = this.options; }, filterOptions() { if (!this.search) { this.filteredOptions = this.options; return; } const searchLower = this.search.toLowerCase(); this.filteredOptions = this.options.filter(opt => opt.text.toLowerCase().includes(searchLower) ); }, selectOption(value) { this.selected = value; this.search = ''; this.open = false; this.filterOptions(); }, openDropdown() { if ({{ $disabled ? 'true' : 'false' }}) return; this.open = true; this.$nextTick(() => { if (this.$refs.searchInput) { this.$refs.searchInput.focus(); } }); }, getSelectedText() { if (!this.selected || this.selected === 'default') return ''; const option = this.options.find(opt => opt.value == this.selected); return option ? option.text : this.selected; }, isDefaultValue() { return !this.selected || this.selected === 'default' || this.selected === ''; } }" @click.outside="open = false" class="relative"> {{-- Hidden input for form validation --}} <input type="hidden" :value="selected" @required($required) /> {{-- Input Container --}} <div @click="openDropdown()" x-data="{ focused: false }" @focusin="focused = true" @focusout="focused = false" class="flex items-center gap-2 py-1.5 w-full text-sm rounded-sm border-0 bg-white dark:bg-coolgray-100 cursor-text text-black dark:text-white" :style="focused ? 'box-shadow: inset 4px 0 0 #6b16ed, inset 0 0 0 2px #e5e5e5;' : 'box-shadow: inset 4px 0 0 transparent, inset 0 0 0 2px #e5e5e5;'" x-init="$watch('focused', () => { if ($root.classList.contains('dark') || document.documentElement.classList.contains('dark')) { $el.style.boxShadow = focused ? 'inset 4px 0 0 #fcd452, inset 0 0 0 2px #242424' : 'inset 4px 0 0 transparent, inset 0 0 0 2px #242424'; } })" :class="{ 'opacity-50': {{ $disabled ? 'true' : 'false' }} }" wire:loading.class="opacity-50" wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]"> {{-- Display Selected Value or Search Input --}} <div class="flex-1 flex items-center min-w-0 px-1"> <template x-if="!isDefaultValue() && !open"> <span class="text-sm flex-1 truncate text-black dark:text-white px-2" x-text="getSelectedText()"></span> </template> <input type="text" x-show="isDefaultValue() || open" x-model="search" x-ref="searchInput" @input="filterOptions()" @focus="open = true" @keydown.escape="open = false" :placeholder="{{ json_encode($placeholder ?: 'Search...') }}" @readonly($readonly) @disabled($disabled) @if ($autofocus) autofocus @endif class="flex-1 text-sm border-0 outline-none bg-transparent p-0 focus:ring-0 placeholder:text-neutral-400 dark:placeholder:text-neutral-600 text-black dark:text-white px-2" /> </div> {{-- Dropdown Arrow --}} <button type="button" @click.stop="open = !open" :disabled="{{ $disabled ? 'true' : 'false' }}" class="shrink-0 text-neutral-400 px-2 {{ $disabled ? 'cursor-not-allowed' : 'cursor-pointer' }}"> <svg class="w-4 h-4 transition-transform" :class="{ 'rotate-180': open }" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" /> </svg> </button> </div> {{-- Dropdown Options --}} <div x-show="open && !{{ $disabled ? 'true' : 'false' }}" x-transition class="absolute z-50 w-full mt-1 bg-white dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-400 rounded shadow-lg max-h-60 overflow-auto scrollbar"> <template x-if="filteredOptions.length === 0"> <div class="px-3 py-2 text-sm text-neutral-500 dark:text-neutral-400"> No options found </div> </template> <template x-for="option in filteredOptions" :key="option.value"> <div @click="selectOption(option.value)" class="px-3 py-2 cursor-pointer hover:bg-neutral-100 dark:hover:bg-coolgray-200" :class="{ 'bg-neutral-50 dark:bg-coolgray-300': selected == option.value }"> <span class="text-sm" x-text="option.text"></span> </div> </template> </div> {{-- Hidden datalist for options --}} <datalist x-ref="datalist" style="display: none;"> {{ $slot }} </datalist> </div> @endif @error($modelBinding) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/monaco-editor.blade.php
resources/views/components/forms/monaco-editor.blade.php
<div wire:key="{{ rand() }}" class="coolify-monaco-editor flex-1"> <div x-ref="monacoRef" x-data="{ monacoVersion: '0.52.2', monacoContent: @entangle($id), monacoLanguage: '', monacoPlaceholder: true, monacoPlaceholderText: 'Start typing here', monacoLoader: true, monacoFontSize: '15px', monacoId: $id('monaco-editor'), isDarkMode() { return document.documentElement.classList.contains('dark') || localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches); }, monacoEditor(editor) { editor.onDidChangeModelContent((e) => { this.monacoContent = editor.getValue(); this.updatePlaceholder(editor.getValue()); }); editor.onDidBlurEditorWidget(() => { this.updatePlaceholder(editor.getValue()); }); editor.onDidFocusEditorWidget(() => { this.updatePlaceholder(editor.getValue()); }); }, updatePlaceholder(value) { this.monacoPlaceholder = value === ''; }, monacoEditorFocus() { document.getElementById(this.monacoId).dispatchEvent(new CustomEvent('monaco-editor-focused', { detail: { monacoId: this.monacoId } })); }, monacoEditorAddLoaderScriptToHead() { // Use a global flag to prevent duplicate script loading if (!window.__coolifyMonacoLoaderAdding && typeof _amdLoaderGlobal === 'undefined') { window.__coolifyMonacoLoaderAdding = true; let script = document.createElement('script'); script.src = `/js/monaco-editor-${this.monacoVersion}/min/vs/loader.js`; script.onload = () => { window.__coolifyMonacoLoaderAdding = false; }; script.onerror = () => { window.__coolifyMonacoLoaderAdding = false; }; document.head.appendChild(script); } } }" x-modelable="monacoContent"> <div x-cloak x-init="if (typeof _amdLoaderGlobal == 'undefined' && !window.__coolifyMonacoLoaderAdding) { monacoEditorAddLoaderScriptToHead(); } checkTheme(); let monacoLoaderInterval = setInterval(() => { if (typeof _amdLoaderGlobal !== 'undefined') { require.config({ paths: { 'vs': `/js/monaco-editor-${monacoVersion}/min/vs` } }); let proxy = URL.createObjectURL(new Blob([`self.MonacoEnvironment={baseUrl:'${window.location.origin}/js/monaco-editor-${monacoVersion}/min'};importScripts('${window.location.origin}/js/monaco-editor-${monacoVersion}/min/vs/base/worker/workerMain.js');`], { type: 'text/javascript' })); window.MonacoEnvironment = { getWorkerUrl: () => proxy }; require(['vs/editor/editor.main'], () => { const editor = monaco.editor.create($refs.monacoEditorElement, { value: monacoContent, theme: document.documentElement.classList.contains('dark') ? 'vs-dark' : 'vs', wordWrap: 'on', readOnly: '{{ $readonly ?? false }}', minimap: { enabled: false }, fontSize: monacoFontSize, lineNumbersMinChars: 3, automaticLayout: true, language: '{{ $language }}', domReadOnly: '{{ $readonly ?? false }}', contextmenu: '!{{ $readonly ?? false }}', renderLineHighlight: '{{ $readonly ?? false }} ? none : all', stickyScroll: { enabled: false } }); const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if (mutation.attributeName === 'class') { const isDark = document.documentElement.classList.contains('dark'); monaco.editor.setTheme(isDark ? 'vs-dark' : 'vs'); } }); }); observer.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] }); monacoEditor(editor); document.getElementById(monacoId).editor = editor; document.getElementById(monacoId).addEventListener('monaco-editor-focused', (event) => { editor.focus(); }); updatePlaceholder(editor.getValue()); @if ($autofocus) // Auto-focus the editor setTimeout(() => editor.focus(), 100); @endif $watch('monacoContent', value => { if (editor.getValue() !== value) { editor.setValue(value); } }); }); clearInterval(monacoLoaderInterval); monacoLoader = false; } }, 5);" :id="monacoId"> </div> <div class="relative z-10 w-full h-full"> <div x-ref="monacoEditorElement" class="w-full text-md {{ $readonly ? 'opacity-65' : '' }}" style="height: var(--editor-height, calc(100vh - 20rem)); min-height: 300px;"></div> <div x-ref="monacoPlaceholderElement" x-show="monacoPlaceholder" @click="monacoEditorFocus()" :style="'font-size: ' + monacoFontSize" class="w-full text-sm font-mono absolute z-50 text-gray-500 ml-14 -translate-x-0.5 mt-0.5 left-0 top-0" x-text="monacoPlaceholderText"></div> </div> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/select.blade.php
resources/views/components/forms/select.blade.php
<div class="w-full"> @if ($label) <label class="flex gap-1 items-center mb-1 text-sm font-medium {{ $disabled ? 'text-neutral-600' : '' }}">{{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif <select {{ $attributes->merge(['class' => $defaultClass]) }} @disabled($disabled) @required($required) wire:loading.attr="disabled" name={{ $modelBinding }} id="{{ $htmlId }}" @if ($attributes->whereStartsWith('wire:model')->first()) {{ $attributes->whereStartsWith('wire:model')->first() }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @else wire:model={{ $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif> {{ $slot }} </select> @error($modelBinding) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/checkbox.blade.php
resources/views/components/forms/checkbox.blade.php
@props([ 'id', 'label' => null, 'helper' => null, 'disabled' => false, 'instantSave' => false, 'value' => null, 'domValue' => null, 'checked' => false, 'fullWidth' => false, ]) <div @class([ 'flex flex-row items-center gap-4 pr-2 py-1 form-control min-w-fit', 'w-full' => $fullWidth, 'dark:hover:bg-coolgray-100 cursor-pointer' => !$disabled, ])> <label @class(['flex gap-4 items-center px-0 min-w-fit label w-full'])> <span class="flex grow gap-2"> @if ($label) @if ($disabled) <span class="opacity-60">{!! $label !!}</span> @else {!! $label !!} @endif @if ($helper) <x-helper :helper="$helper" /> @endif @endif </span> @if ($instantSave) <input type="checkbox" @disabled($disabled) {{ $attributes->merge(['class' => $defaultClass]) }} wire:loading.attr="disabled" wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}' wire:model={{ $modelBinding }} id="{{ $htmlId }}" @if ($checked) checked @endif /> @else @if ($domValue) <input type="checkbox" @disabled($disabled) {{ $attributes->merge(['class' => $defaultClass]) }} value={{ $domValue }} id="{{ $htmlId }}" @if ($checked) checked @endif /> @else <input type="checkbox" @disabled($disabled) {{ $attributes->merge(['class' => $defaultClass]) }} wire:model={{ $value ?? $modelBinding }} id="{{ $htmlId }}" @if ($checked) checked @endif /> @endif @endif </label> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/button.blade.php
resources/views/components/forms/button.blade.php
<button @disabled($disabled) {{ $attributes->merge(['class' => $defaultClass]) }} {{ $attributes->merge(['type' => 'button']) }} @isset($confirm) x-on:click="toggleConfirmModal('{{ $confirm }}', '{{ explode('(', $confirmAction)[0] }}')" @endisset @isset($confirmAction) x-on:{{ explode('(', $confirmAction)[0] }}.window="$wire.{{ explode('(', $confirmAction)[0] }}" @endisset> {{ $slot }} @if ($showLoadingIndicator) @if ($attributes->whereStartsWith('wire:click')->first()) <x-loading-on-button wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" wire:loading.delay /> @elseif($attributes->whereStartsWith('wire:target')->first()) <x-loading-on-button wire:target="{{ $attributes->whereStartsWith('wire:target')->first() }}" wire:loading.delay /> @endif @endif </button>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/copy-button.blade.php
resources/views/components/forms/copy-button.blade.php
@props(['text']) <div class="relative" x-data="{ copied: false, isSecure: window.isSecureContext }"> <input type="text" value="{{ $text }}" readonly class="input"> <button x-show="isSecure" @click.prevent="copied = true; navigator.clipboard.writeText({{ Js::from($text) }}); setTimeout(() => copied = false, 1000)" class="absolute right-2 top-1/2 -translate-y-1/2 p-1.5 text-gray-400 hover:text-gray-300 transition-colors" title="Copy to clipboard"> <svg x-show="!copied" class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" /> </svg> <svg x-show="copied" class="w-5 h-5 text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /> </svg> </button> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/input.blade.php
resources/views/components/forms/input.blade.php
<div @class([ 'flex-1' => $isMultiline, 'w-full' => !$isMultiline, ])> @if ($label) <label class="flex gap-1 items-center mb-1 text-sm font-medium">{{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif @if ($type === 'password') <div class="relative" x-data="{ type: 'password' }"> @if ($allowToPeak) <div x-on:click="changePasswordFieldType" class="flex absolute inset-y-0 right-0 items-center pr-2 cursor-pointer dark:hover:text-white"> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /> </svg> </div> @endif <input autocomplete="{{ $autocomplete }}" value="{{ $value }}" {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) @if ($modelBinding !== 'null') wire:model={{ $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif wire:loading.attr="disabled" type="{{ $type }}" @readonly($readonly) @disabled($disabled) id="{{ $htmlId }}" name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}" aria-placeholder="{{ $attributes->get('placeholder') }}" @if ($autofocus) x-ref="autofocusInput" @endif> </div> @else <input autocomplete="{{ $autocomplete }}" @if ($value) value="{{ $value }}" @endif {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) @readonly($readonly) @if ($modelBinding !== 'null') wire:model={{ $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif wire:loading.attr="disabled" type="{{ $type }}" @disabled($disabled) min="{{ $attributes->get('min') }}" max="{{ $attributes->get('max') }}" minlength="{{ $attributes->get('minlength') }}" maxlength="{{ $attributes->get('maxlength') }}" @if ($htmlId !== 'null') id={{ $htmlId }} @endif name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}" @if ($autofocus) x-ref="autofocusInput" @endif> @endif @if (!$label && $helper) <x-helper :helper="$helper" /> @endif @error($modelBinding) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/env-var-input.blade.php
resources/views/components/forms/env-var-input.blade.php
<div class="w-full"> @if ($label) <label class="flex gap-1 items-center mb-1 text-sm font-medium">{{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif <div class="relative" x-data="{ type: '{{ $type }}', showDropdown: false, suggestions: [], selectedIndex: 0, cursorPosition: 0, currentScope: null, availableScopes: ['team', 'project', 'environment'], availableVars: @js($availableVars), scopeUrls: @js($scopeUrls), handleInput() { const input = this.$refs.input; if (!input) return; const value = input.value || ''; this.cursorPosition = input.selectionStart || 0; const textBeforeCursor = value.substring(0, this.cursorPosition); const openBraces = '{' + '{'; const lastBraceIndex = textBeforeCursor.lastIndexOf(openBraces); if (lastBraceIndex === -1) { this.showDropdown = false; return; } if (lastBraceIndex > 0 && textBeforeCursor[lastBraceIndex - 1] === '{') { this.showDropdown = false; return; } const textAfterBrace = textBeforeCursor.substring(lastBraceIndex); const closeBraces = '}' + '}'; if (textAfterBrace.includes(closeBraces)) { this.showDropdown = false; return; } const content = textAfterBrace.substring(2).trim(); if (content === '') { this.currentScope = null; this.suggestions = this.availableScopes.map(scope => ({ type: 'scope', value: scope, display: scope })); this.selectedIndex = 0; this.showDropdown = true; } else if (content.includes('.')) { const [scope, partial] = content.split('.'); if (!this.availableScopes.includes(scope)) { this.showDropdown = false; return; } this.currentScope = scope; const scopeVars = this.availableVars[scope] || []; const filtered = scopeVars.filter(v => v.toLowerCase().includes((partial || '').toLowerCase()) ); if (filtered.length === 0 && scopeVars.length === 0) { this.suggestions = []; this.showDropdown = true; } else { this.suggestions = filtered.map(varName => ({ type: 'variable', value: varName, display: `${scope}.${varName}`, scope: scope })); this.selectedIndex = 0; this.showDropdown = filtered.length > 0; } } else { this.currentScope = null; const filtered = this.availableScopes.filter(scope => scope.toLowerCase().includes(content.toLowerCase()) ); this.suggestions = filtered.map(scope => ({ type: 'scope', value: scope, display: scope })); this.selectedIndex = 0; this.showDropdown = filtered.length > 0; } }, getScopeUrl(scope) { return this.scopeUrls[scope] || this.scopeUrls['default']; }, selectSuggestion(suggestion) { const input = this.$refs.input; if (!input) return; const value = input.value || ''; const textBeforeCursor = value.substring(0, this.cursorPosition); const textAfterCursor = value.substring(this.cursorPosition); const openBraces = '{' + '{'; const lastBraceIndex = textBeforeCursor.lastIndexOf(openBraces); if (suggestion.type === 'scope') { const newText = value.substring(0, lastBraceIndex) + openBraces + ' ' + suggestion.value + '.' + textAfterCursor; input.value = newText; this.cursorPosition = lastBraceIndex + 3 + suggestion.value.length + 1; this.$nextTick(() => { input.setSelectionRange(this.cursorPosition, this.cursorPosition); input.focus(); this.handleInput(); }); } else { const closeBraces = '}' + '}'; const newText = value.substring(0, lastBraceIndex) + openBraces + ' ' + suggestion.display + ' ' + closeBraces + textAfterCursor; input.value = newText; this.cursorPosition = lastBraceIndex + 3 + suggestion.display.length + 3; input.dispatchEvent(new Event('input')); this.showDropdown = false; this.selectedIndex = 0; this.$nextTick(() => { input.setSelectionRange(this.cursorPosition, this.cursorPosition); input.focus(); }); } }, handleKeydown(event) { if (!this.showDropdown) return; if (!this.suggestions || this.suggestions.length === 0) return; if (event.key === 'ArrowDown') { event.preventDefault(); this.selectedIndex = (this.selectedIndex + 1) % this.suggestions.length; this.$nextTick(() => { const el = document.getElementById('suggestion-' + this.selectedIndex); if (el) { el.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); } }); } else if (event.key === 'ArrowUp') { event.preventDefault(); this.selectedIndex = this.selectedIndex <= 0 ? this.suggestions.length - 1 : this.selectedIndex - 1; this.$nextTick(() => { const el = document.getElementById('suggestion-' + this.selectedIndex); if (el) { el.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); } }); } else if (event.key === 'Enter' && this.showDropdown) { event.preventDefault(); if (this.suggestions[this.selectedIndex]) { this.selectSuggestion(this.suggestions[this.selectedIndex]); } } else if (event.key === 'Escape') { this.showDropdown = false; } } }" @click.outside="showDropdown = false"> @if ($type === 'password' && $allowToPeak) <div x-on:click="changePasswordFieldType" class="flex absolute inset-y-0 right-0 items-center pr-2 cursor-pointer dark:hover:text-white z-10"> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /> </svg> </div> @endif <input x-ref="input" @input="handleInput()" @keydown="handleKeydown($event)" @click="handleInput()" autocomplete="{{ $autocomplete }}" {{ $attributes->merge(['class' => $defaultClass]) }} @required($required) @readonly($readonly) @if ($modelBinding !== 'null') wire:model="{{ $modelBinding }}" wire:dirty.class="dark:border-l-warning border-l-coollabs border-l-4" @endif wire:loading.attr="disabled" @if ($type === 'password') :type="type" @else type="{{ $type }}" @endif @disabled($disabled) @if ($htmlId !== 'null') id="{{ $htmlId }}" @endif name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}" @if ($autofocus) autofocus @endif> {{-- Dropdown for suggestions --}} <div x-show="showDropdown" x-transition class="absolute z-[60] w-full mt-1 bg-white dark:bg-coolgray-100 border border-neutral-300 dark:border-coolgray-400 rounded shadow-lg"> <template x-if="suggestions.length === 0 && currentScope"> <div class="px-3 py-2 text-sm text-neutral-500 dark:text-neutral-400"> <div>No shared variables found in <span class="font-semibold" x-text="currentScope"></span> scope.</div> <a :href="getScopeUrl(currentScope)" class="text-coollabs dark:text-warning hover:underline text-xs mt-1 inline-block" target="_blank"> Add <span x-text="currentScope"></span> variables → </a> </div> </template> <div x-show="suggestions.length > 0" x-ref="dropdownList" class="max-h-48 overflow-y-scroll" style="scrollbar-width: thin;"> <template x-for="(suggestion, index) in suggestions" :key="index"> <div :id="'suggestion-' + index" @click="selectSuggestion(suggestion)" class="px-3 py-2 cursor-pointer hover:bg-neutral-100 dark:hover:bg-coolgray-200 flex items-center gap-2" :class="{ 'bg-neutral-50 dark:bg-coolgray-300': index === selectedIndex }"> <template x-if="suggestion.type === 'scope'"> <span class="text-xs px-2 py-0.5 bg-coollabs/10 dark:bg-warning/10 text-coollabs dark:text-warning rounded"> SCOPE </span> </template> <template x-if="suggestion.type === 'variable'"> <span class="text-xs px-2 py-0.5 bg-green-500/10 text-green-600 dark:text-green-400 rounded"> VAR </span> </template> <span class="text-sm font-mono" x-text="suggestion.display"></span> </div> </template> </div> </div> </div> @if (!$label && $helper) <x-helper :helper="$helper" /> @endif @error($modelBinding) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/forms/textarea.blade.php
resources/views/components/forms/textarea.blade.php
<script> function handleKeydown(e) { if (e.keyCode === 9) { e.preventDefault(); e.target.setRangeText( ' ', e.target.selectionStart, e.target.selectionStart, 'end' ); } } </script> <div class="flex-1 form-control"> @if ($label) <label class="flex items-center gap-1 mb-1 text-sm font-medium">{{ $label }} @if ($required) <x-highlighted text="*" /> @endif @if ($helper) <x-helper :helper="$helper" /> @endif </label> @endif @if ($useMonacoEditor) <x-forms.monaco-editor id="{{ $modelBinding }}" language="{{ $monacoEditorLanguage }}" name="{{ $name }}" name="{{ $modelBinding }}" model="{{ $value ?? $modelBinding }}" wire:model="{{ $value ?? $modelBinding }}" readonly="{{ $readonly }}" label="dockerfile" autofocus="{{ $autofocus }}" /> @else @if ($type === 'password') <div class="relative" x-data="{ type: 'password' }"> @if ($allowToPeak) <div x-on:click="changePasswordFieldType" class="absolute inset-y-0 right-0 flex items-center h-6 pt-2 pr-2 cursor-pointer dark:hover:text-white"> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0" /> <path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6" /> </svg> </div> @endif <input x-cloak x-show="type === 'password'" value="{{ $value }}" {{ $attributes->merge(['class' => $defaultClassInput]) }} @required($required) @if ($modelBinding !== 'null') wire:model={{ $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif wire:loading.attr="disabled" type="{{ $type }}" @readonly($readonly) @disabled($disabled) id="{{ $htmlId }}" name="{{ $name }}" placeholder="{{ $attributes->get('placeholder') }}" aria-placeholder="{{ $attributes->get('placeholder') }}"> <textarea minlength="{{ $minlength }}" maxlength="{{ $maxlength }}" x-cloak x-show="type !== 'password'" placeholder="{{ $placeholder }}" {{ $attributes->merge(['class' => $defaultClass]) }} @if ($realtimeValidation) wire:model.debounce.200ms="{{ $modelBinding }}" wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @else wire:model={{ $value ?? $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif @disabled($disabled) @readonly($readonly) @required($required) id="{{ $htmlId }}" name="{{ $name }}" name={{ $modelBinding }} @if ($autofocus) x-ref="autofocusInput" @endif></textarea> </div> @else <textarea minlength="{{ $minlength }}" maxlength="{{ $maxlength }}" {{ $allowTab ? '@keydown.tab=handleKeydown' : '' }} placeholder="{{ $placeholder }}" {{ !$spellcheck ? 'spellcheck=false' : '' }} {{ $attributes->merge(['class' => $defaultClass]) }} @if ($realtimeValidation) wire:model.debounce.200ms="{{ $modelBinding }}" wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @else wire:model={{ $value ?? $modelBinding }} wire:dirty.class="[box-shadow:inset_4px_0_0_#6b16ed,inset_0_0_0_2px_#e5e5e5] dark:[box-shadow:inset_4px_0_0_#fcd452,inset_0_0_0_2px_#242424]" @endif @disabled($disabled) @readonly($readonly) @required($required) id="{{ $htmlId }}" name="{{ $name }}" name={{ $modelBinding }} @if ($autofocus) x-ref="autofocusInput" @endif></textarea> @endif @endif @error($modelBinding) <label class="label"> <span class="text-red-500 label-text-alt">{{ $message }}</span> </label> @enderror </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/applications/advanced.blade.php
resources/views/components/applications/advanced.blade.php
<x-dropdown> <x-slot:title> Advanced </x-slot> @if ($application->status === 'running') <div class="dropdown-iteme" wire:click='force_deploy_without_cache'> <svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" /> <path d="M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" /> <path d="M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" /> <path d="M3 3l18 18" /> </svg> Force deploy (without cache) </div> @else <div class="dropdown-item" wire:click='deploy(true)'> <svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" /> <path d="M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" /> <path d="M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" /> <path d="M3 3l18 18" /> </svg> Force deploy (without cache) </div> @endif </x-dropdown>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/applications/links.blade.php
resources/views/components/applications/links.blade.php
<x-dropdown> <x-slot:title> Links </x-slot> @if ( (data_get($application, 'fqdn') || collect(json_decode($this->application->docker_compose_domains))->count() > 0 || data_get($application, 'previews', collect([]))->count() > 0 || data_get($application, 'ports_mappings_array')) && data_get($application, 'settings.is_raw_compose_deployment_enabled') !== true) <div class="flex flex-col gap-1"> @if (data_get($application, 'gitBrancLocation')) <a target="_blank" class="dropdown-item" href="{{ $application->gitBranchLocation }}"> <x-git-icon git="{{ $application->source?->getMorphClass() }}" /> Git Repository </a> @endif @if (data_get($application, 'build_pack') === 'dockercompose') @foreach (collect(json_decode($this->application->docker_compose_domains)) as $fqdn) @if (data_get($fqdn, 'domain')) @foreach (explode(',', data_get($fqdn, 'domain')) as $domain) <a class="dropdown-item" target="_blank" href="{{ getFqdnWithoutPort($domain) }}"> <x-external-link class="size-4" />{{ getFqdnWithoutPort($domain) }} </a> @endforeach @endif @endforeach @endif @if (data_get($application, 'fqdn')) @foreach (str(data_get($application, 'fqdn'))->explode(',') as $fqdn) <a class="dropdown-item" target="_blank" href="{{ getFqdnWithoutPort($fqdn) }}"> <x-external-link class="size-4" />{{ getFqdnWithoutPort($fqdn) }} </a> @endforeach @endif @if (data_get($application, 'previews', collect())->count() > 0) @if (data_get($application, 'build_pack') === 'dockercompose') @foreach ($application->previews as $preview) @foreach (collect(json_decode($preview->docker_compose_domains)) as $fqdn) @if (data_get($fqdn, 'domain')) @foreach (explode(',', data_get($fqdn, 'domain')) as $domain) <a class="dropdown-item" target="_blank" href="{{ getFqdnWithoutPort($domain) }}"> <x-external-link class="size-4" />PR{{ data_get($preview, 'pull_request_id') }} | {{ getFqdnWithoutPort($domain) }} </a> @endforeach @endif @endforeach @endforeach @else @foreach (data_get($application, 'previews') as $preview) @if (data_get($preview, 'fqdn')) <a class="dropdown-item" target="_blank" href="{{ getFqdnWithoutPort(data_get($preview, 'fqdn')) }}"> <x-external-link class="size-4" /> PR{{ data_get($preview, 'pull_request_id') }} | {{ data_get($preview, 'fqdn') }} </a> @endif @endforeach @endif @endif @if (data_get($application, 'ports_mappings_array')) @foreach ($application->ports_mappings_array as $port) @if ($application->destination->server->id === 0) <a class="dropdown-item" target="_blank" href="http://localhost:{{ explode(':', $port)[0] }}"> <x-external-link class="size-4" /> Port {{ $port }} </a> @else <a class="dropdown-item" target="_blank" href="http://{{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }}"> <x-external-link class="size-4" /> {{ $application->destination->server->ip }}:{{ explode(':', $port)[0] }} </a> @if (count($application->additional_servers) > 0) @foreach ($application->additional_servers as $server) <a class="dropdown-item" target="_blank" href="http://{{ $server->ip }}:{{ explode(':', $port)[0] }}"> <x-external-link class="size-4" /> {{ $server->ip }}:{{ explode(':', $port)[0] }} </a> @endforeach @endif @endif @endforeach @endif </div> @else <div class="px-2 py-1.5 text-xs">No links available</div> @endif </x-dropdown>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false
coollabsio/coolify
https://github.com/coollabsio/coolify/blob/f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53/resources/views/components/team/navbar.blade.php
resources/views/components/team/navbar.blade.php
<div class="pb-6"> <div class="flex items-end gap-2"> <h1>Team</h1> <x-modal-input buttonTitle="+ Add" title="New Team"> <livewire:team.create /> </x-modal-input> </div> <div class="subtitle">Team wide configurations.</div> <div class="navbar-main"> <nav class="flex items-center gap-6 min-h-10"> <a class="{{ request()->routeIs('team.index') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('team.index') }}"> General </a> <a class="{{ request()->routeIs('team.member.index') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('team.member.index') }}"> Members </a> @if (isInstanceAdmin()) <a class="{{ request()->routeIs('team.admin-view') ? 'dark:text-white' : '' }}" {{ wireNavigate() }} href="{{ route('team.admin-view') }}"> Admin View </a> @endif <div class="flex-1"></div> </nav> </div> </div>
php
Apache-2.0
f6a59fa2dce9a7cf92b59dbb9fc575c8612aaa53
2026-01-04T15:02:34.115123Z
false