dsh-remote-vs 0.18.0 → 0.19.0

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.
@@ -25,6 +25,7 @@
25
25
  --rvs-brand: var(--dsw-alias-brand-primary, #4d6bfe);
26
26
  --rvs-accent: var(--dsw-alias-button-info-fill, #4d6bfe);
27
27
  --rvs-danger: var(--dsw-alias-state-error-primary, #e05555);
28
+ --rvs-ok: #2ea043;
28
29
  --rvs-git-m: #e2b714;
29
30
  --rvs-git-a: #4ec9b0;
30
31
  --rvs-git-d: #f14c4c;
@@ -4164,6 +4165,469 @@ body[data-ds-dark-theme] .rvs-execpanel {
4164
4165
  overflow-wrap: anywhere;
4165
4166
  }
4166
4167
 
4168
+ /* --------------------------------------------------------- host monitor */
4169
+
4170
+ /**
4171
+ * The monitor panel is cross-host (not bound to the workspace): one card for a
4172
+ * single subject, a compact clickable list for "all hosts". Values are
4173
+ * tabular-nums so a 5 s refresh does not make the text dance.
4174
+ */
4175
+ .rvs-monitor-body {
4176
+ flex: 1;
4177
+ min-height: 0;
4178
+ overflow: auto;
4179
+ padding: 8px 8px 14px;
4180
+ /* Container for the narrow-sidebar layout rules at the end of this section. */
4181
+ container-type: inline-size;
4182
+ }
4183
+
4184
+ /* The rail title and the scope picker both wanted flex:1; the title yields so
4185
+ the picker keeps enough width for its own label at 230px. */
4186
+ .rvs-monitor-header .rvs-title {
4187
+ flex: none;
4188
+ }
4189
+
4190
+ /* The panel's own settings (refresh interval). Shown under the header only
4191
+ while the gear is active; it is chrome, not a modal, so the live values stay
4192
+ visible above it. */
4193
+ .rvs-monitor-settings {
4194
+ flex: none;
4195
+ display: flex;
4196
+ flex-direction: column;
4197
+ gap: 6px;
4198
+ padding: 8px 10px;
4199
+ border-bottom: 1px solid var(--rvs-border);
4200
+ background: var(--rvs-layer3);
4201
+ }
4202
+
4203
+ .rvs-monitor-settings-head {
4204
+ display: flex;
4205
+ align-items: baseline;
4206
+ flex-wrap: wrap;
4207
+ gap: 6px;
4208
+ }
4209
+
4210
+ .rvs-monitor-settings-label {
4211
+ color: var(--rvs-fg2);
4212
+ font-size: 11px;
4213
+ font-weight: 600;
4214
+ }
4215
+
4216
+ .rvs-monitor-settings-hint {
4217
+ color: var(--rvs-fg3);
4218
+ font-size: 10.5px;
4219
+ }
4220
+
4221
+ .rvs-monitor-settings .rvs-seg {
4222
+ align-self: flex-start;
4223
+ }
4224
+
4225
+ .rvs-monitor-card {
4226
+ margin: 2px 0 8px;
4227
+ padding: 10px;
4228
+ border: 1px solid var(--rvs-border2);
4229
+ border-radius: 9px;
4230
+ background: var(--rvs-layer3);
4231
+ }
4232
+
4233
+ .rvs-monitor-card.error {
4234
+ border-color: rgba(224, 85, 85, .45);
4235
+ }
4236
+
4237
+ .rvs-monitor-head {
4238
+ display: flex;
4239
+ align-items: center;
4240
+ gap: 6px;
4241
+ min-width: 0;
4242
+ }
4243
+
4244
+ .rvs-monitor-dot {
4245
+ flex: none;
4246
+ width: 8px;
4247
+ height: 8px;
4248
+ border-radius: 50%;
4249
+ background: var(--rvs-fg3);
4250
+ }
4251
+
4252
+ .rvs-monitor-dot.ok {
4253
+ background: var(--rvs-ok, #2ea043);
4254
+ }
4255
+
4256
+ .rvs-monitor-dot.error {
4257
+ background: var(--rvs-danger);
4258
+ }
4259
+
4260
+ .rvs-monitor-title {
4261
+ flex: none;
4262
+ max-width: 55%;
4263
+ overflow: hidden;
4264
+ text-overflow: ellipsis;
4265
+ white-space: nowrap;
4266
+ font-size: 13px;
4267
+ font-weight: 650;
4268
+ color: var(--rvs-fg);
4269
+ }
4270
+
4271
+ .rvs-monitor-conn {
4272
+ flex: 1;
4273
+ min-width: 0;
4274
+ overflow: hidden;
4275
+ text-overflow: ellipsis;
4276
+ white-space: nowrap;
4277
+ text-align: right;
4278
+ color: var(--rvs-fg3);
4279
+ font-size: 10.5px;
4280
+ }
4281
+
4282
+ .rvs-monitor-sub {
4283
+ display: flex;
4284
+ align-items: baseline;
4285
+ flex-wrap: wrap;
4286
+ gap: 6px;
4287
+ margin-top: 3px;
4288
+ font-size: 11px;
4289
+ }
4290
+
4291
+ .rvs-monitor-state {
4292
+ flex: none;
4293
+ font-weight: 600;
4294
+ }
4295
+
4296
+ .rvs-monitor-state.ok {
4297
+ color: var(--rvs-ok, #2ea043);
4298
+ }
4299
+
4300
+ .rvs-monitor-state.error {
4301
+ color: var(--rvs-danger);
4302
+ }
4303
+
4304
+ .rvs-monitor-state.unknown {
4305
+ color: var(--rvs-fg3);
4306
+ }
4307
+
4308
+ .rvs-monitor-age {
4309
+ color: var(--rvs-fg3);
4310
+ font-variant-numeric: tabular-nums;
4311
+ }
4312
+
4313
+ .rvs-monitor-reason {
4314
+ flex-basis: 100%;
4315
+ min-width: 0;
4316
+ overflow-wrap: anywhere;
4317
+ color: var(--rvs-fg2);
4318
+ line-height: 1.45;
4319
+ }
4320
+
4321
+ .rvs-monitor-grid {
4322
+ display: grid;
4323
+ grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
4324
+ gap: 8px;
4325
+ margin-top: 10px;
4326
+ }
4327
+
4328
+ .rvs-monitor-tile {
4329
+ display: flex;
4330
+ flex-direction: column;
4331
+ gap: 4px;
4332
+ min-width: 0;
4333
+ padding: 8px;
4334
+ border-radius: 7px;
4335
+ background: var(--rvs-hover);
4336
+ }
4337
+
4338
+ .rvs-monitor-tile-label {
4339
+ color: var(--rvs-fg2);
4340
+ font-size: 10px;
4341
+ font-weight: 600;
4342
+ letter-spacing: .06em;
4343
+ text-transform: uppercase;
4344
+ }
4345
+
4346
+ .rvs-monitor-tile-value {
4347
+ color: var(--rvs-fg);
4348
+ font-size: 18px;
4349
+ font-weight: 650;
4350
+ line-height: 1.1;
4351
+ font-variant-numeric: tabular-nums;
4352
+ }
4353
+
4354
+ .rvs-monitor-tile-sub {
4355
+ overflow: hidden;
4356
+ text-overflow: ellipsis;
4357
+ white-space: nowrap;
4358
+ color: var(--rvs-fg2);
4359
+ font-size: 10.5px;
4360
+ }
4361
+
4362
+ .rvs-monitor-bar {
4363
+ height: 4px;
4364
+ border-radius: 2px;
4365
+ background: var(--rvs-border);
4366
+ overflow: hidden;
4367
+ }
4368
+
4369
+ .rvs-monitor-bar-fill {
4370
+ display: block;
4371
+ height: 100%;
4372
+ border-radius: inherit;
4373
+ background: var(--rvs-brand);
4374
+ transition: width .35s ease;
4375
+ }
4376
+
4377
+ .rvs-monitor-bar-fill.warn {
4378
+ background: var(--rvs-git-m);
4379
+ }
4380
+
4381
+ .rvs-monitor-bar-fill.hot {
4382
+ background: var(--rvs-danger);
4383
+ }
4384
+
4385
+ /* Four facts: a 2×2 block reads calmer than three-then-one with auto-fit. */
4386
+ .rvs-monitor-facts {
4387
+ display: grid;
4388
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4389
+ gap: 6px;
4390
+ margin-top: 8px;
4391
+ }
4392
+
4393
+ .rvs-monitor-fact {
4394
+ min-width: 0;
4395
+ padding: 6px 8px;
4396
+ border: 1px solid var(--rvs-border);
4397
+ border-radius: 7px;
4398
+ }
4399
+
4400
+ .rvs-monitor-fact-label {
4401
+ color: var(--rvs-fg2);
4402
+ font-size: 10px;
4403
+ font-weight: 600;
4404
+ letter-spacing: .06em;
4405
+ text-transform: uppercase;
4406
+ }
4407
+
4408
+ .rvs-monitor-fact-value {
4409
+ color: var(--rvs-fg);
4410
+ font-size: 11.5px;
4411
+ line-height: 1.35;
4412
+ font-variant-numeric: tabular-nums;
4413
+ overflow-wrap: anywhere;
4414
+ }
4415
+
4416
+ .rvs-monitor-sparks {
4417
+ display: grid;
4418
+ grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
4419
+ gap: 8px;
4420
+ margin-top: 10px;
4421
+ }
4422
+
4423
+ .rvs-monitor-spark {
4424
+ min-width: 0;
4425
+ padding: 6px 8px 4px;
4426
+ border: 1px solid var(--rvs-border);
4427
+ border-radius: 7px;
4428
+ }
4429
+
4430
+ .rvs-monitor-spark-head {
4431
+ display: flex;
4432
+ align-items: center;
4433
+ justify-content: space-between;
4434
+ gap: 6px;
4435
+ min-width: 0;
4436
+ }
4437
+
4438
+ .rvs-monitor-spark-legend {
4439
+ display: inline-flex;
4440
+ align-items: center;
4441
+ gap: 7px;
4442
+ flex: none;
4443
+ color: var(--rvs-fg3);
4444
+ font-size: 10px;
4445
+ }
4446
+
4447
+ .rvs-monitor-spark-key {
4448
+ display: inline-flex;
4449
+ align-items: center;
4450
+ gap: 3px;
4451
+ }
4452
+
4453
+ .rvs-monitor-spark-line {
4454
+ display: inline-block;
4455
+ width: 10px;
4456
+ height: 0;
4457
+ border-top: 2px solid currentColor;
4458
+ }
4459
+
4460
+ .rvs-monitor-spark-line.tx {
4461
+ border-top-style: dashed;
4462
+ opacity: .7;
4463
+ }
4464
+
4465
+ .rvs-monitor-spark-label {
4466
+ overflow: hidden;
4467
+ text-overflow: ellipsis;
4468
+ white-space: nowrap;
4469
+ color: var(--rvs-fg2);
4470
+ font-size: 10px;
4471
+ font-weight: 600;
4472
+ letter-spacing: .06em;
4473
+ text-transform: uppercase;
4474
+ }
4475
+
4476
+ .rvs-monitor-spark svg {
4477
+ display: block;
4478
+ width: 100%;
4479
+ height: 34px;
4480
+ margin-top: 2px;
4481
+ }
4482
+
4483
+ .rvs-monitor-spark.cpu {
4484
+ color: var(--rvs-brand);
4485
+ }
4486
+
4487
+ .rvs-monitor-spark.mem {
4488
+ color: var(--rvs-git-a);
4489
+ }
4490
+
4491
+ .rvs-monitor-spark.net {
4492
+ color: var(--rvs-git-c);
4493
+ }
4494
+
4495
+ .rvs-monitor-spark.temp {
4496
+ color: var(--rvs-git-m);
4497
+ }
4498
+
4499
+ .rvs-monitor-spark-empty {
4500
+ padding: 8px 0 4px;
4501
+ text-align: center;
4502
+ color: var(--rvs-fg3);
4503
+ font-size: 10.5px;
4504
+ }
4505
+
4506
+ .rvs-monitor-hint {
4507
+ margin-top: 8px;
4508
+ color: var(--rvs-fg3);
4509
+ font-size: 10.5px;
4510
+ line-height: 1.5;
4511
+ overflow-wrap: anywhere;
4512
+ }
4513
+
4514
+ .rvs-monitor-list {
4515
+ display: flex;
4516
+ flex-direction: column;
4517
+ gap: 6px;
4518
+ }
4519
+
4520
+ .rvs-monitor-summary {
4521
+ padding: 0 2px 4px;
4522
+ color: var(--rvs-fg3);
4523
+ font-size: 11px;
4524
+ }
4525
+
4526
+ .rvs-monitor-row {
4527
+ display: flex;
4528
+ flex-direction: column;
4529
+ gap: 5px;
4530
+ width: 100%;
4531
+ padding: 8px;
4532
+ border: 1px solid var(--rvs-border);
4533
+ border-radius: 8px;
4534
+ background: var(--rvs-layer3);
4535
+ color: inherit;
4536
+ font: inherit;
4537
+ text-align: left;
4538
+ cursor: pointer;
4539
+ }
4540
+
4541
+ .rvs-monitor-row:hover {
4542
+ border-color: var(--rvs-border2);
4543
+ background: var(--rvs-hover);
4544
+ }
4545
+
4546
+ .rvs-monitor-row.error {
4547
+ border-color: rgba(224, 85, 85, .45);
4548
+ }
4549
+
4550
+ .rvs-monitor-row-top {
4551
+ display: flex;
4552
+ align-items: center;
4553
+ gap: 6px;
4554
+ min-width: 0;
4555
+ }
4556
+
4557
+ .rvs-monitor-row-name {
4558
+ flex: none;
4559
+ max-width: 50%;
4560
+ overflow: hidden;
4561
+ text-overflow: ellipsis;
4562
+ white-space: nowrap;
4563
+ font-size: 12.5px;
4564
+ font-weight: 600;
4565
+ }
4566
+
4567
+ .rvs-monitor-row-host {
4568
+ flex: 1;
4569
+ min-width: 0;
4570
+ overflow: hidden;
4571
+ text-overflow: ellipsis;
4572
+ white-space: nowrap;
4573
+ color: var(--rvs-fg3);
4574
+ font-size: 10.5px;
4575
+ }
4576
+
4577
+ .rvs-monitor-row-cpu {
4578
+ flex: none;
4579
+ font-size: 12px;
4580
+ font-weight: 650;
4581
+ font-variant-numeric: tabular-nums;
4582
+ }
4583
+
4584
+ .rvs-monitor-row-bars {
4585
+ display: flex;
4586
+ gap: 4px;
4587
+ }
4588
+
4589
+ .rvs-monitor-row-bar {
4590
+ flex: 1;
4591
+ height: 3px;
4592
+ border-radius: 2px;
4593
+ background: var(--rvs-border);
4594
+ overflow: hidden;
4595
+ }
4596
+
4597
+ .rvs-monitor-row-facts {
4598
+ display: grid;
4599
+ grid-template-columns: repeat(3, minmax(0, 1fr));
4600
+ gap: 8px;
4601
+ color: var(--rvs-fg3);
4602
+ font-size: 10.5px;
4603
+ font-variant-numeric: tabular-nums;
4604
+ }
4605
+
4606
+ /* ------------------------------------------------- narrow sidebar (<=260px)
4607
+ Container queries, not media queries: the rail is narrow while the WINDOW is
4608
+ wide. Reactions: the three gauges stack (an orphan grid cell with ~90px of
4609
+ empty space next to it looked broken), the four curves go 2×2 instead of a
4610
+ single tall column, and the all-hosts facts become a 2×2 grid so row heights
4611
+ stay uniform. */
4612
+ @container (max-width: 260px) {
4613
+ .rvs-monitor-grid {
4614
+ grid-template-columns: minmax(0, 1fr);
4615
+ }
4616
+
4617
+ .rvs-monitor-sparks {
4618
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4619
+ }
4620
+
4621
+ .rvs-monitor-row-facts {
4622
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4623
+ }
4624
+
4625
+ /* A 2-column spark is ~80px wide; the label must win over the legend there. */
4626
+ .rvs-monitor-spark-legend {
4627
+ display: none;
4628
+ }
4629
+ }
4630
+
4167
4631
  /* ------------------------------------------------------ Ctrl+P quick open */
4168
4632
 
4169
4633
  .rvs-qo-mask {