diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 3ecf315..f7b44dc 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -39,7 +39,7 @@ class HomeController extends Controller }) ->get(); - return view('file') + return view('widgets.file') ->with('f',$f); } @@ -73,20 +73,11 @@ class HomeController extends Controller ->with(['echoarea']) ->get(); - return view('packet') + return view('widgets.packet') ->with('nm',$nm) ->with('em',$em); } - /** - * Render a view that summarises the users permissions - */ - public function permissions() - { - return view('auth.permissions') - ->with('user',Auth::user()); - } - /** * Show a packet dump * diff --git a/app/Http/Controllers/SystemController.php b/app/Http/Controllers/SystemController.php index 6c0fc2e..be10588 100644 --- a/app/Http/Controllers/SystemController.php +++ b/app/Http/Controllers/SystemController.php @@ -323,7 +323,7 @@ class SystemController extends Controller // Make sure that no other system has this address active. if ($o->role === Address::NODE_ACTIVE) - return redirect()->back()->withErrors(['demaddress'=>sprintf('%s cannot be demoted any more',$o->ftn3D)]); + return redirect()->back()->withErrors(['address'=>sprintf('%s cannot be demoted any more',$o->ftn3D)]); $o->role = ($o->role << 1); $o->save(); @@ -494,7 +494,7 @@ class SystemController extends Controller // Make sure that no other system has this address active. if ($o->role === Address::NODE_NC) - return redirect()->back()->withErrors(['proaddress'=>sprintf('%s cannot be promoted any more',$o->ftn3D)]); + return redirect()->back()->withErrors(['address'=>sprintf('%s cannot be promoted any more',$o->ftn3D)]); $o->role = ($o->role >> 1); $o->save(); @@ -564,7 +564,7 @@ class SystemController extends Controller 'active'=>TRUE, ])->single())) { - return redirect()->back()->withErrors(['susaddress'=>sprintf('%s is already active on system [%s]',$o->ftn,url('system/addedit',$x->system_id),$x->system->name)]); + return redirect()->back()->withErrors(['address'=>sprintf('%s is already active on system [%s]',$o->ftn,url('system/addedit',$x->system_id),$x->system->name)]); } $o->active = (! $o->active); diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 748ff8b..0562e8c 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -65,9 +65,4 @@ class UserController extends Controller return view('user.link'); } - - public function register() - { - return view('user/system/register'); - } } \ No newline at end of file diff --git a/public/css/fixes.css b/public/css/fixes.css index d39e2be..eaf4be6 100644 --- a/public/css/fixes.css +++ b/public/css/fixes.css @@ -98,4 +98,39 @@ ol { padding: 0; color: inherit; background-color: inherit; +} + +/* h1 headings reference */ +h1>small.float-end { + padding-top: 2rem; +} +h1>small.float-end:before { + color: #acacac; + content: '['; +} +h1>small.float-end:after { + color: #acacac; + content: ']'; +} +h1 sup { + text-shadow: none; + font-size: 50%; + top: -1em; +} +h1>small.success { + color: #005300 !important; +} +h1>small.success:before { + color: #00aa00; + content: '['; +} +h1>small.success:after { + color: #00aa00; + content: ']'; +} + +/* Ensure our greyframe titled boxes are full width */ +.titledbox { + margin-right: 0; + margin-left: 0; } \ No newline at end of file diff --git a/resources/views/auth/passwords/email.blade.php b/resources/views/auth/passwords/email.blade.php index f7d195a..1af14bf 100644 --- a/resources/views/auth/passwords/email.blade.php +++ b/resources/views/auth/passwords/email.blade.php @@ -5,23 +5,15 @@ @endsection @section('content') - @if (Session('status')) + @includeWhen(session()->has('success'),'widgets.success-row',['msg'=>session()->get('success')]) + +
@endsection diff --git a/resources/views/auth/permissions.blade.php b/resources/views/auth/permissions.blade.php index dbcb0c4..4e414ae 100644 --- a/resources/views/auth/permissions.blade.php +++ b/resources/views/auth/permissions.blade.php @@ -4,91 +4,95 @@ @endsection @section('content') -Test | -Result | -
---|
Test | +Result | +||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
isAdmin | -@can('admin')YES @else NO @endcan | -||||||||||||
Domains | -
-
|
+ ||||||||||||
System | -
-
|
+ ||||||||||||
Zone | -
-
| ||||||||||||
{{ $o->zone_id }} | +@can('admin',$o)YES @else NO @endcan | +
Here is a list of known FTN Networks.
-- | Messages | -|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Echoarea | -Description | -Last Message | -Area Active | -Day | -Week | -Month | -Total | -
+ | Messages | +||||||
---|---|---|---|---|---|---|---|
Echoarea | +Description | +Last Message | +Area Active | +Day | +Week | +Month | +Total | +
{{ $x->name }} | +{{ $x->description }} | +{{ $x->last_message ? $x->last_message->format('Y-m-d H:i') : '-' }} | +{{ $x->active ? 'Active' : 'Archive' }} | +{{ number_format($oo->where('stats','day')->pop()?->count) }} | +{{ number_format($oo->where('stats','week')->pop()?->count) }} | +{{ number_format($oo->where('stats','month')->pop()?->count) }} | +{{ number_format($oo->sum('count')) }} | +
This network provides the following File areas:
+Filearea | +Description | +Last File Sent | +
---|---|---|
{{ $oo->name }} | +{{ $oo->description }} | +- | +
The following systems are members of this network.
+{{ $x->name }} | -{{ $x->description }} | -{{ $x->last_message ? $x->last_message->format('Y-m-d H:i') : '-' }} | -{{ $x->active ? 'Active' : 'Archive' }} | -{{ number_format($oo->where('stats','day')->pop()?->count) }} | -{{ number_format($oo->where('stats','week')->pop()?->count) }} | -{{ number_format($oo->where('stats','month')->pop()?->count) }} | -{{ number_format($oo->sum('count')) }} | +System | +Sysop | +Location | +Address | +Last Seen |
---|
This network provides the following File areas:
-Filearea | -Description | -Last File Sent | -
---|---|---|
{{ $oo->name }} | -{{ $oo->description }} | -- | -
The following systems are members of this network.
-System | -Sysop | -Location | -Address | -Last Seen | -
---|---|---|---|---|
{{ $ao->system->full_name($ao) }} @auth@if($ao->session('sespass')){{ $ao->session('default') ? '**' : '*' }}@elseif($ao->system->setup)+@endif[{{ $ao->system_id }}]@endauth | -{{ $ao->system->sysop }} | -{{ $ao->system->location }} | -{{ $ao->ftn4d }} | -{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }} | -
**Default route *System defined here +This system | -
This system has processed the following so far in the last 7 days:
+This system has processed the following so far in the last 7 days:
-Networks:
-Networks:
-Networks:
-Networks:
+Networks:
+Networks:
+Nodes with uncollected mail as at {{ $date }}:
+Nodes with uncollected mail as at {{ $date }}:
-Network | -System | -Address | -Echomails | -Netmails | -Files | -Last Session | -Poll Mode | -Auto Hold | -
---|
Network | +System | +Address | +Echomails | +Netmails | +Files | +Last Session | +Poll Mode | +Auto Hold | +
---|---|---|---|---|---|---|---|---|
{{ $o->zone->domain->name }} | -
- {{ $o->system->name }}
- @if (($x=$o->parent()) && ($x->id !== $o->id))
- [via {{ $x->ftn4d }}] - @endif - |
- {{ $o->ftn4d }} | -{{ number_format($o->uncollected_echomail ?? 0) }} | -{{ number_format($o->uncollected_netmail ?? 0) }} | -{{ number_format($o->uncollected_files ?? 0) }} | -{{ $o->system->last_session?->format('Y-m-d H:i') }} | -{{ is_null($o->system->pollmode) ? 'HOLD' : ($o->system->pollmode ? 'CRASH' : 'DAILY') }} | -{{ $o->system->autohold ? 'YES' : 'NO' }} | -
This system is the ZC for the following zones: {!! $o->zcs->sortBy('zone_id')->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join(', ') !!}
- @endif + @if($o->zcs->count()) +This system is the ZC for the following zones: {!! $o->zcs->sortBy('zone_id')->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join(', ') !!}
+ @endif -FidoNet addresses are constructed in the format zone:net/node.point@domain.
- -FidoNet system are also assigned some roles, and in some cases, those roles have a particular address format:
-Role | -Address Format | -
---|---|
Zone (optional) | -
- ZONE:0/0.0, where the net, node and point values are zero. Zones normally have 1 or more Regions and/or Hosts. - (Systems that do not configure other systems with a zone, assume that that other system is in the same zone as the system being configured.) - |
-
Region (optional) | -
- zone:REGION/0.0, where the zone indicates which zone the region is in. The node and point values are zero. Regions normally have 1 or more Hosts. - Fidonet software normally doesnt configure the region address per-se. It is used by the mailer to receive packets destined to it by routing, in transition to the final destination. The region number must be unique with a zone. - |
-
Host (mandatory) | -
- zone:HOST/0.0, where the zone indicates which zone the host is in. The node and point values are zero. The Host system is normally configured with an additional address, where the NET address is the same and the NODE number that is greater than zero. Hosts may may zero or more Hubs and 1 or more Nodes. - The host number must be unique within a zone, which implies that it cannot be the same as a region, if regions are used. - |
-
Hub (optional) | -
- zone:net/NODE.0, where the zone/net indicates which zone/net the hub is in. The system(s) in the nodelist below a Hub are fed from that hub from a routing perspective. - The node is unique within the net and point is zero. - |
-
Node (required) | -
- zone:net/NODE.0, where the zone/net indicates which zone/net the node is in. - The node is unique within the net and point is zero. - |
-
This system has the following addresses assigned to it:
- - - {!! $message !!} - - @enderror - - @error('demaddress') - - {!! $message !!} - - @enderror - - @error('proaddress') - - {!! $message !!} - - @enderror - @endif - - @can('admin',$o) - @include('system.form-address') - - @else - You'll need to ask an admin to assign addresses. - @endcanNo session details exist
- @endif +FidoNet system are also assigned some roles, and in some cases, those roles have a particular address format:
+Role | +Address Format | +
---|---|
Zone (optional) | +
+ ZONE:0/0.0, where the net, node and point values are zero. Zones normally have 1 or more Regions and/or Hosts. + (Systems that do not configure other systems with a zone, assume that that other system is in the same zone as the system being configured.) + |
+
Region (optional) | +
+ zone:REGION/0.0, where the zone indicates which zone the region is in. The node and point values are zero. Regions normally have 1 or more Hosts. + Fidonet software normally doesnt configure the region address per-se. It is used by the mailer to receive packets destined to it by routing, in transition to the final destination. The region number must be unique with a zone. + |
+
Host (mandatory) | +
+ zone:HOST/0.0, where the zone indicates which zone the host is in. The node and point values are zero. The Host system is normally configured with an additional address, where the NET address is the same and the NODE number that is greater than zero. Hosts may may zero or more Hubs and 1 or more Nodes. + The host number must be unique within a zone, which implies that it cannot be the same as a region, if regions are used. + |
+
Hub (optional) | +
+ zone:net/NODE.0, where the zone/net indicates which zone/net the hub is in. The system(s) in the nodelist below a Hub are fed from that hub from a routing perspective. + The node is unique within the net and point is zero. + |
+
Node (required) | +
+ zone:net/NODE.0, where the zone/net indicates which zone/net the node is in. + The node is unique within the net and point is zero. + |
+
This system can subscribe to the following echoareas:
- @include('system.form-echoarea') -This system has the following addresses assigned to it:
- -AKA | -Downlink(s) | ++ | Passwords | ++ | ||||
---|---|---|---|---|---|---|---|---|
Zone | +Default | +Session | +Packet | +TIC | +Areafix | +|||
{{ $oo->zone_id }}@{{ $oo->domain->name }} | ++ @if(($x=$oo->systems->where('pivot.default',TRUE))->count() && ($x->first()->id !== $o->id)) + + @else + + @endif + | +{{ $oo->pivot->sespass }} | +{{ $oo->pivot->pktpass }} | +{{ $oo->pivot->ticpass }} | +{{ $oo->pivot->fixpass }} | ++ {{-- + + --}} + + + | +
No session details exist
+ @endif + + @include('system.widget.form-session') +This system can subscribe to the following echoareas:
+ @include('system.widget.form-echoarea') +This system can subscribe to the following fileareas:
+ @include('system.widget.form-filearea') +{{ $oo->ftn }} | -{!! (($x=$oo->children()) && $x->count()) ? $x->pluck('ftn4d')->join(' ') : 'None' !!} |
+ AKA | +Uplink | +
---|---|---|---|
{{ $oo->ftn }} | ++ @if ($x=$oo->parent()) + {{ $x->ftn4d }} + @else + None + @endif + | +
AKA | +Downlink(s) | +
---|---|
{{ $oo->ftn }} | +{!! (($x=$oo->children()) && $x->count()) ? $x->pluck('ftn4d')->join(' ') : 'None' !!} |
+
Address | +Netmail | +
---|---|
{{ $ao->ftn }} | +{{ $ao->netmailWaiting()->count() }} |
Address | +Echomail | +
---|---|
{{ $ao->ftn }} | +{{ $ao->echomailWaiting()->count() }} | +
Address | +Files | +
---|---|
{{ $ao->ftn }} | +{{ $ao->filesWaiting()->count() }} | +
Address | -Netmail | -
---|---|
{{ $ao->ftn }} | -{{ $ao->netmailWaiting()->count() }} | -
Address | -Echomail | -
---|
Packet | +Sent | +Count | +
---|---|---|
{{ $ao->ftn }} | -{{ $ao->echomailWaiting()->count() }} | -
Address | -Files | -
---|---|
{{ $ao->ftn }} | -{{ $ao->filesWaiting()->count() }} | -
Packet | +Sent | +Count | +
---|---|---|
{{ $oo->sent_pkt }} | +{{ $oo->sent_at }} | +{{ $oo->count }} | +
Session | +Count | +
---|---|
{{ $oo->sent_at }} | +{{ $oo->count }} | +
Packet | +Received | +Count | +
---|---|---|
{{ $oo->recv_pkt }} | +{{ $oo->recv_at }} | +{{ $oo->count }} | +
Packet | +Received | +Count | +
---|---|---|
{{ $oo->recv_pkt }} | +{{ $oo->recv_at }} | +{{ $oo->count }} | +
Session | +Count | +
---|---|
{{ $oo->created_at }} | +{{ $oo->count }} | +
Packet | -Sent | -Count | -
---|---|---|
{{ $oo->sent_pkt }} | -{{ $oo->sent_at }} | -{{ $oo->count }} | -
Packet | -Sent | -Count | -
---|---|---|
{{ $oo->sent_pkt }} | -{{ $oo->sent_at }} | -{{ $oo->count }} | -
Session | -Count | -
---|---|
{{ $oo->sent_at }} | -{{ $oo->count }} | -
Packet | -Received | -Count | -
---|---|---|
{{ $oo->recv_pkt }} | -{{ $oo->recv_at }} | -{{ $oo->count }} | -
Packet | -Received | -Count | -
---|---|---|
{{ $oo->recv_pkt }} | -{{ $oo->recv_at }} | -{{ $oo->count }} | -
Session | -Count | -
---|---|
{{ $oo->created_at }} | -{{ $oo->count }} | -
Status : | ++ @if ($job) Queued + @elseif ($o->autohold)Auto Hold + @else + @switch($o->pollmode) + @case(TRUE) Crash @break; + @case(FALSE) Normal @break; + @default Hold + @endswitch + @endif + | +
This system is aware of the following users @can('admin',(new \App\Models\User))(you can add more)@endcan: