style: auto-fix linting issues

This commit is contained in:
JulienMaille 2026-03-08 19:04:57 +00:00 committed by github-actions[bot]
parent 9fe689db53
commit 71ed8c7c1f
3 changed files with 369 additions and 334 deletions

View file

@ -3876,7 +3876,9 @@
<div class="setting-item">
<div class="info">
<span class="label">Compact Artists</span>
<span class="description">Show artist cards in a compact, horizontal layout</span>
<span class="description"
>Show artist cards in a compact, horizontal layout</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="compact-artist-toggle" />
@ -3886,7 +3888,9 @@
<div class="setting-item">
<div class="info">
<span class="label">Compact Albums</span>
<span class="description">Show album cards in a compact, horizontal layout</span>
<span class="description"
>Show album cards in a compact, horizontal layout</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="compact-album-toggle" />
@ -4637,7 +4641,11 @@
class="playback-speed-number-input"
/>
<span class="playback-speed-unit">x</span>
<button id="playback-speed-reset" class="btn-secondary" title="Reset to default">
<button
id="playback-speed-reset"
class="btn-secondary"
title="Reset to default"
>
Reset
</button>
</div>
@ -4920,7 +4928,8 @@
<div class="info">
<span class="label">Zipped Bulk Downloads</span>
<span class="description"
>Download multiple tracks as a single ZIP file (requires browser support)</span
>Download multiple tracks as a single ZIP file (requires browser
support)</span
>
</div>
<label class="toggle-switch">
@ -4931,7 +4940,9 @@
<div class="setting-item">
<div class="info">
<span class="label">Download Lyrics</span>
<span class="description">Include .lrc files when downloading tracks/albums</span>
<span class="description"
>Include .lrc files when downloading tracks/albums</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="download-lyrics-toggle" />
@ -5033,7 +5044,9 @@
<div class="setting-item">
<div class="info">
<span class="label">Generate M3U8</span>
<span class="description">Include extended M3U8 playlist files in downloads</span>
<span class="description"
>Include extended M3U8 playlist files in downloads</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="generate-m3u8-toggle" />
@ -5055,7 +5068,9 @@
<div class="setting-item">
<div class="info">
<span class="label">Generate NFO</span>
<span class="description">Include NFO files for media center compatibility</span>
<span class="description"
>Include NFO files for media center compatibility</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="generate-nfo-toggle" />
@ -5107,7 +5122,9 @@
<div class="setting-item">
<div class="info">
<span class="label">ADVANCED: Custom Database/Auth</span>
<span class="description">Configure custom PocketBase and Firebase instances</span>
<span class="description"
>Configure custom PocketBase and Firebase instances</span
>
</div>
<button id="custom-db-btn" class="btn-secondary">Configure</button>
</div>
@ -5166,12 +5183,16 @@
<span class="label">Desktop Update</span>
<span class="description">Check for updates to the desktop application</span>
</div>
<button id="check-desktop-updates-btn" class="btn-secondary">Check for Updates</button>
<button id="check-desktop-updates-btn" class="btn-secondary">
Check for Updates
</button>
</div>
<div class="setting-item">
<div class="info">
<span class="label">Analytics</span>
<span class="description">Send anonymous usage data to help improve the app</span>
<span class="description"
>Send anonymous usage data to help improve the app</span
>
</div>
<label class="toggle-switch">
<input type="checkbox" id="analytics-toggle" checked />
@ -5207,12 +5228,19 @@
<div class="setting-item">
<div class="info">
<span class="label">Backup & Restore</span>
<span class="description">Export or import your library and history as JSON</span>
<span class="description"
>Export or import your library and history as JSON</span
>
</div>
<div style="display: flex; gap: 0.5rem">
<button id="export-library-btn" class="btn-secondary">Export</button>
<button id="import-library-btn" class="btn-secondary">Import</button>
<input type="file" id="import-library-input" style="display: none" accept=".json" />
<input
type="file"
id="import-library-input"
style="display: none"
accept=".json"
/>
</div>
</div>
<div class="setting-item">
@ -5238,7 +5266,8 @@
<div class="info">
<span class="label">Blocked Content</span>
<span class="description"
>Manage artists, albums, and tracks you've blocked from recommendations</span
>Manage artists, albums, and tracks you've blocked from
recommendations</span
>
</div>
<div style="display: flex; gap: 0.5rem">

View file

@ -7646,7 +7646,7 @@ textarea:focus {
left: 0;
z-index: 0;
mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1) 50%, rgb(0, 0, 0, 0));
-webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1) 50%, rgb(0, 0, 0, 0));
mask-image: linear-gradient(to bottom, rgb(0, 0, 0, 1) 50%, rgb(0, 0, 0, 0));
}
.profile-info-section {

View file

@ -35,7 +35,11 @@ export default function uploadPlugin() {
// Forward to catbox.moe (default production behavior when R2 is disabled)
const formData = new FormData();
formData.append('reqtype', 'fileupload');
formData.append('fileToUpload', new Blob([fileData], { type: uploadedFile.mimetype }), uploadedFile.originalFilename);
formData.append(
'fileToUpload',
new Blob([fileData], { type: uploadedFile.mimetype }),
uploadedFile.originalFilename
);
const response = await fetch('https://catbox.moe/user/api.php', {
method: 'POST',
@ -49,10 +53,12 @@ export default function uploadPlugin() {
}
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify({
res.end(
JSON.stringify({
success: true,
url: url.trim(),
}));
})
);
} catch (err) {
console.error('Local upload error:', err);
res.statusCode = 500;