mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix bulk-add group page dark mode
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
<div class="container mx-auto px-4 py-6">
|
||||
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-sm">
|
||||
<!-- Header -->
|
||||
<div class="px-6 py-4 border-b border-gray-200">
|
||||
<div class="px-6 py-4 border-b border-gray-200 dark:border-gray-700">
|
||||
<div class="flex justify-between items-center">
|
||||
<h1 class="text-2xl font-semibold text-gray-800">
|
||||
<h1 class="text-2xl font-semibold text-gray-800 dark:text-gray-100">
|
||||
<i class="fa fa-plus-square mr-2"></i>{{ $title ?? 'Bulk Add Newsgroups' }}
|
||||
</h1>
|
||||
<a href="{{ url('/admin/group-list') }}" class="px-4 py-2 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-200">
|
||||
<a href="{{ url('/admin/group-list') }}" class="px-4 py-2 bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600">
|
||||
<i class="fa fa-list mr-2"></i>View All Groups
|
||||
</a>
|
||||
</div>
|
||||
@@ -18,10 +18,10 @@
|
||||
<div class="px-6 py-6">
|
||||
@if(!empty($groupmsglist))
|
||||
<!-- Success Info -->
|
||||
<div class="mb-6 p-4 bg-blue-50 border border-blue-200 rounded-lg">
|
||||
<div class="mb-6 p-4 bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-800 rounded-lg">
|
||||
<div class="flex">
|
||||
<i class="fa fa-info-circle text-blue-500 text-xl mr-3"></i>
|
||||
<p class="text-blue-700">
|
||||
<i class="fa fa-info-circle text-blue-500 dark:text-blue-400 text-xl mr-3"></i>
|
||||
<p class="text-blue-700 dark:text-blue-300">
|
||||
The following groups have been processed. You can now view them in the group list.
|
||||
</p>
|
||||
</div>
|
||||
@@ -29,33 +29,33 @@
|
||||
|
||||
<!-- Results Table -->
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-gray-200">
|
||||
<thead class="bg-gray-50">
|
||||
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<thead class="bg-gray-50 dark:bg-gray-700">
|
||||
<tr>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Group</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Group</th>
|
||||
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200">
|
||||
<tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700">
|
||||
@foreach($groupmsglist as $group)
|
||||
<tr class="hover:bg-gray-50">
|
||||
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700">
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
<div class="flex items-center">
|
||||
<i class="fa fa-users text-gray-400 mr-3"></i>
|
||||
<span class="font-medium text-gray-900">{{ $group['group'] }}</span>
|
||||
<i class="fa fa-users text-gray-400 dark:text-gray-500 mr-3"></i>
|
||||
<span class="font-medium text-gray-900 dark:text-gray-100">{{ $group['group'] }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">
|
||||
@if(strpos($group['msg'], 'Error') !== false)
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-red-100 text-red-800">
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-300">
|
||||
<i class="fa fa-exclamation-circle mr-1"></i>{{ $group['msg'] }}
|
||||
</span>
|
||||
@elseif(strpos($group['msg'], 'exists') !== false)
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-yellow-100 text-yellow-800">
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-yellow-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300">
|
||||
<i class="fa fa-exclamation-triangle mr-1"></i>{{ $group['msg'] }}
|
||||
</span>
|
||||
@else
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-green-100 text-green-800">
|
||||
<span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-300">
|
||||
<i class="fa fa-check-circle mr-1"></i>{{ $group['msg'] }}
|
||||
</span>
|
||||
@endif
|
||||
@@ -67,10 +67,10 @@
|
||||
</div>
|
||||
@else
|
||||
<!-- Info Alert -->
|
||||
<div class="mb-6 p-4 bg-blue-50 border border-blue-200 rounded-lg">
|
||||
<div class="mb-6 p-4 bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-800 rounded-lg">
|
||||
<div class="flex">
|
||||
<i class="fa fa-info-circle text-blue-500 text-xl mr-3"></i>
|
||||
<p class="text-blue-700">
|
||||
<i class="fa fa-info-circle text-blue-500 dark:text-blue-400 text-xl mr-3"></i>
|
||||
<p class="text-blue-700 dark:text-blue-300">
|
||||
Enter a regular expression to match multiple groups for bulk addition to the system.
|
||||
</p>
|
||||
</div>
|
||||
@@ -91,13 +91,13 @@
|
||||
</div>
|
||||
<textarea id="groupfilter"
|
||||
name="groupfilter"
|
||||
class="pl-10 w-full px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 font-mono text-sm"
|
||||
class="pl-10 w-full px-4 py-2 border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-gray-100 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 font-mono text-sm"
|
||||
rows="5"
|
||||
placeholder="e.g. alt.binaries.cd.image.linux|alt.binaries.warez.linux"></textarea>
|
||||
</div>
|
||||
<p class="mt-2 text-sm text-gray-500">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
A regular expression to match against group names. Separate multiple patterns with the pipe symbol (|).
|
||||
<br>Example: <code class="bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-xs text-pink-600">alt.binaries.cd.image.linux|alt.binaries.warez.linux</code>
|
||||
<br>Example: <code class="bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-xs text-pink-600 dark:text-pink-400">alt.binaries.cd.image.linux|alt.binaries.warez.linux</code>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
value="1"
|
||||
class="w-4 h-4 text-blue-600 dark:text-blue-400 border-gray-300 dark:border-gray-600 focus:ring-blue-500"
|
||||
checked>
|
||||
<label for="active_yes" class="ml-2 text-sm text-gray-700">Yes</label>
|
||||
<label for="active_yes" class="ml-2 text-sm text-gray-700 dark:text-gray-300">Yes</label>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<input type="radio"
|
||||
@@ -120,10 +120,10 @@
|
||||
id="active_no"
|
||||
value="0"
|
||||
class="w-4 h-4 text-blue-600 dark:text-blue-400 border-gray-300 dark:border-gray-600 focus:ring-blue-500">
|
||||
<label for="active_no" class="ml-2 text-sm text-gray-700">No</label>
|
||||
<label for="active_no" class="ml-2 text-sm text-gray-700 dark:text-gray-300">No</label>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mt-2 text-sm text-gray-500">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
Inactive groups will not have headers downloaded for them.
|
||||
</p>
|
||||
</div>
|
||||
@@ -138,7 +138,7 @@
|
||||
id="backfill_yes"
|
||||
value="1"
|
||||
class="w-4 h-4 text-blue-600 dark:text-blue-400 border-gray-300 dark:border-gray-600 focus:ring-blue-500">
|
||||
<label for="backfill_yes" class="ml-2 text-sm text-gray-700">Yes</label>
|
||||
<label for="backfill_yes" class="ml-2 text-sm text-gray-700 dark:text-gray-300">Yes</label>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<input type="radio"
|
||||
@@ -147,10 +147,10 @@
|
||||
value="0"
|
||||
class="w-4 h-4 text-blue-600 dark:text-blue-400 border-gray-300 dark:border-gray-600 focus:ring-blue-500"
|
||||
checked>
|
||||
<label for="backfill_no" class="ml-2 text-sm text-gray-700">No</label>
|
||||
<label for="backfill_no" class="ml-2 text-sm text-gray-700 dark:text-gray-300">No</label>
|
||||
</div>
|
||||
</div>
|
||||
<p class="mt-2 text-sm text-gray-500">
|
||||
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">
|
||||
Inactive groups will not have backfill headers downloaded for them.
|
||||
</p>
|
||||
</div>
|
||||
@@ -159,17 +159,17 @@
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50">
|
||||
<div class="px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-700">
|
||||
<div class="flex justify-between">
|
||||
<a href="{{ url('/admin/group-list') }}" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-300">
|
||||
<a href="{{ url('/admin/group-list') }}" class="px-4 py-2 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-300 dark:hover:bg-gray-600">
|
||||
<i class="fa fa-arrow-left mr-2"></i>Back to Groups
|
||||
</a>
|
||||
@if(empty($groupmsglist))
|
||||
<button type="submit" form="groupBulkForm" class="px-4 py-2 bg-green-600 dark:bg-green-700 text-white rounded-lg hover:bg-green-700">
|
||||
<button type="submit" form="groupBulkForm" class="px-4 py-2 bg-green-600 dark:bg-green-700 text-white rounded-lg hover:bg-green-700 dark:hover:bg-green-600">
|
||||
<i class="fa fa-plus-circle mr-2"></i>Add Groups
|
||||
</button>
|
||||
@else
|
||||
<a href="{{ url('/admin/group-bulk') }}" class="px-4 py-2 bg-blue-600 dark:bg-blue-700 text-white rounded-lg hover:bg-blue-700">
|
||||
<a href="{{ url('/admin/group-bulk') }}" class="px-4 py-2 bg-blue-600 dark:bg-blue-700 text-white rounded-lg hover:bg-blue-700 dark:hover:bg-blue-600">
|
||||
<i class="fa fa-plus-circle mr-2"></i>Add More Groups
|
||||
</a>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user