mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-19 18:20:24 +00:00
feat: Add login page with dynamic RGB effects and password toggle functionality
feat: Implement package management utilities with JSON endpoints for listing and uninstalling packages feat: Create plugin management utilities with endpoints for listing, configuring, and installing plugins feat: Develop schedule and trigger management utilities with CRUD operations for schedules and triggers
This commit is contained in:
@@ -1,6 +1,155 @@
|
||||
/* ==========================================================================
|
||||
SCHEDULER
|
||||
========================================================================== */
|
||||
|
||||
/* ===== Tab bar ===== */
|
||||
.sched-tabs {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
padding: .5rem .6rem 0;
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
background: var(--panel);
|
||||
}
|
||||
.sched-tab {
|
||||
padding: 6px 16px;
|
||||
border: 1px solid transparent;
|
||||
border-bottom: none;
|
||||
border-radius: 8px 8px 0 0;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.sched-tab:hover { color: var(--ink); background: color-mix(in oklab, var(--c-panel-2) 60%, transparent); }
|
||||
.sched-tab.sched-tab-active {
|
||||
color: var(--acid);
|
||||
background: var(--c-panel-2);
|
||||
border-color: var(--c-border);
|
||||
}
|
||||
.sched-tab-content { display: none; padding: .6rem; }
|
||||
.sched-tab-content.active { display: block; }
|
||||
|
||||
/* ===== Schedule / Trigger cards ===== */
|
||||
.schedule-list, .trigger-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.schedule-card, .trigger-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 8px;
|
||||
background: var(--c-panel);
|
||||
font-size: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.schedule-card:hover, .trigger-card:hover {
|
||||
border-color: var(--c-border-strong);
|
||||
}
|
||||
.sched-script-name { font-weight: 700; color: var(--ink); }
|
||||
.sched-badge {
|
||||
display: inline-block;
|
||||
padding: 1px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.sched-badge-recurring { background: color-mix(in oklab, var(--acid) 18%, transparent); color: var(--acid); }
|
||||
.sched-badge-oneshot { background: color-mix(in oklab, #f59e0b 18%, transparent); color: #f59e0b; }
|
||||
.sched-badge-success { background: color-mix(in oklab, #22c55e 18%, transparent); color: #22c55e; }
|
||||
.sched-badge-error { background: color-mix(in oklab, #ef4444 18%, transparent); color: #ef4444; }
|
||||
.sched-badge-running { background: color-mix(in oklab, #3b82f6 18%, transparent); color: #3b82f6; }
|
||||
.sched-meta { color: var(--muted); font-size: 11px; }
|
||||
.sched-actions { display: flex; gap: 4px; align-items: center; }
|
||||
.sched-actions button {
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-size: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-actions button:hover { color: var(--ink); border-color: var(--c-border-strong); }
|
||||
.sched-actions button.sched-delete:hover { color: #ef4444; border-color: #ef4444; }
|
||||
|
||||
/* Toggle switch */
|
||||
.sched-toggle {
|
||||
position: relative;
|
||||
width: 32px;
|
||||
height: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-toggle input { opacity: 0; width: 0; height: 0; }
|
||||
.sched-toggle-slider {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border-radius: 9px;
|
||||
background: var(--c-border);
|
||||
transition: background .2s;
|
||||
}
|
||||
.sched-toggle-slider::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
left: 2px;
|
||||
bottom: 2px;
|
||||
border-radius: 50%;
|
||||
background: var(--ink);
|
||||
transition: transform .2s;
|
||||
}
|
||||
.sched-toggle input:checked + .sched-toggle-slider { background: var(--acid); }
|
||||
.sched-toggle input:checked + .sched-toggle-slider::before { transform: translateX(14px); }
|
||||
|
||||
/* ===== Create form (schedules & triggers) ===== */
|
||||
.sched-form {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: flex-end;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 8px;
|
||||
background: var(--c-panel);
|
||||
}
|
||||
.sched-form label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.sched-form input, .sched-form select {
|
||||
padding: 4px 8px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 4px;
|
||||
background: var(--bg);
|
||||
color: var(--ink);
|
||||
font-size: 12px;
|
||||
}
|
||||
.sched-form button {
|
||||
padding: 5px 14px;
|
||||
border: 1px solid var(--acid);
|
||||
border-radius: 4px;
|
||||
background: color-mix(in oklab, var(--acid) 15%, transparent);
|
||||
color: var(--acid);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sched-form button:hover { background: color-mix(in oklab, var(--acid) 25%, transparent); }
|
||||
.sched-form-section { width: 100%; margin-top: 6px; }
|
||||
.sched-empty-msg { color: var(--muted); font-size: 12px; padding: 12px 0; text-align: center; }
|
||||
|
||||
.scheduler-container .toolbar-top {
|
||||
position: sticky;
|
||||
top: calc(var(--h-topbar, 0px) + 5px);
|
||||
|
||||
Reference in New Issue
Block a user