Introduce reusable ParserProfile and ParseChannel, pair jobs with enqueue flatten, Events admin CRUD, and drop inline/legacy parser-builder UI and aliases. Co-authored-by: Cursor <cursoragent@cursor.com>
307 lines
4.2 KiB
CSS
307 lines
4.2 KiB
CSS
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
margin: 0;
|
|
height: 100%;
|
|
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
color: #1a1a1a;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
/* Admin UI */
|
|
|
|
.page {
|
|
padding: 1.25rem;
|
|
max-width: 1400px;
|
|
}
|
|
|
|
.page-heading {
|
|
margin: 0 0 1rem;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
padding: 1rem 1.25rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card h3 {
|
|
margin: 0 0 0.75rem;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.muted {
|
|
color: #999;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.admin-form label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
font-size: 0.8rem;
|
|
color: #555;
|
|
}
|
|
|
|
.admin-form input,
|
|
.admin-form select,
|
|
.admin-form textarea {
|
|
padding: 0.4rem 0.6rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.form-row label {
|
|
flex: 1 1 180px;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.form-error {
|
|
color: #c62828;
|
|
font-size: 0.875rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.4rem 0.85rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #1565c0;
|
|
color: #fff;
|
|
border-color: #1565c0;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #0d47a1;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.25rem 0.55rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-danger {
|
|
color: #b71c1c;
|
|
border-color: #ef9a9a;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #ffebee;
|
|
}
|
|
|
|
.link-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #1565c0;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
text-align: left;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.link-btn:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.admin-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.admin-table th,
|
|
.admin-table td {
|
|
padding: 0.5rem 0.75rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.admin-table th {
|
|
font-weight: 600;
|
|
color: #555;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.admin-table .empty {
|
|
text-align: center;
|
|
color: #999;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.admin-table .mono {
|
|
font-family: ui-monospace, monospace;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.admin-table .error-cell {
|
|
color: #c62828;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.table-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.5rem;
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
margin-top: 0.75rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.badge-success {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-error {
|
|
background: #ffebee;
|
|
color: #c62828;
|
|
}
|
|
|
|
.badge-running {
|
|
background: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.badge-pending {
|
|
background: #fff3e0;
|
|
color: #e65100;
|
|
}
|
|
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal {
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
width: 90%;
|
|
max-width: 560px;
|
|
max-height: 85vh;
|
|
overflow: auto;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 1.25rem;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.detail-list {
|
|
display: grid;
|
|
grid-template-columns: 140px 1fr;
|
|
gap: 0.5rem 1rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.detail-list dt {
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.detail-list dd {
|
|
margin: 0;
|
|
}
|
|
|
|
.detail-list .raw-text {
|
|
white-space: pre-wrap;
|
|
max-height: 200px;
|
|
overflow: auto;
|
|
background: #f9f9f9;
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|