-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1025 lines (897 loc) · 36.9 KB
/
Copy pathindex.html
File metadata and controls
1025 lines (897 loc) · 36.9 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
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenLegacy Apps</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--ol-primary: #0066CC;
--ol-primary-dark: #0052A3;
--ol-primary-light: #3385D6;
--mdc-primary: #0066CC;
--mdc-primary-dark: #0052A3;
--mdc-primary-light: #3385D6;
--mdc-secondary: #424242;
--mdc-surface: #FFFFFF;
--mdc-background: #FAFAFA;
--mdc-on-surface: #212121;
--mdc-on-surface-variant: #757575;
--mdc-divider: rgba(0, 0, 0, 0.12);
--mdc-elevation-1: 0px 1px 3px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
--mdc-elevation-2: 0px 2px 4px -1px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
--mdc-elevation-4: 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);
--mdc-elevation-8: 0px 8px 10px -4px rgba(0, 0, 0, 0.12), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);
}
body {
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
background-color: var(--mdc-background);
color: var(--mdc-on-surface);
line-height: 1.5;
}
/* Header */
header {
background-color: var(--mdc-surface);
box-shadow: var(--mdc-elevation-2);
padding: 0.5rem 0;
position: sticky;
top: 0;
z-index: 100;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
color: var(--ol-primary);
}
.logo img {
height: 32px;
width: auto;
}
.logo-text {
font-size: 1.125rem;
font-weight: 500;
letter-spacing: 0.15px;
color: var(--ol-primary);
}
nav ul {
display: flex;
list-style: none;
gap: 1rem;
}
nav a {
color: var(--mdc-on-surface);
text-decoration: none;
font-weight: 500;
font-size: 0.8125rem;
letter-spacing: 0.1px;
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
padding: 0.25rem 0;
}
nav a:hover {
color: var(--ol-primary);
}
/* Status Counter */
.status-counter {
font-size: 0.8125rem;
font-weight: 500;
color: var(--mdc-on-surface-variant);
padding: 0.25rem 0.75rem;
background: var(--mdc-background);
border-radius: 4px;
display: flex;
align-items: center;
gap: 0.5rem;
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.status-counter.loading {
color: var(--mdc-on-surface-variant);
}
.status-counter.ready {
color: var(--ol-primary);
}
.status-counter .material-icons {
font-size: 16px;
}
.status-counter.loading .material-icons {
animation: rotate 1s linear infinite;
}
/* Refresh Button */
.refresh-button {
background-color: var(--mdc-primary);
color: white;
border: none;
border-radius: 4px;
padding: 0.5rem 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
font-size: 0.8125rem;
font-weight: 500;
letter-spacing: 0.1px;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: var(--mdc-elevation-2);
position: relative;
overflow: hidden;
}
.refresh-button::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.refresh-button:hover {
background-color: var(--mdc-primary-dark);
box-shadow: var(--mdc-elevation-4);
}
.refresh-button:active {
box-shadow: var(--mdc-elevation-2);
}
.refresh-button:active::before {
width: 300px;
height: 300px;
}
.refresh-button .material-icons {
font-size: 18px;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.refresh-button.refreshing .material-icons {
animation: rotate 1s linear infinite;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Notification */
.notification {
position: fixed;
top: 4rem;
left: 50%;
transform: translateX(-50%) translateY(-100px);
background-color: var(--mdc-surface);
color: var(--mdc-on-surface);
padding: 0.75rem 1rem;
border-radius: 4px;
box-shadow: var(--mdc-elevation-8);
display: flex;
align-items: center;
gap: 0.75rem;
z-index: 1000;
opacity: 0;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
max-width: 90%;
min-width: 300px;
}
.notification.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.notification-icon {
width: 24px;
height: 24px;
border-radius: 50%;
background-color: #4CAF50;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.notification-icon .material-icons {
font-size: 16px;
color: white;
}
.notification-content {
flex: 1;
font-size: 0.875rem;
line-height: 1.4;
}
.notification-close {
background: none;
border: none;
color: var(--mdc-on-surface-variant);
cursor: pointer;
padding: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
flex-shrink: 0;
}
.notification-close:hover {
background-color: var(--mdc-divider);
}
.notification-close .material-icons {
font-size: 18px;
}
/* Main Content */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 1rem 1.5rem;
}
.section-title {
text-align: center;
font-size: 1.5rem;
font-weight: 400;
margin-bottom: 0.25rem;
color: var(--mdc-on-surface);
letter-spacing: 0;
}
.section-subtitle {
text-align: center;
font-size: 0.75rem;
color: var(--mdc-on-surface-variant);
margin-bottom: 1rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
font-weight: 400;
letter-spacing: 0.25px;
}
/* Tools Grid */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0.75rem;
margin-bottom: 1rem;
}
.tool-card {
background: var(--mdc-surface);
border-radius: 4px;
padding: 0.75rem;
box-shadow: var(--mdc-elevation-1);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
color: inherit;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
cursor: pointer;
}
.tool-card::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(25, 118, 210, 0.1);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.tool-card:active::before {
width: 300px;
height: 300px;
}
.tool-card:hover {
box-shadow: var(--mdc-elevation-4);
transform: translateY(-2px);
}
.tool-card:active {
box-shadow: var(--mdc-elevation-2);
transform: translateY(0);
}
.tool-card.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.tool-card.disabled:hover {
box-shadow: var(--mdc-elevation-1);
transform: none;
}
.tool-card.disabled .tool-icon {
background: var(--mdc-on-surface-variant);
}
.tool-card.disabled .learn-more,
.tool-card.disabled .docs-link {
pointer-events: none;
opacity: 0.6;
}
.tool-card.disabled::after {
content: 'Unavailable';
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.625rem;
font-weight: 500;
z-index: 10;
}
.tool-icon {
width: 32px;
height: 32px;
background: var(--mdc-primary);
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin-bottom: 0.5rem;
box-shadow: var(--mdc-elevation-2);
color: white;
}
.tool-icon .material-icons {
font-size: 20px;
}
.tool-name {
font-size: 0.875rem;
font-weight: 500;
margin-bottom: 0.25rem;
color: var(--mdc-on-surface);
letter-spacing: 0.15px;
display: flex;
align-items: center;
gap: 0.5rem;
}
.tool-port {
font-size: 0.6875rem;
font-weight: 400;
color: var(--mdc-on-surface-variant);
background: var(--mdc-background);
padding: 0.125rem 0.375rem;
border-radius: 4px;
letter-spacing: 0.25px;
}
.tool-description {
color: var(--mdc-on-surface-variant);
line-height: 1.4;
margin-bottom: 0.5rem;
flex-grow: 1;
font-size: 0.75rem;
letter-spacing: 0.25px;
}
.tool-links {
display: flex;
flex-direction: column;
gap: 0.25rem;
align-items: flex-start;
position: relative;
z-index: 1;
}
.learn-more {
color: var(--mdc-primary);
font-weight: 500;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.75rem;
letter-spacing: 0.1px;
padding: 0.125rem 0;
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.learn-more:hover {
color: var(--mdc-primary-dark);
}
.learn-more:after {
content: '→';
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.learn-more:hover:after {
transform: translateX(2px);
}
.docs-link {
color: var(--mdc-on-surface-variant);
font-weight: 400;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.25rem;
font-size: 0.6875rem;
letter-spacing: 0.25px;
padding: 0.125rem 0;
transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.docs-link:hover {
color: var(--ol-primary);
}
.docs-link:before {
content: '\e8ef';
font-family: 'Material Icons';
font-size: 0.875rem;
vertical-align: middle;
margin-right: 0.125rem;
}
/* Hub Promo Section */
.hub-promo {
background: var(--mdc-surface);
border-radius: 4px;
padding: 1rem;
margin-top: 1rem;
text-align: center;
box-shadow: var(--mdc-elevation-2);
}
.hub-promo h2 {
font-size: 1.125rem;
font-weight: 400;
margin-bottom: 0.5rem;
color: var(--mdc-on-surface);
letter-spacing: 0;
}
.hub-promo p {
font-size: 0.75rem;
color: var(--mdc-on-surface-variant);
margin-bottom: 0.75rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
letter-spacing: 0.25px;
}
.hub-promo .btn {
padding: 0.5rem 1.25rem;
border-radius: 4px;
text-decoration: none;
font-weight: 500;
font-size: 0.75rem;
letter-spacing: 0.75px;
text-transform: uppercase;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
display: inline-block;
background-color: var(--mdc-primary);
color: #fff;
box-shadow: var(--mdc-elevation-2);
position: relative;
overflow: hidden;
}
.hub-promo .btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.hub-promo .btn:hover {
background-color: var(--mdc-primary-dark);
box-shadow: var(--mdc-elevation-4);
}
.hub-promo .btn:active {
box-shadow: var(--mdc-elevation-2);
}
.hub-promo .btn:active::before {
width: 300px;
height: 300px;
}
/* Footer */
footer {
background-color: var(--mdc-on-surface);
color: rgba(255, 255, 255, 0.87);
padding: 0.75rem;
margin-top: 1rem;
}
.footer-bottom {
text-align: center;
color: rgba(255, 255, 255, 0.6);
font-size: 0.6875rem;
letter-spacing: 0.25px;
}
@media (max-width: 768px) {
nav ul {
display: none;
}
.refresh-button span:last-child {
display: none;
}
.refresh-button {
padding: 0.5rem;
min-width: 40px;
}
.section-title {
font-size: 1.5rem;
}
.tools-grid {
grid-template-columns: 1fr;
}
.container {
padding: 1.5rem 1rem 2rem;
}
}
</style>
</head>
<body>
<!-- Header -->
<header>
<div class="header-container">
<a href="/" class="logo">
<img src="image.png" alt="OpenLegacy Logo">
</a>
<nav>
<ul>
<li><a href="#apps">Community Apps</a></li>
<li><a href="#enterprise">Enterprise Products</a></li>
<li><a href="https://community.openlegacy.com" target="_blank">Community</a></li>
<li><a href="https://forum.community.openlegacy.com/" target="_blank">Forum</a></li>
</ul>
</nav>
<div class="status-counter loading" id="status-counter">
<span class="material-icons">hourglass_empty</span>
<span id="status-text">Checking services... 0/7</span>
</div>
<button class="refresh-button" id="refresh-button" title="Refresh service status">
<span class="material-icons">refresh</span>
<span>Refresh</span>
</button>
</div>
</header>
<!-- Notification -->
<div class="notification" id="status-notification">
<div class="notification-icon">
<span class="material-icons">check_circle</span>
</div>
<div class="notification-content" id="notification-content"></div>
<button class="notification-close" id="notification-close">
<span class="material-icons">close</span>
</button>
</div>
<!-- Main Content -->
<div class="container">
<h2 class="section-title" id="apps">Community Apps</h2>
<div class="tools-grid">
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">terminal</span></div>
<h3 class="tool-name">OL Terminal<span class="tool-port">:8081</span></h3>
<p class="tool-description">
Web-based terminal applications for mainframe and AS/400 systems. Access your legacy systems from anywhere.
</p>
<div class="tool-links">
<a href="http://localhost:8081" class="learn-more" target="_blank">Open Terminal</a>
<a href="http://localhost:8081/help.html" class="docs-link" target="_blank">Documentation</a>
<a href="http://localhost:8081/admin" class="docs-link" target="_blank">Admin</a>
</div>
</div>
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">code</span></div>
<h3 class="tool-name">OL Code<span class="tool-port">:8082</span></h3>
<p class="tool-description">
Web-based IDE for legacy code development. Edit COBOL, RPG, and other legacy languages with modern tooling.
</p>
<div class="tool-links">
<a href="http://localhost:8082" class="learn-more" target="_blank">Open Code Editor</a>
<a href="http://localhost:8082/help" class="docs-link" target="_blank">Documentation</a>
<a href="http://localhost:8082/admin" class="docs-link" target="_blank">Admin</a>
</div>
</div>
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">storage</span></div>
<h3 class="tool-name">SQOL<span class="tool-port">:8083</span></h3>
<p class="tool-description">
Web-based database console for legacy and modern databases. Query, manage, and visualize your data.
</p>
<div class="tool-links">
<a href="http://localhost:8083" class="learn-more" target="_blank">Open Database Console</a>
<a href="http://localhost:8083/assets/help.html" class="docs-link" target="_blank">Documentation</a>
<a href="http://localhost:8083/admin" class="docs-link" target="_blank">Admin</a>
</div>
</div>
</div>
<h2 class="section-title" style="margin-top: 1.5rem;" id="enterprise">Enterprise Products</h2>
<p class="section-subtitle">
Advanced platform for API integration, decoupling, strategic modernization planning, terminal intelligence analytics, and no-code application building.
</p>
<div class="tools-grid">
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">hub</span></div>
<h3 class="tool-name">Hub Integration<span class="tool-port">:8080</span></h3>
<p class="tool-description">
Integration hub for OpenLegacy API integration. Expose legacy systems as modern APIs, decouple applications.
</p>
<div class="tool-links">
<a href="http://localhost:8080" class="learn-more" target="_blank">Open Hub</a>
<a href="https://docs.ol-hub.com/docs/getting-started-with-openlegacy-hub" class="docs-link" target="_blank">Documentation</a>
</div>
</div>
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">route</span></div>
<h3 class="tool-name">Hub Planner<span class="tool-port">:8080</span></h3>
<p class="tool-description">
Strategic modernization planning tool. Analyze dependencies, create phased modernization plans, and de-risk your legacy transformation journey.
</p>
<div class="tool-links">
<a href="http://localhost:8080/mpt/baselines" class="learn-more" target="_blank">Open Planner</a>
<a href="https://docs.planner.ol-hub.com/docs/getting-started-with-planner#/" class="docs-link" target="_blank">Documentation</a>
</div>
</div>
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">analytics</span></div>
<h3 class="tool-name">Termiq<span class="tool-port">:8085</span></h3>
<p class="tool-description">
Terminal intelligence and analytics platform. Gain insights from mainframe and AS/400 screen interactions, user patterns, and system usage metrics.
</p>
<div class="tool-links">
<a href="http://localhost:8085" class="learn-more" target="_blank">Open Termiq</a>
<a href="http://localhost:8085/assets/help.html" class="docs-link" target="_blank">Documentation</a>
</div>
</div>
<div class="tool-card">
<div class="tool-icon"><span class="material-icons">apps</span></div>
<h3 class="tool-name">AppIQ<span class="tool-port">:8084</span></h3>
<p class="tool-description">
No-code application builder that converts terminal screens captured by OL Terminal, domain models, and other sources into modern applications consuming backend APIs from OL Hub Integration.
</p>
<div class="tool-links">
<a href="http://localhost:8084" class="learn-more" target="_blank">Open AppIQ</a>
<a href="http://localhost:8084/help" class="docs-link" target="_blank">Documentation</a>
</div>
</div>
</div>
<!-- Hub Promo Section -->
<div class="hub-promo" id="hub">
<h2>Connect to OpenLegacy Hub</h2>
<p>
Unlock advanced analytics, API management, comprehensive testing capabilities, and enterprise support by connecting your free tools to OpenLegacy Hub.
</p>
<a href="https://community.openlegacy.com/hub" class="btn" target="_blank">Explore Hub Features</a>
</div>
</div>
<!-- Footer -->
<footer>
<div class="footer-bottom">
© 2025 OpenLegacy. All rights reserved.
</div>
</footer>
<script>
// Health check function for localhost services using /health endpoint
// Uses no-cors mode to avoid CORS errors, then checks if request completes
async function checkServiceHealth(url) {
// Construct health endpoint URL
const healthUrl = url.endsWith('/') ? url + 'health' : url + '/health';
return new Promise((resolve) => {
const controller = new AbortController();
const timeout = setTimeout(() => {
controller.abort();
resolve(false);
}, 2000);
// Use no-cors mode to avoid CORS errors
// Note: We can't read response status with no-cors, but if request completes, service is likely up
fetch(healthUrl, {
method: 'GET',
mode: 'no-cors',
signal: controller.signal,
cache: 'no-cache'
})
.then(() => {
clearTimeout(timeout);
// Request completed without network error - service is likely up
resolve(true);
})
.catch(() => {
clearTimeout(timeout);
// Network error or timeout - service is down
resolve(false);
});
});
}
// Function to show notification
function showNotification(message) {
const notification = document.getElementById('status-notification');
const content = document.getElementById('notification-content');
content.textContent = message;
notification.classList.add('show');
// Auto-hide after 5 seconds
setTimeout(() => {
hideNotification();
}, 5000);
}
// Function to hide notification
function hideNotification() {
const notification = document.getElementById('status-notification');
notification.classList.remove('show');
}
// Function to get service name from card
function getServiceName(card) {
const toolName = card.querySelector('.tool-name');
if (toolName) {
// Get text content and remove port number
return toolName.textContent.replace(/:\d+$/, '').trim();
}
return 'Service';
}
// Function to enable a card
function enableCard(card, url, showNotif = false) {
const wasDisabled = card.classList.contains('disabled');
card.classList.remove('disabled');
card.style.cursor = 'pointer';
// Show notification if card was previously disabled
if (wasDisabled && showNotif) {
const serviceName = getServiceName(card);
showNotification(`${serviceName} is now available`);
}
// Add click handler if not already added
if (!card.dataset.clickHandlerAdded) {
card.addEventListener('click', function(e) {
// Don't navigate if clicking on any link - let the link handle it
if (e.target.closest('.docs-link') || e.target.closest('.learn-more')) {
return;
}
// Open the main app URL
window.open(url, '_blank');
});
card.dataset.clickHandlerAdded = 'true';
}
}
// Function to disable a card
function disableCard(card) {
card.classList.add('disabled');
card.style.cursor = 'not-allowed';
}
document.addEventListener('DOMContentLoaded', function() {
const cards = document.querySelectorAll('.tool-card');
const disabledCards = new Map(); // Store disabled cards with their URLs for polling
const statusCounter = document.getElementById('status-counter');
const statusText = document.getElementById('status-text');
const TOTAL_SERVICES = 7; // Total number of services to check
// Track which services have been checked
const checkedServices = new Set();
// Function to update status counter
function updateStatusCounter() {
let availableCount = 0;
// Count all localhost services that are available and have been checked
cards.forEach(card => {
const mainLink = card.querySelector('.learn-more');
if (mainLink) {
const url = mainLink.getAttribute('href');
// Only count localhost services (skip external URLs)
if (url.includes('localhost') || url.startsWith('http://localhost') || url.startsWith('https://localhost')) {
// Only count if this service has been checked
if (checkedServices.has(url)) {
if (!card.classList.contains('disabled')) {
availableCount++;
}
}
}
}
});
const totalChecked = checkedServices.size;
// Update the display
if (statusCounter.classList.contains('loading')) {
// Still loading, show loading message with count
statusText.textContent = `Checking services... ${availableCount}/${TOTAL_SERVICES}`;
if (totalChecked === TOTAL_SERVICES) {
statusCounter.classList.remove('loading');
if (availableCount === TOTAL_SERVICES) {
statusCounter.classList.add('ready');
statusCounter.querySelector('.material-icons').textContent = 'check_circle';
} else {
statusCounter.querySelector('.material-icons').textContent = 'hourglass_empty';
}
// Show final count without loading message
statusText.textContent = `${availableCount}/${TOTAL_SERVICES}`;
}
} else {
// Already loaded, just update count
statusText.textContent = `${availableCount}/${TOTAL_SERVICES}`;
if (availableCount === TOTAL_SERVICES) {
statusCounter.classList.add('ready');
statusCounter.querySelector('.material-icons').textContent = 'check_circle';
} else {
statusCounter.classList.remove('ready');
statusCounter.querySelector('.material-icons').textContent = 'hourglass_empty';
}
}
}
// Function to refresh all services
async function refreshAllServices() {
const refreshButton = document.getElementById('refresh-button');
// Add refreshing animation and show loading state
refreshButton.classList.add('refreshing');
refreshButton.disabled = true;
statusCounter.classList.add('loading');
checkedServices.clear(); // Reset checked services for accurate loading display
// Check all cards
for (const card of cards) {
const mainLink = card.querySelector('.learn-more');
if (mainLink) {
const url = mainLink.getAttribute('href');
// Skip external URLs (non-localhost)
if (!url.includes('localhost') && !url.startsWith('http://localhost') && !url.startsWith('https://localhost')) {
continue;
}
// Check health
const isHealthy = await checkServiceHealth(url);
// Mark this service as checked
checkedServices.add(url);
const wasDisabled = card.classList.contains('disabled');
if (!isHealthy) {
disableCard(card);
disabledCards.set(card, url);
} else {
enableCard(card, url, wasDisabled);
// Remove from disabled cards if it was there
if (wasDisabled) {
disabledCards.delete(card);
}
}
// Update status counter after each check
updateStatusCounter();
}
}
// Remove refreshing animation
refreshButton.classList.remove('refreshing');
refreshButton.disabled = false;
// Final update status counter (will remove loading class if all checked)
updateStatusCounter();
}
// Initial health check for all cards
(async () => {
for (const card of cards) {
const mainLink = card.querySelector('.learn-more');
if (mainLink) {
const url = mainLink.getAttribute('href');
// Skip external URLs (non-localhost)
if (!url.includes('localhost') && !url.startsWith('http://localhost') && !url.startsWith('https://localhost')) {
// External URLs are assumed available - enable them
enableCard(card, url);
continue;
}
// Check health
const isHealthy = await checkServiceHealth(url);
// Mark this service as checked
checkedServices.add(url);
if (!isHealthy) {
disableCard(card);
disabledCards.set(card, url);
} else {
enableCard(card, url);
}
// Update status counter after each check
updateStatusCounter();
}
}
})();