Heimdall-Apps/TechnitiumDNS/config.blade.php
Jay Collett 9c739d7aa3 feat(TechnitiumDNS): add enhanced app support with live stats
Implement the EnhancedApps interface for Technitium DNS to display
queries blocked and percentage blocked stats on the dashboard tile.

- Add test() method for API connection validation
- Add livestats() method to fetch stats from /api/dashboard/stats/get
- Add config.blade.php for API token configuration
- Add livestats.blade.php for stats display template
- Set enhanced: true in app.json

Closes linuxserver/Heimdall#1531
2026-02-02 14:43:42 +01:00

16 lines
907 B
PHP

<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>API Token</label>
{!! Form::text('config[apikey]', isset($item) && property_exists($item->getconfig(), 'apikey') ? $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>