2024-03-22 10:34:15 +00:00
|
|
|
<div x-data="{
|
|
|
|
popups: {
|
|
|
|
sponsorship: true,
|
|
|
|
notification: true
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
this.popups.sponsorship = localStorage.getItem('popupSponsorship') !== 'false';
|
|
|
|
this.popups.notification = localStorage.getItem('popupNotification') !== 'false';
|
|
|
|
}
|
|
|
|
}">
|
|
|
|
<span x-show="popups.sponsorship">
|
2024-03-20 11:54:06 +00:00
|
|
|
<x-popup>
|
|
|
|
<x-slot:title>
|
|
|
|
Love Coolify as we do?
|
|
|
|
</x-slot:title>
|
2024-03-22 10:34:15 +00:00
|
|
|
<x-slot:icon>
|
|
|
|
<img src="https://cdn-icons-png.flaticon.com/512/8236/8236748.png"
|
|
|
|
class="w-8 h-8 sm:w-12 sm:h-12 lg:w-16 lg:h-16">
|
|
|
|
</x-slot:icon>
|
2024-03-20 11:54:06 +00:00
|
|
|
<x-slot:description>
|
|
|
|
<span>Please
|
|
|
|
consider donating on <a href="https://github.com/sponsors/coollabsio"
|
2024-03-26 09:24:53 +00:00
|
|
|
class="text-xs underline dark:text-white">GitHub</a> or <a href="https://opencollective.com/coollabsio"
|
|
|
|
class="text-xs underline dark:text-white">OpenCollective</a>.<br><br></span>
|
2024-03-20 11:54:06 +00:00
|
|
|
<span>It enables us to keep creating features without paywalls, ensuring our work remains free and
|
|
|
|
open.</span>
|
|
|
|
</x-slot:description>
|
2024-03-22 10:34:15 +00:00
|
|
|
<x-slot:button-text @click="disableSponsorship()">
|
2024-03-20 11:54:06 +00:00
|
|
|
Disable This Popup
|
|
|
|
</x-slot:button-text>
|
|
|
|
</x-popup>
|
2024-03-22 10:34:15 +00:00
|
|
|
</span>
|
2024-02-25 21:08:44 +00:00
|
|
|
@if (currentTeam()->serverOverflow())
|
2024-02-26 09:25:21 +00:00
|
|
|
<x-banner :closable=false>
|
|
|
|
<div><span class="font-bold text-red-500">WARNING:</span> The number of active servers exceeds the limit
|
|
|
|
covered by your payment. If not resolved, some of your servers <span class="font-bold text-red-500">will
|
|
|
|
be deactivated</span>. Visit <a href="{{ route('subscription.show') }}"
|
2024-03-26 09:24:53 +00:00
|
|
|
class="underline dark:text-white">/subscription</a> to update your subscription or remove some servers.
|
2024-02-26 09:25:21 +00:00
|
|
|
</div>
|
|
|
|
</x-banner>
|
2024-02-25 21:08:44 +00:00
|
|
|
@endif
|
2024-03-07 11:58:04 +00:00
|
|
|
@if (!currentTeam()->isAnyNotificationEnabled())
|
2024-03-22 10:34:15 +00:00
|
|
|
<span x-show="popups.notification">
|
|
|
|
<x-popup>
|
|
|
|
<x-slot:title>
|
|
|
|
No notifications enabled.
|
|
|
|
</x-slot:title>
|
|
|
|
<x-slot:icon>
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="text-red-500 stroke-current w-14 h-14 shrink-0"
|
|
|
|
fill="none" viewBox="0 0 24 24">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
|
|
|
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
|
|
|
|
</svg>
|
|
|
|
</x-slot:icon>
|
|
|
|
<x-slot:description>
|
|
|
|
It is
|
2024-03-20 11:54:06 +00:00
|
|
|
highly recommended to enable at least
|
2024-03-07 11:58:04 +00:00
|
|
|
one
|
2024-03-20 11:54:06 +00:00
|
|
|
notification channel to receive important alerts.<br>Visit <a
|
2024-03-26 09:24:53 +00:00
|
|
|
href="{{ route('notifications.email') }}" class="underline dark:text-white">/notification</a> to
|
2024-03-20 11:54:06 +00:00
|
|
|
enable notifications.</span>
|
2024-03-22 10:34:15 +00:00
|
|
|
</x-slot:description>
|
|
|
|
<x-slot:button-text @click="disableNotification()">
|
|
|
|
Accept and Close
|
|
|
|
</x-slot:button-text>
|
|
|
|
</x-popup>
|
|
|
|
</span>
|
2024-03-07 11:58:04 +00:00
|
|
|
@endif
|
2024-03-22 10:34:15 +00:00
|
|
|
<script>
|
|
|
|
function disableSponsorship() {
|
|
|
|
localStorage.setItem('popupSponsorship', false);
|
|
|
|
}
|
|
|
|
function disableNotification() {
|
|
|
|
localStorage.setItem('popupNotification', false);
|
|
|
|
}
|
|
|
|
</script>
|
2023-11-13 13:44:54 +00:00
|
|
|
</div>
|