-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #706 from imnotjames/feat/uptime-kuma-enhanced
feat: enhance uptime kuma app
- Loading branch information
Showing
5 changed files
with
132 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }}) @include('items.enable')</h2> | ||
<div class="items"> | ||
<input type="hidden" data-config="dataonly" class="config-item" name="config[dataonly]" value="1" /> | ||
<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) : null, ['placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item']) !!} | ||
</div> | ||
<div class="input"> | ||
<label>Skip TLS verification</label> | ||
<div class="toggleinput" style="margin-top: 26px; padding-left: 15px;"> | ||
{!! Form::hidden('config[ignore_tls]', 0, ['class' => 'config-item', 'data-config' => 'ignore_tls']) !!} | ||
<label class="switch"> | ||
<?php | ||
$checked = false; | ||
if (isset($item) && !empty($item) && isset($item->getconfig()->ignore_tls)) { | ||
$checked = $item->getconfig()->ignore_tls; | ||
} | ||
$set_checked = $checked ? ' checked="checked"' : ''; | ||
?> | ||
<input type="checkbox" class="config-item" data-config="ignore_tls" name="config[ignore_tls]" value="1" <?php echo $set_checked; ?> /> | ||
<span class="slider round"></span> | ||
</label> | ||
</div> | ||
</div> | ||
<div class="input"> | ||
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<ul class="livestats"> | ||
<li> | ||
<span class="title">Up</span> | ||
<strong>{!! $up ?? 0 !!}</strong> | ||
</li> | ||
<li> | ||
<span class="title">Down</span> | ||
<strong>{!! $down ?? 0 !!}</strong> | ||
</li> | ||
</ul> |
This file was deleted.
Oops, something went wrong.