scheduled tasks

This commit is contained in:
pavel 2026-02-10 19:32:33 +01:00
commit 937827d08b
17 changed files with 1445 additions and 136 deletions

View file

@ -54,6 +54,80 @@ body {
border-bottom: 1px solid var(--glass-border);
}
#logo-link {
text-decoration: none;
color: inherit;
transition: var(--transition);
}
#logo-link:hover {
opacity: 0.8;
}
/* Dashboard View */
.dashboard-view {
padding: 48px;
height: 100%;
display: flex;
flex-direction: column;
}
.dashboard-header {
margin-bottom: 32px;
}
.dashboard-header h2 {
font-size: 32px;
margin-bottom: 8px;
}
.dashboard-header p {
color: var(--text-dim);
}
.dashboard-content {
flex: 1;
overflow: hidden;
border-radius: 12px;
display: flex;
flex-direction: column;
}
.activity-table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.activity-table th {
padding: 16px 24px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid var(--glass-border);
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
}
.activity-table td {
padding: 16px 24px;
border-bottom: 1px solid var(--glass-border);
font-size: 14px;
}
.activity-table tr {
cursor: pointer;
transition: var(--transition);
}
.activity-table tr:hover {
background: rgba(255, 255, 255, 0.03);
}
.activity-table .status-badge {
display: inline-block;
}
.logo {
display: flex;
align-items: center;
@ -157,6 +231,9 @@ body {
.view-header {
margin-bottom: 32px;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-main {
@ -165,6 +242,75 @@ body {
gap: 16px;
}
.task-content {
display: flex;
gap: 24px;
flex: 1;
overflow: hidden;
}
.run-history {
width: 240px;
border-radius: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
}
.runs-header {
padding: 16px 20px;
border-bottom: 1px solid var(--glass-border);
background: rgba(255, 255, 255, 0.02);
}
.runs-header h3 {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
}
#run-list {
list-style: none;
overflow-y: auto;
padding: 8px;
}
.run-item {
padding: 12px 16px;
border-radius: 8px;
cursor: pointer;
margin-bottom: 4px;
font-size: 13px;
transition: var(--transition);
display: flex;
justify-content: space-between;
align-items: center;
}
.run-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.run-item.active {
background: rgba(93, 93, 255, 0.1);
color: var(--primary);
font-weight: 500;
}
.run-item-date {
font-size: 11px;
color: var(--text-dim);
}
.run-details {
flex: 1;
display: flex;
flex-direction: row;
overflow: hidden;
gap: 24px;
}
.status-badge {
padding: 4px 12px;
border-radius: 100px;
@ -186,13 +332,28 @@ body {
border: 1px solid rgba(81, 207, 102, 0.2);
}
.schedule-badge {
font-size: 11px;
background: rgba(255, 255, 255, 0.05);
padding: 4px 10px;
border-radius: 100px;
color: var(--text-dim);
border: 1px solid var(--glass-border);
font-weight: 500;
}
.logs-container {
flex: 1;
min-height: 200px;
width: 450px;
border-radius: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
transition: transform 0.3s ease, width 0.3s ease, opacity 0.3s ease;
flex-shrink: 0;
}
.logs-container.hidden {
display: none !important;
}
.logs-header {
@ -226,11 +387,10 @@ body {
/* Answer Section */
.answer-container {
margin-bottom: 32px;
flex: 1;
border-radius: 12px;
border-left: 4px solid var(--primary);
background: linear-gradient(to right, rgba(93, 93, 255, 0.05), transparent);
max-height: 40vh;
overflow-y: auto;
display: flex;
flex-direction: column;
@ -255,10 +415,93 @@ body {
.answer-output {
padding: 24px;
font-size: 16px;
line-height: 1.7;
color: var(--text-main);
white-space: pre-wrap;
line-height: 1.6;
color: var(--text);
font-size: 15px;
}
.answer-output h1,
.answer-output h2,
.answer-output h3 {
margin-top: 24px;
margin-bottom: 12px;
color: #fff;
}
.answer-output h1 {
font-size: 24px;
border-bottom: 1px solid var(--glass-border);
padding-bottom: 8px;
}
.answer-output h2 {
font-size: 20px;
}
.answer-output h3 {
font-size: 18px;
}
.answer-output p {
margin-bottom: 16px;
}
.answer-output ul,
.answer-output ol {
margin-bottom: 16px;
padding-left: 20px;
}
.answer-output li {
margin-bottom: 6px;
}
.answer-output code {
font-family: var(--font-mono);
background: rgba(255, 255, 255, 0.1);
padding: 2px 4px;
border-radius: 4px;
font-size: 13px;
}
.answer-output pre {
background: rgba(0, 0, 0, 0.3);
padding: 16px;
border-radius: 8px;
overflow-x: auto;
margin-bottom: 16px;
border: 1px solid var(--glass-border);
}
.answer-output pre code {
background: none;
padding: 0;
display: block;
}
.answer-output hr {
border: none;
border-top: 1px solid var(--glass-border);
margin: 24px 0;
}
.answer-output a {
color: var(--primary);
text-decoration: none;
}
.answer-output a:hover {
text-decoration: underline;
}
.answer-output blockquote {
border-left: 4px solid var(--primary);
background: rgba(93, 93, 255, 0.05);
padding: 12px 20px;
margin: 0 0 16px 0;
color: var(--text-dim);
font-style: italic;
}
/* Buttons */
@ -344,6 +587,104 @@ textarea:focus {
border-color: var(--primary);
}
.form-group {
margin-bottom: 24px;
display: flex;
flex-direction: column;
gap: 8px;
}
.form-group label {
font-size: 13px;
font-weight: 500;
color: var(--text-dim);
}
.form-group input[type="text"] {
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--glass-border);
border-radius: 8px;
padding: 12px 16px;
color: var(--text-main);
font-family: inherit;
}
.form-group input[type="text"]:focus {
outline: none;
border-color: var(--primary);
}
.form-help {
font-size: 11px;
color: var(--text-dim);
font-style: italic;
}
.preset-group {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-bottom: 12px;
}
.btn-preset {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
color: var(--text-dim);
padding: 10px;
font-size: 13px;
border-radius: 8px;
transition: all 0.2s;
}
.btn-preset:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--text-main);
}
.btn-preset.active {
background: rgba(0, 150, 255, 0.1);
border-color: var(--primary);
color: var(--primary);
}
.custom-cron-toggle {
display: flex;
justify-content: flex-end;
margin-bottom: 8px;
}
.btn-link {
background: none;
border: none;
color: var(--text-dim);
font-size: 11px;
cursor: pointer;
text-decoration: underline;
padding: 0;
}
.btn-link:hover {
color: var(--primary);
}
#custom-cron-container {
margin-top: 8px;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-actions {
display: flex;
justify-content: flex-end;