better format
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
--color-error: #d13438;
|
||||
--color-border: #e1dfdd;
|
||||
--color-divider: #c8c6c4;
|
||||
|
||||
|
||||
/* Dark theme colors */
|
||||
--color-bg-primary-dark: #202020;
|
||||
--color-bg-secondary-dark: #2d2d30;
|
||||
@@ -34,7 +34,7 @@
|
||||
--color-accent-pressed-dark: #3aa0d1;
|
||||
--color-border-dark: #484644;
|
||||
--color-divider-dark: #605e5c;
|
||||
|
||||
|
||||
/* Typography */
|
||||
--font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
|
||||
--font-size-caption: 12px;
|
||||
@@ -42,7 +42,7 @@
|
||||
--font-size-subtitle: 16px;
|
||||
--font-size-title: 20px;
|
||||
--font-size-large-title: 32px;
|
||||
|
||||
|
||||
/* Spacing */
|
||||
--spacing-xs: 4px;
|
||||
--spacing-sm: 8px;
|
||||
@@ -50,17 +50,17 @@
|
||||
--spacing-lg: 16px;
|
||||
--spacing-xl: 20px;
|
||||
--spacing-xxl: 24px;
|
||||
|
||||
|
||||
/* Border radius */
|
||||
--border-radius-sm: 2px;
|
||||
--border-radius-md: 4px;
|
||||
--border-radius-lg: 6px;
|
||||
--border-radius-xl: 8px;
|
||||
|
||||
|
||||
/* Shadows */
|
||||
--shadow-card: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
|
||||
--shadow-elevated: 0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108);
|
||||
|
||||
|
||||
/* Transitions */
|
||||
--transition-duration: 0.15s;
|
||||
--transition-easing: cubic-bezier(0.1, 0.9, 0.2, 1);
|
||||
@@ -102,7 +102,7 @@ body {
|
||||
color: var(--color-text-primary);
|
||||
background-color: var(--color-bg-primary);
|
||||
transition: background-color var(--transition-duration) var(--transition-easing),
|
||||
color var(--transition-duration) var(--transition-easing);
|
||||
color var(--transition-duration) var(--transition-easing);
|
||||
}
|
||||
|
||||
/* App container */
|
||||
@@ -432,6 +432,9 @@ body {
|
||||
box-shadow: var(--shadow-card);
|
||||
transition: all var(--transition-duration) var(--transition-easing);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
.series-card:hover {
|
||||
@@ -474,6 +477,7 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.missing-episodes {
|
||||
@@ -786,11 +790,25 @@ body {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mb-0 { margin-bottom: 0 !important; }
|
||||
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
|
||||
.mb-2 { margin-bottom: var(--spacing-sm) !important; }
|
||||
.mb-3 { margin-bottom: var(--spacing-md) !important; }
|
||||
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
|
||||
.mb-0 {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.mb-1 {
|
||||
margin-bottom: var(--spacing-xs) !important;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: var(--spacing-sm) !important;
|
||||
}
|
||||
|
||||
.mb-3 {
|
||||
margin-bottom: var(--spacing-md) !important;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: var(--spacing-lg) !important;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes slideIn {
|
||||
@@ -798,6 +816,7 @@ body {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
@@ -805,13 +824,23 @@ body {
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes fadeOut {
|
||||
from { opacity: 1; }
|
||||
to { opacity: 0; }
|
||||
from {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive design */
|
||||
@@ -820,62 +849,62 @@ body {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.header-title {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.main-content {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.series-header {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
|
||||
.series-actions {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.series-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
||||
.status-panel {
|
||||
bottom: var(--spacing-md);
|
||||
right: var(--spacing-md);
|
||||
left: var(--spacing-md);
|
||||
width: auto;
|
||||
}
|
||||
|
||||
|
||||
.toast-container {
|
||||
top: var(--spacing-md);
|
||||
right: var(--spacing-md);
|
||||
left: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.toast {
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
|
||||
.current-download-item {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
|
||||
.download-progress {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
|
||||
.queue-item {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
|
||||
.queue-item-index {
|
||||
min-width: auto;
|
||||
}
|
||||
@@ -993,7 +1022,7 @@ body {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
|
||||
.series-filters {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
@@ -1315,28 +1344,28 @@ body {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.speed-eta-section {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-lg);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
.speed-info {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.section-header {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.download-header {
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
|
||||
.download-actions {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
@@ -1399,10 +1428,13 @@ body {
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0%, 100% {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.5;
|
||||
transform: scale(1.2);
|
||||
@@ -1416,12 +1448,12 @@ body {
|
||||
margin-right: 0;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
|
||||
.status-indicator {
|
||||
font-size: 11px;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
|
||||
|
||||
.status-text {
|
||||
display: none;
|
||||
}
|
||||
@@ -1463,12 +1495,12 @@ body {
|
||||
transition: all var(--animation-duration-fast) var(--animation-easing-standard);
|
||||
}
|
||||
|
||||
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
|
||||
.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
|
||||
background: var(--color-accent);
|
||||
border-color: var(--color-accent);
|
||||
}
|
||||
|
||||
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
|
||||
.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 4px;
|
||||
@@ -1591,12 +1623,12 @@ body {
|
||||
.config-actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
|
||||
.config-actions .btn {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.info-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
@@ -1606,138 +1638,138 @@ body {
|
||||
|
||||
/* Logging configuration styles */
|
||||
.log-files-container {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
margin-top: 8px;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.log-file-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.9em;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.log-file-item:last-child {
|
||||
border-bottom: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.log-file-info {
|
||||
flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.log-file-name {
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.log-file-details {
|
||||
font-size: 0.8em;
|
||||
color: var(--muted-text);
|
||||
margin-top: 2px;
|
||||
font-size: 0.8em;
|
||||
color: var(--muted-text);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.log-file-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.log-file-actions .btn {
|
||||
padding: 4px 8px;
|
||||
font-size: 0.8em;
|
||||
min-width: auto;
|
||||
padding: 4px 8px;
|
||||
font-size: 0.8em;
|
||||
min-width: auto;
|
||||
}
|
||||
|
||||
.log-file-actions .btn-xs {
|
||||
padding: 2px 6px;
|
||||
font-size: 0.75em;
|
||||
padding: 2px 6px;
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
/* Configuration management styles */
|
||||
.config-description {
|
||||
font-size: 0.9em;
|
||||
color: var(--muted-text);
|
||||
margin: 4px 0 8px 0;
|
||||
line-height: 1.4;
|
||||
font-size: 0.9em;
|
||||
color: var(--muted-text);
|
||||
margin: 4px 0 8px 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.validation-results {
|
||||
margin: 12px 0;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--card-bg);
|
||||
margin: 12px 0;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--card-bg);
|
||||
}
|
||||
|
||||
.validation-results.hidden {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.validation-error {
|
||||
color: var(--error-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
color: var(--error-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.validation-warning {
|
||||
color: var(--warning-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
color: var(--warning-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.validation-success {
|
||||
color: var(--success-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
color: var(--success-color);
|
||||
margin: 4px 0;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.backup-list {
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
margin: 8px 0;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 6px;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.backup-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.9em;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.backup-item:last-child {
|
||||
border-bottom: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.backup-info {
|
||||
flex: 1;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.backup-name {
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
font-weight: 500;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.backup-details {
|
||||
font-size: 0.8em;
|
||||
color: var(--muted-text);
|
||||
margin-top: 2px;
|
||||
font-size: 0.8em;
|
||||
color: var(--muted-text);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.backup-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.backup-actions .btn {
|
||||
padding: 4px 8px;
|
||||
font-size: 0.8em;
|
||||
padding: 4px 8px;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
@@ -567,7 +567,7 @@ class AniWorldApp {
|
||||
</div>
|
||||
<div class="series-status">
|
||||
${hasMissingEpisodes ?
|
||||
'<i class="fas fa-exclamation-triangle status-missing" title="Has missing episodes"></i>' :
|
||||
'' :
|
||||
'<i class="fas fa-check-circle status-complete" title="Complete"></i>'
|
||||
}
|
||||
</div>
|
||||
@@ -1371,7 +1371,7 @@ class AniWorldApp {
|
||||
async saveMainConfig() {
|
||||
try {
|
||||
const animeDirectory = document.getElementById('anime-directory-input').value.trim();
|
||||
|
||||
|
||||
if (!animeDirectory) {
|
||||
this.showToast('Please enter an anime directory path', 'error');
|
||||
return;
|
||||
@@ -1382,8 +1382,8 @@ class AniWorldApp {
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
directory: animeDirectory
|
||||
body: JSON.stringify({
|
||||
directory: animeDirectory
|
||||
})
|
||||
});
|
||||
|
||||
@@ -1414,7 +1414,7 @@ class AniWorldApp {
|
||||
async testConnection() {
|
||||
try {
|
||||
this.showToast('Testing connection...', 'info');
|
||||
|
||||
|
||||
const response = await this.makeAuthenticatedRequest('/api/diagnostics/network');
|
||||
if (!response) return;
|
||||
|
||||
@@ -1425,7 +1425,7 @@ class AniWorldApp {
|
||||
const connectionDiv = document.getElementById('connection-status-display');
|
||||
const statusIndicator = connectionDiv.querySelector('.status-indicator');
|
||||
const statusText = connectionDiv.querySelector('.status-text');
|
||||
|
||||
|
||||
if (networkStatus.aniworld_reachable) {
|
||||
statusIndicator.className = 'status-indicator connected';
|
||||
statusText.textContent = 'Connected';
|
||||
@@ -1449,7 +1449,7 @@ class AniWorldApp {
|
||||
// For web applications, we'll show a prompt for manual entry
|
||||
const currentPath = document.getElementById('anime-directory-input').value;
|
||||
const newPath = prompt('Enter the anime directory path:', currentPath);
|
||||
|
||||
|
||||
if (newPath !== null && newPath.trim() !== '') {
|
||||
document.getElementById('anime-directory-input').value = newPath.trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user