Regenerate templates after import path updates

Template changes:
- Regenerate all .templ files after bookmann → bookhoard import path changes
- Reformat queue.templ with consistent formatting
- Update generated .go template files

Part of project rename to Bookhoard.
This commit is contained in:
2026-02-01 16:21:27 -05:00
parent 655ed9225f
commit 6d9b36be82
2 changed files with 180 additions and 182 deletions
+166 -168
View File
@@ -1,19 +1,19 @@
package templates package templates
import "bookmann/internal/handlers" import "bookhoard/internal/handlers"
templ Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.QueueStatsResponse) { templ Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.QueueStatsResponse) {
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Sync Queue - Bookhoard</title> <title>Sync Queue - Bookhoard</title>
<script src="/static/htmx.min.js"></script> <script src="/static/htmx.min.js"></script>
<script src="/static/toast.js"></script> <script src="/static/toast.js"></script>
<link href="/static/style.css" rel="stylesheet"> <link href="/static/style.css" rel="stylesheet"/>
<script src="/static/theme.js"></script> <script src="/static/theme.js"></script>
<style> <style>
.status-badge { .status-badge {
display: inline-block; display: inline-block;
padding: 2px 8px; padding: 2px 8px;
@@ -26,7 +26,7 @@ templ Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Q
.status-processing { background-color: #3b82f6; color: white; } .status-processing { background-color: #3b82f6; color: white; }
.status-completed { background-color: #10b981; color: white; } .status-completed { background-color: #10b981; color: white; }
.status-failed { background-color: #ef4444; color: white; } .status-failed { background-color: #ef4444; color: white; }
.priority-badge { .priority-badge {
display: inline-block; display: inline-block;
padding: 2px 8px; padding: 2px 8px;
@@ -41,159 +41,157 @@ templ Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Q
.priority-7 { background-color: #6b7280; color: white; } .priority-7 { background-color: #6b7280; color: white; }
.priority-10 { background-color: #9ca3af; color: white; } .priority-10 { background-color: #9ca3af; color: white; }
</style> </style>
</head> </head>
<body class="theme-{ user.Theme }"> <body class="theme-{ user.Theme }">
@Header(user, "/queue") @Header(user, "/queue")
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> <div class="mb-8">
<div class="mb-8"> <div class="flex justify-between items-center">
<div class="flex justify-between items-center"> <div>
<div> <h1 class="text-3xl font-bold" style="color: var(--text-primary)">Sync Queue</h1>
<h1 class="text-3xl font-bold" style="color: var(--text-primary)">Sync Queue</h1> <p style="color: var(--text-secondary)">Monitor and manage offline sync queue</p>
<p style="color: var(--text-secondary)">Monitor and manage offline sync queue</p> </div>
</div> <div class="flex space-x-3">
<div class="flex space-x-3"> <button onclick="processPendingItems()" class="btn-primary px-4 py-2 rounded-lg">
<button onclick="processPendingItems()" class="btn-primary px-4 py-2 rounded-lg"> Process Queue
Process Queue </button>
</button> <button onclick="clearFailedItems()" class="btn-secondary px-4 py-2 rounded-lg">
<button onclick="clearFailedItems()" class="btn-secondary px-4 py-2 rounded-lg"> Clear Failed
Clear Failed </button>
</button> <button onclick="clearAllItems()" class="btn-danger px-4 py-2 rounded-lg">
<button onclick="clearAllItems()" class="btn-danger px-4 py-2 rounded-lg"> Clear All
Clear All </button>
</button> </div>
</div> </div>
</div> <div id="stats-bar" class="mt-4 grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);">
<div id="stats-bar" class="mt-4 grid grid-cols-2 md:grid-cols-4 gap-4"> <div class="text-3xl font-bold" style="color: #f59e0b;">{ stats.PendingCount }</div>
<div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);"> <div class="text-sm" style="color: var(--text-secondary);">Pending</div>
<div class="text-3xl font-bold" style="color: #f59e0b;">{ stats.PendingCount }</div> </div>
<div class="text-sm" style="color: var(--text-secondary);">Pending</div> <div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);">
</div> <div class="text-3xl font-bold" style="color: #3b82f6;">{ stats.ProcessingCount }</div>
<div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);"> <div class="text-sm" style="color: var(--text-secondary);">Processing</div>
<div class="text-3xl font-bold" style="color: #3b82f6;">{ stats.ProcessingCount }</div> </div>
<div class="text-sm" style="color: var(--text-secondary);">Processing</div> <div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);">
</div> <div class="text-3xl font-bold" style="color: #10b981;">{ stats.CompletedCount }</div>
<div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);"> <div class="text-sm" style="color: var(--text-secondary);">Completed</div>
<div class="text-3xl font-bold" style="color: #10b981;">{ stats.CompletedCount }</div> </div>
<div class="text-sm" style="color: var(--text-secondary);">Completed</div> <div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);">
</div> <div class="text-3xl font-bold" style="color: #ef4444;">{ stats.FailedCount }</div>
<div class="card p-4 rounded-lg border text-center" style="background-color: var(--bg-secondary); border-color: var(--border);"> <div class="text-sm" style="color: var(--text-secondary);">Failed</div>
<div class="text-3xl font-bold" style="color: #ef4444;">{ stats.FailedCount }</div> </div>
<div class="text-sm" style="color: var(--text-secondary);">Failed</div> </div>
</div> </div>
</div> <div class="card p-4 rounded-lg border mb-6" style="background-color: var(--bg-secondary); border-color: var(--border);">
</div> <div class="flex flex-wrap gap-4 items-center">
<div>
<div class="card p-4 rounded-lg border mb-6" style="background-color: var(--bg-secondary); border-color: var(--border);"> <label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Status Filter</label>
<div class="flex flex-wrap gap-4 items-center"> <select
<div> id="status-filter"
<label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Status Filter</label> onchange="filterQueue()"
<select id="status-filter" onchange="filterQueue()" class="px-4 py-2 border rounded-lg"
class="px-4 py-2 border rounded-lg" style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"
style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"> >
<option value="all">All Items</option> <option value="all">All Items</option>
<option value="pending" selected>Pending</option> <option value="pending" selected>Pending</option>
<option value="processing">Processing</option> <option value="processing">Processing</option>
<option value="completed">Completed</option> <option value="completed">Completed</option>
<option value="failed">Failed</option> <option value="failed">Failed</option>
</select> </select>
</div> </div>
<div> <div>
<label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Sync Type</label> <label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Sync Type</label>
<select id="type-filter" onchange="filterQueue()" <select
class="px-4 py-2 border rounded-lg" id="type-filter"
style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"> onchange="filterQueue()"
<option value="all">All Types</option> class="px-4 py-2 border rounded-lg"
<option value="progress">Progress</option> style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"
<option value="note">Notes</option> >
<option value="highlight">Highlights</option> <option value="all">All Types</option>
<option value="bookmark">Bookmarks</option> <option value="progress">Progress</option>
</select> <option value="note">Notes</option>
</div> <option value="highlight">Highlights</option>
<div> <option value="bookmark">Bookmarks</option>
<label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Device</label> </select>
<select id="device-filter" onchange="filterQueue()" </div>
class="px-4 py-2 border rounded-lg" <div>
style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"> <label class="block text-sm font-medium mb-2" style="color: var(--text-secondary)">Device</label>
<option value="all">All Devices</option> <select
</select> id="device-filter"
</div> onchange="filterQueue()"
<div class="flex-1"></div> class="px-4 py-2 border rounded-lg"
<button onclick="refreshQueue()" class="btn-secondary px-4 py-2 rounded-lg"> style="background-color: var(--bg-primary); color: var(--text-primary); border-color: var(--border);"
Refresh >
</button> <option value="all">All Devices</option>
</div> </select>
</div> </div>
<div class="flex-1"></div>
<div id="loading" class="hidden text-center py-16" style="color: var(--text-secondary)"> <button onclick="refreshQueue()" class="btn-secondary px-4 py-2 rounded-lg">
<div class="loading-spinner mx-auto mb-4"></div> Refresh
<p>Loading queue...</p> </button>
</div> </div>
</div>
<div id="empty-state" class="hidden text-center py-16" style="color: var(--text-secondary)"> <div id="loading" class="hidden text-center py-16" style="color: var(--text-secondary)">
<div class="text-6xl mb-4">📭</div> <div class="loading-spinner mx-auto mb-4"></div>
<h3 class="text-xl font-semibold mb-2" style="color: var(--text-primary)">Queue Empty</h3> <p>Loading queue...</p>
<p>No items in the sync queue</p> </div>
</div> <div id="empty-state" class="hidden text-center py-16" style="color: var(--text-secondary)">
<div class="text-6xl mb-4">📭</div>
<div id="queue-list" class="space-y-3"> <h3 class="text-xl font-semibold mb-2" style="color: var(--text-primary)">Queue Empty</h3>
if len(queueItems) == 0 { <p>No items in the sync queue</p>
<div class="text-center py-16" style="color: var(--text-secondary)"> </div>
<div class="text-6xl mb-4">📭</div> <div id="queue-list" class="space-y-3">
<h3 class="text-xl font-semibold mb-2" style="color: var(--text-primary)">Queue Empty</h3> if len(queueItems) == 0 {
<p>No items in the sync queue</p> <div class="text-center py-16" style="color: var(--text-secondary)">
</div> <div class="text-6xl mb-4">📭</div>
} <h3 class="text-xl font-semibold mb-2" style="color: var(--text-primary)">Queue Empty</h3>
<p>No items in the sync queue</p>
for _, item := range queueItems { </div>
<div class="card p-4 rounded-lg border" style="background-color: var(--bg-secondary); border-color: var(--border);"> }
<div class="flex justify-between items-start mb-2"> for _, item := range queueItems {
<div class="flex items-center space-x-3"> <div class="card p-4 rounded-lg border" style="background-color: var(--bg-secondary); border-color: var(--border);">
<span class="status-badge status-{ item.Status }">{ item.Status }</span> <div class="flex justify-between items-start mb-2">
<span class="text-sm" style="color: var(--text-secondary)">{ item.SyncType }</span> <div class="flex items-center space-x-3">
</div> <span class="status-badge status-{ item.Status }">{ item.Status }</span>
<span class="priority-badge priority-{ item.Priority }">P{ item.Priority }</span> <span class="text-sm" style="color: var(--text-secondary)">{ item.SyncType }</span>
</div> </div>
<div class="text-sm mb-2" style="color: var(--text-secondary)"> <span class="priority-badge priority-{ item.Priority }">P{ item.Priority }</span>
Device ID: { item.DeviceID } </div>
if item.MediaTitle != nil { <div class="text-sm mb-2" style="color: var(--text-secondary)">
| Book: { *item.MediaTitle } Device ID: { item.DeviceID }
} if item.MediaTitle != nil {
</div> | Book: { *item.MediaTitle }
<div class="flex justify-between items-center text-sm" style="color: var(--text-secondary)"> }
<span>Attempts: { item.Attempts }/{ item.MaxAttempts }</span> </div>
<span>{ item.CreatedAt }</span> <div class="flex justify-between items-center text-sm" style="color: var(--text-secondary)">
</div> <span>Attempts: { item.Attempts }/{ item.MaxAttempts }</span>
if item.ErrorMessage != nil { <span>{ item.CreatedAt }</span>
<div class="mt-2 text-sm" style="color: #ef4444;"> </div>
Error: { *item.ErrorMessage } if item.ErrorMessage != nil {
</div> <div class="mt-2 text-sm" style="color: #ef4444;">
} Error: { *item.ErrorMessage }
</div> </div>
} }
</div> </div>
}
<div id="queue-item-modal" class="hidden fixed inset-0 z-50 flex items-center justify-center overflow-y-auto" style="background-color: rgba(0, 0, 0, 0.7);"> </div>
<div class="card rounded-lg p-6 w-full max-w-2xl mx-4 my-8" style="background-color: var(--bg-secondary); border-color: var(--border);"> <div id="queue-item-modal" class="hidden fixed inset-0 z-50 flex items-center justify-center overflow-y-auto" style="background-color: rgba(0, 0, 0, 0.7);">
<div class="flex justify-between items-center mb-6"> <div class="card rounded-lg p-6 w-full max-w-2xl mx-4 my-8" style="background-color: var(--bg-secondary); border-color: var(--border);">
<h2 class="text-2xl font-bold" style="color: var(--text-primary)">Queue Item Details</h2> <div class="flex justify-between items-center mb-6">
<button onclick="hideQueueItemModal()" class="p-2 hover:opacity-80 rounded-lg" style="color: var(--text-primary); background-color: var(--bg-primary);"> <h2 class="text-2xl font-bold" style="color: var(--text-primary)">Queue Item Details</h2>
X <button onclick="hideQueueItemModal()" class="p-2 hover:opacity-80 rounded-lg" style="color: var(--text-primary); background-color: var(--bg-primary);">
</button> X
</div> </button>
</div>
<div id="queue-item-details"></div> <div id="queue-item-details"></div>
<div class="flex justify-end space-x-3 mt-6">
<div class="flex justify-end space-x-3 mt-6"> <button onclick="hideQueueItemModal()" class="btn-secondary px-4 py-2 rounded-lg">Close</button>
<button onclick="hideQueueItemModal()" class="btn-secondary px-4 py-2 rounded-lg">Close</button> <button onclick="retryQueueItem()" class="btn-primary px-4 py-2 rounded-lg">Retry</button>
<button onclick="retryQueueItem()" class="btn-primary px-4 py-2 rounded-lg">Retry</button> </div>
</div> </div>
</div> </div>
</div> </div>
</div> <script src="/static/queue.js"></script>
</body>
<script src="/static/queue.js"></script> </html>
</body>
</html>
} }
+14 -14
View File
@@ -31,7 +31,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
templ_7745c5c3_Var1 = templ.NopComponent templ_7745c5c3_Var1 = templ.NopComponent
} }
ctx = templ.ClearChildren(ctx) ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Sync Queue - Bookhoard</title><script src=\"/static/htmx.min.js\"></script><script src=\"/static/toast.js\"></script><link href=\"/static/style.css\" rel=\"stylesheet\"><script src=\"/static/theme.js\"></script><style>\n .status-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n }\n .status-pending { background-color: #f59e0b; color: white; }\n .status-processing { background-color: #3b82f6; color: white; }\n .status-completed { background-color: #10b981; color: white; }\n .status-failed { background-color: #ef4444; color: white; }\n \n .priority-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 10px;\n font-weight: 600;\n }\n .priority-1 { background-color: #ef4444; color: white; }\n .priority-2 { background-color: #f97316; color: white; }\n .priority-3 { background-color: #f59e0b; color: white; }\n .priority-5 { background-color: #10b981; color: white; }\n .priority-7 { background-color: #6b7280; color: white; }\n .priority-10 { background-color: #9ca3af; color: white; }\n </style></head><body class=\"theme-{ user.Theme }\">") templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><title>Sync Queue - Bookhoard</title><script src=\"/static/htmx.min.js\"></script><script src=\"/static/toast.js\"></script><link href=\"/static/style.css\" rel=\"stylesheet\"><script src=\"/static/theme.js\"></script><style>\n .status-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 11px;\n font-weight: 600;\n text-transform: uppercase;\n }\n .status-pending { background-color: #f59e0b; color: white; }\n .status-processing { background-color: #3b82f6; color: white; }\n .status-completed { background-color: #10b981; color: white; }\n .status-failed { background-color: #ef4444; color: white; }\n\n .priority-badge {\n display: inline-block;\n padding: 2px 8px;\n border-radius: 4px;\n font-size: 10px;\n font-weight: 600;\n }\n .priority-1 { background-color: #ef4444; color: white; }\n .priority-2 { background-color: #f97316; color: white; }\n .priority-3 { background-color: #f59e0b; color: white; }\n .priority-5 { background-color: #10b981; color: white; }\n .priority-7 { background-color: #6b7280; color: white; }\n .priority-10 { background-color: #9ca3af; color: white; }\n </style></head><body class=\"theme-{ user.Theme }\">")
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err return templ_7745c5c3_Err
} }
@@ -46,7 +46,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var2 string var templ_7745c5c3_Var2 string
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(stats.PendingCount) templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(stats.PendingCount)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 70, Col: 100} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 68, Col: 83}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -59,7 +59,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var3 string var templ_7745c5c3_Var3 string
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(stats.ProcessingCount) templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(stats.ProcessingCount)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 74, Col: 103} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 72, Col: 86}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -72,7 +72,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var4 string var templ_7745c5c3_Var4 string
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(stats.CompletedCount) templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(stats.CompletedCount)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 78, Col: 102} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 76, Col: 85}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -85,7 +85,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var5 string var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(stats.FailedCount) templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(stats.FailedCount)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 82, Col: 99} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 80, Col: 82}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -109,7 +109,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var6 string var templ_7745c5c3_Var6 string
templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(item.Status) templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(item.Status)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 153, Col: 95} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 155, Col: 72}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -122,7 +122,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var7 string var templ_7745c5c3_Var7 string
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(item.SyncType) templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(item.SyncType)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 154, Col: 106} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 156, Col: 83}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -135,7 +135,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var8 string var templ_7745c5c3_Var8 string
templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(item.Priority) templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(item.Priority)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 156, Col: 100} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 158, Col: 80}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -148,7 +148,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var9 string var templ_7745c5c3_Var9 string
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(item.DeviceID) templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(item.DeviceID)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 159, Col: 54} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 161, Col: 34}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -166,7 +166,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var10 string var templ_7745c5c3_Var10 string
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(*item.MediaTitle) templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(*item.MediaTitle)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 161, Col: 58} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 163, Col: 35}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -180,7 +180,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var11 string var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(item.Attempts) templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(item.Attempts)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 165, Col: 59} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 167, Col: 39}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -193,7 +193,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var12 string var templ_7745c5c3_Var12 string
templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(item.MaxAttempts) templ_7745c5c3_Var12, templ_7745c5c3_Err = templ.JoinStringErrs(item.MaxAttempts)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 165, Col: 80} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 167, Col: 60}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var12))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -206,7 +206,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var13 string var templ_7745c5c3_Var13 string
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(item.CreatedAt) templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(item.CreatedAt)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 166, Col: 50} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 168, Col: 30}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
@@ -224,7 +224,7 @@ func Queue(user User, queueItems []handlers.QueueItemResponse, stats handlers.Qu
var templ_7745c5c3_Var14 string var templ_7745c5c3_Var14 string
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(*item.ErrorMessage) templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(*item.ErrorMessage)
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 170, Col: 59} return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/queue.templ`, Line: 172, Col: 36}
} }
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {