subscribe to events

This commit is contained in:
Andras Bacsai
2023-06-19 14:31:42 +02:00
parent 631968ee5b
commit f7dd110a49
15 changed files with 155 additions and 25 deletions

View File

@@ -35,5 +35,5 @@
<div class="flex-1"></div>
<input type="checkbox" @if ($disabled !== null) disabled @endif name={{ $id }}
@if (!$noDirty) wire:dirty.class="input-warning" @endif
@if ($instantSave) wire:click='instantSave' wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
@if ($instantSave) wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}' wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
</div>

View File

@@ -0,0 +1,9 @@
<h4 class="mt-4">Subscribe to events</h4>
<div class="w-64 ">
@if (isDev())
<x-forms.checkbox instantSave="instantSaveEvents" id="model.extra_attributes.notifications_test"
label="Test Notifications" />
@endif
<x-forms.checkbox instantSave="instantSaveEvents" id="model.extra_attributes.notifications_deployments"
label="New Deployments" />
</div>

View File

@@ -0,0 +1,7 @@
Hello,<br><br>
A new version of your application "{{ $name }}" has been deployed to <a target="_blank"
href="{{ $fqdn }}">{{ $fqdn }}</a><br><br>
Click the following link to view the deployment logs: <a target="_blank" href="{{ $url }}">View
Deployment</a><br><br>

View File

@@ -1 +1,3 @@
Hello from test email. If you are seeing this, it means that your SMTP settings are working.
Hello,<br><br>
If you are seeing this, it means that your SMTP settings are correct.

View File

@@ -12,11 +12,12 @@
</x-forms.button>
@endif
</div>
<div class="flex flex-col gap-2 xl:flex-row w-96">
<div class="w-48">
<x-forms.checkbox instantSave id="model.extra_attributes.discord_active" label="Notification Enabled" />
</div>
<x-forms.input type="string"
helper="Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/...." required
id="model.extra_attributes.discord_webhook" label="Webhook" />
</form>
<x-notification-subscription />
</div>

View File

@@ -17,7 +17,7 @@
</x-forms.button>
@endif
</div>
<div class="flex flex-col">
<div class="w-48">
<x-forms.checkbox instantSave id="model.extra_attributes.smtp_active" label="Notification Enabled" />
</div>
@@ -53,4 +53,5 @@
</div>
</div>
</form>
<x-notification-subscription />
</div>