Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,3 @@
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
+93
View File
@@ -0,0 +1,93 @@
<x-filament::page>
<div class="flex items-center justify-between gap-2">
<div class="w-full mr-2">
{{ $this->search }}
</div>
@if(config('filament-log-manager.allow_delete'))
<div class="w-auto ml-2">
<x-filament::button
x-on:click="window.dispatchEvent(new CustomEvent('open-modal', { detail: { id: 'filament-log-manager-delete-log-file-modal' } }));"
:disabled="is_null($this->logFile)"
type="button"
color="danger"
>
{{ __('filament-log-manager::translations.delete') }}
</x-filament::button>
</div>
@endif
@if(config('filament-log-manager.allow_download'))
<div class="w-auto ml-2">
<x-filament::button
wire:click="download"
:disabled="is_null($this->logFile)"
type="button"
color="primary"
>
{{ __('filament-log-manager::translations.download') }}
</x-filament::button>
</div>
@endif
</div>
<hr class="dark:border-gray-700">
<div>
<div>
<div x-data="{ isCardOpen: null }" class="flex flex-col">
@forelse($this->getLogs() as $key => $log)
<div
class="rounded-xl relative mb-2 py-3 px-3 bg-{{ $log['level_class'] }}"
:class="{'no-bottom-radius mb-0': isCardOpen == {{$key}}}"
>
<a
@click="isCardOpen = isCardOpen == {{$key}} ? null : {{$key}} "
style="cursor: pointer;"
class="block overflow-hidden rounded-t-xl text-white"
>
<span>[{{ $log['date'] }}]</span>
{{ Str::limit($log['text'], 100) }}
</a>
</div>
<div x-show="isCardOpen=={{$key}}" class="mb-2 px-4 py-4 bg-white dark:bg-gray-800 text-gray-900 dark:text-white rounded-xl no-top-radius">
<div class="space-y-2">
<p>{{$log['text']}}</p>
@if(!empty($log['stack']))
<div class="bg-gray-100 dark:bg-gray-900 !mt-4 p-4 text-sm opacity-40">
<pre style="overflow-x: scroll;"><code>{{ trim($log['stack']) }}</code></pre>
</div>
@endif
</div>
</div>
@empty
<h3 class="text-center">{{ __('filament-log-manager::translations.no_logs') }}</h3>
@endforelse
</div>
</div>
</div>
<x-filament::modal id="filament-log-manager-delete-log-file-modal">
<x-slot name="heading">
{{ __('filament-log-manager::translations.modal_delete_heading') }}
</x-slot>
<x-slot name="description">
{{ __('filament-log-manager::translations.modal_delete_subheading') }}
</x-slot>
<x-slot name="footerActions">
<x-filament::button
type="button"
x-on:click="isOpen = false"
color="secondary"
outlined="true"
class="filament-page-modal-button-action"
>
{{ __('filament-log-manager::translations.modal_delete_action_cancel') }}
</x-filament::button>
<x-filament::button
wire:click="delete"
x-on:click="isOpen = false"
type="button"
color="danger"
class="filament-page-modal-button-action"
>
{{ __('filament-log-manager::translations.modal_delete_action_confirm') }}
</x-filament::button>
</x-slot>
</x-filament::modal>
</x-filament::page>
@@ -0,0 +1,14 @@
<x-filament::page>
<div class="space-y-4">
<h2 class="text-lg font-bold">Upload a New Badge</h2>
{{-- Render the form --}}
<form wire:submit.prevent="save" class="space-y-4">
{{ $this->form }}
<x-filament::button type="submit">
Upload Badge
</x-filament::button>
</form>
</div>
</x-filament::page>
@@ -0,0 +1,3 @@
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,3 @@
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
@@ -0,0 +1,7 @@
<?php
?>
<x-filament-panels::page>
{{ $this->form }}
</x-filament-panels::page>
+117
View File
@@ -0,0 +1,117 @@
<x-filament-panels::page>
{{ $this->form }}
<div class="mt-8 space-y-8">
@if($this->blockedCountries->isNotEmpty())
<div class="bg-gray-50 dark:bg-gray-800 rounded-lg p-4">
<h3 class="text-lg font-semibold mb-4">Geblokkeerde Landen</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-2">
@foreach($this->blockedCountries as $country)
<div class="flex items-center justify-between bg-white dark:bg-gray-700 p-2 rounded">
<span>{{ $country->country_name }} ({{ $country->country_code }})</span>
<button
wire:click="removeBlockedCountry({{ $country->id }})"
class="text-red-500 hover:text-red-700"
>
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
@endforeach
</div>
</div>
@endif
@if($this->whitelistedIps->isNotEmpty())
<div class="bg-gray-50 dark:bg-gray-800 rounded-lg p-4">
<h3 class="text-lg font-semibold mb-4">Whitelisted</h3>
<div class="overflow-x-auto">
<table class="min-w-full">
<thead>
<tr class="text-left text-sm text-gray-500">
<th class="pb-2">IP</th>
<th class="pb-2">ASN</th>
<th class="pb-2">Land</th>
<th class="pb-2"></th>
</tr>
</thead>
<tbody>
@foreach($this->whitelistedIps as $item)
<tr class="border-t border-gray-200 dark:border-gray-600">
<td class="py-2">{{ $item->ip_address ?? '-' }}</td>
<td class="py-2">{{ $item->asn ?? '-' }}</td>
<td class="py-2">{{ $item->country_name ?? '-' }}</td>
<td class="py-2">
<button wire:click="removeFromWhitelist({{ $item->id }})" class="text-red-500 hover:text-red-700">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endif
@if($this->blacklistedIps->isNotEmpty())
<div class="bg-gray-50 dark:bg-gray-800 rounded-lg p-4">
<h3 class="text-lg font-semibold mb-4">Blacklisted</h3>
<div class="overflow-x-auto">
<table class="min-w-full">
<thead>
<tr class="text-left text-sm text-gray-500">
<th class="pb-2">IP</th>
<th class="pb-2">ASN</th>
<th class="pb-2">Land</th>
<th class="pb-2"></th>
</tr>
</thead>
<tbody>
@foreach($this->blacklistedIps as $item)
<tr class="border-t border-gray-200 dark:border-gray-600">
<td class="py-2">{{ $item->ip_address ?? '-' }}</td>
<td class="py-2">{{ $item->asn ?? '-' }}</td>
<td class="py-2">{{ $item->country_name ?? '-' }}</td>
<td class="py-2">
<button wire:click="removeFromBlacklist({{ $item->id }})" class="text-red-500 hover:text-red-700">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endif
@if($this->blocklistStats && ($this->blocklistStats['total'] ?? 0) > 0)
<div class="bg-gradient-to-r from-blue-600 to-purple-600 rounded-lg p-4 text-white">
<h3 class="text-lg font-bold mb-4">🛡️ Ultimate Blocklist (Gratis & Onbeperkt)</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="bg-white/10 p-4 rounded text-center">
<div class="text-4xl font-bold">{{ number_format($this->blocklistStats['total'] ?? 0) }}</div>
<div class="text-sm text-white/80">Netwerken/Subnets</div>
<div class="text-xs text-white/60 mt-1">Dekking: Miljoenen IPs</div>
</div>
<div class="bg-white/10 p-4 rounded">
<div class="text-sm font-semibold mb-2">Inclusief blocklists:</div>
<div class="text-xs text-white/80 space-y-1">
<div> FireHol Level 1-4 (VPN/Proxy/TOR)</div>
<div> Spamhaus DROP/eDROP</div>
<div> DShield (hackers)</div>
<div> Emerging Threats (botnets)</div>
<div> Blocklist.de (bruteforce/mail/ssh/ftp/sip)</div>
</div>
</div>
</div>
</div>
@endif
</div>
</x-filament-panels::page>