Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBuffon committed Sep 16, 2024
1 parent 5174c88 commit d3f2f29
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Argus/Argus.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct()

public function test()
{
$test = parent::appTest($this->url('status'));
$test = parent::appTest($this->url(endpoint: "/healthcheck"));
echo $test->status;
}

Expand All @@ -34,7 +34,7 @@ public function livestats()

public function url($endpoint)
{
$api_url = parent::normaliseurl($this->config->url).$endpoint;
$api_url = parent::normaliseurl($this->config->url) . "/api/v1" . $endpoint;
return $api_url;
}
}
4 changes: 2 additions & 2 deletions Argus/config.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<label>{{ strtoupper(__('app.url')) }}</label>
{!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
</div>
<div class="input">
<!-- <div class="input">
<label>{{ __('app.apps.username') }}</label>
{!! Form::text('config[username]', null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!}
</div>
<div class="input">
<label>{{ __('app.apps.password') }}</label>
{!! Form::input('password', 'config[password]', '', ['placeholder' => __('app.apps.password'), 'data-config' => 'password', 'class' => 'form-control config-item']) !!}
</div>
</div> -->
<div class="input">
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
</div>
Expand Down
12 changes: 8 additions & 4 deletions Argus/livestats.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<ul class="livestats">
<li>
<span class="title">Queue</span>
<strong>{!! $queue_size !!}</strong>
<span class="title">Services</span>
<strong>{!! $services !!}</strong>
</li>
<li>
<span class="title">Speed</span>
<strong>{!! $current_speed !!}</strong>
<span class="title">Updates Available</span>
<strong>{!! $updatesavailable !!}</strong>
</li>
<li>
<span class="title">Updates Skipped</span>
<strong>{!! $updatesskipped !!}</strong>
</li>
</ul>

0 comments on commit d3f2f29

Please sign in to comment.