Add secubox-app-gitea and luci-app-gitea packages: secubox-app-gitea: - LXC container with Alpine 3.21 rootfs - Gitea 1.22.6 binary (auto-detect amd64/arm64/armv7) - HTTP (3000) and SSH (2222) ports - SQLite database (embedded) - giteactl: install/uninstall/update/backup/restore luci-app-gitea: - Cyberpunk themed dashboard - Repository browser with clone URLs - User management interface - Server and security settings - Backup/restore functionality - 18 RPCD methods Resource requirements: 256MB RAM minimum, ~100MB storage Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
470 lines
7.2 KiB
CSS
470 lines
7.2 KiB
CSS
/* Gitea Dashboard - Cyberpunk Theme */
|
|
|
|
.gitea-dashboard {
|
|
font-family: 'Courier New', monospace;
|
|
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* Header */
|
|
.gt-header {
|
|
background: linear-gradient(90deg, rgba(255, 95, 31, 0.1) 0%, rgba(255, 95, 31, 0.05) 100%);
|
|
border: 1px solid #ff5f1f;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 0 20px rgba(255, 95, 31, 0.2);
|
|
}
|
|
|
|
.gt-header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.gt-logo {
|
|
font-size: 48px;
|
|
text-shadow: 0 0 10px #ff5f1f;
|
|
}
|
|
|
|
.gt-title {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #ff5f1f;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
margin: 0;
|
|
text-shadow: 0 0 10px rgba(255, 95, 31, 0.5);
|
|
}
|
|
|
|
.gt-subtitle {
|
|
color: #888;
|
|
margin: 5px 0 0 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Status Badge */
|
|
.gt-status-badge {
|
|
margin-left: auto;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gt-status-badge.running {
|
|
background: rgba(0, 255, 136, 0.2);
|
|
border: 1px solid #00ff88;
|
|
color: #00ff88;
|
|
box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
|
|
}
|
|
|
|
.gt-status-badge.stopped {
|
|
background: rgba(255, 68, 68, 0.2);
|
|
border: 1px solid #ff4444;
|
|
color: #ff4444;
|
|
}
|
|
|
|
.gt-status-badge.not-installed {
|
|
background: rgba(255, 170, 0, 0.2);
|
|
border: 1px solid #ffaa00;
|
|
color: #ffaa00;
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.gt-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.gt-stat-card {
|
|
background: rgba(20, 20, 30, 0.8);
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.gt-stat-card:hover {
|
|
border-color: #ff5f1f;
|
|
box-shadow: 0 0 15px rgba(255, 95, 31, 0.2);
|
|
}
|
|
|
|
.gt-stat-card.success {
|
|
border-color: #00ff88;
|
|
}
|
|
|
|
.gt-stat-card.error {
|
|
border-color: #ff4444;
|
|
}
|
|
|
|
.gt-stat-icon {
|
|
font-size: 28px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.gt-stat-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.gt-stat-value {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
}
|
|
|
|
.gt-stat-label {
|
|
font-size: 11px;
|
|
color: #888;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Main Grid */
|
|
.gt-main-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
/* Cards */
|
|
.gt-card {
|
|
background: rgba(20, 20, 30, 0.9);
|
|
border: 1px solid #333;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.gt-card-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.gt-card-header {
|
|
background: rgba(255, 95, 31, 0.1);
|
|
border-bottom: 1px solid #333;
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.gt-card-title {
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #ff5f1f;
|
|
text-transform: uppercase;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.gt-card-body {
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.gt-btn-group {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.gt-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 18px;
|
|
border: 1px solid;
|
|
border-radius: 4px;
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background: transparent;
|
|
}
|
|
|
|
.gt-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.gt-btn-primary {
|
|
border-color: #ff5f1f;
|
|
color: #ff5f1f;
|
|
}
|
|
|
|
.gt-btn-primary:hover:not(:disabled) {
|
|
background: rgba(255, 95, 31, 0.2);
|
|
box-shadow: 0 0 15px rgba(255, 95, 31, 0.3);
|
|
}
|
|
|
|
.gt-btn-success {
|
|
border-color: #00ff88;
|
|
color: #00ff88;
|
|
}
|
|
|
|
.gt-btn-success:hover:not(:disabled) {
|
|
background: rgba(0, 255, 136, 0.2);
|
|
box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
|
|
}
|
|
|
|
.gt-btn-danger {
|
|
border-color: #ff4444;
|
|
color: #ff4444;
|
|
}
|
|
|
|
.gt-btn-danger:hover:not(:disabled) {
|
|
background: rgba(255, 68, 68, 0.2);
|
|
box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
|
|
}
|
|
|
|
.gt-btn-warning {
|
|
border-color: #ffaa00;
|
|
color: #ffaa00;
|
|
}
|
|
|
|
.gt-btn-warning:hover:not(:disabled) {
|
|
background: rgba(255, 170, 0, 0.2);
|
|
box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
|
|
}
|
|
|
|
/* Info List */
|
|
.gt-info-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.gt-info-list li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid #222;
|
|
}
|
|
|
|
.gt-info-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.gt-info-label {
|
|
color: #888;
|
|
}
|
|
|
|
.gt-info-value {
|
|
color: #fff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.gt-info-value a {
|
|
color: #ff5f1f;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.gt-info-value a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Logs */
|
|
.gt-logs {
|
|
background: #0a0a0a;
|
|
border: 1px solid #222;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
font-size: 11px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.gt-logs-line {
|
|
color: #00ff88;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.gt-logs-line:nth-child(odd) {
|
|
color: #0cc;
|
|
}
|
|
|
|
/* Progress */
|
|
.gt-progress {
|
|
height: 8px;
|
|
background: #222;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.gt-progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #ff5f1f, #ffaa00);
|
|
border-radius: 4px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.gt-progress-text {
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
color: #888;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Empty State */
|
|
.gt-empty {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.gt-empty-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 10px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Table */
|
|
.gt-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.gt-table th,
|
|
.gt-table td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #222;
|
|
}
|
|
|
|
.gt-table th {
|
|
background: rgba(255, 95, 31, 0.1);
|
|
color: #ff5f1f;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gt-table tr:hover {
|
|
background: rgba(255, 95, 31, 0.05);
|
|
}
|
|
|
|
.gt-table .gt-repo-name {
|
|
color: #ff5f1f;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.gt-table .gt-clone-url {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 11px;
|
|
color: #888;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.gt-table .gt-clone-url:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
/* Form */
|
|
.gt-form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.gt-form-label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
color: #888;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gt-form-input,
|
|
.gt-form-select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
background: #0a0a0a;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
font-family: inherit;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.gt-form-input:focus,
|
|
.gt-form-select:focus {
|
|
border-color: #ff5f1f;
|
|
outline: none;
|
|
box-shadow: 0 0 10px rgba(255, 95, 31, 0.2);
|
|
}
|
|
|
|
.gt-form-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.gt-form-checkbox input {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: #ff5f1f;
|
|
}
|
|
|
|
.gt-form-hint {
|
|
font-size: 11px;
|
|
color: #666;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Badges */
|
|
.gt-badge {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.gt-badge-admin {
|
|
background: rgba(255, 95, 31, 0.2);
|
|
border: 1px solid #ff5f1f;
|
|
color: #ff5f1f;
|
|
}
|
|
|
|
.gt-badge-user {
|
|
background: rgba(0, 204, 204, 0.2);
|
|
border: 1px solid #0cc;
|
|
color: #0cc;
|
|
}
|
|
|
|
/* Quick Actions */
|
|
.gt-quick-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #222;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.gt-header-content {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.gt-status-badge {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.gt-stats-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.gt-main-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|