feat: add Gitea monitoring page with repos, PRs, and activity

This commit is contained in:
2026-03-04 15:47:51 -08:00
parent ac98c3e242
commit 0e5d31aefd
4 changed files with 318 additions and 44 deletions

View File

@@ -783,3 +783,158 @@ label {
page-break-inside: avoid;
}
}
/* ============ GITEA PAGE ============ */
.gitea-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.gitea-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.tab-btn {
padding: 0.5rem 1rem;
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.2s ease;
}
.tab-btn:hover {
background: var(--hover-bg);
}
.tab-btn.active {
background: var(--primary);
color: white;
border-color: var(--primary);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.repos-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.repo-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.25rem;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.repo-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.repo-card h4 {
margin: 0 0 0.5rem;
color: var(--text-primary);
}
.repo-fullname {
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 0.75rem;
}
.repo-meta {
display: flex;
gap: 1rem;
margin-bottom: 0.75rem;
font-size: 0.9rem;
color: var(--text-secondary);
}
.repo-updated {
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 1rem;
}
.prs-list, .activity-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.pr-item, .activity-item {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.pr-header {
display: flex;
align-items: center;
gap: 0.75rem;
}
.pr-number {
font-weight: 600;
color: var(--primary);
}
.pr-title {
flex: 1;
color: var(--text-primary);
}
.pr-status {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
text-transform: uppercase;
}
.pr-status.open {
background: #238636;
color: white;
}
.pr-status.merged {
background: #8957e5;
color: white;
}
.pr-meta, .activity-time {
font-size: 0.85rem;
color: var(--text-muted);
display: flex;
gap: 1rem;
}
.activity-item {
flex-direction: row;
align-items: center;
}
.activity-type {
font-size: 1.25rem;
}
.activity-desc {
flex: 1;
}