style: auto-fix linting issues
This commit is contained in:
parent
9fe689db53
commit
71ed8c7c1f
3 changed files with 369 additions and 334 deletions
55
index.html
55
index.html
|
|
@ -3876,7 +3876,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Compact Artists</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="compact-artist-toggle" />
|
<input type="checkbox" id="compact-artist-toggle" />
|
||||||
|
|
@ -3886,7 +3888,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Compact Albums</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="compact-album-toggle" />
|
<input type="checkbox" id="compact-album-toggle" />
|
||||||
|
|
@ -4637,7 +4641,11 @@
|
||||||
class="playback-speed-number-input"
|
class="playback-speed-number-input"
|
||||||
/>
|
/>
|
||||||
<span class="playback-speed-unit">x</span>
|
<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
|
Reset
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4920,7 +4928,8 @@
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Zipped Bulk Downloads</span>
|
<span class="label">Zipped Bulk Downloads</span>
|
||||||
<span class="description"
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
|
|
@ -4931,7 +4940,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Download Lyrics</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="download-lyrics-toggle" />
|
<input type="checkbox" id="download-lyrics-toggle" />
|
||||||
|
|
@ -5033,7 +5044,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Generate M3U8</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="generate-m3u8-toggle" />
|
<input type="checkbox" id="generate-m3u8-toggle" />
|
||||||
|
|
@ -5055,7 +5068,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Generate NFO</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="generate-nfo-toggle" />
|
<input type="checkbox" id="generate-nfo-toggle" />
|
||||||
|
|
@ -5107,7 +5122,9 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">ADVANCED: Custom Database/Auth</span>
|
<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>
|
</div>
|
||||||
<button id="custom-db-btn" class="btn-secondary">Configure</button>
|
<button id="custom-db-btn" class="btn-secondary">Configure</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -5166,12 +5183,16 @@
|
||||||
<span class="label">Desktop Update</span>
|
<span class="label">Desktop Update</span>
|
||||||
<span class="description">Check for updates to the desktop application</span>
|
<span class="description">Check for updates to the desktop application</span>
|
||||||
</div>
|
</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>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Analytics</span>
|
<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>
|
</div>
|
||||||
<label class="toggle-switch">
|
<label class="toggle-switch">
|
||||||
<input type="checkbox" id="analytics-toggle" checked />
|
<input type="checkbox" id="analytics-toggle" checked />
|
||||||
|
|
@ -5207,12 +5228,19 @@
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Backup & Restore</span>
|
<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>
|
||||||
<div style="display: flex; gap: 0.5rem">
|
<div style="display: flex; gap: 0.5rem">
|
||||||
<button id="export-library-btn" class="btn-secondary">Export</button>
|
<button id="export-library-btn" class="btn-secondary">Export</button>
|
||||||
<button id="import-library-btn" class="btn-secondary">Import</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>
|
</div>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
|
|
@ -5238,7 +5266,8 @@
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="label">Blocked Content</span>
|
<span class="label">Blocked Content</span>
|
||||||
<span class="description"
|
<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>
|
||||||
<div style="display: flex; gap: 0.5rem">
|
<div style="display: flex; gap: 0.5rem">
|
||||||
|
|
|
||||||
|
|
@ -7646,7 +7646,7 @@ textarea:focus {
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
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));
|
||||||
-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 {
|
.profile-info-section {
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,11 @@ export default function uploadPlugin() {
|
||||||
// Forward to catbox.moe (default production behavior when R2 is disabled)
|
// Forward to catbox.moe (default production behavior when R2 is disabled)
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('reqtype', 'fileupload');
|
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', {
|
const response = await fetch('https://catbox.moe/user/api.php', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -49,10 +53,12 @@ export default function uploadPlugin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.setHeader('Content-Type', 'application/json');
|
res.setHeader('Content-Type', 'application/json');
|
||||||
res.end(JSON.stringify({
|
res.end(
|
||||||
|
JSON.stringify({
|
||||||
success: true,
|
success: true,
|
||||||
url: url.trim(),
|
url: url.trim(),
|
||||||
}));
|
})
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Local upload error:', err);
|
console.error('Local upload error:', err);
|
||||||
res.statusCode = 500;
|
res.statusCode = 500;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue