diff --git a/build-less.js b/build-less.js deleted file mode 100644 index 21d4aae..0000000 --- a/build-less.js +++ /dev/null @@ -1,30 +0,0 @@ -/* global require, __dirname, process */ -const less = require('less'); -const fs = require('fs'); -const path = require('path'); - -const src = path.join(__dirname, 'style.less'); -const dest = path.join(__dirname, 'style.css'); - -fs.readFile(src, 'utf8', (err, data) => { - if (err) { - console.error('[LESS] Fehler beim Lesen:', err.message); - process.exit(1); - } - less.render(data, { - filename: src, - compress: false, - sourceMap: false, - }).then(output => { - fs.writeFile(dest, output.css, 'utf8', err => { - if (err) { - console.error('[LESS] Fehler beim Schreiben:', err.message); - process.exit(1); - } - console.log('[LESS] style.less → style.css erfolgreich kompiliert'); - }); - }).catch(err => { - console.error('[LESS] Kompilierungsfehler:', err.message); - process.exit(1); - }); -}); diff --git a/index.html b/index.html index 606378e..061603b 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,9 @@ 🏆 Lara Kiesewetter – Live Schachturnier - + + +
@@ -93,7 +95,7 @@ - - + + diff --git a/app.js b/js/app.js similarity index 100% rename from app.js rename to js/app.js diff --git a/pgn-parser.js b/js/pgn-parser.js similarity index 100% rename from pgn-parser.js rename to js/pgn-parser.js diff --git a/style.less b/less/style.less similarity index 100% rename from style.less rename to less/style.less diff --git a/server.py b/server.py index e75c049..8a1bd92 100644 --- a/server.py +++ b/server.py @@ -7,7 +7,6 @@ Serviert statische Dateien direkt. import http.server import socketserver import os -import subprocess PORT = int(os.environ.get("PORT", 8111)) @@ -48,17 +47,6 @@ class StaticHandler(http.server.BaseHTTPRequestHandler): print(f"[{self.log_date_time_string()}] {args[0]}") def main(): - # LESS → CSS beim Serverstart kompilieren - print("[BUILD] Kompiliere style.less -> style.css ...") - try: - result = subprocess.run(["node", "build-less.js"], capture_output=True, text=True, cwd=os.path.dirname(os.path.abspath(__file__))) - if result.returncode == 0: - print(f"[BUILD] {result.stdout.strip()}") - else: - print(f"[BUILD] FEHLER: {result.stderr.strip()}") - except FileNotFoundError: - print("[BUILD] node nicht gefunden – überspringe LESS-Kompilierung") - print("=" * 50) print(" [TROPHY] Lara Kiesewetter – Live Schachturnier") print("=" * 50)