vcfyrukjisouhiygu9obh

This commit is contained in:
Thomas G 2023-03-19 22:02:25 +11:00
parent 6dc07d176c
commit 392f4d589f
8 changed files with 62 additions and 7 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -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]);
}
}

BIN
public/images/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
version-000000010

View File

@ -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>

View File

@ -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)

View File

@ -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') }}">

View File

@ -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');