Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Remove whitelist systeme (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcaussades authored Jun 25, 2023
1 parent 6edb7fa commit 00784dc
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 360 deletions.
59 changes: 0 additions & 59 deletions app/Http/Controllers/DiscordNotfyController.php

This file was deleted.

86 changes: 0 additions & 86 deletions app/Http/Controllers/whitelistController.php

This file was deleted.

Binary file modified database/database.sqlite
Binary file not shown.
26 changes: 26 additions & 0 deletions database/migrations/2023_06_25_201456_removewhite.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::drop('whitelists');
Schema::drop('essais');
Schema::drop('list');
}

/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};
4 changes: 0 additions & 4 deletions resources/views/navbar-metar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
<li class="nav-item">
<a class="nav-link" href="{{ Route("serveur.api") }}">API</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ Route("whitelist") }}">whitelist</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ Route("metars.index") }}">Metar</a>
</li>
Expand All @@ -25,7 +22,6 @@
Autres
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{ Route("whitelist-admin") }}">WhiteList Gestion</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="{{ Route("logout") }}">Logout</a></li>
Expand Down
4 changes: 0 additions & 4 deletions resources/views/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
<li class="nav-item">
<a class="nav-link" href="{{ Route("serveur.api") }}">API</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ Route("whitelist") }}">Whitelist</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ Route("metars.index") }}">Metar</a>
</li>
Expand All @@ -25,7 +22,6 @@
Autres
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="{{ Route("whitelist-admin") }}">WhiteList Gestion</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="{{ Route("logout") }}">Logout</a></li>
Expand Down
36 changes: 2 additions & 34 deletions resources/views/serveur/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
<form action="#" method="get">
<button type="submit" class="ms-1 btn btn-warning btn-sm" title="Accès au panel modérateur">Panel Modo</button>
</form>
<form action="{{ Route("whitelist-admin") }}">
<button type="submit" class="ms-1 btn btn-info btn-sm" title="Personnes en attente !">Whitelist <span class="badge rounded-pill text-bg-danger">{{ $whitelistAttente }}</span> <span class="badge rounded-pill text-bg-danger">New</span></button>
</form>
@endauth
</div>
</div>
Expand All @@ -84,17 +81,6 @@
<p class="card-text">
<ul>
<li> <strong>Email :</strong> {{ auth()->user()->email }} </li>
@if (auth()->user()->whiteList == 2)
<li><strong> Whitelist :</strong>
<status title="La verrification est en cour par les douaniers...">En attente de validation</status>
</li>
@elseif (auth()->user()->whiteList == 3)
<li><strong> Whitelist :</strong> <status-good>Accepté</status-good> </li>
@elseif (auth()->user()->whiteList == 4)
<li><strong> Whitelist :</strong> <span class="badge text-bg-danger">Refuser</span> </li>
@else
<li><strong> Whitelist :</strong> <a href="#"><button type="submit" class="btn btn-success btn-sm">Je fais ma demande</button></a></li>
@endif
<li><strong> Discord :</strong> <button class="btn btn-primary btn-sm"><strong>{{ auth()->user()->discord_users }}</strong></button> </li>
</ul>
</p>
Expand All @@ -116,25 +102,7 @@
</div>
</div>
<hr class="mt-2">
@if (auth()->user()->whiteList == 1)
<div class="container">
<h4 class="mt-2"> Crée votre Personnage </h4>

@include("serveur.creat_perso")
</div>
@endif

@if (auth()->user()->whiteList == 2)
<div class="container">
<h4 class="mt-2"> Votre Personnage </h4>
@include("serveur.perso")
</div>
@endif

@if (auth()->user()->whiteList == 3)

<div class="container">
<h4 class="mt-2"> Votre Connexion Serveur ! </h4>
@endif



</div>
Loading

0 comments on commit 00784dc

Please sign in to comment.