Start of a debug screen

This commit is contained in:
Deon George
2023-01-27 19:59:31 +11:00
parent 58e171aea1
commit e0185345c8
8 changed files with 104 additions and 16 deletions

View File

@@ -37,9 +37,16 @@
<div class="font-icon-wrapper float-left mr-1 server-icon">
<a class="p-0 m-0" href="{{ LaravelLocalization::localizeUrl('info') }}" onclick="return false;" style="display: contents;"><i class="fas fa-fw fa-info pr-1 pl-1"></i></a>
</div>
{{--
<div class="font-icon-wrapper float-left ml-1 mr-1 server-icon">
<a class="p-0 m-0" href="{{ LaravelLocalization::localizeUrl('schema') }}" onclick="return false;" style="display: contents;"><i class="fas fa-fw fa-fingerprint pr-1 pl-1"></i></a>
</div>
--}}
@env(['local'])
<div class="font-icon-wrapper float-right ml-1 mr-1 server-icon">
<a class="p-0 m-0" href="{{ LaravelLocalization::localizeUrl('debug') }}" onclick="return false;" style="display: contents;"><i class="fas fa-fw fa-toolbox pr-1 pl-1"></i></a>
</div>
@endenv
<div class="clearfix"></div>
</li>
<li>

View File

@@ -51,6 +51,10 @@
</div>
<div class="app-header-right">
@if(! request()->isSecure())
<span class="badge badge-danger">WARNING - SESSION NOT SECURE</span>
@endif
<div class="header-btn-lg pr-0">
<div class="widget-content p-0">
<div class="widget-content-wrapper">

View File

@@ -0,0 +1,40 @@
<div class="card card-solid">
<div class="card-body">
<div class="row">
<div class="col-12">
<h3 class="d-inline-block">DEBUG Information</h3>
<table class="table">
<thead>
<tr>
<th>Setting</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<!-- User Logged In -->
<tr>
<td>User</td>
<td>{{ $user }}</td>
</tr>
<!-- Base DNs -->
<tr>
<td>BaseDN(s)</td>
<td>
<table class="table table-sm table-borderless">
@foreach(\App\Ldap\Entry::baseDN()->sort(function($item) { return $item->sortKey; }) as $item)
<tr>
<td>{{ $item->getDn() }}</td>
</tr>
@endforeach
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>