mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-04-20 04:36:51 -04:00
661 lines
17 KiB
HTML
661 lines
17 KiB
HTML
<div id="huntManagerSection" class="system-tab-panel active" data-system-panel="hunt-manager">
|
|
<!-- Unified Toolbar -->
|
|
<div class="hm-toolbar">
|
|
<div class="hm-toolbar-row">
|
|
<div class="hm-filters">
|
|
<div class="hm-filter-chip">
|
|
<i class="fas fa-filter"></i>
|
|
<select id="huntManagerAppSelect" class="hm-chip-select">
|
|
<option value="all">All Apps</option>
|
|
<option value="sonarr">Sonarr</option>
|
|
<option value="radarr">Radarr</option>
|
|
<option value="lidarr">Lidarr</option>
|
|
<option value="readarr">Readarr</option>
|
|
<option value="whisparr">Whisparr V2</option>
|
|
<option value="eros">Whisparr V3</option>
|
|
<option value="movie_hunt">Movie Hunt</option>
|
|
<option value="tv_hunt">TV Hunt</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="hm-search-bar">
|
|
<i class="fas fa-search"></i>
|
|
<input type="text" id="huntManagerSearchInput" placeholder="Search processed media...">
|
|
</div>
|
|
<button type="button" id="huntManagerSearchButton" class="hm-btn hm-btn-search" title="Search">
|
|
<i class="fas fa-search"></i>
|
|
</button>
|
|
<button type="button" id="clearHuntManagerButton" class="hm-btn hm-btn-danger" title="Clear Data">
|
|
<i class="fas fa-trash-alt"></i>
|
|
</button>
|
|
</div>
|
|
<div class="hm-toolbar-meta">
|
|
<div class="hm-connection-dot">
|
|
<i class="fas fa-circle hm-status-icon"></i>
|
|
<span id="huntManagerConnectionStatus" class="hm-status-disconnected">Disconnected</span>
|
|
</div>
|
|
<div class="hm-pagination">
|
|
<span class="hm-page-size">
|
|
Show
|
|
<select id="huntManagerPageSize" class="hm-chip-select hm-chip-select-sm">
|
|
<option value="10">10</option>
|
|
<option value="20" selected>20</option>
|
|
<option value="50">50</option>
|
|
<option value="100">100</option>
|
|
</select>
|
|
</span>
|
|
<div class="hm-page-nav">
|
|
<button id="huntManagerPrevPage" class="hm-page-btn" title="Previous Page"><i class="fas fa-chevron-left"></i></button>
|
|
<span id="huntManagerPageInfo" class="hm-page-info">Page <span id="huntManagerCurrentPage">1</span> of <span id="huntManagerTotalPages">1</span></span>
|
|
<button id="huntManagerNextPage" class="hm-page-btn" title="Next Page"><i class="fas fa-chevron-right"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Data Table -->
|
|
<div class="hm-table-wrapper">
|
|
<table class="hm-data-table">
|
|
<thead>
|
|
<tr>
|
|
<th class="col-info">Processed Information</th>
|
|
<th class="col-op">Operation</th>
|
|
<th class="col-id">ID</th>
|
|
<th class="col-instance">App Instance</th>
|
|
<th class="col-time">Time</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="huntManagerTableBody">
|
|
<!-- Hunt Manager items will be loaded here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="huntManagerEmptyState" class="hm-empty-state" style="display: none;">
|
|
<div class="hm-empty-icon">
|
|
<i class="fas fa-crosshairs"></i>
|
|
</div>
|
|
<h3>No hunt data found</h3>
|
|
<p>Items will appear here once media has been processed by your apps.</p>
|
|
</div>
|
|
|
|
<div id="huntManagerLoading" class="hm-loading" style="display: none;">
|
|
<div class="hm-loading-inner">
|
|
<i class="fas fa-circle-notch fa-spin fa-3x"></i>
|
|
<p>Fetching hunt data...</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Hunt Manager — Modern Compact Layout (matches Logs redesign)
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
#huntManagerSection {
|
|
padding-bottom: 80px !important;
|
|
}
|
|
|
|
/* ── Toolbar ── */
|
|
.hm-toolbar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
margin-bottom: 16px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hm-toolbar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.hm-toolbar-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 16px;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
border-top: 1px solid rgba(255, 255, 255, 0.04);
|
|
min-height: 40px;
|
|
}
|
|
|
|
/* ── Filter Chips ── */
|
|
.hm-filters {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hm-filter-chip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 8px;
|
|
padding: 0 4px 0 10px;
|
|
height: 36px;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.hm-filter-chip:hover,
|
|
.hm-filter-chip:focus-within {
|
|
border-color: rgba(99, 102, 241, 0.4);
|
|
}
|
|
|
|
.hm-filter-chip i {
|
|
color: #64748b;
|
|
font-size: 0.75rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hm-chip-select {
|
|
background: transparent;
|
|
border: none;
|
|
color: #cbd5e1;
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
outline: none;
|
|
cursor: pointer;
|
|
padding: 6px 4px;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 6px center;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.hm-chip-select option {
|
|
background: #1e293b;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.hm-chip-select-sm {
|
|
font-size: 0.8rem;
|
|
padding: 2px 18px 2px 4px;
|
|
}
|
|
|
|
/* ── Search Bar ── */
|
|
.hm-search-bar {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 8px;
|
|
padding: 0 10px;
|
|
height: 36px;
|
|
min-width: 160px;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.hm-search-bar:focus-within {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.hm-search-bar i {
|
|
color: #475569;
|
|
font-size: 0.8rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Override global enforcement — input is inside styled container */
|
|
.hm-search-bar input {
|
|
background: transparent !important;
|
|
background-image: none !important;
|
|
border: none !important;
|
|
border-radius: 0 !important;
|
|
box-shadow: none !important;
|
|
color: #e2e8f0 !important;
|
|
font-size: 0.78rem;
|
|
outline: none;
|
|
width: 100%;
|
|
height: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.hm-search-bar input::placeholder {
|
|
color: #475569;
|
|
}
|
|
|
|
/* ── Toolbar Buttons ── */
|
|
.hm-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(30, 41, 59, 0.8);
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.hm-btn:hover {
|
|
background: rgba(30, 41, 59, 1);
|
|
color: #e2e8f0;
|
|
border-color: rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.hm-btn-search:hover {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
color: #a5b4fc;
|
|
}
|
|
|
|
.hm-btn-danger:hover {
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
color: #f87171;
|
|
background: rgba(239, 68, 68, 0.08);
|
|
}
|
|
|
|
/* ── Meta Row: Connection + Pagination ── */
|
|
.hm-connection-dot {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 0.78rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.hm-status-icon {
|
|
font-size: 0.45rem;
|
|
color: #64748b;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.hm-status-connected {
|
|
color: #10b981;
|
|
}
|
|
|
|
.hm-connection-dot:has(.hm-status-connected) .hm-status-icon {
|
|
color: #10b981;
|
|
}
|
|
|
|
.hm-status-disconnected {
|
|
color: #64748b;
|
|
}
|
|
|
|
.hm-status-error {
|
|
color: #f87171;
|
|
}
|
|
|
|
.hm-connection-dot:has(.hm-status-error) .hm-status-icon {
|
|
color: #f87171;
|
|
}
|
|
|
|
.hm-status-loading {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.hm-connection-dot:has(.hm-status-loading) .hm-status-icon {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.hm-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.hm-page-size {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: #64748b;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.hm-page-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.hm-page-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: rgba(30, 41, 59, 0.6);
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.hm-page-btn:hover:not(:disabled) {
|
|
border-color: rgba(99, 102, 241, 0.4);
|
|
color: #a5b4fc;
|
|
background: rgba(99, 102, 241, 0.08);
|
|
}
|
|
|
|
.hm-page-btn:disabled {
|
|
opacity: 0.25;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.hm-page-info {
|
|
color: #94a3b8;
|
|
font-size: 0.8rem;
|
|
padding: 0 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Data Table
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
.hm-table-wrapper {
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.hm-data-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.hm-data-table thead {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.hm-data-table th {
|
|
background: rgba(15, 23, 42, 0.9);
|
|
color: #64748b;
|
|
text-align: left;
|
|
padding: 10px 16px;
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
font-weight: 600;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.hm-data-table td {
|
|
padding: 10px 16px;
|
|
color: #cbd5e1;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
|
|
font-size: 0.85rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.hm-data-table tbody tr {
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.hm-data-table tbody tr:hover {
|
|
background: rgba(99, 102, 241, 0.04);
|
|
}
|
|
|
|
.hm-data-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Column styles */
|
|
.col-info { }
|
|
|
|
.col-op {
|
|
width: 100px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.col-id {
|
|
width: 100px;
|
|
color: #64748b !important;
|
|
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
font-size: 0.78rem !important;
|
|
}
|
|
|
|
.col-instance {
|
|
width: 200px;
|
|
color: #94a3b8 !important;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.col-time {
|
|
width: 120px;
|
|
color: #64748b !important;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Clickable item links */
|
|
.hunt-item-link {
|
|
color: #a5b4fc !important;
|
|
font-weight: 600;
|
|
text-decoration: none !important;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.hunt-item-link:hover {
|
|
color: #93c5fd !important;
|
|
text-decoration: underline !important;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Operation Badges — pill style (matches log level badges)
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
.operation-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3px 10px;
|
|
border-radius: 9999px;
|
|
font-size: 0.68rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
min-width: 60px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.operation-missing {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
color: #f87171;
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.operation-upgrade {
|
|
background: rgba(99, 102, 241, 0.12);
|
|
color: #a5b4fc;
|
|
border: 1px solid rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.operation-unknown {
|
|
background: rgba(148, 163, 184, 0.1);
|
|
color: #94a3b8;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
/* Discovery Badge */
|
|
.discovery-badge {
|
|
background: rgba(34, 197, 94, 0.1);
|
|
color: #4ade80;
|
|
padding: 2px 8px;
|
|
border-radius: 9999px;
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
margin-left: 8px;
|
|
border: 1px solid rgba(34, 197, 94, 0.18);
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Empty State & Loading
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
.hm-empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
background: rgba(15, 23, 42, 0.4);
|
|
border-radius: 12px;
|
|
border: 1px dashed rgba(255, 255, 255, 0.08);
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.hm-empty-icon {
|
|
color: #334155;
|
|
font-size: 3.5rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.hm-empty-state h3 {
|
|
color: #e2e8f0;
|
|
margin-bottom: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hm-empty-state p {
|
|
color: #64748b;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.hm-loading {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
}
|
|
|
|
.hm-loading-inner {
|
|
color: #6366f1;
|
|
}
|
|
|
|
.hm-loading-inner p {
|
|
margin-top: 15px;
|
|
color: #94a3b8;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════
|
|
Responsive — Mobile
|
|
═══════════════════════════════════════════════════════════════════════ */
|
|
|
|
@media (max-width: 768px) {
|
|
.hm-toolbar-row {
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.hm-filters {
|
|
width: auto;
|
|
}
|
|
|
|
.hm-search-bar {
|
|
min-width: unset;
|
|
flex: 1;
|
|
}
|
|
|
|
.hm-toolbar-meta {
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.hm-pagination {
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Card layout for table rows */
|
|
.hm-data-table,
|
|
.hm-data-table thead,
|
|
.hm-data-table tbody,
|
|
.hm-data-table th,
|
|
.hm-data-table td,
|
|
.hm-data-table tr {
|
|
display: block;
|
|
}
|
|
|
|
.hm-data-table thead tr {
|
|
position: absolute;
|
|
top: -9999px;
|
|
left: -9999px;
|
|
}
|
|
|
|
.hm-data-table tbody tr {
|
|
background: rgba(15, 23, 42, 0.5);
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
border-radius: 10px;
|
|
margin-bottom: 10px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.hm-data-table td {
|
|
border: none;
|
|
padding: 4px 0;
|
|
position: relative;
|
|
padding-left: 35%;
|
|
text-align: right;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.hm-data-table td:before {
|
|
position: absolute;
|
|
top: 4px;
|
|
left: 0;
|
|
width: 30%;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
font-size: 0.68rem;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
/* First cell (processed info) spans full width */
|
|
.hm-data-table td:nth-of-type(1) {
|
|
padding-left: 0;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
padding-bottom: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.hm-data-table td:nth-of-type(1):before { content: none; }
|
|
|
|
.hm-data-table td:nth-of-type(2):before { content: "Operation"; }
|
|
.hm-data-table td:nth-of-type(3):before { content: "ID"; }
|
|
.hm-data-table td:nth-of-type(4):before { content: "Instance"; }
|
|
.hm-data-table td:nth-of-type(5):before { content: "Time"; }
|
|
|
|
.hm-data-table td.col-time {
|
|
color: #4ade80 !important;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hm-toolbar-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hm-filters {
|
|
width: 100%;
|
|
}
|
|
|
|
.hm-filter-chip {
|
|
flex: 1;
|
|
}
|
|
}
|
|
</style>
|