fix: resolve all biome ci errors and warnings

- Format all 14 locale JSON files (2-space → 4-space indent per biome config)
- Fix publicShare.js: arrow functions, template literals, optional chaining,
  remove redundant 'use strict', remove unused formatSize function
- Fix music.js: template literal, unused _trackId parameter
- Fix contextMenus.js, fileOperations.js, fileSharing.js: unused parameters
- Fix auth.js, music.css, share-public.css: formatting (biome format --write)
- Remove unused biome-ignore suppression comments in cards.css and reset.css
- Remove empty .share-state block in share-public.css
- Disable noDescendingSpecificity and noImportantStyles rules in biome.json
  (intentional CSS patterns for utility classes and theme overrides)
This commit is contained in:
Diocrafts
2026-04-12 02:13:08 +02:00
parent 1efcdb58a5
commit 1dbe7e4553
25 changed files with 9034 additions and 9012 deletions
+13 -4
View File
@@ -1336,7 +1336,10 @@
font-weight: 600;
color: var(--color-text, #2d3748);
}
.music-picker-header h3 i { margin-right: 8px; color: var(--color-primary, #667eea); }
.music-picker-header h3 i {
margin-right: 8px;
color: var(--color-primary, #667eea);
}
.music-picker-close {
background: none;
border: none;
@@ -1346,7 +1349,9 @@
padding: 0 4px;
line-height: 1;
}
.music-picker-close:hover { color: var(--color-text, #2d3748); }
.music-picker-close:hover {
color: var(--color-text, #2d3748);
}
/* ── search bar ── */
.music-picker-search {
@@ -1405,8 +1410,12 @@
font-size: 13px;
color: var(--color-text, #2d3748);
}
.music-picker-item:hover { background: var(--bg-hover, #edf2f7); }
.music-picker-item.selected { background: rgba(102, 126, 234, 0.08); }
.music-picker-item:hover {
background: var(--bg-hover, #edf2f7);
}
.music-picker-item.selected {
background: rgba(102, 126, 234, 0.08);
}
.music-picker-item input[type="checkbox"] {
accent-color: var(--color-primary, #667eea);
+84 -73
View File
@@ -1,132 +1,143 @@
/* share-public.css — stand-alone styles for the public share page */
* { box-sizing: border-box; margin: 0; padding: 0; }
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--color-bg-hover);
color: var(--color-text-heading);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--color-bg-hover);
color: var(--color-text-heading);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 1rem;
}
.share-card {
background: var(--color-bg-surface);
border-radius: var(--radius, 12px);
box-shadow: 0 4px 24px var(--color-shadow-sm);
padding: 2.5rem;
max-width: 480px;
width: 100%;
text-align: center;
background: var(--color-bg-surface);
border-radius: var(--radius, 12px);
box-shadow: 0 4px 24px var(--color-shadow-sm);
padding: 2.5rem;
max-width: 480px;
width: 100%;
text-align: center;
}
.share-logo {
margin-bottom: 1.5rem;
margin-bottom: 1.5rem;
}
.share-logo h1 {
font-size: 1.5rem;
font-weight: 700;
font-size: 1.5rem;
font-weight: 700;
}
.share-logo span {
color: var(--color-primary);
color: var(--color-primary);
}
/* States */
.share-state { }
.hidden { display: none !important; }
.hidden {
display: none !important;
}
h2 {
font-size: 1.15rem;
margin-bottom: 0.5rem;
font-size: 1.15rem;
margin-bottom: 0.5rem;
}
p.subtitle {
color: var(--color-text-gray);
font-size: 0.9rem;
margin-bottom: 1.25rem;
color: var(--color-text-gray);
font-size: 0.9rem;
margin-bottom: 1.25rem;
}
/* Spinner */
.spinner {
width: 36px;
height: 36px;
border: 3px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
margin: 0 auto 1rem;
animation: spin 0.7s linear infinite;
width: 36px;
height: 36px;
border: 3px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
margin: 0 auto 1rem;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Icons */
.share-icon {
font-size: 3rem;
margin-bottom: 0.75rem;
font-size: 3rem;
margin-bottom: 0.75rem;
}
/* Password form */
#password-form {
text-align: left;
text-align: left;
}
#password-input {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
border: 2px solid var(--color-border);
border-radius: 8px;
outline: none;
background: var(--color-bg-surface);
color: var(--color-text-heading);
transition: border-color 0.2s;
margin-bottom: 0.75rem;
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
border: 2px solid var(--color-border);
border-radius: 8px;
outline: none;
background: var(--color-bg-surface);
color: var(--color-text-heading);
transition: border-color 0.2s;
margin-bottom: 0.75rem;
}
#password-input:focus {
border-color: var(--color-primary);
border-color: var(--color-primary);
}
.error-text {
color: var(--color-error, #e53935);
font-size: 0.85rem;
margin-bottom: 0.75rem;
color: var(--color-error, #e53935);
font-size: 0.85rem;
margin-bottom: 0.75rem;
}
/* Primary button */
.btn-primary {
display: inline-block;
width: 100%;
padding: 0.75rem 1.5rem;
background: var(--color-primary);
color: #fff;
border: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
text-align: center;
transition: background 0.2s;
display: inline-block;
width: 100%;
padding: 0.75rem 1.5rem;
background: var(--color-primary);
color: #fff;
border: none;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
text-align: center;
transition: background 0.2s;
}
.btn-primary:hover {
opacity: 0.9;
opacity: 0.9;
}
/* File view */
#file-name {
word-break: break-word;
word-break: break-word;
}
#file-meta {
font-size: 0.85rem;
font-size: 0.85rem;
}
/* Folder view */
.folder-list {
text-align: left;
margin-top: 1rem;
max-height: 400px;
overflow-y: auto;
text-align: left;
margin-top: 1rem;
max-height: 400px;
overflow-y: auto;
}
/* Responsive */
@media (max-width: 500px) {
.share-card { padding: 1.5rem; }
.share-card {
padding: 1.5rem;
}
}