Update architect-ui, bootstrap, javascript and css

This commit is contained in:
2023-03-25 23:33:27 +11:00
parent a46a61249e
commit dd17873905
195 changed files with 28857 additions and 10615 deletions

View File

@@ -26,7 +26,7 @@
<table class="table table-sm table-borderless">
@foreach(\App\Classes\LDAP\Server::baseDNs()->sort(function($item) { return $item->sortKey; }) as $item)
<tr>
<td class="pl-0">{{ $item->getDn() }}</td>
<td class="ps-0">{{ $item->getDn() }}</td>
</tr>
@endforeach
</table>

View File

@@ -4,7 +4,7 @@
<table class="table table-borderless">
<tr>
<td class="{{ ($x=Arr::get($o->getAttributes(),'jpegphoto')) ? 'border' : '' }}" rowspan="2">{!! $x ?: sprintf('<div class="page-title-icon f32"><i class="%s"></i></div>',$o->icon() ?? "fas fa-info") !!}</td>
<td class="text-right align-text-top p-0 {{ $x ? 'pl-5' : 'pt-2' }}"><strong>{{ $dn }}</strong></td>
<td class="text-end align-text-top p-0 {{ $x ? 'ps-5' : 'pt-2' }}"><strong>{{ $dn }}</strong></td>
</tr>
<tr>
<td class="line-height-1" style="font-size: 55%;vertical-align: bottom;" colspan="2">
@@ -32,13 +32,13 @@
<div class="card-body">
<div class="card-header-tabs">
<ul class="nav nav-tabs">
<li class="nav-item"><a data-toggle="tab" href="#attributes" class="nav-link active">{{ __('Attributes') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#attributes" class="nav-link active">{{ __('Attributes') }}</a></li>
{{--
<li class="nav-item"><a data-toggle="tab" href="#placeholder" class="nav-link">placeholder</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#placeholder" class="nav-link">placeholder</a></li>
--}}
<li class="nav-item"><a data-toggle="tab" href="#internal" class="nav-link">{{ __('Internal') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#internal" class="nav-link">{{ __('Internal') }}</a></li>
{{--
<li class="nav-item"><a data-toggle="tab" href="#addtemplate" class="nav-link">{{ __('Add Template') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#addtemplate" class="nav-link">{{ __('Add Template') }}</a></li>
--}}
</ul>
@@ -53,7 +53,7 @@
<th class="w-25">
<abbr title="{{ $ao->description }}">{{ $ao->name }}</abbr>
<!-- Attribute Hints -->
<span class="float-right">
<span class="float-end">
@foreach($ao->hints as $name => $description)
@if ($loop->index),@endif
<abbr title="{{ $description }}">{{ $name }}</abbr>
@@ -62,7 +62,7 @@
</th>
</tr>
<tr>
<td class="pl-5">
<td class="ps-5">
{!! $ao->deletable() !!}<br>
@if ($ao->can_addvalues)
<span class="p-0 m-0" id="add{{ $ao->name_lc }}"></span>
@@ -95,7 +95,7 @@
</th>
</tr>
<tr>
<td class="pl-5">
<td class="ps-5">
{!! $ao !!}
</td>
</tr>
@@ -115,6 +115,4 @@
</div>
</div>
</div>
@endsection
@endsection

View File

@@ -4,7 +4,7 @@
<table class="table table-borderless">
<tr>
<td style="border-radius: 5px;"><div class="page-title-icon f32"><i class="fas fa-info"></i></div></td>
<td class="top text-right align-text-top p-0 pt-2 }}"><strong>{{ __('Server Info') }}</strong><br><small>{{ $s->rootDSE()->entryuuid[0] ?? '' }}</small></td>
<td class="top text-end align-text-top p-0 pt-2 }}"><strong>{{ __('Server Info') }}</strong><br><small>{{ $s->rootDSE()->entryuuid[0] ?? '' }}</small></td>
</tr>
</table>
@endsection

View File

@@ -4,7 +4,7 @@
<table class="table table-borderless">
<tr>
<td style="border-radius: 5px;"><div class="page-title-icon f32"><i class="fas fa-fingerprint"></i></div></td>
<td class="top text-right align-text-top p-0 pt-2"><strong>{{ \App\Classes\LDAP\Server::schemaDN() }}</strong></td>
<td class="top text-end align-text-top p-0 pt-2"><strong>{{ \App\Classes\LDAP\Server::schemaDN() }}</strong></td>
</tr>
</table>
@endsection
@@ -15,10 +15,10 @@
<h5 class="card-title">{{ __('Schema Information') }}</h5>
<ul class="nav nav-tabs">
<li class="nav-item"><a data-toggle="tab" href="#objectclasses" class="nav-link">{{ __('Object Classes') }}</a></li>
<li class="nav-item"><a data-toggle="tab" href="#attributetypes" class="nav-link">{{ __('Attribute Types') }}</a></li>
<li class="nav-item"><a data-toggle="tab" href="#ldapsyntaxes" class="nav-link">{{ __('Syntaxes') }}</a></li>
<li class="nav-item"><a data-toggle="tab" href="#matchingrules" class="nav-link">{{ __('Matching Rules') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#objectclasses" class="nav-link">{{ __('Object Classes') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#attributetypes" class="nav-link">{{ __('Attribute Types') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#ldapsyntaxes" class="nav-link">{{ __('Syntaxes') }}</a></li>
<li class="nav-item"><a data-bs-toggle="tab" href="#matchingrules" class="nav-link">{{ __('Matching Rules') }}</a></li>
</ul>
<div class="tab-content">
<!-- Object Classes -->
@@ -50,7 +50,7 @@
var loaded = [];
$(document).ready(function() {
$('a[data-toggle="tab"]').on('shown.bs.tab', function (item) {
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (item) {
// activated tab
var type = $(item.target).attr('href').substring(1);
if (loaded[type])

View File

@@ -15,7 +15,7 @@
<table class="schema table table-sm table-bordered table-striped">
<thead>
<tr>
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-right"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
</tr>
</thead>

View File

@@ -14,10 +14,10 @@
<td>
<abbr title="{{ $o->line }}">{{ $o->description }}</abbr>
@if ($o->binary_transfer_required)
<span class="float-right"><i class="fas fa-fw fa-file-download"></i></span>
<span class="float-end"><i class="fas fa-fw fa-file-download"></i></span>
@endif
@if ($o->is_not_human_readable)
<span class="float-right"><i class="fas fa-fw fa-tools"></i></span>
<span class="float-end"><i class="fas fa-fw fa-tools"></i></span>
@endif
</td>
<td>{{ $o->oid }}</td>

View File

@@ -10,11 +10,11 @@
<div class="col-12 col-xl-9">
@foreach ($matchingrules as $o)
<span id="mr-{{ $o->name_lc }}">
<span id="me-{{ $o->name_lc }}">
<table class="schema table table-sm table-bordered table-striped">
<thead>
<tr>
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-right"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
</tr>
</thead>
@@ -90,7 +90,7 @@
if ($(this)[0].id.match(/select2/) || (! $(this)[0].id))
return;
if ('mr-'+item.target.value === $(this)[0].id)
if ('me-'+item.target.value === $(this)[0].id)
$(this).show();
else
$(this).hide();

View File

@@ -14,7 +14,7 @@
<table class="schema table table-sm table-bordered table-striped">
<thead>
<tr>
<th class="table-dark" colspan="4">{{ $o->name }}<span class="float-right"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
<th class="table-dark" colspan="4">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
</tr>
</thead>
@@ -74,7 +74,7 @@
<tbody>
<tr>
<td>
<ul class="pl-3" style="list-style-type: square;">
<ul class="ps-3" style="list-style-type: square;">
@foreach ($o->getMustAttrs(TRUE) as $oo)
<li>{{ $oo->name }} @if($oo->source !== $o->name)[<strong><a class="objectclass" id="{{ strtolower($oo->source) }}" href="#{{ strtolower($oo->source) }}">{{ $oo->source }}</a></strong>]@endif</li>
@endforeach
@@ -96,7 +96,7 @@
<tbody>
<tr>
<td>
<ul class="pl-3" style="list-style-type: square;">
<ul class="ps-3" style="list-style-type: square;">
@foreach ($o->getMayAttrs(TRUE) as $oo)
<li>{{ $oo->name }} @if($oo->source !== $o->name)[<strong><a class="objectclass" id="{{ strtolower($oo->source) }}" href="#{{ strtolower($oo->source) }}">{{ $oo->source }}</a></strong>]@endif</li>
@endforeach

View File

@@ -17,7 +17,7 @@
<div class="row">
<div class="col-12 col-sm-4">
<h3 class="d-inline-block d-sm-none">phpLDAPadmin</h3>
<img src="{{ url('/img/logo.png') }}" class="logo-image col-12" alt="PLA Logo">
<img src="{{ url('/images/logo.png') }}" class="logo-image col-12" alt="PLA Logo">
</div>
<div class="col-12 col-sm-8">
@@ -41,7 +41,7 @@
@if(file_exists('home-note.html'))
<hr>
<div class="mx-auto card text-white card-body bg-primary w-50">
<h5 class="text-white card-title"><i class="icon fa-2x fas fa-info pr-3"></i><span class="font-size-xlg">NOTE</span></h5>
<h5 class="text-white card-title"><i class="icon fa-2x fas fa-info pe-3"></i><span class="font-size-xlg">NOTE</span></h5>
<span class="w-100 pb-0">
{!! file_get_contents('home-note.html') !!}
</span>