Skip to content

Commit

Permalink
Rename panel to manage
Browse files Browse the repository at this point in the history
  • Loading branch information
andyksaw committed Nov 2, 2024
1 parent 98f3bdf commit a5fb02f
Show file tree
Hide file tree
Showing 111 changed files with 319 additions and 319 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function toDiscord()
return (new DiscordMessage)
->content('A new ban appeal has been submitted.')
->embed(function (DiscordEmbed $embed) {
$embed->title('Ban Appeal', route('front.panel.ban-appeals.show', $this->banAppeal))
$embed->title('Ban Appeal', route('manage.ban-appeals.show', $this->banAppeal))
->description(Str::limit($this->banAppeal->explanation, 500))
->field('Banning Staff', $this->banAppeal->gamePlayerBan->bannerPlayer->alias ?? 'No Alias')
->field('Ban Reason', $this->banAppeal->gamePlayerBan->reason ?? '-')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function toDiscord()
return (new DiscordMessage)
->content('<@&839756575153324032> A new builder rank application has arrived.')
->embed(function (DiscordEmbed $embed) {
$embed->title('Builder Rank Application', route('front.panel.builder-ranks.show', $this->builderRankApplication))
$embed->title('Builder Rank Application', route('manage.builder-ranks.show', $this->builderRankApplication))
->field('Current build rank', $this->builderRankApplication->current_builder_rank)
->field('Build location', $this->builderRankApplication->build_location)
->field('Build description', Str::limit($this->builderRankApplication->build_description, 500))
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Front/BanAppeal/BanAppealController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BanAppealController extends WebController
public function index(Request $request)
{
$bans = $request->user()?->gamePlayerBans()
->with(['banAppeals', 'bannerPlayer.aliases', 'bannedPlayer.aliases'])
->with(['banAppeals', 'bannerPlayer', 'bannedPlayer'])
->latest()->get() ?? collect();

return view('front.pages.ban-appeal.index')->with([
Expand All @@ -46,7 +46,7 @@ public function create(GamePlayerBan $ban, Request $request, CreateBanAppeal $us

$bannedPlayer = $ban->bannedPlayer;
$banHistory = $bannedPlayer->gamePlayerBans()
->with(['bannerPlayer.aliases', 'bannedPlayer.aliases'])
->with(['bannerPlayer', 'bannedPlayer'])
->latest()->get();

return view('front.pages.ban-appeal.create')->with([
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Front/BanlistController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class BanlistController extends WebController
public function index(Request $request)
{
$bans = GamePlayerBan::active()
->with(['bannedPlayer', 'bannerPlayer', 'bannerPlayer.aliases'])
->with(['bannedPlayer', 'bannerPlayer'])
->latest();

if ($request->has('query') && !empty($request->input('query'))) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Account;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\EmailChange\UseCases\UpdateAccountEmail;
use App\Http\Controllers\WebController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Account;
Expand Down Expand Up @@ -66,6 +66,6 @@ public function update(

$account->emailChangeRequests()->delete();

return redirect(route('front.panel.accounts.show', $account));
return redirect(route('manage.accounts.show', $account));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Models\Account;
use App\Models\MinecraftPlayer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\Activation\Notifications\AccountNeedsActivationNotification;
use App\Models\Account;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\MinecraftEventBus\Events\MinecraftPlayerUpdated;
use App\Models\Account;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\MinecraftEventBus\Events\MinecraftPlayerUpdated;
use App\Models\Account;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Core\Utilities\Traits\FiltersWithParameters;
use App\Http\Controllers\WebController;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Badge;
Expand Down Expand Up @@ -48,7 +48,7 @@ public function store(Request $request): RedirectResponse
'list_hidden' => $request->get('list_hidden', 0),
]);

return redirect(route('front.panel.badges.index'));
return redirect(route('manage.badges.index'));
}

/**
Expand Down Expand Up @@ -84,14 +84,14 @@ public function update(Request $request, int $badgeId): RedirectResponse
$badge->update($input);
$badge->save();

return redirect(route('front.panel.badges.index'));
return redirect(route('manage.badges.index'));
}

public function destroy(Request $request, int $badgeId): RedirectResponse
{
$badge = Badge::find($badgeId);
$badge->delete();

return redirect(route('front.panel.badges.index'));
return redirect(route('manage.badges.index'));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Core\Data\Exceptions\NotImplementedException;
use App\Domains\BanAppeals\Entities\BanAppealStatus;
Expand Down Expand Up @@ -64,6 +64,6 @@ public function update(UpdateBanAppeal $useCase, BanAppealUpdateRequest $request

$banAppeal->notify(new BanAppealUpdatedNotification($banAppeal->showLink()));

return redirect()->route('front.panel.ban-appeals.show', $banAppeal);
return redirect()->route('manage.ban-appeals.show', $banAppeal);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\BuilderRankApplications\Data\ApplicationStatus;
use App\Domains\BuilderRankApplications\UseCases\ApproveBuildRankApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Donation;
Expand Down Expand Up @@ -67,7 +67,7 @@ public function store(Request $request)
'updated_at' => $request->get('created_at'),
]);

return redirect(route('front.panel.donations.index'));
return redirect(route('manage.donations.index'));
}

/**
Expand Down Expand Up @@ -104,7 +104,7 @@ public function update(Request $request, Donation $donation)
$donation->update($request->all());
$donation->save();

return redirect(route('front.panel.donations.show', $donation->donation_id));
return redirect(route('manage.donations.show', $donation->donation_id));
}

/**
Expand All @@ -117,6 +117,6 @@ public function destroy(Request $request, Donation $donation)
{
$donation->delete();

return redirect(route('front.panel.donations.index'));
return redirect(route('manage.donations.index'));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\DonationPerk;
Expand Down Expand Up @@ -68,7 +68,7 @@ public function store(Request $request)
'updated_at' => $request->get('created_at'),
]);

return redirect(route('front.panel.donations.show', $perk->donation));
return redirect(route('manage.donations.show', $perk->donation));
}

/**
Expand Down Expand Up @@ -122,7 +122,7 @@ public function update(Request $request, DonationPerk $donationPerk)
$donationPerk->update($request->all());
$donationPerk->save();

return redirect(route('front.panel.donations.show', $donationPerk->donation));
return redirect(route('manage.donations.show', $donationPerk->donation));
}

/**
Expand All @@ -136,6 +136,6 @@ public function destroy(Request $request, DonationPerk $donationPerk)
$donation = $donationPerk->donation;
$donationPerk->delete();

return redirect(route('front.panel.donations.show', $donation));
return redirect(route('manage.donations.show', $donation));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\MinecraftEventBus\Events\IpAddressBanned;
use App\Http\Controllers\WebController;
Expand All @@ -14,7 +14,7 @@ class GameIPBanController extends WebController
{
public function index(Request $request): View
{
$bans = GameIPBan::with('bannerPlayer.aliases')
$bans = GameIPBan::with('bannerPlayer')
->orderBy('created_at', 'desc')
->paginate(100);

Expand Down Expand Up @@ -56,7 +56,7 @@ public function store(Request $request): RedirectResponse

IpAddressBanned::dispatch($ban);

return redirect(route('front.panel.ip-bans.index'));
return redirect(route('manage.ip-bans.index'));
}

/**
Expand Down Expand Up @@ -88,13 +88,13 @@ public function update(Request $request, int $banId): RedirectResponse

GameIPBan::find($banId)->update($request->all());

return redirect(route('front.panel.ip-bans.index'));
return redirect(route('manage.ip-bans.index'));
}

public function destroy(Request $request, int $banId): RedirectResponse
{
GameIPBan::find($banId)->delete();

return redirect(route('front.panel.ip-bans.index'));
return redirect(route('manage.ip-bans.index'));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\Bans\Data\UnbanType;
use App\Domains\MinecraftEventBus\Events\MinecraftUuidBanned;
Expand All @@ -16,7 +16,7 @@ class GamePlayerBanController extends WebController
{
public function index(Request $request): View
{
$bans = GamePlayerBan::with('bannedPlayer.aliases', 'bannerPlayer.aliases', 'unbannerPlayer.aliases')
$bans = GamePlayerBan::with('bannedPlayer', 'bannerPlayer', 'unbannerPlayer')
->orderBy('created_at', 'desc')
->paginate(100);

Expand Down Expand Up @@ -70,7 +70,7 @@ public function store(Request $request): RedirectResponse

MinecraftUuidBanned::dispatch($ban);

return redirect(route('front.panel.player-bans.index'));
return redirect(route('manage.player-bans.index'));
}

/**
Expand Down Expand Up @@ -107,13 +107,13 @@ public function update(Request $request, int $banId): RedirectResponse

GamePlayerBan::find($banId)->update($request->all());

return redirect(route('front.panel.player-bans.index'));
return redirect(route('manage.player-bans.index'));
}

public function destroy(Request $request, int $banId): RedirectResponse
{
GamePlayerBan::find($banId)->delete();

return redirect(route('front.panel.player-bans.index'));
return redirect(route('manage.player-bans.index'));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Group;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Http\Controllers\WebController;
use App\Models\Group;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Domains\MinecraftEventBus\Events\MinecraftConfigUpdated;
use App\Http\Controllers\WebController;
Expand Down Expand Up @@ -41,6 +41,6 @@ public function update(Request $request, MinecraftPlayer $minecraftPlayer)

MinecraftConfigUpdated::dispatch($config);

return redirect(route('front.panel.minecraft.config.create', $config));
return redirect(route('manage.minecraft.config.create', $config));
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Http\Controllers\Panel;
namespace App\Http\Controllers\Manage;

use App\Core\Domains\Mojang\Api\MojangPlayerApi;
use App\Http\Controllers\WebController;
Expand Down Expand Up @@ -54,7 +54,7 @@ public function store(Request $request, MojangPlayerApi $api)

$mcPlayer = MinecraftPlayer::updateOrCreate(['uuid' => $uuid], ['account_id' => $request->account_id]);

return redirect(route('front.panel.minecraft-players.show', $mcPlayer));
return redirect(route('manage.minecraft-players.show', $mcPlayer));
}

/**
Expand Down Expand Up @@ -94,7 +94,7 @@ public function update(Request $request, MinecraftPlayer $minecraftPlayer)
'account_id' => $request->account_id,
]);

return redirect(route('front.panel.minecraft-players.show', $minecraftPlayer));
return redirect(route('manage.minecraft-players.show', $minecraftPlayer));
}

/**
Expand Down
Loading

0 comments on commit a5fb02f

Please sign in to comment.