A lot of things

This commit is contained in:
2026-06-16 16:21:43 +02:00
parent 4f9f6c63b3
commit 7e1e26f20b
126 changed files with 7917 additions and 204 deletions

View File

@@ -33,6 +33,62 @@ class SubmissionController extends Controller
public function __construct(private SubmissionsService $services){}
public function index(Request $request)
{
$entryTypes = [
'romhack' => [
'slug' => 'romhacks',
'label' => 'Romhack',
'icon' => 'gamepad-2',
'color' => '#4a6fc2',
'bg' => '#d5e1fc1a',
'border' => '#d5e1fc40',
],
'translation' => [
'slug' => 'translations',
'label' => 'Translation',
'icon' => 'languages',
'color' => '#4a8a2a',
'bg' => '#e7f4d91a',
'border' => '#e7f4d940',
],
'homebrew' => [
'slug' => 'homebrew',
'label' => 'Homebrew',
'icon' => 'cpu',
'color' => '#c23060',
'bg' => '#ffeaf01a',
'border' => '#ffeaf040',
],
'utility' => [
'slug' => 'utilities',
'label' => 'Utility',
'icon' => 'wrench',
'color' => '#8a6600',
'bg' => '#fff8d51a',
'border' => '#fff8d540',
],
'document' => [
'slug' => 'documents',
'label' => 'Document',
'icon' => 'file-text',
'color' => '#7a35c2',
'bg' => '#f3eaff1a',
'border' => '#f3eaff40',
],
'lua-script' => [
'slug' => 'lua-script',
'label' => 'Lua script',
'icon' => 'terminal',
'color' => '#a04515',
'bg' => '#eed6c51a',
'border' => '#eed6c540',
] ];
return view('submissions.index', compact('entryTypes'));
}
public function create(Request $request, string $section)
{
$data = [
@@ -108,7 +164,7 @@ class SubmissionController extends Controller
if( $entry->type !== $section )
abort(404);
if( $entry->comments_thread_id)
if( $entry->comments_thread_id )
DeleteXenForoCommentsThread::dispatch( $entry->comments_thread_id );
$entry->delete();