dsh-music-panel 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.js +21 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/client.js
CHANGED
|
@@ -3641,8 +3641,16 @@ window.__ModuleLoader__.load({
|
|
|
3641
3641
|
h(
|
|
3642
3642
|
'div',
|
|
3643
3643
|
{ className: 'mu-row-title' },
|
|
3644
|
+
isCurrent
|
|
3645
|
+
? h(
|
|
3646
|
+
'span',
|
|
3647
|
+
{ className: 'mu-eq' + (snap.playing ? ' is-playing' : ''), 'aria-hidden': 'true' },
|
|
3648
|
+
h('i', null),
|
|
3649
|
+
h('i', null),
|
|
3650
|
+
h('i', null),
|
|
3651
|
+
)
|
|
3652
|
+
: null,
|
|
3644
3653
|
track.title,
|
|
3645
|
-
isCurrent ? h('span', { className: 'mu-playing-dot' }) : null,
|
|
3646
3654
|
),
|
|
3647
3655
|
h(
|
|
3648
3656
|
'div',
|
|
@@ -4510,16 +4518,6 @@ window.__ModuleLoader__.load({
|
|
|
4510
4518
|
icon('play', 13),
|
|
4511
4519
|
h('span', null, t('page.playAll')),
|
|
4512
4520
|
),
|
|
4513
|
-
h(
|
|
4514
|
-
'button',
|
|
4515
|
-
{
|
|
4516
|
-
type: 'button',
|
|
4517
|
-
className: 'mu-chip mu-chip-round',
|
|
4518
|
-
title: t('page.clear'),
|
|
4519
|
-
onClick: clearList,
|
|
4520
|
-
},
|
|
4521
|
-
icon('x', 15),
|
|
4522
|
-
),
|
|
4523
4521
|
selected.length > 0
|
|
4524
4522
|
? h(
|
|
4525
4523
|
'span',
|
|
@@ -5180,12 +5178,16 @@ window.__ModuleLoader__.load({
|
|
|
5180
5178
|
'.mu-btn-danger{background:var(--dsw-alias-state-error-primary,#c0392b);color:var(--dsw-alias-label-primary-foreground,#fff);border-color:transparent}',
|
|
5181
5179
|
'.mu-btn-danger:hover{opacity:.9}',
|
|
5182
5180
|
'.mu-row:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.05))}',
|
|
5183
|
-
'.mu-row.is-current{background:rgba(244,244,245,.
|
|
5184
|
-
'.mu-row.is-current
|
|
5181
|
+
'.mu-row.is-current{background:rgba(244,244,245,.12);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#f4f4f5) 12%,transparent);box-shadow:inset 3px 0 0 var(--dsw-alias-brand-primary,#f4f4f5);border-radius:var(--dsw-radius-md,8px)}',
|
|
5182
|
+
'.mu-row.is-current:hover{background:rgba(244,244,245,.16);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#f4f4f5) 16%,transparent)}',
|
|
5183
|
+
'.mu-row.is-current .mu-row-title{color:var(--dsw-alias-brand-primary,#f4f4f5);font-weight:600}',
|
|
5184
|
+
'.mu-row.is-current .mu-row-sub,.mu-row.is-current .mu-row-album,.mu-row.is-current .mu-row-dur{color:var(--dsw-alias-label-secondary,#a1a1aa)}',
|
|
5185
5185
|
'.mu-row-play{position:relative;width:var(--mu-row-size,55px);height:var(--mu-row-size,55px);border:0;padding:0;background:transparent;cursor:pointer;border-radius:var(--dsw-radius-sm,6px);display:flex;align-items:center;justify-content:center}',
|
|
5186
5186
|
'.mu-row-playmask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:var(--dsw-radius-sm,6px);background:rgba(0,0,0,.45);color:#fff;opacity:0;transition:opacity .12s ease}',
|
|
5187
5187
|
'.mu-row-play:hover .mu-row-playmask,.mu-row.is-current .mu-row-playmask{opacity:1}',
|
|
5188
|
+
'.mu-row.is-current .mu-row-playmask{background:rgba(0,0,0,.35)}',
|
|
5188
5189
|
'.mu-row.is-selected{background:var(--dsw-alias-interactive-bg-hover,rgba(255,255,255,.05))}',
|
|
5190
|
+
'.mu-row.is-current.is-selected{background:rgba(244,244,245,.12);background:color-mix(in srgb,var(--dsw-alias-brand-primary,#f4f4f5) 12%,transparent);box-shadow:inset 3px 0 0 var(--dsw-alias-brand-primary,#f4f4f5)}',
|
|
5189
5191
|
'.mu-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}',
|
|
5190
5192
|
'.mu-check{width:20px;height:20px;margin:0;padding:0;border:1.5px solid var(--dsw-alias-border-l3,rgba(255,255,255,.24));border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none;opacity:0;transition:opacity .12s ease}',
|
|
5191
5193
|
'.mu-row:hover .mu-check,.mu-row.is-selected .mu-check,.mu-check:focus-visible{opacity:1}',
|
|
@@ -5195,7 +5197,12 @@ window.__ModuleLoader__.load({
|
|
|
5195
5197
|
'.mu-cover img{width:100%;height:100%;object-fit:cover;display:block}',
|
|
5196
5198
|
'.mu-row-main{min-width:0}',
|
|
5197
5199
|
'.mu-row-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',
|
|
5198
|
-
'.mu-
|
|
5200
|
+
'.mu-eq{display:inline-flex;align-items:flex-end;gap:2px;height:12px;margin-right:8px;flex:none}',
|
|
5201
|
+
'.mu-eq i{display:block;width:2px;height:4px;border-radius:1px;background:var(--dsw-alias-brand-primary,#f4f4f5);opacity:.9}',
|
|
5202
|
+
'.mu-eq.is-playing i{animation:mu-eq-bounce .9s ease-in-out infinite}',
|
|
5203
|
+
'.mu-eq.is-playing i:nth-child(2){animation-delay:.15s}',
|
|
5204
|
+
'.mu-eq.is-playing i:nth-child(3){animation-delay:.3s}',
|
|
5205
|
+
'@keyframes mu-eq-bounce{0%,100%{height:4px}50%{height:12px}}',
|
|
5199
5206
|
'.mu-row-sub{display:flex;align-items:center;gap:6px;margin-top:1px;font-size:12px;color:var(--dsw-alias-label-secondary,#a1a1aa);min-width:0}',
|
|
5200
5207
|
'.mu-cd{flex:none;padding:0 4px;border-radius:var(--dsw-radius-xs,4px);border:.5px solid var(--dsw-alias-border-l2,rgba(255,255,255,.2));color:var(--dsw-alias-label-tertiary,#8a8a93);font-size:9px;font-weight:600;line-height:13px;letter-spacing:.4px}',
|
|
5201
5208
|
'.mu-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-music-panel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local music library for DeepSeek Harness: scan a folder, browse tracks with cover art and tags, and play through a sidebar-panel player with loop, shuffle and volume. · DSH 本地音乐插件:扫描音乐目录、读取封面与标签、侧栏入口 + 全屏播放器。",
|
|
6
6
|
"license": "MIT",
|