From 6b300dc2f5c34712ae1341fcbd089d08096639f9 Mon Sep 17 00:00:00 2001 From: Lukas Pupka-Lipinski Date: Mon, 29 Sep 2025 09:36:37 +0200 Subject: [PATCH] better format --- instruction2.md | 6 + .../application/services/bulk_service.py | 2 +- src/server/web/static/css/styles.css | 248 ++++++++++-------- src/server/web/static/js/app.js | 14 +- src/server/web/templates/base/index.html | 97 ++++--- 5 files changed, 198 insertions(+), 169 deletions(-) diff --git a/instruction2.md b/instruction2.md index 4286a64..2f1343d 100644 --- a/instruction2.md +++ b/instruction2.md @@ -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: + +app.js:962 + Error loading configuration: SyntaxError: Unexpected token '<', "
${hasMissingEpisodes ? - '' : + '' : '' }
@@ -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(); } diff --git a/src/server/web/templates/base/index.html b/src/server/web/templates/base/index.html index bafd814..843a3b5 100644 --- a/src/server/web/templates/base/index.html +++ b/src/server/web/templates/base/index.html @@ -1,35 +1,17 @@ - - - - Queue - - - - - - ta-theme="light"> + + AniWorld Manager - + +
@@ -53,12 +35,12 @@
- + Queue - + @@ -93,7 +76,7 @@ - + - +
@@ -199,7 +182,8 @@ Resume - @@ -221,7 +205,8 @@
- + @@ -229,7 +214,8 @@
- +
@@ -242,7 +228,7 @@ Test Connection
- +
- +

Scheduled Operations

- +
- +
- +
- +
@@ -296,7 +283,7 @@
- +