Initial import: Music_Server, MusicFree, catalog-sync
This commit is contained in:
@@ -0,0 +1,450 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ title or "Catalogsync Ops" }}</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.35;
|
||||
margin: 0;
|
||||
background: #f5f7fb;
|
||||
color: #1b2533;
|
||||
}
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
nav {
|
||||
background: #0f172a;
|
||||
padding: 0.65rem 0.85rem;
|
||||
}
|
||||
nav a {
|
||||
color: #dbeafe;
|
||||
text-decoration: none;
|
||||
margin-right: 0.85rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
main {
|
||||
padding: 0.85rem;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #dbe2ea;
|
||||
padding: 0.32rem 0.42rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
.playlist-sort-th {
|
||||
padding: 0;
|
||||
}
|
||||
.playlist-sort-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.35rem;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
padding: 0.32rem 0.42rem;
|
||||
}
|
||||
.playlist-sort-link:hover {
|
||||
text-decoration: underline;
|
||||
background: #f8fafc;
|
||||
}
|
||||
.playlist-sort-indicator {
|
||||
color: #475569;
|
||||
font-size: 0.75rem;
|
||||
line-height: 1;
|
||||
}
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.7rem;
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
h2, h3 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.55rem;
|
||||
}
|
||||
.card {
|
||||
background: #fff;
|
||||
border: 1px solid #dbe2ea;
|
||||
border-radius: 6px;
|
||||
padding: 0.7rem;
|
||||
margin-bottom: 0.8rem;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 0.8rem;
|
||||
}
|
||||
form {
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
}
|
||||
input, select, button, textarea {
|
||||
font: inherit;
|
||||
}
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 0.38rem 0.48rem;
|
||||
border: 1px solid #cbd5e1;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
}
|
||||
button {
|
||||
width: fit-content;
|
||||
padding: 0.38rem 0.6rem;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
background: #0f172a;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
button.secondary {
|
||||
background: #475569;
|
||||
}
|
||||
.button-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
.muted {
|
||||
color: #64748b;
|
||||
}
|
||||
.progress-cell {
|
||||
min-width: 180px;
|
||||
}
|
||||
.progress-meta {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.2rem;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.progress-bar {
|
||||
width: 100%;
|
||||
height: 0.5rem;
|
||||
background: #e2e8f0;
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #0f766e, #14b8a6);
|
||||
}
|
||||
.progress-note {
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.task-playlist-tree {
|
||||
margin-top: 0.9rem;
|
||||
}
|
||||
.task-tree-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 0.85rem;
|
||||
align-items: start;
|
||||
}
|
||||
.task-tree-panel {
|
||||
display: grid;
|
||||
gap: 0.55rem;
|
||||
min-width: 0;
|
||||
align-content: start;
|
||||
align-self: start;
|
||||
}
|
||||
.task-tree-panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.task-tree-panel-head h3 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.task-tree {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
.task-tree-node {
|
||||
border: 1px solid #dbe2ea;
|
||||
border-radius: 6px;
|
||||
background: #f8fafc;
|
||||
}
|
||||
.task-tree-node-playlist,
|
||||
.task-tree-song {
|
||||
border-color: #e2e8f0;
|
||||
background: #fff;
|
||||
}
|
||||
.task-tree-row {
|
||||
display: grid;
|
||||
grid-template-columns: auto minmax(0, 1fr) minmax(180px, 250px) auto;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.6rem;
|
||||
}
|
||||
.task-tree-row-child {
|
||||
padding-left: 1.1rem;
|
||||
}
|
||||
.task-tree-main {
|
||||
min-width: 0;
|
||||
}
|
||||
.task-tree-title-line {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.35rem;
|
||||
align-items: center;
|
||||
}
|
||||
.task-tree-title-line strong {
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.task-tree-meta-inline {
|
||||
flex: 1 1 180px;
|
||||
min-width: 0;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.15;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.task-tree-progress {
|
||||
min-width: 0;
|
||||
}
|
||||
.task-tree-state {
|
||||
max-width: 280px;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.task-tree-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.task-tree-children {
|
||||
display: grid;
|
||||
gap: 0.4rem;
|
||||
padding: 0 0.6rem 0.55rem 0.6rem;
|
||||
}
|
||||
.task-tree-children-songs {
|
||||
padding-left: 2rem;
|
||||
}
|
||||
.task-tree-song {
|
||||
display: grid;
|
||||
grid-template-columns: 2rem minmax(0, 1fr) auto minmax(100px, 210px);
|
||||
gap: 0.45rem;
|
||||
align-items: center;
|
||||
padding: 0.45rem 0.55rem;
|
||||
}
|
||||
.task-tree-song-index {
|
||||
color: #64748b;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.task-tree-song-note {
|
||||
color: #334155;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.tree-toggle {
|
||||
min-width: 1.55rem;
|
||||
padding: 0.16rem 0.32rem;
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.05;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.tree-spacer {
|
||||
display: block;
|
||||
width: 1.55rem;
|
||||
height: 1.45rem;
|
||||
}
|
||||
.inline-tree .tree-toggle {
|
||||
min-width: 2rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
}
|
||||
.tree-row-detail > td {
|
||||
background: #f8fafc;
|
||||
}
|
||||
.song-progress-table {
|
||||
margin-top: 0.35rem;
|
||||
}
|
||||
.song-note {
|
||||
color: #334155;
|
||||
}
|
||||
.mono {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
.playlist-name-button {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: transparent;
|
||||
color: #0f4c81;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
.playlist-name-button:hover {
|
||||
color: #0b3a62;
|
||||
}
|
||||
.playlist-modal {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
.playlist-modal-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(15, 23, 42, 0.45);
|
||||
}
|
||||
.playlist-modal-panel {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: min(96vw, 1440px);
|
||||
max-height: 88vh;
|
||||
margin: 2.2vh auto;
|
||||
background: #fff;
|
||||
border: 1px solid #dbe2ea;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 22px 70px rgba(15, 23, 42, 0.28);
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
overflow: hidden;
|
||||
}
|
||||
.playlist-modal-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 0.8rem;
|
||||
padding: 0.8rem 0.9rem 0.65rem 0.9rem;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
.playlist-modal-header h2 {
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
.playlist-modal-meta {
|
||||
margin: 0;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.playlist-modal-body {
|
||||
padding: 0.75rem 0.9rem 0.9rem 0.9rem;
|
||||
overflow: auto;
|
||||
}
|
||||
.playlist-modal-table-wrap {
|
||||
overflow: auto;
|
||||
}
|
||||
.playlist-song-locations {
|
||||
min-width: 160px;
|
||||
font-size: 0.74rem;
|
||||
line-height: 1.25;
|
||||
color: #334155;
|
||||
word-break: break-all;
|
||||
}
|
||||
.playlist-song-locations .muted {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
.playlist-modal-close {
|
||||
min-width: 2rem;
|
||||
}
|
||||
.status-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.08rem 0.34rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #cbd5e1;
|
||||
font-size: 0.68rem;
|
||||
line-height: 1.05;
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
background: #f8fafc;
|
||||
color: #334155;
|
||||
}
|
||||
.status-downloaded {
|
||||
background: #dcfce7;
|
||||
border-color: #86efac;
|
||||
color: #166534;
|
||||
}
|
||||
.status-running {
|
||||
background: #dbeafe;
|
||||
border-color: #93c5fd;
|
||||
color: #1d4ed8;
|
||||
}
|
||||
.status-pending {
|
||||
background: #f1f5f9;
|
||||
border-color: #cbd5e1;
|
||||
color: #334155;
|
||||
}
|
||||
.status-failed {
|
||||
background: #fee2e2;
|
||||
border-color: #fca5a5;
|
||||
color: #991b1b;
|
||||
}
|
||||
.status-skipped {
|
||||
background: #fef3c7;
|
||||
border-color: #fcd34d;
|
||||
color: #92400e;
|
||||
}
|
||||
.status-tag.non-music {
|
||||
background: #fff7ed;
|
||||
border-color: #fdba74;
|
||||
color: #9a3412;
|
||||
}
|
||||
pre {
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
padding: 0.8rem;
|
||||
overflow: auto;
|
||||
}
|
||||
code {
|
||||
background: #eef2f7;
|
||||
padding: 0.1rem 0.3rem;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.task-tree-columns {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.task-tree-row,
|
||||
.task-tree-song {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: start;
|
||||
}
|
||||
.task-tree-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.task-tree-children-songs {
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.task-tree-meta-inline {
|
||||
flex-basis: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script src="/static/ops/app.js?v=20260418_playlist_playcount_v1" defer></script>
|
||||
</head>
|
||||
<body{% if sse_url %} data-sse-url="{{ sse_url }}"{% endif %}{% if dashboard_api_url %} data-dashboard-api="{{ dashboard_api_url }}"{% endif %}>
|
||||
<nav>
|
||||
<a href="/dashboard">Dashboard</a>
|
||||
<a href="/jobs">Jobs</a>
|
||||
<a href="/playlists">Playlists</a>
|
||||
<a href="/songs">Songs</a>
|
||||
<a href="/logs">Logs</a>
|
||||
<a href="/config">Config</a>
|
||||
</nav>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user