Skip to content

Commit 208a6fe

Browse files
author
Tom Softreck
committed
update
1 parent b1d4d79 commit 208a6fe

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
![webtask-logo.svg](webtask-logo.svg)
2+
13
# webtask 🖥️
24

35
webtask python package to start web top version in browser, [kill] like a pro!
46

57

68
A modern, web-based system monitor inspired by htop with advanced file browsing, process transparency layers, and miniature file previews. Monitor your system processes through a sleek terminal-style web interface with real-time updates and comprehensive process management capabilities.
79

8-
![webtask-logo.svg](webtask-logo.svg)
910

1011
## ✨ Features
1112

@@ -53,6 +54,9 @@ A modern, web-based system monitor inspired by htop with advanced file browsing,
5354

5455
## 🚀 Quick Start
5556

57+
58+
![webtask-grid.png](webtask-grid.png)
59+
5660
### Installation
5761

5862
```bash
@@ -84,7 +88,6 @@ webtask --no-browser
8488
# Check version
8589
webtask --version
8690
```
87-
8891
### Alternative Installation
8992

9093
Using Poetry (for development):
@@ -260,12 +263,11 @@ Made with ❤️ for system administrators and developers who love comprehensive
260263

261264
### webtask-2
262265

266+
263267
#### List
264268
![webtask-list.png](webtask-list.png)
265269

266270

267-
#### Grid
268-
![webtask-grid.png](webtask-grid.png)
269271

270272

271273
### webtask-1

webtask-grid.png

95.5 KB
Loading

webtask/static/js/modules/ui-manager.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ class UIManager {
176176

177177
row.innerHTML = `
178178
<div class="process-card-header">
179-
<div class="process-command-display">${commandWithIcon}</div>
180179
<div class="process-actions">
181180
<div class="action-buttons">
182181
<button class="kill-button" data-pid="${process.pid}" title="Kill Process">
@@ -188,8 +187,11 @@ class UIManager {
188187
<button class="restart-button" data-pid="${process.pid}" title="Restart Process">
189188
<span class="restart-icon">↻</span>
190189
</button>
191-
<button class="more-button" data-pid="${process.pid}" title="More Actions">
192-
<span class="more-icon">⋮</span>
190+
<button class="stop-button" data-pid="${process.pid}" title="Stop Process">
191+
<span class="stop-icon">⏹</span>
192+
</button>
193+
<button class="info-button" data-pid="${process.pid}" title="Process Info">
194+
<span class="info-icon">ℹ</span>
193195
</button>
194196
</div>
195197
</div>
@@ -244,6 +246,7 @@ class UIManager {
244246
generateCommandWithIcon(process) {
245247
let iconHtml = '';
246248
const command = process.command || '';
249+
const path = process.path || '';
247250

248251
// Determine the type of icon based on the process service or command
249252
if (process.service === 'nginx') {
@@ -268,7 +271,13 @@ class UIManager {
268271
iconHtml = '<span class="command-icon process-icon">PROC</span>';
269272
}
270273

271-
return `<div class="command-with-icon">${iconHtml} <span class="command-text">${command}</span></div>`;
274+
return `<div class="command-with-icon">
275+
${iconHtml}
276+
<div class="command-details">
277+
<span class="command-text">${command}</span>
278+
<span class="command-path">${path}</span>
279+
</div>
280+
</div>`;
272281
}
273282

274283
/**

webtask/static/styles.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,23 @@ border-color: #555;
248248
max-width: calc(100% - 80px);
249249
}
250250

251+
.command-details {
252+
display: flex;
253+
flex-direction: column;
254+
gap: 2px;
255+
}
256+
257+
.command-text {
258+
font-weight: bold;
259+
color: #00ffff;
260+
}
261+
262+
.command-path {
263+
font-size: 11px;
264+
color: #aaaaaa;
265+
opacity: 0.8;
266+
}
267+
251268
.process-card-body {
252269
display: flex;
253270
flex-direction: column;

0 commit comments

Comments
 (0)