@lethevimlet/sshift 0.3.0 → 0.4.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.
@@ -2508,6 +2508,77 @@ body.dragging-tabs .tabs-container {
2508
2508
  resize: vertical;
2509
2509
  }
2510
2510
 
2511
+ .private-key-upload {
2512
+ display: flex;
2513
+ align-items: center;
2514
+ gap: 8px;
2515
+ margin-bottom: 6px;
2516
+ }
2517
+
2518
+ .key-upload-btn {
2519
+ display: inline-flex;
2520
+ align-items: center;
2521
+ gap: 4px;
2522
+ padding: 4px 10px;
2523
+ font-size: 12px;
2524
+ background: var(--bg-tertiary);
2525
+ border: 1px solid var(--border-color);
2526
+ border-radius: var(--radius-md);
2527
+ color: var(--text-primary);
2528
+ cursor: pointer;
2529
+ transition: var(--transition-fast);
2530
+ white-space: nowrap;
2531
+ }
2532
+
2533
+ .key-upload-btn:hover {
2534
+ background: var(--bg-hover);
2535
+ border-color: var(--border-light);
2536
+ }
2537
+
2538
+ .key-upload-btn i {
2539
+ font-size: 11px;
2540
+ }
2541
+
2542
+ .key-clear-btn {
2543
+ display: inline-flex;
2544
+ align-items: center;
2545
+ justify-content: center;
2546
+ padding: 4px 8px;
2547
+ font-size: 12px;
2548
+ background: var(--bg-tertiary);
2549
+ border: 1px solid var(--border-color);
2550
+ border-radius: var(--radius-md);
2551
+ color: var(--text-secondary);
2552
+ cursor: pointer;
2553
+ transition: var(--transition-fast);
2554
+ }
2555
+
2556
+ .key-clear-btn:hover {
2557
+ background: var(--bg-hover);
2558
+ color: var(--text-primary);
2559
+ border-color: var(--border-light);
2560
+ }
2561
+
2562
+ .key-format-badge {
2563
+ display: inline-flex;
2564
+ align-items: center;
2565
+ padding: 2px 8px;
2566
+ font-size: 11px;
2567
+ font-weight: 500;
2568
+ border-radius: var(--radius-sm);
2569
+ background: var(--accent-primary);
2570
+ color: #fff;
2571
+ white-space: nowrap;
2572
+ }
2573
+
2574
+ .key-format-badge.format-warning {
2575
+ background: #e67e22;
2576
+ }
2577
+
2578
+ .key-format-badge.format-error {
2579
+ background: #e74c3c;
2580
+ }
2581
+
2511
2582
  .form-row {
2512
2583
  display: flex;
2513
2584
  gap: 12px;
@@ -4234,8 +4305,8 @@ body.dragging-tabs .tabs-container {
4234
4305
  /* Mobile selection handles - draggable anchors */
4235
4306
  .mobile-selection-handle {
4236
4307
  position: absolute;
4237
- width: 20px;
4238
- height: 20px;
4308
+ width: 24px;
4309
+ height: 24px;
4239
4310
  z-index: 100;
4240
4311
  cursor: pointer;
4241
4312
  touch-action: none;
@@ -4243,7 +4314,7 @@ body.dragging-tabs .tabs-container {
4243
4314
  }
4244
4315
 
4245
4316
  .mobile-selection-handle-start {
4246
- transform: translate(-50%, -100%);
4317
+ transform: translate(-50%, 0%);
4247
4318
  }
4248
4319
 
4249
4320
  .mobile-selection-handle-end {
@@ -4254,10 +4325,17 @@ body.dragging-tabs .tabs-container {
4254
4325
  width: 100%;
4255
4326
  height: 100%;
4256
4327
  background: var(--accent-primary, #c10059);
4257
- border-radius: 50%;
4258
4328
  border: 2px solid white;
4259
4329
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
4260
- transition: transform 0.15s ease, box-shadow 0.15s ease;
4330
+ transition: transform 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
4331
+ }
4332
+
4333
+ .mobile-selection-handle-start .handle-visual {
4334
+ border-radius: 12px 2px 12px 12px;
4335
+ }
4336
+
4337
+ .mobile-selection-handle-end .handle-visual {
4338
+ border-radius: 2px 12px 12px 12px;
4261
4339
  }
4262
4340
 
4263
4341
  .mobile-selection-handle.active .handle-visual {
@@ -357,7 +357,17 @@
357
357
  </div>
358
358
  <div class="form-group">
359
359
  <label for="connPrivateKey">Private Key (optional)</label>
360
- <textarea id="connPrivateKey" rows="4" placeholder="Paste your private key here..."></textarea>
360
+ <div class="private-key-upload">
361
+ <button type="button" class="btn btn-sm key-upload-btn" id="connKeyUploadBtn" title="Upload key file">
362
+ <i class="fas fa-upload"></i> Upload File
363
+ </button>
364
+ <input type="file" id="connKeyFileInput" accept=".pem,.key,.ppk,.pub,.priv,.id_rsa,.id_ed25519,.id_ecdsa,.id_dsa" style="display:none">
365
+ <span class="key-format-badge" id="connKeyFormatBadge" style="display:none"></span>
366
+ <button type="button" class="btn btn-sm key-clear-btn" id="connKeyClearBtn" style="display:none" title="Clear key">
367
+ <i class="fas fa-times"></i>
368
+ </button>
369
+ </div>
370
+ <textarea id="connPrivateKey" rows="4" placeholder="Paste your private key or upload a file (supports OpenSSH, PEM, PPK, PKCS8)..."></textarea>
361
371
  </div>
362
372
  <div class="form-group">
363
373
  <label for="connPassphrase">Key Passphrase (optional)</label>
@@ -436,7 +446,17 @@
436
446
  </div>
437
447
  <div class="form-group">
438
448
  <label for="bookmarkPrivateKey">Private Key (optional)</label>
439
- <textarea id="bookmarkPrivateKey" rows="4" placeholder="Paste your private key here..."></textarea>
449
+ <div class="private-key-upload">
450
+ <button type="button" class="btn btn-sm key-upload-btn" id="bookmarkKeyUploadBtn" title="Upload key file">
451
+ <i class="fas fa-upload"></i> Upload File
452
+ </button>
453
+ <input type="file" id="bookmarkKeyFileInput" accept=".pem,.key,.ppk,.pub,.priv,.id_rsa,.id_ed25519,.id_ecdsa,.id_dsa" style="display:none">
454
+ <span class="key-format-badge" id="bookmarkKeyFormatBadge" style="display:none"></span>
455
+ <button type="button" class="btn btn-sm key-clear-btn" id="bookmarkKeyClearBtn" style="display:none" title="Clear key">
456
+ <i class="fas fa-times"></i>
457
+ </button>
458
+ </div>
459
+ <textarea id="bookmarkPrivateKey" rows="4" placeholder="Paste your private key or upload a file (supports OpenSSH, PEM, PPK, PKCS8)..."></textarea>
440
460
  </div>
441
461
  <div class="form-group">
442
462
  <label for="bookmarkPassphrase">Key Passphrase (optional)</label>