feat: add module info and configuration pages to admin panel
Add dedicated pages for viewing module details and configuring module settings. Includes routes, templates, and JS components for module info page showing features, menu items, dependencies, and self-contained module paths. Also adds View/Configure navigation buttons to the platform modules list. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -136,6 +136,21 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-3 ml-4">
|
||||
<!-- View Details Button -->
|
||||
<a :href="`/admin/platforms/${platformCode}/modules/${module.code}`"
|
||||
class="p-1.5 rounded-lg text-gray-500 hover:text-purple-600 hover:bg-purple-50 dark:text-gray-400 dark:hover:text-purple-400 dark:hover:bg-purple-900/20 transition-colors"
|
||||
title="View Details">
|
||||
<span x-html="$icon('eye', 'w-4 h-4')"></span>
|
||||
</a>
|
||||
|
||||
<!-- Configure Button (if has config) -->
|
||||
<a x-show="hasConfig(module.code)"
|
||||
:href="`/admin/platforms/${platformCode}/modules/${module.code}/config`"
|
||||
class="p-1.5 rounded-lg text-gray-500 hover:text-blue-600 hover:bg-blue-50 dark:text-gray-400 dark:hover:text-blue-400 dark:hover:bg-blue-900/20 transition-colors"
|
||||
title="Configure">
|
||||
<span x-html="$icon('cog', 'w-4 h-4')"></span>
|
||||
</a>
|
||||
|
||||
<span class="px-2 py-1 text-xs font-medium rounded-full bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">
|
||||
Enabled
|
||||
</span>
|
||||
@@ -202,6 +217,21 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-3 ml-4">
|
||||
<!-- View Details Button -->
|
||||
<a :href="`/admin/platforms/${platformCode}/modules/${module.code}`"
|
||||
class="p-1.5 rounded-lg text-gray-500 hover:text-purple-600 hover:bg-purple-50 dark:text-gray-400 dark:hover:text-purple-400 dark:hover:bg-purple-900/20 transition-colors"
|
||||
title="View Details">
|
||||
<span x-html="$icon('eye', 'w-4 h-4')"></span>
|
||||
</a>
|
||||
|
||||
<!-- Configure Button (if has config) -->
|
||||
<a x-show="hasConfig(module.code)"
|
||||
:href="`/admin/platforms/${platformCode}/modules/${module.code}/config`"
|
||||
class="p-1.5 rounded-lg text-gray-500 hover:text-blue-600 hover:bg-blue-50 dark:text-gray-400 dark:hover:text-blue-400 dark:hover:bg-blue-900/20 transition-colors"
|
||||
title="Configure">
|
||||
<span x-html="$icon('cog', 'w-4 h-4')"></span>
|
||||
</a>
|
||||
|
||||
<!-- Status Badge -->
|
||||
<span x-show="module.is_enabled"
|
||||
class="px-2 py-1 text-xs font-medium rounded-full bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200">
|
||||
|
||||
Reference in New Issue
Block a user