podmanager 1.0.0 → 1.0.1

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/public/index.html CHANGED
@@ -8,13 +8,11 @@
8
8
  <link rel="icon" type="image/webp" href="/podmanager.webp">
9
9
  </head>
10
10
  <body>
11
- <!-- Accessibility Skip Link -->
11
+
12
12
  <a href="#main-content" class="skip-link">Skip to main content</a>
13
13
 
14
- <!-- Mobile Backdrop Overlay -->
15
14
  <div class="sidebar-backdrop" id="sidebar-backdrop" aria-hidden="true"></div>
16
15
 
17
- <!-- Left Sidebar Navigation -->
18
16
  <aside class="sidebar" id="sidebar" role="navigation" aria-label="Main Navigation">
19
17
  <div class="sidebar-brand">
20
18
  <div style="display:flex; align-items:center; gap:12px;">
@@ -24,7 +22,7 @@
24
22
  <div class="brand-subtitle">Check & Management</div>
25
23
  </div>
26
24
  </div>
27
- <!-- Mobile Close Button -->
25
+
28
26
  <button class="btn-sidebar-close" id="btn-sidebar-close" aria-label="Close navigation sidebar">
29
27
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
30
28
  </button>
@@ -96,11 +94,10 @@
96
94
  </div>
97
95
  </aside>
98
96
 
99
- <!-- Main Container -->
100
97
  <div class="app-container">
101
98
  <header class="top-header">
102
99
  <div class="header-left">
103
- <!-- Mobile Menu Toggle Button -->
100
+
104
101
  <button class="btn btn-secondary btn-icon-only menu-toggle-btn" id="btn-menu-toggle" aria-label="Open navigation menu" aria-expanded="false" aria-controls="sidebar">
105
102
  <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
106
103
  </button>
@@ -108,13 +105,12 @@
108
105
  </div>
109
106
 
110
107
  <div class="header-right">
111
- <!-- Quick Prune (Left of Refresh) -->
108
+
112
109
  <button class="btn btn-secondary btn-header-action" onclick="openModal('prune-modal')" title="Prune System Resources" aria-label="Prune System Resources">
113
110
  <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>
114
111
  <span class="btn-label-desktop">Prune</span>
115
112
  </button>
116
113
 
117
- <!-- Compact Auto Refresh -->
118
114
  <div class="refresh-control" title="Auto-refresh interval">
119
115
  <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>
120
116
  <span class="refresh-label">Refresh:</span>
@@ -128,7 +124,6 @@
128
124
  </select>
129
125
  </div>
130
126
 
131
- <!-- Manual Refresh Button -->
132
127
  <button class="btn btn-secondary btn-icon-only" id="btn-refresh-manual" title="Refresh Now" aria-label="Refresh data">
133
128
  <svg id="refresh-icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21.5 2v6h-6M21.34 15.57a10 10 0 1 1-.57-8.38l5.67-5.67"/></svg>
134
129
  </button>
@@ -137,9 +132,8 @@
137
132
 
138
133
  <main class="main-content" id="main-content" tabindex="-1">
139
134
 
140
- <!-- ================= 1. DASHBOARD VIEW ================= -->
141
135
  <section id="view-dashboard" class="view-section active">
142
- <!-- Metric Cards -->
136
+
143
137
  <div class="metrics-grid">
144
138
  <div class="metric-card running">
145
139
  <div>
@@ -186,9 +180,8 @@
186
180
  </div>
187
181
  </div>
188
182
 
189
- <!-- System & Disk Info Row -->
190
183
  <div class="cards-row">
191
- <!-- Host & Engine Specs -->
184
+
192
185
  <div class="card">
193
186
  <div class="card-header">
194
187
  <div class="card-title">
@@ -231,7 +224,6 @@
231
224
  </div>
232
225
  </div>
233
226
 
234
- <!-- Disk & Storage breakdown -->
235
227
  <div class="card">
236
228
  <div class="card-header">
237
229
  <div class="card-title">
@@ -249,7 +241,6 @@
249
241
 
250
242
  </section>
251
243
 
252
- <!-- ================= 2. CONTAINERS VIEW ================= -->
253
244
  <section id="view-containers" class="view-section">
254
245
  <div class="toolbar">
255
246
  <div class="toolbar-left">
@@ -352,7 +343,6 @@
352
343
  </div>
353
344
  </section>
354
345
 
355
- <!-- ================= 3. PODS VIEW ================= -->
356
346
  <section id="view-pods" class="view-section">
357
347
  <div class="toolbar">
358
348
  <div class="toolbar-left">
@@ -441,7 +431,6 @@
441
431
  </div>
442
432
  </section>
443
433
 
444
- <!-- ================= 4. IMAGES VIEW ================= -->
445
434
  <section id="view-images" class="view-section">
446
435
  <div class="toolbar">
447
436
  <div class="toolbar-left">
@@ -519,7 +508,6 @@
519
508
  </div>
520
509
  </section>
521
510
 
522
- <!-- ================= 5. VOLUMES VIEW ================= -->
523
511
  <section id="view-volumes" class="view-section">
524
512
  <div class="toolbar">
525
513
  <div class="toolbar-left">
@@ -578,7 +566,6 @@
578
566
  </div>
579
567
  </section>
580
568
 
581
- <!-- ================= 6. NETWORKS VIEW ================= -->
582
569
  <section id="view-networks" class="view-section">
583
570
  <div class="toolbar">
584
571
  <div class="toolbar-left">
@@ -641,7 +628,6 @@
641
628
  </div>
642
629
  </section>
643
630
 
644
- <!-- ================= 7. LIVE EVENTS VIEW ================= -->
645
631
  <section id="view-events" class="view-section">
646
632
  <div class="toolbar">
647
633
  <div class="toolbar-left">
@@ -672,9 +658,6 @@
672
658
  </main>
673
659
  </div>
674
660
 
675
- <!-- ================= MODALS ================= -->
676
-
677
- <!-- Modal: Run / Create Container -->
678
661
  <div class="modal-overlay" id="create-container-modal">
679
662
  <div class="modal-container large">
680
663
  <div class="modal-header">
@@ -742,7 +725,6 @@
742
725
  </div>
743
726
  </div>
744
727
 
745
- <!-- Modal: Create Pod -->
746
728
  <div class="modal-overlay" id="create-pod-modal">
747
729
  <div class="modal-container">
748
730
  <div class="modal-header">
@@ -771,7 +753,6 @@
771
753
  </div>
772
754
  </div>
773
755
 
774
- <!-- Modal: Pull Image -->
775
756
  <div class="modal-overlay" id="pull-image-modal">
776
757
  <div class="modal-container">
777
758
  <div class="modal-header">
@@ -797,7 +778,6 @@
797
778
  </div>
798
779
  </div>
799
780
 
800
- <!-- Modal: Create Volume -->
801
781
  <div class="modal-overlay" id="create-volume-modal">
802
782
  <div class="modal-container">
803
783
  <div class="modal-header">
@@ -825,7 +805,6 @@
825
805
  </div>
826
806
  </div>
827
807
 
828
- <!-- Modal: Create Network -->
829
808
  <div class="modal-overlay" id="create-network-modal">
830
809
  <div class="modal-container">
831
810
  <div class="modal-header">
@@ -867,7 +846,6 @@
867
846
  </div>
868
847
  </div>
869
848
 
870
- <!-- Modal: Inspect JSON -->
871
849
  <div class="modal-overlay" id="inspect-modal">
872
850
  <div class="modal-container xlarge">
873
851
  <div class="modal-header">
@@ -893,7 +871,6 @@
893
871
  </div>
894
872
  </div>
895
873
 
896
- <!-- Modal: Container Logs Viewer -->
897
874
  <div class="modal-overlay" id="logs-modal">
898
875
  <div class="modal-container xlarge">
899
876
  <div class="modal-header">
@@ -936,7 +913,6 @@
936
913
  </div>
937
914
  </div>
938
915
 
939
- <!-- Modal: Exec Command -->
940
916
  <div class="modal-overlay" id="exec-modal">
941
917
  <div class="modal-container large">
942
918
  <div class="modal-header">
@@ -961,7 +937,6 @@
961
937
  </div>
962
938
  </div>
963
939
 
964
- <!-- Modal: Prune System -->
965
940
  <div class="modal-overlay" id="prune-modal">
966
941
  <div class="modal-container">
967
942
  <div class="modal-header">
@@ -1015,13 +990,10 @@
1015
990
  </div>
1016
991
  </div>
1017
992
 
1018
- <!-- Floating Action Menu Portal (Rendered at root to prevent overflow clipping & auto-refresh destruction) -->
1019
993
  <div id="floating-action-dropdown" class="floating-action-menu" role="menu" aria-label="Item Actions" style="display:none;"></div>
1020
994
 
1021
- <!-- Toast Container -->
1022
995
  <div id="toast-container"></div>
1023
996
 
1024
- <!-- Scripts -->
1025
997
  <script src="/js/api.js"></script>
1026
998
  <script src="/js/app.js"></script>
1027
999
  </body>
package/public/js/api.js CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * Podman Web UI API Client
3
- */
4
1
  const API = {
5
2
  async request(endpoint, options = {}) {
6
3
  const defaultHeaders = {
@@ -41,7 +38,6 @@ const API = {
41
38
  }
42
39
  },
43
40
 
44
- // System
45
41
  getSystemInfo() {
46
42
  return this.request('/api/system/info');
47
43
  },
@@ -52,7 +48,6 @@ const API = {
52
48
  return this.request('/api/system/prune', { method: 'POST', body: { type } });
53
49
  },
54
50
 
55
- // Containers
56
51
  getContainers(all = true) {
57
52
  return this.request(`/api/containers?all=${all}`);
58
53
  },
@@ -90,7 +85,6 @@ const API = {
90
85
  return this.request(`/api/containers/${id}/exec`, { method: 'POST', body: { command, workdir } });
91
86
  },
92
87
 
93
- // Pods
94
88
  getPods() {
95
89
  return this.request('/api/pods');
96
90
  },
@@ -113,7 +107,6 @@ const API = {
113
107
  return this.request(`/api/pods/${id}?force=${force}`, { method: 'DELETE' });
114
108
  },
115
109
 
116
- // Images
117
110
  getImages() {
118
111
  return this.request('/api/images');
119
112
  },
@@ -127,7 +120,6 @@ const API = {
127
120
  return this.request(`/api/images/${id}?force=${force}`, { method: 'DELETE' });
128
121
  },
129
122
 
130
- // Volumes
131
123
  getVolumes() {
132
124
  return this.request('/api/volumes');
133
125
  },
@@ -141,7 +133,6 @@ const API = {
141
133
  return this.request(`/api/volumes/${encodeURIComponent(name)}?force=${force}`, { method: 'DELETE' });
142
134
  },
143
135
 
144
- // Networks
145
136
  getNetworks() {
146
137
  return this.request('/api/networks');
147
138
  },
@@ -155,7 +146,6 @@ const API = {
155
146
  return this.request(`/api/networks/${encodeURIComponent(name)}`, { method: 'DELETE' });
156
147
  },
157
148
 
158
- // Events
159
149
  getEvents(since = '24h') {
160
150
  return this.request(`/api/events?since=${encodeURIComponent(since)}`);
161
151
  }