Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions app/Http/Controllers/ToolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,24 @@ public function index(): View
'route' => 'tools.cron',
'icon' => 'clock',
],
[
'name' => 'JWT Decoder',
'description' => 'Decode and inspect JSON Web Tokens',
'route' => 'tools.jwt',
'icon' => 'jwt',
],
[
'name' => 'Timestamp Converter',
'description' => 'Convert Unix timestamps to dates and vice versa',
'route' => 'tools.timestamp',
'icon' => 'timestamp',
],
[
'name' => 'Diff Checker',
'description' => 'Compare two texts and highlight differences',
'route' => 'tools.diff',
'icon' => 'diff',
],
];

return view('home', compact('tools'));
Expand Down Expand Up @@ -233,4 +251,19 @@ public function cron(): View
{
return view('tools.cron-parser');
}

public function jwt(): View
{
return view('tools.jwt');
}

public function timestamp(): View
{
return view('tools.timestamp');
}

public function diff(): View
{
return view('tools.diff');
}
}
16 changes: 15 additions & 1 deletion resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
<circle cx="12" cy="12" r="4" stroke-width="2"/>
</svg>
@break

@case('calculator')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"/>
Expand Down Expand Up @@ -137,6 +136,21 @@
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
@break
@case('jwt')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"/>
</svg>
@break
@case('timestamp')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
</svg>
@break
@case('diff')
<svg class="w-6 h-6 text-indigo-600 dark:text-indigo-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7m0 10a2 2 0 002 2h2a2 2 0 002-2V7a2 2 0 00-2-2h-2a2 2 0 00-2 2"/>
</svg>
@break
@endswitch
</div>
<div class="flex-1 min-w-0">
Expand Down
Loading