-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
550 lines (479 loc) · 12.8 KB
/
index.html
File metadata and controls
550 lines (479 loc) · 12.8 KB
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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TaskFlow - Lightweight Self-Hosted Task Scheduler</title>
<meta name="description" content="TaskFlow is a lightweight, self-hosted task scheduler with cron-like scheduling, real-time logs, and a clean web interface. Single binary deployment.">
<style>
/* TaskFlow Landing Page - W3Techs Style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--blue-light: #bcd4ec;
--blue-header: #99c2e5;
--blue-nav: #cce0f0;
--blue-accent: #6699cc;
--gray-border: #999999;
--gray-light: #cccccc;
--gray-row: #f4f4f4;
--white: #ffffff;
--black: #000000;
--text-dark: #333333;
--link-blue: #0066cc;
}
html {
font-size: 13px;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
line-height: 1.5;
color: var(--text-dark);
background-color: var(--white);
}
a {
color: var(--link-blue);
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
/* Top Border */
.top-border {
height: 3px;
background: linear-gradient(to right, var(--blue-accent), var(--blue-light));
}
/* Header */
.site-header {
background-color: var(--white);
border-bottom: 1px solid var(--gray-border);
}
.header-container {
max-width: 1100px;
margin: 0 auto;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 22px;
font-weight: bold;
color: var(--text-dark);
text-decoration: none;
}
.logo:hover {
text-decoration: none;
}
.header-nav {
display: flex;
gap: 20px;
}
.header-nav a {
color: var(--text-dark);
text-decoration: none;
font-size: 13px;
}
.header-nav a:hover {
text-decoration: underline;
}
/* Hero Section */
.hero {
background-color: var(--blue-light);
border-bottom: 1px solid var(--gray-border);
padding: 40px 20px;
text-align: center;
}
.hero-container {
max-width: 800px;
margin: 0 auto;
}
.hero h1 {
font-size: 28px;
font-weight: bold;
color: var(--text-dark);
margin-bottom: 15px;
}
.hero p {
font-size: 15px;
color: var(--text-dark);
margin-bottom: 25px;
}
.hero-buttons {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
.btn {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
padding: 8px 20px;
border: 1px solid var(--gray-border);
background-color: var(--white);
color: var(--text-dark);
cursor: pointer;
text-decoration: none;
display: inline-block;
}
.btn:hover {
background-color: var(--gray-row);
text-decoration: none;
}
.btn-primary {
background-color: var(--blue-accent);
border-color: var(--blue-accent);
color: var(--white);
}
.btn-primary:hover {
background-color: #5588bb;
}
/* Main Content */
.main-container {
max-width: 1100px;
margin: 0 auto;
padding: 30px 20px;
}
/* Screenshot Section */
.screenshot-section {
margin-bottom: 40px;
}
.screenshot-section h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid var(--gray-border);
}
.screenshot-wrapper {
border: 1px solid var(--gray-border);
padding: 10px;
background-color: var(--gray-row);
}
.screenshot-wrapper img {
width: 100%;
height: auto;
display: block;
border: 1px solid var(--gray-light);
}
/* Features Section */
.features-section {
margin-bottom: 40px;
}
.features-section h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid var(--gray-border);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.feature-box {
border: 1px solid var(--gray-border);
background-color: var(--white);
}
.feature-header {
background-color: var(--blue-light);
padding: 10px 15px;
font-weight: bold;
border-bottom: 1px solid var(--gray-border);
}
.feature-body {
padding: 15px;
font-size: 12px;
}
.feature-body ul {
margin: 0;
padding-left: 18px;
}
.feature-body li {
margin-bottom: 6px;
}
/* Quick Start Section */
.quickstart-section {
margin-bottom: 40px;
}
.quickstart-section h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid var(--gray-border);
}
.code-block {
background-color: #fafafa;
border: 1px solid var(--gray-border);
padding: 15px;
font-family: "Courier New", monospace;
font-size: 12px;
overflow-x: auto;
margin-bottom: 15px;
}
.code-block code {
display: block;
white-space: pre;
}
.code-comment {
color: #666666;
}
.code-command {
color: var(--text-dark);
}
/* Info Table */
.info-table {
border-collapse: collapse;
width: 100%;
margin: 15px 0;
font-size: 12px;
}
.info-table th,
.info-table td {
border: 1px solid var(--gray-border);
padding: 8px 12px;
text-align: left;
}
.info-table th {
background-color: var(--blue-header);
font-weight: normal;
}
.info-table tbody tr:nth-child(odd) {
background-color: var(--white);
}
.info-table tbody tr:nth-child(even) {
background-color: var(--gray-row);
}
/* Tech Stack */
.tech-section {
margin-bottom: 40px;
}
.tech-section h2 {
font-size: 18px;
font-weight: bold;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid var(--gray-border);
}
.tech-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.tech-item {
border: 1px solid var(--gray-border);
padding: 15px;
text-align: center;
background-color: var(--white);
}
.tech-item strong {
display: block;
margin-bottom: 5px;
}
.tech-item span {
font-size: 11px;
color: #666666;
}
/* Footer */
.site-footer {
background-color: var(--gray-row);
border-top: 1px solid var(--gray-border);
padding: 20px;
text-align: center;
font-size: 11px;
color: #666666;
}
.footer-links {
margin-bottom: 10px;
}
.footer-links a {
margin: 0 10px;
}
/* Responsive */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
gap: 15px;
}
.hero h1 {
font-size: 22px;
}
.hero p {
font-size: 13px;
}
.features-grid {
grid-template-columns: 1fr;
}
.tech-grid {
grid-template-columns: repeat(2, 1fr);
}
}
</style>
</head>
<body>
<div class="top-border"></div>
<header class="site-header">
<div class="header-container">
<a href="/" class="logo">TaskFlow</a>
<nav class="header-nav">
<a href="#features">Features</a>
<a href="#quickstart">Quick Start</a>
<a href="https://github.com/muthuspark/taskflow">GitHub</a>
</nav>
</div>
</header>
<section class="hero">
<div class="hero-container">
<h1>Lightweight Self-Hosted Task Scheduler</h1>
<p>Schedule and execute tasks with cron-like scheduling, real-time log streaming, and resource monitoring. Single binary deployment with SQLite storage.</p>
<div class="hero-buttons">
<a href="https://github.com/muthuspark/taskflow/releases" class="btn btn-primary">Download</a>
<a href="https://github.com/muthuspark/taskflow" class="btn">View on GitHub</a>
</div>
</div>
</section>
<main class="main-container">
<section class="screenshot-section">
<h2>Interface Preview</h2>
<div class="screenshot-wrapper">
<img src="image.png" alt="TaskFlow Dashboard showing job list and execution history">
</div>
</section>
<section id="features" class="features-section">
<h2>Features</h2>
<div class="features-grid">
<div class="feature-box">
<div class="feature-header">Job Scheduling</div>
<div class="feature-body">
<ul>
<li>Flexible cron-like scheduling</li>
<li>Timezone support per job</li>
<li>Timeout and retry configuration</li>
<li>Sequential execution queue</li>
</ul>
</div>
</div>
<div class="feature-box">
<div class="feature-header">Script Execution</div>
<div class="feature-body">
<ul>
<li>Bash script execution</li>
<li>Real-time log streaming via WebSocket</li>
<li>Exit code tracking</li>
<li>Automatic log retention</li>
</ul>
</div>
</div>
<div class="feature-box">
<div class="feature-header">Monitoring</div>
<div class="feature-body">
<ul>
<li>CPU and memory metrics</li>
<li>Execution history</li>
<li>Success/failure statistics</li>
<li>Run duration tracking</li>
</ul>
</div>
</div>
<div class="feature-box">
<div class="feature-header">Authentication</div>
<div class="feature-body">
<ul>
<li>JWT-based authentication</li>
<li>Admin and user roles</li>
<li>Bootstrap mode for first setup</li>
<li>Auto-generated JWT secrets</li>
</ul>
</div>
</div>
</div>
</section>
<section id="quickstart" class="quickstart-section">
<h2>Quick Start</h2>
<div class="code-block">
<code><span class="code-comment"># Clone the repository</span>
<span class="code-command">git clone https://github.com/muthuspark/taskflow.git</span>
<span class="code-command">cd taskflow</span>
<span class="code-comment"># Build the application</span>
<span class="code-command">make build</span>
<span class="code-comment"># Run (JWT_SECRET auto-generated if not set)</span>
<span class="code-command">make run</span>
<span class="code-comment"># Access the web interface</span>
<span class="code-comment"># http://localhost:8080</span></code>
</div>
<h3 style="font-size: 14px; margin: 20px 0 10px;">Configuration</h3>
<table class="info-table">
<thead>
<tr>
<th>Variable</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>PORT</td>
<td>8080</td>
<td>HTTP listen port</td>
</tr>
<tr>
<td>DB_PATH</td>
<td>taskflow.db</td>
<td>SQLite database file path</td>
</tr>
<tr>
<td>JWT_SECRET</td>
<td>(auto-generated)</td>
<td>Secret for JWT signing</td>
</tr>
<tr>
<td>LOG_RETENTION_DAYS</td>
<td>30</td>
<td>Days to keep run history</td>
</tr>
<tr>
<td>API_BASE_PATH</td>
<td>/taskflow/api</td>
<td>Base path for API endpoints</td>
</tr>
</tbody>
</table>
</section>
<section class="tech-section">
<h2>Technology Stack</h2>
<div class="tech-grid">
<div class="tech-item">
<strong>Go</strong>
<span>Backend & API</span>
</div>
<div class="tech-item">
<strong>SQLite</strong>
<span>Database</span>
</div>
<div class="tech-item">
<strong>Vue.js</strong>
<span>Frontend SPA</span>
</div>
<div class="tech-item">
<strong>WebSocket</strong>
<span>Real-time Logs</span>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="footer-links">
<a href="https://github.com/muthuspark/taskflow">GitHub</a>
<a href="https://github.com/muthuspark/taskflow/issues">Issues</a>
<a href="https://github.com/muthuspark/taskflow/releases">Releases</a>
</div>
<p>TaskFlow - Open Source Task Scheduler</p>
</footer>
</body>
</html>