vcfyrukjisouhiygu9obh
This commit is contained in:
parent
6dc07d176c
commit
392f4d589f
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\User;
|
||||
|
||||
class ApiController extends Controller
|
||||
{
|
||||
public function getUsers() {
|
||||
$users = User::all();
|
||||
return response()->json(['users' => $users]);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
version-000000010
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
{{ App\Models\User::count() }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Registered
|
||||
Users
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
{{ App\Models\User::where('admin', true)->count() }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Admin(s)
|
||||
Admins
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
{{ App\Models\User::where('last_seen', '>', Carbon\Carbon::now()->subDay()->toDateTimeString())->count(); }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Online within the past day.
|
||||
Users online today.
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
|
|
@ -41,7 +41,34 @@
|
|||
{{ App\Models\User::where('last_seen', '>', Carbon\Carbon::now()->subMinute()->toDateTimeString())->count(); }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Currently Online.
|
||||
Users currently online.
|
||||
</span>
|
||||
</div>
|
||||
<br>
|
||||
<span class="Stat-Separator"></span>
|
||||
<br>
|
||||
<div class="Stats-Wrapper">
|
||||
<span class="Stats Counter">
|
||||
0
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Assets in moderation queue
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
<span class="Stats Counter">
|
||||
0
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Places in moderation queue
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
<span class="Stats Counter">
|
||||
0
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Reports in moderation queue
|
||||
</span>
|
||||
</div>
|
||||
<br>
|
||||
|
|
@ -52,7 +79,7 @@
|
|||
{{ App\Models\InviteKey::count() }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Invite Key(s)
|
||||
Total Invite Keys
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
|
|
@ -60,7 +87,15 @@
|
|||
{{ App\Models\InviteKey::where('active', true)->count() }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Unused Invite Key(s)
|
||||
Unused Invite Keys
|
||||
</span>
|
||||
</div>
|
||||
<div class="Stats-Wrapper">
|
||||
<span class="Stats Counter">
|
||||
{{ App\Models\InviteKey::where('active', false)->count() }}
|
||||
</span>
|
||||
<span class="Stats">
|
||||
Used Invite Keys
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
<h2 class="MainHeader">
|
||||
Invite Tree
|
||||
</h2>
|
||||
<h5 class="SubHeader Reminder">
|
||||
DO NOT LEAK ANY USER INFORMATION. DOING SO WILL GET YOU BANNED.
|
||||
</h5>
|
||||
@if (!request()->has('q'))
|
||||
<h5 class="SubHeader">Enter a Username or ID.</h5>
|
||||
@elseif (!$user)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
User List
|
||||
</h2>
|
||||
<h5 class="SubHeader Reminder">
|
||||
(Reminder) Please don't leak any users information!
|
||||
DO NOT LEAK ANY USER INFORMATION. DOING SO WILL GET YOU BANNED.
|
||||
</h5>
|
||||
<div class="Userlist">
|
||||
<form method="GET" action="{{ route('admin_users') }}">
|
||||
|
|
|
|||
|
|
@ -17,3 +17,5 @@ use Illuminate\Support\Facades\Route;
|
|||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
|
||||
Route::post('/api/users', 'ApiController@getUsers');
|
||||
Loading…
Reference in New Issue