From 310d5434c973f04c47caf5493bb36ed64dc401e6 Mon Sep 17 00:00:00 2001 From: BlackSigKill Date: Fri, 13 Feb 2026 18:01:46 +0100 Subject: [PATCH] fix all linting (js/html/css) --- eslint.config.js | 2 +- js/app.js | 1 - js/music-api.js | 10 ++-------- js/qobuz-api.js | 2 +- js/settings.js | 2 +- js/ui.js | 2 +- scripts/dev-runner.js | 1 - styles.css | 22 +--------------------- 8 files changed, 7 insertions(+), 35 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 0d05749..24ba967 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -4,7 +4,7 @@ import prettierConfig from 'eslint-config-prettier'; export default [ { - ignores: ['**/dist/**', '**/node_modules/**', '**/legacy/**', '**/bin/**', '**/www/**'], + ignores: ['**/dist/**', '**/node_modules/**', '**/legacy/**', '**/bin/**', '**/www/**', '**/public/lib/**', '**/public/neutralino.js'], }, js.configs.recommended, prettierConfig, diff --git a/js/app.js b/js/app.js index b45e226..8cd3ae2 100644 --- a/js/app.js +++ b/js/app.js @@ -1,5 +1,4 @@ //js/app.js -import { LosslessAPI } from './api.js'; import { MusicAPI } from './music-api.js'; import { apiSettings, diff --git a/js/music-api.js b/js/music-api.js index 59445f0..5e0974f 100644 --- a/js/music-api.js +++ b/js/music-api.js @@ -76,12 +76,12 @@ export class MusicAPI { return api.getArtist(cleanId); } - async getPlaylist(id, provider = null) { + async getPlaylist(id, _provider = null) { // Playlists are always Tidal for now return this.tidalAPI.getPlaylist(id); } - async getMix(id, provider = null) { + async getMix(id, _provider = null) { // Mixes are always Tidal for now return this.tidalAPI.getMix(id); } @@ -173,10 +173,4 @@ export class MusicAPI { get settings() { return this._settings; } - - // Extract stream URL from manifest (Tidal only) - extractStreamUrlFromManifest(manifest) { - // This is only available for Tidal - return this.tidalAPI.extractStreamUrlFromManifest(manifest); - } } diff --git a/js/qobuz-api.js b/js/qobuz-api.js index 767ccb7..6d03049 100644 --- a/js/qobuz-api.js +++ b/js/qobuz-api.js @@ -115,7 +115,7 @@ export class QobuzAPI { } // Get track details - async getTrack(id) { + async getTrack(_id) { // Qobuz doesn't have a direct track endpoint // Track metadata comes from search/album endpoints // For playback, use getStreamUrl directly diff --git a/js/settings.js b/js/settings.js index 9da8846..7af36fb 100644 --- a/js/settings.js +++ b/js/settings.js @@ -1837,7 +1837,7 @@ export function initializeSettings(scrobbler, player, api, ui) { for (const storeName of stores) { try { await db.performTransaction(storeName, 'readwrite', (store) => store.clear()); - } catch (e) { + } catch { // Store might not exist, continue } } diff --git a/js/ui.js b/js/ui.js index 414df0b..bda22bd 100644 --- a/js/ui.js +++ b/js/ui.js @@ -2339,7 +2339,7 @@ export class UIRenderer { } } - async renderPlaylistPage(playlistId, source = null, provider = null) { + async renderPlaylistPage(playlistId, source = null, _provider = null) { this.showPage('playlist'); // Reset search input for new playlist diff --git a/scripts/dev-runner.js b/scripts/dev-runner.js index 1ecf5bc..9dee151 100644 --- a/scripts/dev-runner.js +++ b/scripts/dev-runner.js @@ -1,6 +1,5 @@ import fs from 'fs'; import { spawn } from 'child_process'; -import path from 'path'; const CONFIG_FILE = 'neutralino.config.json'; const DEV_CONFIG_FILE = 'neutralino.config.dev.json'; diff --git a/styles.css b/styles.css index bea439c..ba59cde 100644 --- a/styles.css +++ b/styles.css @@ -5244,6 +5244,7 @@ body:has(#fullscreen-cover-overlay:not([style*='display: none'])) .now-playing-b max-width: 400px; overflow: hidden; text-overflow: ellipsis; + will-change: transform, opacity; } /* Genius i love genius brah!! */ @@ -5969,27 +5970,6 @@ textarea:focus { font-size: 0.95rem; } -/* Custom Tooltip */ -#custom-tooltip { - position: fixed; - background: var(--card); - color: var(--card-foreground); - padding: 0.5rem 0.75rem; - border-radius: var(--radius); - border: 1px solid var(--border); - box-shadow: var(--shadow-lg); - font-size: 0.85rem; - pointer-events: none; - z-index: 10000; - opacity: 0; - transition: opacity 0.1s ease; - white-space: nowrap; - max-width: 400px; - overflow: hidden; - text-overflow: ellipsis; - will-change: transform, opacity; -} - #custom-tooltip.visible { opacity: 1; }