better format
This commit is contained in:
parent
78fc6068fb
commit
6b300dc2f5
@ -12,3 +12,9 @@ make sure you run the command on the same powershell terminal. otherwiese this d
|
|||||||
|
|
||||||
fix the folowing issues one by one:
|
fix the folowing issues one by one:
|
||||||
|
|
||||||
|
|
||||||
|
app.js:962
|
||||||
|
Error loading configuration: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
|
||||||
|
showConfigModal @ app.js:962
|
||||||
|
await in showConfigModal
|
||||||
|
(anonymous) @ app.js:315
|
||||||
@ -414,7 +414,7 @@ class BulkOperationsManager {
|
|||||||
|
|
||||||
const confirmed = await this.confirmOperation(
|
const confirmed = await this.confirmOperation(
|
||||||
'Bulk Delete',
|
'Bulk Delete',
|
||||||
`Permanently delete ${this.selectedItems.size} selected series?\\n\\nThis action cannot be undone!`,
|
`Permanently delete ${this.selectedItems.size} selected series?\\n\\nThis action cannot be undone`,
|
||||||
'danger'
|
'danger'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
--color-error: #d13438;
|
--color-error: #d13438;
|
||||||
--color-border: #e1dfdd;
|
--color-border: #e1dfdd;
|
||||||
--color-divider: #c8c6c4;
|
--color-divider: #c8c6c4;
|
||||||
|
|
||||||
/* Dark theme colors */
|
/* Dark theme colors */
|
||||||
--color-bg-primary-dark: #202020;
|
--color-bg-primary-dark: #202020;
|
||||||
--color-bg-secondary-dark: #2d2d30;
|
--color-bg-secondary-dark: #2d2d30;
|
||||||
@ -34,7 +34,7 @@
|
|||||||
--color-accent-pressed-dark: #3aa0d1;
|
--color-accent-pressed-dark: #3aa0d1;
|
||||||
--color-border-dark: #484644;
|
--color-border-dark: #484644;
|
||||||
--color-divider-dark: #605e5c;
|
--color-divider-dark: #605e5c;
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
--font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
|
--font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
|
||||||
--font-size-caption: 12px;
|
--font-size-caption: 12px;
|
||||||
@ -42,7 +42,7 @@
|
|||||||
--font-size-subtitle: 16px;
|
--font-size-subtitle: 16px;
|
||||||
--font-size-title: 20px;
|
--font-size-title: 20px;
|
||||||
--font-size-large-title: 32px;
|
--font-size-large-title: 32px;
|
||||||
|
|
||||||
/* Spacing */
|
/* Spacing */
|
||||||
--spacing-xs: 4px;
|
--spacing-xs: 4px;
|
||||||
--spacing-sm: 8px;
|
--spacing-sm: 8px;
|
||||||
@ -50,17 +50,17 @@
|
|||||||
--spacing-lg: 16px;
|
--spacing-lg: 16px;
|
||||||
--spacing-xl: 20px;
|
--spacing-xl: 20px;
|
||||||
--spacing-xxl: 24px;
|
--spacing-xxl: 24px;
|
||||||
|
|
||||||
/* Border radius */
|
/* Border radius */
|
||||||
--border-radius-sm: 2px;
|
--border-radius-sm: 2px;
|
||||||
--border-radius-md: 4px;
|
--border-radius-md: 4px;
|
||||||
--border-radius-lg: 6px;
|
--border-radius-lg: 6px;
|
||||||
--border-radius-xl: 8px;
|
--border-radius-xl: 8px;
|
||||||
|
|
||||||
/* Shadows */
|
/* 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-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);
|
--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 */
|
/* Transitions */
|
||||||
--transition-duration: 0.15s;
|
--transition-duration: 0.15s;
|
||||||
--transition-easing: cubic-bezier(0.1, 0.9, 0.2, 1);
|
--transition-easing: cubic-bezier(0.1, 0.9, 0.2, 1);
|
||||||
@ -102,7 +102,7 @@ body {
|
|||||||
color: var(--color-text-primary);
|
color: var(--color-text-primary);
|
||||||
background-color: var(--color-bg-primary);
|
background-color: var(--color-bg-primary);
|
||||||
transition: background-color var(--transition-duration) var(--transition-easing),
|
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 */
|
/* App container */
|
||||||
@ -432,6 +432,9 @@ body {
|
|||||||
box-shadow: var(--shadow-card);
|
box-shadow: var(--shadow-card);
|
||||||
transition: all var(--transition-duration) var(--transition-easing);
|
transition: all var(--transition-duration) var(--transition-easing);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-card:hover {
|
.series-card:hover {
|
||||||
@ -474,6 +477,7 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.missing-episodes {
|
.missing-episodes {
|
||||||
@ -786,11 +790,25 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mb-0 { margin-bottom: 0 !important; }
|
.mb-0 {
|
||||||
.mb-1 { margin-bottom: var(--spacing-xs) !important; }
|
margin-bottom: 0 !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-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 */
|
/* Animations */
|
||||||
@keyframes slideIn {
|
@keyframes slideIn {
|
||||||
@ -798,6 +816,7 @@ body {
|
|||||||
transform: translateX(100%);
|
transform: translateX(100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
@ -805,13 +824,23 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeIn {
|
@keyframes fadeIn {
|
||||||
from { opacity: 0; }
|
from {
|
||||||
to { opacity: 1; }
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeOut {
|
@keyframes fadeOut {
|
||||||
from { opacity: 1; }
|
from {
|
||||||
to { opacity: 0; }
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive design */
|
/* Responsive design */
|
||||||
@ -820,62 +849,62 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-title {
|
.header-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content {
|
.main-content {
|
||||||
padding: var(--spacing-md);
|
padding: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-header {
|
.series-header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-actions {
|
.series-actions {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-grid {
|
.series-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-panel {
|
.status-panel {
|
||||||
bottom: var(--spacing-md);
|
bottom: var(--spacing-md);
|
||||||
right: var(--spacing-md);
|
right: var(--spacing-md);
|
||||||
left: var(--spacing-md);
|
left: var(--spacing-md);
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast-container {
|
.toast-container {
|
||||||
top: var(--spacing-md);
|
top: var(--spacing-md);
|
||||||
right: var(--spacing-md);
|
right: var(--spacing-md);
|
||||||
left: var(--spacing-md);
|
left: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current-download-item {
|
.current-download-item {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: var(--spacing-sm);
|
gap: var(--spacing-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-progress {
|
.download-progress {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.queue-item {
|
.queue-item {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: var(--spacing-xs);
|
gap: var(--spacing-xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
.queue-item-index {
|
.queue-item-index {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
@ -993,7 +1022,7 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
.series-filters {
|
.series-filters {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@ -1315,28 +1344,28 @@ body {
|
|||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.speed-eta-section {
|
.speed-eta-section {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-lg);
|
gap: var(--spacing-lg);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.speed-info {
|
.speed-info {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header {
|
.section-header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-header {
|
.download-header {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-actions {
|
.download-actions {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
@ -1399,10 +1428,13 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
0%, 100% {
|
|
||||||
|
0%,
|
||||||
|
100% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
50% {
|
50% {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transform: scale(1.2);
|
transform: scale(1.2);
|
||||||
@ -1416,12 +1448,12 @@ body {
|
|||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-bottom: var(--spacing-sm);
|
margin-bottom: var(--spacing-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-indicator {
|
.status-indicator {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-text {
|
.status-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@ -1463,12 +1495,12 @@ body {
|
|||||||
transition: all var(--animation-duration-fast) var(--animation-easing-standard);
|
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);
|
background: var(--color-accent);
|
||||||
border-color: 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: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 4px;
|
left: 4px;
|
||||||
@ -1591,12 +1623,12 @@ body {
|
|||||||
.config-actions {
|
.config-actions {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.config-actions .btn {
|
.config-actions .btn {
|
||||||
flex: none;
|
flex: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-row {
|
.info-row {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
@ -1606,138 +1638,138 @@ body {
|
|||||||
|
|
||||||
/* Logging configuration styles */
|
/* Logging configuration styles */
|
||||||
.log-files-container {
|
.log-files-container {
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-item {
|
.log-file-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-item:last-child {
|
.log-file-item:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-info {
|
.log-file-info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-name {
|
.log-file-name {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-details {
|
.log-file-details {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
color: var(--muted-text);
|
color: var(--muted-text);
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-actions {
|
.log-file-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-actions .btn {
|
.log-file-actions .btn {
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log-file-actions .btn-xs {
|
.log-file-actions .btn-xs {
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configuration management styles */
|
/* Configuration management styles */
|
||||||
.config-description {
|
.config-description {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: var(--muted-text);
|
color: var(--muted-text);
|
||||||
margin: 4px 0 8px 0;
|
margin: 4px 0 8px 0;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-results {
|
.validation-results {
|
||||||
margin: 12px 0;
|
margin: 12px 0;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-results.hidden {
|
.validation-results.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-error {
|
.validation-error {
|
||||||
color: var(--error-color);
|
color: var(--error-color);
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-warning {
|
.validation-warning {
|
||||||
color: var(--warning-color);
|
color: var(--warning-color);
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-success {
|
.validation-success {
|
||||||
color: var(--success-color);
|
color: var(--success-color);
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-list {
|
.backup-list {
|
||||||
max-height: 200px;
|
max-height: 200px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-item {
|
.backup-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-item:last-child {
|
.backup-item:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-info {
|
.backup-info {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-name {
|
.backup-name {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-details {
|
.backup-details {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
color: var(--muted-text);
|
color: var(--muted-text);
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-actions {
|
.backup-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.backup-actions .btn {
|
.backup-actions .btn {
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
@ -567,7 +567,7 @@ class AniWorldApp {
|
|||||||
</div>
|
</div>
|
||||||
<div class="series-status">
|
<div class="series-status">
|
||||||
${hasMissingEpisodes ?
|
${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>'
|
'<i class="fas fa-check-circle status-complete" title="Complete"></i>'
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
@ -1371,7 +1371,7 @@ class AniWorldApp {
|
|||||||
async saveMainConfig() {
|
async saveMainConfig() {
|
||||||
try {
|
try {
|
||||||
const animeDirectory = document.getElementById('anime-directory-input').value.trim();
|
const animeDirectory = document.getElementById('anime-directory-input').value.trim();
|
||||||
|
|
||||||
if (!animeDirectory) {
|
if (!animeDirectory) {
|
||||||
this.showToast('Please enter an anime directory path', 'error');
|
this.showToast('Please enter an anime directory path', 'error');
|
||||||
return;
|
return;
|
||||||
@ -1382,8 +1382,8 @@ class AniWorldApp {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
directory: animeDirectory
|
directory: animeDirectory
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1414,7 +1414,7 @@ class AniWorldApp {
|
|||||||
async testConnection() {
|
async testConnection() {
|
||||||
try {
|
try {
|
||||||
this.showToast('Testing connection...', 'info');
|
this.showToast('Testing connection...', 'info');
|
||||||
|
|
||||||
const response = await this.makeAuthenticatedRequest('/api/diagnostics/network');
|
const response = await this.makeAuthenticatedRequest('/api/diagnostics/network');
|
||||||
if (!response) return;
|
if (!response) return;
|
||||||
|
|
||||||
@ -1425,7 +1425,7 @@ class AniWorldApp {
|
|||||||
const connectionDiv = document.getElementById('connection-status-display');
|
const connectionDiv = document.getElementById('connection-status-display');
|
||||||
const statusIndicator = connectionDiv.querySelector('.status-indicator');
|
const statusIndicator = connectionDiv.querySelector('.status-indicator');
|
||||||
const statusText = connectionDiv.querySelector('.status-text');
|
const statusText = connectionDiv.querySelector('.status-text');
|
||||||
|
|
||||||
if (networkStatus.aniworld_reachable) {
|
if (networkStatus.aniworld_reachable) {
|
||||||
statusIndicator.className = 'status-indicator connected';
|
statusIndicator.className = 'status-indicator connected';
|
||||||
statusText.textContent = 'Connected';
|
statusText.textContent = 'Connected';
|
||||||
@ -1449,7 +1449,7 @@ class AniWorldApp {
|
|||||||
// For web applications, we'll show a prompt for manual entry
|
// For web applications, we'll show a prompt for manual entry
|
||||||
const currentPath = document.getElementById('anime-directory-input').value;
|
const currentPath = document.getElementById('anime-directory-input').value;
|
||||||
const newPath = prompt('Enter the anime directory path:', currentPath);
|
const newPath = prompt('Enter the anime directory path:', currentPath);
|
||||||
|
|
||||||
if (newPath !== null && newPath.trim() !== '') {
|
if (newPath !== null && newPath.trim() !== '') {
|
||||||
document.getElementById('anime-directory-input').value = newPath.trim();
|
document.getElementById('anime-directory-input').value = newPath.trim();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,35 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html <div class="header-actions">
|
<html lang="en" data-theme="light">
|
||||||
<a href="/queue" class="btn btn-secondary" title="Download Queue">
|
|
||||||
<i class="fas fa-list-alt"></i>
|
|
||||||
<span data-text="queue">Queue</span>
|
|
||||||
</a>
|
|
||||||
<button id="config-btn" class="btn btn-secondary" title="Show configuration">
|
|
||||||
<i class="fas fa-cog"></i>
|
|
||||||
<span data-text="config-title">Config</span>
|
|
||||||
</button>
|
|
||||||
<button id="theme-toggle" class="btn btn-icon" title="Toggle theme" data-title="toggle-theme">
|
|
||||||
<i class="fas fa-moon"></i>
|
|
||||||
</button>
|
|
||||||
<button id="logout-btn" class="btn btn-secondary" title="Logout" style="display: none;">
|
|
||||||
<i class="fas fa-sign-out-alt"></i>
|
|
||||||
<span data-text="logout">Logout</span>
|
|
||||||
</button>
|
|
||||||
<button id="rescan-btn" class="btn btn-primary">
|
|
||||||
<i class="fas fa-sync-alt"></i>
|
|
||||||
<span data-text="rescan">Rescan</span>
|
|
||||||
</button>
|
|
||||||
</div>ta-theme="light">
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>AniWorld Manager</title>
|
<title>AniWorld Manager</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||||
|
|
||||||
<!-- UX Enhancement and Mobile & Accessibility CSS -->
|
<!-- UX Enhancement and Mobile & Accessibility CSS -->
|
||||||
<link rel="stylesheet" href="{{ url_for('ux_features_css') }}">
|
<link rel="stylesheet" href="{{ url_for('ux_features_css') }}">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
@ -53,12 +35,12 @@
|
|||||||
<div class="status-dot idle"></div>
|
<div class="status-dot idle"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="/queue" class="btn btn-secondary" title="Download Queue">
|
<a href="/queue" class="btn btn-secondary" title="Download Queue">
|
||||||
<i class="fas fa-list-alt"></i>
|
<i class="fas fa-list-alt"></i>
|
||||||
<span data-text="queue">Queue</span>
|
<span data-text="queue">Queue</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<button id="logout-btn" class="btn btn-secondary" title="Logout" style="display: none;">
|
<button id="logout-btn" class="btn btn-secondary" title="Logout" style="display: none;">
|
||||||
<i class="fas fa-sign-out-alt"></i>
|
<i class="fas fa-sign-out-alt"></i>
|
||||||
<span data-text="logout">Logout</span>
|
<span data-text="logout">Logout</span>
|
||||||
@ -84,7 +66,8 @@
|
|||||||
<section class="search-section">
|
<section class="search-section">
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<div class="search-input-group">
|
<div class="search-input-group">
|
||||||
<input type="text" id="search-input" data-text="search-placeholder" placeholder="Search for anime..." class="search-input">
|
<input type="text" id="search-input" data-text="search-placeholder"
|
||||||
|
placeholder="Search for anime..." class="search-input">
|
||||||
<button id="search-btn" class="btn btn-primary">
|
<button id="search-btn" class="btn btn-primary">
|
||||||
<i class="fas fa-search"></i>
|
<i class="fas fa-search"></i>
|
||||||
</button>
|
</button>
|
||||||
@ -93,7 +76,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Search results -->
|
<!-- Search results -->
|
||||||
<div id="search-results" class="search-results hidden">
|
<div id="search-results" class="search-results hidden">
|
||||||
<h3>Search Results</h3>
|
<h3>Search Results</h3>
|
||||||
@ -166,7 +149,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Series grid -->
|
<!-- Series grid -->
|
||||||
<div id="series-grid" class="series-grid">
|
<div id="series-grid" class="series-grid">
|
||||||
<!-- Series cards will be populated here -->
|
<!-- Series cards will be populated here -->
|
||||||
@ -199,7 +182,8 @@
|
|||||||
<i class="fas fa-play"></i>
|
<i class="fas fa-play"></i>
|
||||||
<span data-text="resume">Resume</span>
|
<span data-text="resume">Resume</span>
|
||||||
</button>
|
</button>
|
||||||
<button id="cancel-download" class="btn btn-small" style="background-color: var(--color-error); color: white;">
|
<button id="cancel-download" class="btn btn-small"
|
||||||
|
style="background-color: var(--color-error); color: white;">
|
||||||
<i class="fas fa-stop"></i>
|
<i class="fas fa-stop"></i>
|
||||||
<span data-text="cancel">Cancel</span>
|
<span data-text="cancel">Cancel</span>
|
||||||
</button>
|
</button>
|
||||||
@ -221,7 +205,8 @@
|
|||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label for="anime-directory-input" data-text="anime-directory">Anime Directory:</label>
|
<label for="anime-directory-input" data-text="anime-directory">Anime Directory:</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="text" id="anime-directory-input" class="input-field" placeholder="Enter anime directory path...">
|
<input type="text" id="anime-directory-input" class="input-field"
|
||||||
|
placeholder="Enter anime directory path...">
|
||||||
<button id="browse-directory" class="btn btn-secondary">
|
<button id="browse-directory" class="btn btn-secondary">
|
||||||
<i class="fas fa-folder"></i>
|
<i class="fas fa-folder"></i>
|
||||||
</button>
|
</button>
|
||||||
@ -229,7 +214,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label for="series-count-input" data-text="series-count">Series Count:</label>
|
<label for="series-count-input" data-text="series-count">Series Count:</label>
|
||||||
<input type="number" id="series-count-input" class="input-field" readonly title="This value is automatically calculated">
|
<input type="number" id="series-count-input" class="input-field" readonly
|
||||||
|
title="This value is automatically calculated">
|
||||||
</div>
|
</div>
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label data-text="connection-status">Connection Status:</label>
|
<label data-text="connection-status">Connection Status:</label>
|
||||||
@ -242,7 +228,7 @@
|
|||||||
<span data-text="test-connection">Test Connection</span>
|
<span data-text="test-connection">Test Connection</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Configuration Actions -->
|
<!-- Main Configuration Actions -->
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button id="save-main-config" class="btn btn-primary">
|
<button id="save-main-config" class="btn btn-primary">
|
||||||
@ -254,11 +240,11 @@
|
|||||||
<span data-text="reset-main-config">Reset</span>
|
<span data-text="reset-main-config">Reset</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Scheduler Configuration -->
|
<!-- Scheduler Configuration -->
|
||||||
<div class="config-section">
|
<div class="config-section">
|
||||||
<h4 data-text="scheduler-config">Scheduled Operations</h4>
|
<h4 data-text="scheduler-config">Scheduled Operations</h4>
|
||||||
|
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
<input type="checkbox" id="scheduled-rescan-enabled">
|
<input type="checkbox" id="scheduled-rescan-enabled">
|
||||||
@ -266,20 +252,21 @@
|
|||||||
<span data-text="enable-scheduled-rescan">Enable Daily Rescan</span>
|
<span data-text="enable-scheduled-rescan">Enable Daily Rescan</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-item" id="rescan-time-config">
|
<div class="config-item" id="rescan-time-config">
|
||||||
<label for="scheduled-rescan-time" data-text="rescan-time">Rescan Time (24h format):</label>
|
<label for="scheduled-rescan-time" data-text="rescan-time">Rescan Time (24h format):</label>
|
||||||
<input type="time" id="scheduled-rescan-time" value="03:00" class="input-field">
|
<input type="time" id="scheduled-rescan-time" value="03:00" class="input-field">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label class="checkbox-label">
|
<label class="checkbox-label">
|
||||||
<input type="checkbox" id="auto-download-after-rescan">
|
<input type="checkbox" id="auto-download-after-rescan">
|
||||||
<span class="checkbox-custom"></span>
|
<span class="checkbox-custom"></span>
|
||||||
<span data-text="auto-download-after-rescan">Auto-download missing episodes after rescan</span>
|
<span data-text="auto-download-after-rescan">Auto-download missing episodes after
|
||||||
|
rescan</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-item scheduler-status" id="scheduler-status">
|
<div class="config-item scheduler-status" id="scheduler-status">
|
||||||
<div class="scheduler-info">
|
<div class="scheduler-info">
|
||||||
<div class="info-row">
|
<div class="info-row">
|
||||||
@ -296,7 +283,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button id="save-scheduler-config" class="btn btn-primary">
|
<button id="save-scheduler-config" class="btn btn-primary">
|
||||||
<i class="fas fa-save"></i>
|
<i class="fas fa-save"></i>
|
||||||
@ -312,7 +299,7 @@
|
|||||||
<!-- Logging Configuration -->
|
<!-- Logging Configuration -->
|
||||||
<div class="config-section">
|
<div class="config-section">
|
||||||
<h4 data-text="logging-config">Logging Configuration</h4>
|
<h4 data-text="logging-config">Logging Configuration</h4>
|
||||||
|
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label for="log-level" data-text="log-level">Log Level:</label>
|
<label for="log-level" data-text="log-level">Log Level:</label>
|
||||||
<select id="log-level" class="input-field">
|
<select id="log-level" class="input-field">
|
||||||
@ -381,13 +368,13 @@
|
|||||||
<!-- Configuration Management -->
|
<!-- Configuration Management -->
|
||||||
<div class="config-section">
|
<div class="config-section">
|
||||||
<h4 data-text="config-management">Configuration Management</h4>
|
<h4 data-text="config-management">Configuration Management</h4>
|
||||||
|
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<h5 data-text="config-backup-restore">Backup & Restore</h5>
|
<h5 data-text="config-backup-restore">Backup & Restore</h5>
|
||||||
<p class="config-description" data-text="backup-description">
|
<p class="config-description" data-text="backup-description">
|
||||||
Create backups of your configuration or restore from previous backups.
|
Create backups of your configuration or restore from previous backups.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button id="create-config-backup" class="btn btn-secondary">
|
<button id="create-config-backup" class="btn btn-secondary">
|
||||||
<i class="fas fa-save"></i>
|
<i class="fas fa-save"></i>
|
||||||
@ -409,11 +396,11 @@
|
|||||||
<p class="config-description" data-text="validation-description">
|
<p class="config-description" data-text="validation-description">
|
||||||
Validate your current configuration for errors and warnings.
|
Validate your current configuration for errors and warnings.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div id="validation-results" class="validation-results hidden">
|
<div id="validation-results" class="validation-results hidden">
|
||||||
<!-- Validation results will be displayed here -->
|
<!-- Validation results will be displayed here -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button id="validate-config" class="btn btn-primary">
|
<button id="validate-config" class="btn btn-primary">
|
||||||
<i class="fas fa-check"></i>
|
<i class="fas fa-check"></i>
|
||||||
@ -428,20 +415,23 @@
|
|||||||
|
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<h5 data-text="advanced-config">Advanced Settings</h5>
|
<h5 data-text="advanced-config">Advanced Settings</h5>
|
||||||
|
|
||||||
<label for="max-concurrent-downloads" data-text="max-downloads">Max Concurrent Downloads:</label>
|
<label for="max-concurrent-downloads" data-text="max-downloads">Max Concurrent
|
||||||
<input type="number" id="max-concurrent-downloads" min="1" max="20" value="3" class="input-field">
|
Downloads:</label>
|
||||||
|
<input type="number" id="max-concurrent-downloads" min="1" max="20" value="3"
|
||||||
<label for="provider-timeout" data-text="provider-timeout">Provider Timeout (seconds):</label>
|
class="input-field">
|
||||||
|
|
||||||
|
<label for="provider-timeout" data-text="provider-timeout">Provider Timeout
|
||||||
|
(seconds):</label>
|
||||||
<input type="number" id="provider-timeout" min="5" max="300" value="30" class="input-field">
|
<input type="number" id="provider-timeout" min="5" max="300" value="30" class="input-field">
|
||||||
|
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<input type="checkbox" id="enable-debug-mode">
|
<input type="checkbox" id="enable-debug-mode">
|
||||||
<label for="enable-debug-mode">
|
<label for="enable-debug-mode">
|
||||||
<span data-text="enable-debug">Enable Debug Mode</span>
|
<span data-text="enable-debug">Enable Debug Mode</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button id="save-advanced-config" class="btn btn-primary">
|
<button id="save-advanced-config" class="btn btn-primary">
|
||||||
<i class="fas fa-save"></i>
|
<i class="fas fa-save"></i>
|
||||||
@ -469,7 +459,7 @@
|
|||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js"></script>
|
||||||
<script src="{{ url_for('static', filename='js/localization.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/localization.js') }}"></script>
|
||||||
|
|
||||||
<!-- UX Enhancement Scripts -->
|
<!-- UX Enhancement Scripts -->
|
||||||
<script src="{{ url_for('keyboard_shortcuts_js') }}"></script>
|
<script src="{{ url_for('keyboard_shortcuts_js') }}"></script>
|
||||||
<script src="{{ url_for('drag_drop_js') }}"></script>
|
<script src="{{ url_for('drag_drop_js') }}"></script>
|
||||||
@ -477,7 +467,7 @@
|
|||||||
<script src="{{ url_for('user_preferences_js') }}"></script>
|
<script src="{{ url_for('user_preferences_js') }}"></script>
|
||||||
<script src="{{ url_for('advanced_search_js') }}"></script>
|
<script src="{{ url_for('advanced_search_js') }}"></script>
|
||||||
<script src="{{ url_for('undo_redo_js') }}"></script>
|
<script src="{{ url_for('undo_redo_js') }}"></script>
|
||||||
|
|
||||||
<!-- Mobile & Accessibility Scripts -->
|
<!-- Mobile & Accessibility Scripts -->
|
||||||
<script src="{{ url_for('mobile_responsive_js') }}"></script>
|
<script src="{{ url_for('mobile_responsive_js') }}"></script>
|
||||||
<script src="{{ url_for('touch_gestures_js') }}"></script>
|
<script src="{{ url_for('touch_gestures_js') }}"></script>
|
||||||
@ -485,7 +475,8 @@
|
|||||||
<script src="{{ url_for('screen_reader_support_js') }}"></script>
|
<script src="{{ url_for('screen_reader_support_js') }}"></script>
|
||||||
<script src="{{ url_for('color_contrast_compliance_js') }}"></script>
|
<script src="{{ url_for('color_contrast_compliance_js') }}"></script>
|
||||||
<script src="{{ url_for('multi_screen_support_js') }}"></script>
|
<script src="{{ url_for('multi_screen_support_js') }}"></script>
|
||||||
|
|
||||||
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user