better format

This commit is contained in:
Lukas Pupka-Lipinski 2025-09-29 09:36:37 +02:00
parent 78fc6068fb
commit 6b300dc2f5
5 changed files with 198 additions and 169 deletions

View File

@ -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

View File

@ -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'
); );

View File

@ -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 */
@ -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);

View File

@ -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>

View File

@ -1,25 +1,6 @@
<!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">
@ -30,6 +11,7 @@
<!-- 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 -->
@ -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>
@ -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>
@ -276,7 +262,8 @@
<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>
@ -429,10 +416,13 @@
<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"
class="input-field">
<label for="provider-timeout" data-text="provider-timeout">Provider Timeout (seconds):</label> <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">
@ -488,4 +478,5 @@
<script src="{{ url_for('static', filename='js/app.js') }}"></script> <script src="{{ url_for('static', filename='js/app.js') }}"></script>
</body> </body>
</html> </html>