Skip to content

Commit

Permalink
Merge branch 'master' into EnhancedMailcow
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBuffon authored Jul 13, 2024
2 parents efda62e + c170849 commit 8d1144d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gotify/Gotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace App\SupportedApps\Gotify;

class Gotify extends \App\SupportedApps
class Gotify extends \App\SupportedApps implements \App\EnhancedApps
{
}
2 changes: 1 addition & 1 deletion Gotify/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"website": "https://gotify.net",
"license": "MIT License",
"description": "A self-hosted push notification service.",
"enhanced": false,
"enhanced": true,
"tile_background": "dark",
"icon": "gotify.png"
}
14 changes: 14 additions & 0 deletions Gotify/config.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }}) @include('items.enable')</h2>
<div class="items">
<div class="input">
<label>{{ strtoupper(__('app.url')) }}</label>
{!! Form::text('config[override_url]', isset($item) ? $item->getconfig()->override_url : null, ['placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control']) !!}
</div>
<div class="input">
<label>{{ __('app.apps.apikey') }}</label>
{!! Form::text('config[apikey]', isset($item) ? $item->getconfig()->apikey : null, ['placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item']) !!}
</div>
<div class="input">
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
</div>
</div>
14 changes: 14 additions & 0 deletions Gotify/livestats.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<ul class="livestats">
<li>
<span class="title">Apps</span>
<strong>{!! $applications !!}</strong>
</li>
<li>
<span class="title">Clients</span>
<strong>{!! $clients !!}</strong>
</li>
<li>
<span class="title">Messages</span>
<strong>{!! $messages !!}</strong>
</li>
</ul>

0 comments on commit 8d1144d

Please sign in to comment.