dsh-nvtop-panel 1.1.1 → 1.1.2

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.
Files changed (3) hide show
  1. package/README.md +4 -4
  2. package/client.js +11 -5
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -18,10 +18,10 @@ GPU monitor 2 GPUs
18
18
  └─────────────────────────────────┘
19
19
 
20
20
  Processes
21
- PID USER DEV TYPE GPU GPU MEM CPU HOST MEM Command
22
- 10124 alice 0 C 62% 9.4 GiB 3.1% 1.8 GiB llama-server
23
- 10192 bob 1 C 47% 8.9 GiB 2.4% 1.6 GiB python train.py
24
- 10230 alice 2 C 89% 87.2 GiB 18.3% 2.6 GiB vllm serve …
21
+ PID USER DEV TYPE GPU GPU MEM CPU HOST MEM Command
22
+ 10124 alice 0 C 62% 9.4 GiB 3.1% 1.8 GiB llama-server
23
+ 10192 bob 1 C 47% 8.9 GiB 2.4% 1.6 GiB python train.py
24
+ 10230 alice 2 C 89% 87.2 GiB 18.3% 2.6 GiB vllm serve …
25
25
  ```
26
26
 
27
27
  ## Features
package/client.js CHANGED
@@ -116,7 +116,8 @@ window.__ModuleLoader__.load({
116
116
  if (processes.length === 0) {
117
117
  return h('div', { className: 'nvtp-empty-note' }, t('noProcesses'));
118
118
  }
119
- return h('table', { className: 'nvtp-table nvtp-procs-table' },
119
+ return h('div', { className: 'nvtp-scroll' },
120
+ h('table', { className: 'nvtp-table nvtp-procs-table' },
120
121
  h('thead', null,
121
122
  h('tr', null,
122
123
  h('th', { className: 'nvtp-num' }, t('pid')),
@@ -138,7 +139,7 @@ window.__ModuleLoader__.load({
138
139
  h('td', { className: 'nvtp-num' }, fmtMemory(p.memoryUsed)),
139
140
  h('td', { className: 'nvtp-num' }, p.cpuPercent === null || p.cpuPercent === undefined ? '—' : `${p.cpuPercent.toFixed(1)}%`),
140
141
  h('td', { className: 'nvtp-num' }, fmtHostMemory(p.hostMemKib)),
141
- h('td', { className: 'nvtp-cmd nvtp-name' }, p.command)))));
142
+ h('td', { className: 'nvtp-cmd nvtp-name' }, p.command))))));
142
143
  }
143
144
 
144
145
  const CSS = `
@@ -165,12 +166,14 @@ window.__ModuleLoader__.load({
165
166
  .nvtp-stat-value{font-size:14px;font-variant-numeric:tabular-nums}
166
167
  .nvtp-procs{border:1px solid var(--dsw-alias-border-l1);border-radius:10px;background:var(--dsw-alias-bg-layer-1);padding:14px 16px}
167
168
  .nvtp-procs h2{margin:0 0 10px;font-size:14px;font-weight:600}
169
+ .nvtp-scroll{overflow-x:auto;overscroll-behavior-x:contain}
168
170
  .nvtp-table{width:100%;border-collapse:collapse;font-size:13px}
171
+ .nvtp-procs-table{width:max-content;min-width:100%}
169
172
  .nvtp-table th{color:var(--dsw-alias-label-secondary);font-weight:500;text-align:left;padding:4px 8px;border-bottom:1px solid var(--dsw-alias-border-l2);font-size:12px;white-space:nowrap}
170
173
  .nvtp-table td{padding:5px 8px;border-bottom:1px solid var(--dsw-alias-border-l1);white-space:nowrap}
171
174
  .nvtp-num{text-align:right;font-variant-numeric:tabular-nums}
172
175
  .nvtp-name{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
173
- .nvtp-procs-table .nvtp-cmd{max-width:420px;overflow:hidden;text-overflow:ellipsis}
176
+ .nvtp-procs-table .nvtp-cmd{max-width:none}
174
177
  .nvtp-empty-note{color:var(--dsw-alias-label-secondary);font-size:13px}
175
178
  .nvtp-error{border:1px solid var(--dsw-alias-state-error-primary);border-radius:10px;padding:14px 16px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1)}
176
179
  .nvtp-error-label{color:var(--dsw-alias-state-error-primary);font-weight:600;margin-bottom:6px}
@@ -249,9 +252,12 @@ window.__ModuleLoader__.load({
249
252
  : null);
250
253
  }
251
254
 
252
- function PanelIcon() {
255
+ function PanelIcon(props) {
253
256
  return h('svg', {
254
- viewBox: '0 0 24 24', width: 22, height: 22, 'aria-hidden': true,
257
+ viewBox: '0 0 24 24',
258
+ width: props?.size ?? 18,
259
+ height: props?.size ?? 18,
260
+ 'aria-hidden': true,
255
261
  style: { display: 'block' },
256
262
  },
257
263
  h('rect', { x: 2.5, y: 5.5, width: 19, height: 12, rx: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-nvtop-panel",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "nvtop-style live GPU dashboard panel for the DeepSeek Harness (DSH) Web UI: per-GPU utilization/memory/temperature/power cards plus a full nvtop-like process table (PID, USER, DEV, TYPE, GPU, GPU MEM, CPU, HOST MEM, Command).",