peerpigeon 0.0.7 → 0.1.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.
@@ -82,21 +82,68 @@ main {
82
82
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
83
83
  }
84
84
 
85
- .connected-peers {
85
+ /* Base styles for all collapsible sections */
86
+ .discovered-peers,
87
+ .connected-peers,
88
+ .manual-connection,
89
+ .settings,
90
+ .media,
91
+ .dht,
92
+ .crypto,
93
+ .storage {
86
94
  background: white;
87
95
  padding: 20px;
88
96
  border-radius: 8px;
89
97
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
90
- display: flex;
91
- flex-direction: column;
92
- min-height: 300px;
98
+ margin-bottom: 20px;
99
+ }
100
+
101
+ /* Individual section color schemes */
102
+ .discovered-peers {
103
+ border-left: 4px solid #3498db;
104
+ }
105
+
106
+ .discovered-peers .section-header h2 {
107
+ color: #3498db;
108
+ border-bottom: 2px solid #3498db;
109
+ padding-bottom: 8px;
110
+ margin-bottom: 20px;
111
+ font-size: 1.1em;
112
+ font-weight: 600;
113
+ }
114
+
115
+ .discovered-peers .toggle-btn {
116
+ color: #3498db;
117
+ }
118
+
119
+ .discovered-peers .toggle-btn:hover {
120
+ color: #2980b9;
121
+ }
122
+
123
+ .connected-peers {
124
+ border-left: 4px solid #2ecc71;
93
125
  }
94
126
 
127
+ .connected-peers .section-header h2 {
128
+ color: #2ecc71;
129
+ border-bottom: 2px solid #2ecc71;
130
+ padding-bottom: 8px;
131
+ margin-bottom: 20px;
132
+ font-size: 1.1em;
133
+ font-weight: 600;
134
+ }
135
+
136
+ .connected-peers .toggle-btn {
137
+ color: #2ecc71;
138
+ }
139
+
140
+ .connected-peers .toggle-btn:hover {
141
+ color: #27ae60;
142
+ }
143
+
144
+ /* General h2 styling - overridden by specific section styles */
95
145
  h2 {
96
146
  margin-bottom: 15px;
97
- color: #2c3e50;
98
- border-bottom: 2px solid #ecf0f1;
99
- padding-bottom: 5px;
100
147
  }
101
148
 
102
149
  .info-group,
@@ -112,7 +159,9 @@ label {
112
159
  }
113
160
 
114
161
  input[type="text"],
115
- input[type="url"] {
162
+ input[type="url"],
163
+ input[type="number"],
164
+ textarea {
116
165
  width: 100%;
117
166
  padding: 10px;
118
167
  border: 2px solid #ecf0f1;
@@ -120,10 +169,13 @@ input[type="url"] {
120
169
  font-size: 14px;
121
170
  color: #333;
122
171
  transition: border-color 0.3s;
172
+ font-family: inherit;
123
173
  }
124
174
 
125
175
  input[type="text"]:focus,
126
- input[type="url"]:focus {
176
+ input[type="url"]:focus,
177
+ input[type="number"]:focus,
178
+ textarea:focus {
127
179
  outline: none;
128
180
  border-color: #3498db;
129
181
  }
@@ -434,23 +486,55 @@ input[type="url"]:focus {
434
486
  }
435
487
 
436
488
  .manual-connection {
437
- background: white;
438
- padding: 20px;
439
- border-radius: 8px;
440
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
441
489
  border-left: 4px solid #e74c3c;
442
490
  }
443
491
 
444
- .manual-connection h2 {
492
+ .manual-connection .section-header h2 {
493
+ color: #e74c3c;
494
+ border-bottom: 2px solid #e74c3c;
495
+ padding-bottom: 8px;
496
+ margin-bottom: 20px;
497
+ font-size: 1.1em;
498
+ font-weight: 600;
499
+ }
500
+
501
+ .manual-connection .toggle-btn {
445
502
  color: #e74c3c;
446
503
  }
447
504
 
505
+ .manual-connection .toggle-btn:hover {
506
+ color: #c0392b;
507
+ }
508
+
509
+ .settings {
510
+ border-left: 4px solid #95a5a6;
511
+ }
512
+
513
+ .settings .section-header h2 {
514
+ color: #95a5a6;
515
+ border-bottom: 2px solid #95a5a6;
516
+ padding-bottom: 8px;
517
+ margin-bottom: 20px;
518
+ font-size: 1.1em;
519
+ font-weight: 600;
520
+ }
521
+
522
+ .settings .toggle-btn {
523
+ color: #95a5a6;
524
+ }
525
+
526
+ .settings .toggle-btn:hover {
527
+ color: #7f8c8d;
528
+ }
529
+
448
530
  /* Make collapsed sections compact line items */
449
531
  .discovered-peers[aria-expanded="false"],
450
532
  .settings[aria-expanded="false"],
451
533
  .manual-connection[aria-expanded="false"],
452
534
  .connected-peers[aria-expanded="false"],
453
535
  .dht[aria-expanded="false"],
536
+ .crypto[aria-expanded="false"],
537
+ .storage[aria-expanded="false"],
454
538
  .media[aria-expanded="false"] {
455
539
  background: none !important;
456
540
  border: none !important;
@@ -467,23 +551,23 @@ input[type="url"]:focus {
467
551
  .connected-peers[aria-expanded="false"] .section-header,
468
552
  .dht[aria-expanded="false"] .section-header,
469
553
  .crypto[aria-expanded="false"] .section-header,
554
+ .storage[aria-expanded="false"] .section-header,
470
555
  .media[aria-expanded="false"] .section-header {
471
556
  margin: 0;
472
557
  padding: 0;
473
558
  }
474
559
 
475
- .discovered-peers[aria-expanded="false"] h2,
476
- .settings[aria-expanded="false"] h2,
477
- .manual-connection[aria-expanded="false"] h2,
478
- .connected-peers[aria-expanded="false"] h2,
479
- .dht[aria-expanded="false"] h2,
480
- .crypto[aria-expanded="false"] h2,
481
- .media[aria-expanded="false"] h2 {
482
- border-bottom: none !important;
483
- margin: 0 !important;
484
- padding: 2px 0 !important;
560
+ /* Collapsed sections preserve their colors but are more compact */
561
+ .discovered-peers[aria-expanded="false"] .toggle-btn,
562
+ .settings[aria-expanded="false"] .toggle-btn,
563
+ .manual-connection[aria-expanded="false"] .toggle-btn,
564
+ .connected-peers[aria-expanded="false"] .toggle-btn,
565
+ .media[aria-expanded="false"] .toggle-btn,
566
+ .dht[aria-expanded="false"] .toggle-btn,
567
+ .crypto[aria-expanded="false"] .toggle-btn,
568
+ .storage[aria-expanded="false"] .toggle-btn {
485
569
  font-size: 0.9em !important;
486
- color: #666 !important;
570
+ padding: 2px 8px !important;
487
571
  }
488
572
 
489
573
  /* Toggle functionality styles */
@@ -492,15 +576,6 @@ input[type="url"]:focus {
492
576
  margin: 10px 0 5px 0;
493
577
  }
494
578
 
495
- .section-header h2 {
496
- display: flex;
497
- align-items: center;
498
- gap: 8px;
499
- margin: 0;
500
- font-size: 1.1em;
501
- font-weight: 600;
502
- }
503
-
504
579
  .toggle-btn {
505
580
  background: none;
506
581
  border: none;
@@ -799,18 +874,26 @@ input[type="url"]:focus {
799
874
 
800
875
  /* Media Controls Styles */
801
876
  .media {
802
- background: white;
803
- padding: 20px;
804
- border-radius: 8px;
805
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
806
- margin-bottom: 20px;
807
877
  border-left: 4px solid #f39c12;
808
878
  }
809
879
 
810
- .media h2 {
880
+ .media .section-header h2 {
881
+ color: #f39c12;
882
+ border-bottom: 2px solid #f39c12;
883
+ padding-bottom: 8px;
884
+ margin-bottom: 20px;
885
+ font-size: 1.1em;
886
+ font-weight: 600;
887
+ }
888
+
889
+ .media .toggle-btn {
811
890
  color: #f39c12;
812
891
  }
813
892
 
893
+ .media .toggle-btn:hover {
894
+ color: #e67e22;
895
+ }
896
+
814
897
  .media-controls {
815
898
  background: white;
816
899
  border-radius: 8px;
@@ -1003,18 +1086,26 @@ input[type="url"]:focus {
1003
1086
 
1004
1087
  /* DHT Styles */
1005
1088
  .dht {
1006
- background: white;
1007
- padding: 20px;
1008
- border-radius: 8px;
1009
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
1010
- margin-bottom: 20px;
1011
1089
  border-left: 4px solid #9b59b6;
1012
1090
  }
1013
1091
 
1014
- .dht h2 {
1092
+ .dht .section-header h2 {
1093
+ color: #9b59b6;
1094
+ border-bottom: 2px solid #9b59b6;
1095
+ padding-bottom: 8px;
1096
+ margin-bottom: 20px;
1097
+ font-size: 1.1em;
1098
+ font-weight: 600;
1099
+ }
1100
+
1101
+ .dht .toggle-btn {
1015
1102
  color: #9b59b6;
1016
1103
  }
1017
1104
 
1105
+ .dht .toggle-btn:hover {
1106
+ color: #8e44ad;
1107
+ }
1108
+
1018
1109
  .dht-actions {
1019
1110
  margin-bottom: 20px;
1020
1111
  padding: 15px;
@@ -1291,7 +1382,24 @@ input[type="url"]:focus {
1291
1382
 
1292
1383
  /* Crypto Section Styles */
1293
1384
  .crypto {
1294
- margin-bottom: 30px;
1385
+ border-left: 4px solid #e67e22;
1386
+ }
1387
+
1388
+ .crypto .section-header h2 {
1389
+ color: #e67e22;
1390
+ border-bottom: 2px solid #e67e22;
1391
+ padding-bottom: 8px;
1392
+ margin-bottom: 20px;
1393
+ font-size: 1.1em;
1394
+ font-weight: 600;
1395
+ }
1396
+
1397
+ .crypto .toggle-btn {
1398
+ color: #e67e22;
1399
+ }
1400
+
1401
+ .crypto .toggle-btn:hover {
1402
+ color: #d35400;
1295
1403
  }
1296
1404
 
1297
1405
  .crypto-status .info-group {
@@ -1502,3 +1610,127 @@ input[type="url"]:focus {
1502
1610
  max-width: 200px;
1503
1611
  }
1504
1612
  }
1613
+
1614
+ /* Distributed Storage Styles */
1615
+ .storage {
1616
+ border-left: 4px solid #17a2b8;
1617
+ }
1618
+
1619
+ .storage .section-header h2 {
1620
+ color: #17a2b8;
1621
+ border-bottom: 2px solid #17a2b8;
1622
+ padding-bottom: 8px;
1623
+ margin-bottom: 20px;
1624
+ font-size: 1.1em;
1625
+ font-weight: 600;
1626
+ }
1627
+
1628
+ .storage .toggle-btn {
1629
+ color: #17a2b8;
1630
+ }
1631
+
1632
+ .storage .toggle-btn:hover {
1633
+ color: #138496;
1634
+ }
1635
+
1636
+ .storage-status {
1637
+ background: #f8f9fa;
1638
+ padding: 15px;
1639
+ border-radius: 6px;
1640
+ margin-bottom: 20px;
1641
+ }
1642
+
1643
+ .storage-controls {
1644
+ margin-bottom: 20px;
1645
+ }
1646
+
1647
+ .storage-operations {
1648
+ margin-bottom: 20px;
1649
+ }
1650
+
1651
+ .storage-options {
1652
+ background: #f8f9fa;
1653
+ padding: 15px;
1654
+ border-radius: 6px;
1655
+ margin: 15px 0;
1656
+ }
1657
+
1658
+ .storage-options h4 {
1659
+ margin-bottom: 15px;
1660
+ color: #495057;
1661
+ }
1662
+
1663
+ .storage-retrieve {
1664
+ margin-bottom: 20px;
1665
+ }
1666
+
1667
+ .storage-access {
1668
+ margin-bottom: 20px;
1669
+ background: #fff3cd;
1670
+ padding: 15px;
1671
+ border-radius: 6px;
1672
+ border-left: 4px solid #ffc107;
1673
+ }
1674
+
1675
+ .storage-access h3 {
1676
+ color: #856404;
1677
+ margin-bottom: 15px;
1678
+ }
1679
+
1680
+ .storage-bulk {
1681
+ margin-bottom: 20px;
1682
+ background: #f8d7da;
1683
+ padding: 15px;
1684
+ border-radius: 6px;
1685
+ border-left: 4px solid #dc3545;
1686
+ }
1687
+
1688
+ .storage-bulk h3 {
1689
+ color: #721c24;
1690
+ margin-bottom: 15px;
1691
+ }
1692
+
1693
+ .storage-search {
1694
+ margin-bottom: 20px;
1695
+ }
1696
+
1697
+ .storage-backup {
1698
+ margin-bottom: 20px;
1699
+ background: #d1ecf1;
1700
+ padding: 15px;
1701
+ border-radius: 6px;
1702
+ border-left: 4px solid #0dcaf0;
1703
+ }
1704
+
1705
+ .storage-backup h3 {
1706
+ color: #055160;
1707
+ margin-bottom: 15px;
1708
+ }
1709
+
1710
+ .storage-results {
1711
+ margin-top: 20px;
1712
+ }
1713
+
1714
+ .storage-log {
1715
+ background: #f8f9fa;
1716
+ border: 1px solid #dee2e6;
1717
+ border-radius: 6px;
1718
+ padding: 15px;
1719
+ height: 200px;
1720
+ overflow-y: auto;
1721
+ font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
1722
+ font-size: 0.9em;
1723
+ line-height: 1.4;
1724
+ }
1725
+
1726
+ .storage-log .log-entry {
1727
+ margin-bottom: 5px;
1728
+ padding: 2px 0;
1729
+ word-wrap: break-word;
1730
+ }
1731
+
1732
+ .storage-log:empty::before {
1733
+ content: "No storage operations yet...";
1734
+ color: #6c757d;
1735
+ font-style: italic;
1736
+ }