-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
361 lines (323 loc) · 8.62 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Script Watcher</title>
<!-- Include Font Awesome for icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<!-- Include Custom CSS -->
<style>
/* Color Variables for Dark Theme */
:root {
--primary-bg-color: #313335; /* Dark gray background */
--secondary-bg-color: #2b2b2b; /* Sidebar background */
--text-color: #d6d6d6; /* Light text color */
--accent-color: #0098ff; /* Bright accent color */
--hover-bg-color: #3e4042; /* Hover state background */
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--primary-bg-color);
color: var(--text-color);
}
/* Sidebar Styling */
#sidebar {
position: fixed;
top: 0;
bottom: 0;
width: 80px;
background-color: var(--secondary-bg-color);
display: flex;
flex-direction: column;
align-items: center;
padding-top: 20px;
}
.sidebar-item {
width: 100%;
padding: 15px 0;
color: var(--text-color);
text-align: center;
cursor: pointer;
transition: background-color 0.3s;
}
.sidebar-item.active,
.sidebar-item:hover {
background-color: var(--hover-bg-color);
}
.sidebar-item i {
font-size: 24px;
}
.sidebar-item span {
display: block;
font-size: 12px;
margin-top: 5px;
}
/* Main Content Area */
#main-content {
margin-left: 80px; /* Same as sidebar width */
padding: 20px;
background-color: var(--primary-bg-color);
/*height: 100vh; */
height: calc(100vh - 40px);
overflow-y: auto;
}
/* Process Table Styling */
.process-table {
width: 100%;
border-collapse: collapse;
color: var(--text-color);
}
.process-table th,
.process-table td {
padding: 12px 15px;
border-bottom: 1px solid #4d4d4d;
}
.process-table th {
background-color: var(--secondary-bg-color);
text-align: left;
}
.process-table tr:hover {
background-color: var(--hover-bg-color);
}
.process-table input[type='checkbox'] {
transform: scale(1.2);
}
/* Window Controls */
.window-controls {
position: fixed;
top: 0;
right: 0;
display: flex;
background-color: var(--secondary-bg-color);
}
.window-controls button {
background: none;
border: none;
color: var(--text-color);
padding: 10px;
cursor: pointer;
}
.window-controls button:hover {
background-color: var(--hover-bg-color);
}
.window-controls i {
font-size: 12px;
}
/* Notification Styling */
.notification {
position: fixed;
bottom: 20px;
right: 20px;
background-color: var(--secondary-bg-color);
color: var(--text-color);
padding: 15px 20px;
border-radius: 5px;
display: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.notification.show {
display: block;
animation:
fadeIn 0.3s,
fadeOut 0.3s 4.7s;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
/* Preferences Styling */
.preferences-container {
max-width: 600px;
margin: 0 auto;
}
.preference-group {
margin-bottom: 20px;
}
.preference-label {
display: flex;
align-items: center;
cursor: pointer;
}
.preference-label input[type='checkbox'] {
margin-right: 10px;
}
input[type='text'] {
width: 100%;
padding: 10px;
background-color: var(--secondary-bg-color);
border: 1px solid #555;
border-radius: 5px;
color: var(--text-color);
}
.save-button {
padding: 10px 20px;
background-color: var(--accent-color);
border: none;
border-radius: 5px;
color: var(--primary-bg-color);
cursor: pointer;
}
.save-button:hover {
background-color: #007acc;
}
/* Search Bar Styling */
.search-container {
position: relative;
margin-bottom: 20px;
max-width: 100%;
}
#filter-input {
width: 100%;
padding: 10px 35px 10px 10px;
border: 1px solid #555;
border-radius: 5px;
background-color: var(--secondary-bg-color);
color: var(--text-color);
box-sizing: border-box;
}
.search-icon {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: #a9b7c6;
pointer-events: none;
}
/* Tab Content Animations */
.tab-content {
opacity: 0;
transform: translateY(20px);
transition:
opacity 0.3s ease,
transform 0.3s ease;
}
.tab-content.active {
opacity: 1;
transform: translateY(0);
}
</style>
</head>
<body>
<!-- Sidebar Navigation -->
<div id="sidebar">
<div
class="sidebar-item active"
data-tab="processes"
aria-label="Processes"
role="button"
tabindex="0"
>
<i class="fas fa-tasks"></i>
<span>Processes</span>
</div>
<div
class="sidebar-item"
data-tab="preferences"
aria-label="Preferences"
role="button"
tabindex="0"
>
<i class="fas fa-cog"></i>
<span>Preferences</span>
</div>
<!-- Add Quit App Button -->
<div
class="sidebar-item"
id="quit-app-button"
aria-label="Quit App"
role="button"
tabindex="0"
>
<i class="fas fa-power-off"></i>
<span>Quit App</span>
</div>
</div>
<!-- Main Content Area -->
<div id="main-content">
<!-- Remove or comment out this block -->
<!--
<div class="window-controls">
<button id="minimize-button"><i class="fas fa-window-minimize"></i></button>
<button id="maximize-button"><i class="fas fa-window-maximize"></i></button>
<button id="close-button"><i class="fas fa-times"></i></button>
</div>
-->
<!-- Processes Tab Content -->
<div class="tab-content active" id="processes-tab">
<div class="search-container">
<input
type="text"
id="filter-input"
placeholder="Filter by name..."
/>
<i class="fas fa-search search-icon"></i>
</div>
<table class="process-table">
<thead>
<tr>
<th></th>
<th>PID</th>
<th>Name</th>
<th>Command</th>
</tr>
</thead>
<tbody id="process-table-body">
<!-- Process rows will be dynamically inserted here -->
</tbody>
</table>
</div>
<!-- Preferences Tab Content -->
<div class="tab-content" id="preferences-tab" style="display: none">
<div class="preferences-container">
<h2>Preferences</h2>
<div class="preference-group">
<label class="preference-label">
<input type="checkbox" id="autoLaunch" />
Start at Login
</label>
</div>
<div class="preference-group">
<label for="prefilterRegex">Process Name Filter (Regex):</label>
<input
type="text"
id="prefilterRegex"
placeholder="Enter regex pattern"
/>
</div>
<button
id="savePreferences"
class="save-button"
aria-label="Save Preferences"
>
Save
</button>
</div>
</div>
</div>
<!-- Notification Container -->
<div id="notification" class="notification" role="alert">
<p id="notification-message"></p>
</div>
<!-- Include renderer.js -->
<script src="renderer.js"></script>
</body>
</html>