-
Notifications
You must be signed in to change notification settings - Fork 4
/
default.html
1047 lines (1037 loc) · 74.9 KB
/
default.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
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>
<title>AMP Configuration Generator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.0/knockout-min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<link href="style.css" rel="stylesheet">
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="knockout.quickmap.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>
<script type="text/javascript" src="generator.js"></script>
</head>
<body data-spy="scroll" data-target="#navbar" data-offset="0">
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 col-lg-2 d-md-block bg-light sidebar collapse" id="navbar">
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#basicInfo">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-server" aria-hidden="true">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<polyline points="9 22 9 12 15 12 15 22"></polyline>
</svg>
Basic Information
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#managementConsole">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<polyline points="4 17 10 11 4 5"></polyline>
<line x1="12" y1="19" x2="20" y2="19"></line>
</svg>
Management and Console
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#networking">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<circle cx="12" cy="12" r="10"></circle>
<line x1="2" y1="12" x2="22" y2="12"></line>
<path
d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z">
</path>
</svg>
Networking
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#updateSources">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<polyline points="8 17 12 21 16 17"></polyline>
<line x1="12" y1="12" x2="12" y2="21"></line>
<path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>
</svg>
Update Sources
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#configuration">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<circle cx="12" cy="12" r="3"></circle>
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z">
</path>
</svg>
Configuration and Settings
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#startupShutdown">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path>
<line x1="12" y1="2" x2="12" y2="12"></line>
</svg>
Startup and Shutdown
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#serverEvents">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
</svg>
Server Events
</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="#validateReview">
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2"
fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1">
<polyline points="20 6 9 17 4 12"></polyline>
</svg>
Validate and Review
</a>
</li>
</ul>
</div>
</nav>
<main class="col-md-7 ms-sm-auto col-lg-7 px-md-4">
<div
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2" id="logoHeader">AMP Configuration Generator</h1>
<small class="d-block text-muted">Version 1.0<br/>©2021 CubeCoders Limited</small>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group me-2">
<button type="button" class="btn btn-sm btn-outline-primary" data-bind="click: __Share" data-toggle="tooltip" title="Share URL copied to clipboard ✓">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-share" viewBox="0 0 16 16">
<path d="M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.499 2.499 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5zm-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z"></path>
</svg>
Share</button>
<button type="button" class="btn btn-sm btn-outline-primary" data-bind="click: __Export">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-down" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M3.5 10a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 0 0 1h2A1.5 1.5 0 0 0 14 9.5v-8A1.5 1.5 0 0 0 12.5 0h-9A1.5 1.5 0 0 0 2 1.5v8A1.5 1.5 0 0 0 3.5 11h2a.5.5 0 0 0 0-1h-2z"></path>
<path fill-rule="evenodd" d="M7.646 15.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 14.293V5.5a.5.5 0 0 0-1 0v8.793l-2.146-2.147a.5.5 0 0 0-.708.708l3 3z"></path>
</svg>
Export
</button>
<button type="button" class="btn btn-sm btn-outline-primary" data-bind="click: __Import">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-in-up" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M3.5 10a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 0 0 1h2A1.5 1.5 0 0 0 14 9.5v-8A1.5 1.5 0 0 0 12.5 0h-9A1.5 1.5 0 0 0 2 1.5v8A1.5 1.5 0 0 0 3.5 11h2a.5.5 0 0 0 0-1h-2z"></path>
<path fill-rule="evenodd" d="M7.646 4.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707V14.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3z"></path>
</svg>
Import
</button>
</div>
</div>
<div class="btn-toolbar mb-2 mb-md-0">
<button type="button" class="btn btn-sm btn-outline-danger" data-bind="click: __Clear" data-toggle="tooltip" title="Share URL copied to clipboard ✓">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-stars" viewBox="0 0 16 16">
<path d="M7.657 6.247c.11-.33.576-.33.686 0l.645 1.937a2.89 2.89 0 0 0 1.829 1.828l1.936.645c.33.11.33.576 0 .686l-1.937.645a2.89 2.89 0 0 0-1.828 1.829l-.645 1.936a.361.361 0 0 1-.686 0l-.645-1.937a2.89 2.89 0 0 0-1.828-1.828l-1.937-.645a.361.361 0 0 1 0-.686l1.937-.645a2.89 2.89 0 0 0 1.828-1.828l.645-1.937zM3.794 1.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387A1.734 1.734 0 0 0 4.593 5.69l-.387 1.162a.217.217 0 0 1-.412 0L3.407 5.69A1.734 1.734 0 0 0 2.31 4.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387A1.734 1.734 0 0 0 3.407 2.31l.387-1.162zM10.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732L9.1 2.137a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L10.863.1z"></path>
</svg>
Clear</button>
</div>
</div>
<div class="bd-content">
<form id="mainform">
<h4 id="basicInfo">Basic Information</h4>
<div class="row">
<div class="mb-3 col-6">
<label for="applicationNameField">What is the name of the application?</label>
<input type="text" class="form-control" id="applicationNameField"
data-bind="value: Meta_DisplayName, valueUpdate: 'input'">
<div class="form-text">This is what will show up within AMP as the name of the
application.
</div>
</div>
<div class="mb-3 col-6">
<label for="applicationDescriptionField">Description</label>
<input type="text" class="form-control" id="applicationDescriptionField"
data-bind="value: Meta_Description">
<div class="form-text">Optional: useful for describing different variants/configurations
of
the same application.</div>
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label for="applicationAuthorField">Configuration Author</label>
<input type="text" class="form-control" id="applicationAuthorField"
data-bind="value: Meta_Author" placeholder="Joe Bloggs">
<div class="form-text">Who are you? Take some credit for your work!</div>
</div>
<div class="mb-3 col-6">
<label for="applicationURLField">Application URL</label>
<input type="url" class="form-control" id="applicationURLField"
data-bind="value: Meta_URL" placeholder="https://example.com/someapp">
<div class="form-text">A link to where you can learn more about the application, such as
a store listing.</div>
</div>
</div>
<div class="mb-3">
<label>Which operating systems are supported?</label>
<div class="list-group mx-0 list-group-horizontal">
<label class="list-group-item d-flex gap-2" style="flex: 1">
<input class="form-check-input flex-shrink-0" type="checkbox"
data-bind="checked: _SupportsWindows">
<span>
Windows
<small class="d-block text-muted">Runs on Windows 10/Server 2016 or newer.
x86/64 Only.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2" style="flex: 1">
<input class="form-check-input flex-shrink-0" type="checkbox"
data-bind="checked: _SupportsLinux">
<span>
Linux
<small class="d-block text-muted">Runs on Linux Systems. Recommend validating on
Debian 10 x86/64.</small>
</span>
</label>
</div>
</div>
<h4 id="managementConsole">Management and Console</h4>
<div class="mb-3">
<label>How is this application managed?</label>
<div class="list-group mx-0">
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="PinballWizard" data-bind="checked: App_AdminMethod">
<span>
None
<small class="d-block text-muted">For applications that cannot be
managed. AMP will only be able to provide basic monitoring.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="STDIO" data-bind="checked: App_AdminMethod">
<span>
Standard IO
<small class="d-block text-muted">For applications with a normal console
that can be read from and/or written to.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="SourceRCON" data-bind="checked: App_AdminMethod">
<span>
Source RCON
<small class="d-block text-muted">For applications that use the standard
Source RCON Protocol.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="TelnetRCON" data-bind="checked: App_AdminMethod">
<span>Telnet</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="BattlEyeRCON" data-bind="checked: App_AdminMethod">
<span>BattleEye</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="WebRCON" data-bind="checked: App_AdminMethod">
<span>WebRCON</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="QuakeRCON" data-bind="checked: App_AdminMethod">
<span>Quake RCON</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="manageType"
value="AMP_GSIO" data-bind="checked: App_AdminMethod">
<span>
AMP GS/IO
<small class="d-block text-muted">For applications that use CubeCoders
GameServer/IO Standard.</small>
</span>
</label>
</div>
<div class="form-text"></div>
</div>
<div class="mb-3">
<label>What modes are supported by the applications console?</label>
<div class="form-text">This is in addition to the applications management type if it
accepts management over methods other than Standard IO</div>
<div class="list-group mx-0 list-group-horizontal">
<label class="list-group-item d-flex gap-2" style="flex: 1">
<input class="form-check-input flex-shrink-0" type="checkbox"
data-bind="checked: App_HasReadableConsole">
<span>
Reading
<small class="d-block text-muted">This application writes log output to
its console that AMP can read.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2" style="flex: 1">
<input class="form-check-input flex-shrink-0" type="checkbox"
data-bind="checked: App_HasWritableConsole">
<span>
Writing
<small class="d-block text-muted">The console of this application supports
having input written to it.</small>
</span>
</label>
</div>
</div>
<!-- <div class="mb-3">
<label>Are any compatibility flags required?</label>
<div class="form-text">Generally these are not needed for modern applications</div>
<div class="list-group mx-0">
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="checkbox" value="">
<span>
Linux Console Unbuffering
<small class="d-block text-muted">Handle Linux applications that only
write to the console in large chunks instead of one line at a
time.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="checkbox" value="">
<span>
Windows Virtual Console
<small class="d-block text-muted">Handle Windows applications that use a
console window but do not use the actual standard IO
streams.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="checkbox" value="">
<span>
Legacy Windows Unity Compatibility
<small class="d-block text-muted">Used for older Unity applications that
don't write to their console properly.</small>
</span>
</label>
</div>
</div> -->
<h4 id="networking">Networking</h4>
<div class="form-text">AMP will automatically generate firewall rules to allow the application
ports through</div>
<table class="table" class="mb-3">
<thead>
<th scope="col">Port Number</th>
<th scope="col">Usage Type</th>
<th></th>
</thead>
<tbody>
<!-- ko foreach: _PortMappings -->
<tr>
<td><input type="number" min="1024" max="65535" value="7777"
data-bind="value: Port"></td>
<td>
<select class="form-select" data-bind="value: PortType">
<option value="0">Application Port</option>
<option value="1">Steam Query Port</option>
<option value="2">RCON Port</option>
<!-- <option value="3">Other</option> -->
</select>
</td>
<td style="text-align: right;">
<button type="button" class="btn btn-danger"
data-bind="click: __RemovePort">Delete Port</button>
</td>
</tr>
<!-- /ko -->
<!-- ko if: _PortMappings().length == 0 -->
<tr>
<td colspan="3">No ports have been added.</td>
</tr>
<!-- /ko -->
</tbody>
<tfoot>
<tr>
<td colspan="3">
<small class="d-block text-muted">You may add up to 3 ports. The RCON port does
not count towards this limit.<br />Maximum of 1 Steam Query and 1 RCON
Port.</small>
</td>
</tr>
<tr>
<td><input type="number" min="1024" max="65535" value="7777"
data-bind="value: __NewPort"></td>
<td>
<select class="form-select" data-bind="value: __NewPortType">
<option value="0">Application Port</option>
<option value="1">Steam Query Port</option>
<option value="2">RCON Port</option>
<!-- <option value="3">Other</option> -->
</select>
</td>
<td style="text-align: right;">
<button type="button" class="btn btn-primary" data-bind="click: __AddPort">Add
Port</button>
</td>
</tr>
</tfoot>
</table>
<h4 id="updateSources">Update Sources</h4>
<div class="mb-3">
<label>How is this application downloaded and updated?</label>
<div class="list-group mx-0 mb-3">
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="updateMethod"
value="0" data-bind="checked: _UpdateSourceType">
<span>
Not Applicable
<small class="d-block text-muted">For applications that do not need to be (or
cannot be) automatically downloaded or updated.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="updateMethod"
value="1" data-bind="checked: _UpdateSourceType">
<span>
Fetch from URL
<small class="d-block text-muted">Fetches a file from an URL and saves it to
disk</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="updateMethod"
value="4" data-bind="checked: _UpdateSourceType">
<span>
Steam Download
<small class="d-block text-muted">Download an application from Steam via
SteamCMD</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="updateMethod"
value="16" data-bind="checked: _UpdateSourceType">
<span>
GitHub Release
<small class="d-block text-muted">Downloads the latest release for a GitHub
repository</small>
</span>
</label>
<label class="list-group-item d-flex gap-2 list-group-item-secondary">
<input class="form-check-input flex-shrink-0" type="radio" name="updateMethod"
disabled value="256" data-bind="checked: _UpdateSourceType">
<span>
Multiple Update Stages/Sources (Coming Soon!)
<small class="d-block text-muted">This application requires a combination of the
above steps to download or update, or uses different sources for different
platforms.</small>
</span>
</label>
</div>
<div class="row">
<!-- ko if: _UpdateSourceType() == "1" -->
<div class="mb-3 col-6">
<label for="applicationUpdateURLField">Update source URL</label>
<input type="text" class="form-control" id="applicationUpdateURLField" data-bind="value: _UpdateSourceURL"
placeholder="https://example.com/download.zip">
<div class="form-text">This must be a direct URL that is not behind any access
gates.</div>
</div>
<div class="mb-3 col-6">
<input class="form-check-input flex-shrink-0" type="checkbox"
data-bind="checked: _UpdateSourceUnzip">
<span>
Unzip once downloaded
<small class="d-block text-muted">The downloaded file is a .zip that needs to be
decompressed. Does not support other archive types (such as .tar.gz) at this
time.</small>
</span>
</div>
<!-- /ko -->
<!-- ko if: _UpdateSourceType() == "4" -->
<div class="mb-3 col-6">
<label for="applicationSteamIDField">Server Steam App ID</label>
<input type="text" class="form-control" id="applicationSteamIDField"
data-bind="value: _SteamServerAppID, valueUpdate: 'input'" placeholder="232250">
<div class="form-text">The App ID for the dedicated server application. You can find
this via <a href="https://steamdb.info">SteamDB</a>.</div>
</div>
<div class="mb-3 col-6">
<label for="applicationClientIDField">Client Steam App ID</label>
<input type="text" class="form-control" id="applicationClientIDField"
data-bind="value: _SteamClientAppID, valueUpdate: 'input'" placeholder="440">
<div class="form-text">The App ID for the game itself. You can find this via <a
href="https://steamdb.info">SteamDB</a>.</div>
</div>
<!-- /ko -->
<!-- ko if: _UpdateSourceType() == "16" -->
<div class="mb-3 col-6">
<label for="applicationUpdateGitField">Update source URL</label>
<input type="text" class="form-control" id="applicationUpdateGitField"
data-bind="value: _UpdateSourceGitRepo, valueUpdate: 'input'"
placeholder="Author/RepoName">
<div class="form-text">Must be a publicly accessible GitHub repository.</div>
</div>
<!-- /ko -->
<!-- ko if: _UpdateSourceType() != "4" -->
<div class="mb-3 col-6">
<label for="applicationDisplaySourceField">Display image source URL</label>
<input type="text" class="form-control" id="applicationDisplaySourceField"
data-bind="value: _DisplayImageSource, valueUpdate: 'input'"
placeholder="https://example.com/image.png">
<div class="form-text">PNG or JPEG format, 460x215px.</div>
</div>
<!-- /ko -->
</div>
<div class="form-text"></div>
</div>
<h4 id="configuration">Configuration and Settings</h4>
<!-- <h5>Application Settings</h5> -->
<table class="table" class="mb-3">
<thead>
<th scope="col">Display Name</th>
<th scope="col">Description</th>
<th scope="col">Field Name</th>
<th scope="col">Default Value</th>
<th scope="col">Command Line</th>
<th scope="col"></th>
</thead>
<tbody>
<!-- ko foreach: _AppSettings -->
<tr>
<td data-bind="text: DisplayName"></td>
<td data-bind="text: Description"></td>
<td data-bind="text: FieldName"></td>
<td data-bind="text: DefaultValue"></td>
<td data-bind="text: IncludeInCommandLine() ? '✓' : '✗'"></td>
<td style="text-align: right;">
<button type="button" class="btn btn-primary"
data-bind="click: __EditSetting">Edit</button>
<button type="button" class="btn btn-danger"
data-bind="click: __RemoveSetting">Delete</button>
</td>
</tr>
<!-- /ko -->
<!-- ko if: _AppSettings().length == 0 -->
<tr>
<td colspan="6">No settings have been added.</td>
</tr>
<!-- /ko -->
</tbody>
<tfoot>
<tr>
<td colspan="4"></td>
<td colspan="2" style="text-align: right;">
<button type="button" class="btn btn-primary"
data-bind="click: __AddSetting">Add Setting</button>
</td>
</tr>
</tfoot>
</table>
<!-- <h5>Configuration Files</h5> -->
<h4 id="startupShutdown">Startup and Shutdown</h4>
<h5>Application and Parameters</h5>
<div class="row mb-3">
<div class="mb-3 col-6" data-bind="visible: _SupportsWindows">
<label for="applicationWinExeField">Windows Executable</label>
<input type="text" class="form-control" id="applicationWinExeField"
data-bind="value: _WinExecutableName, valueUpdate: 'input'"
placeholder="Application.exe">
</div>
<div class="mb-3 col-6" data-bind="visible: _SupportsLinux">
<label for="applicationLinExeField">Linux Executable</label>
<input type="text" class="form-control" id="applicationLinExeField"
data-bind="value: _LinuxExecutableName, valueUpdate: 'input'"
placeholder="Application.x86_64">
</div>
</div>
<div class="mb-3">
<label for="applicationArgumentsField">Command line arguments</label>
<input type="text" class="form-control" id="applicationArgumentsField"
data-bind="value: App_CommandLineArgs, valueUpdate: 'input'">
<div class="form-text">Don't include any arguments that come from the Configuration and
Settings section above.
<!-- <button type="button" class="linkButton">Show substitutions reference</button> -->
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label for="applicationArgumentsFormatField">Command line paramter format</label>
<input type="text" class="form-control" id="applicationArgumentsFormatField"
data-bind="value: App_CommandLineParameterFormat">
<div class="form-text">The format to be used to add settings specified above to the
command line in place of {{$FormattedArgs}}. {0} is the field name and {1} the
value.</div>
</div>
<div class="mb-3 col-6">
<label for="applicationArgumentsDelimiterField">Command line parameter delimiter</label>
<input type="text" class="form-control" id="applicationArgumentsDelimiterField"
data-bind="value: App_CommandLineParameterDelimiter">
<div class="form-text">The character(s) used to separate different arguments in the
command line flags generated by settings. By default this is a single space.</div>
</div>
</div>
<div class="mb-3">
<label>Startup Mode</label>
<div class="list-group mx-0 list-group-horizontal">
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="startupType"
value="false" data-bind="checked: App_RapidStartup">
<span>
Standard
<small class="d-block text-muted">For applications that take some time to start.
AMP will display a notification until startup has been confirmed.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="startupType"
value="true" data-bind="checked: App_RapidStartup">
<span>
Rapid
<small class="d-block text-muted">For applications that can start very quickly
(Under 5 seconds) - AMP will not create a notification/task for
startup.</small>
</span>
</label>
</div>
</div>
<div class="mb-3">
<label>Startup Confirmation Mode</label>
<div class="list-group mx-0">
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="startConfirmMode"
value="Immediate" data-bind="checked: App_ApplicationReadyMode">
<span>
Immediate
<small class="d-block text-muted">AMP will assume that the application is ready
immediately without making any checks.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="startConfirmMode"
value="RCONConnected" data-bind="checked: App_ApplicationReadyMode">
<span>
Successful RCON Connection
<small class="d-block text-muted">Once AMP connects to the game servers RCON
successfully, it will treat the server as being ready.</small>
</span>
</label>
<label class="list-group-item d-flex gap-2">
<input class="form-check-input flex-shrink-0" type="radio" name="startConfirmMode"
value="RegexMatch" data-bind="checked: App_ApplicationReadyMode">
<span>
Wait for message (Regular Expression)
<small class="d-block text-muted">AMP will wait until the server produces a
message matching a regular expression before assuming it's ready.</small>
</span>
</label>
</div>
</div>
<h5>Shutdown</h5>
<div class="row">
<div class="mb-3 col-6">
<label>Shutdown Method</label>
<select class="form-select" data-bind="value: App_ExitMethod">
<option value="String">Run a command on the server</option>
<option value="OS_CLOSE">Request via OS (Recommended if running a command is not
possible)</option>
<option value="Kill">Kill Process Immediately</option>
<option value="EndStream">End STDIO stream</option>
<option value="CtrlC">Send CTRL+C literal (Probably not what you want)</option>
<option value="CtrlD">Send CTRL+D literal</option>
<option value="Esc">Send ESCAPE literal</option>
<option value="WM_CLOSE">Send WM_CLOSE message (Windows Only)</option>
<option value="WM_QUIT">Send WM_QUIT message (Windows Only)</option>
<option value="SIGINT">Send SIGINT signal (Linux only, equivalent to pressing
CTRL+C)</option>
<option value="SIGTERM">Send SIGTERM signal (Linux only)</option>
<option value="SIGKILL">Send SIGKILL signal (Linux only)</option>
</select>
</div>
<div class="mb-3 col-6" data-bind="visible: App_ExitMethod() == 'String'">
<label for="applicationStopCommandField">Command to send</label>
<input type="text" class="form-control" id="applicationStopCommandField"
data-bind="value: App_ExitString">
</div>
</div>
<h4 id="serverEvents">Server Events</h4>
<p>These are regular expressions that when matched notifies AMP about in-application events such
as a successful startup, or users connecting/disconnecting. AMP will match these based on
output from either the servers standard output (if enabled) or whichever RCON/remote access
protocol is in use.</p>
<p>All expressions must match the entire subject string - so they must always start with a ^ and
end with a $. AMP uses named capture groups to pick out different components of an
expression.</p>
<p><a href="https://regex101.com">Regex101</a> is an excellent resource to help you put together
and validate expressions. AMP uses the 'Javascript' regex flavour.</p>
<div class="mb-3">
<label for="appJunkMessageField">
Junk/throwaway message expression
<small class="d-block text-muted">Messages matching this expression will be disposed of
and ignored, they will not show up in any of AMPs logs.</small>
</label>
<input type="text" class="form-control" id="appJunkMessageField"
data-bind="value: Console_ThrowawayMessageRegex">
</div>
<div class="mb-3">
<label for="appReadyExprField">
Server ready expression
<small class="d-block text-muted">When matched, AMP will transition from the 'starting'
to the 'ready' state.</small>
</label>
<input type="text" class="form-control" id="appReadyExprField"
data-bind="value: Console_AppReadyRegex">
</div>
<div class="mb-3">
<label for="appUserConnExprField">
User connected expression
<small class="d-block text-muted">Must have either a `username` or `userid` capture
group and optionally an `endpoint` group.</small>
</label>
<input type="text" class="form-control" id="appUserConnExprField"
data-bind="value: Console_UserJoinRegex">
</div>
<div class="mb-3">
<label for="appUserDisconnExprField">
User disconnected expression
<small class="d-block text-muted">Must have either a `username` or `userid` capture
group</small>
</label>
<input type="text" class="form-control" id="appUserDisconnExprField"
data-bind="value: Console_UserLeaveRegex">
</div>
<div class="mb-3">
<label for="appChatExprField">
User chat expression
<small class="d-block text-muted">Must have either a `username` or `userid` capture
group plus a `message` capture group.</small>
</label>
<input type="text" class="form-control" id="appChatExprField"
data-bind="value: Console_UserChatRegex">
</div>
<h4 id="validateReview">Validate and Review</h4>
<div class="mb-3">
<label>Generated Command Line Arguments</label>
<input type="text" readonly class="form-control"
data-bind="value: __SampleCommandLineFlags">
<div class="form-text">This is generated assuming the default values and default port
numbers, these will change based on user-specified values or assignments made by AMP.
</div>
</div>
<div class="mb-3">
<p>
<button type="button" class="btn btn-primary" data-bind="click: __ValidateConfig">Validate Configuration</button>
</p>
<p data-bind="visible: __ValidationResult() == 0" class="p-3 mb-2 bg-dark text-white">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"></path>
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>
</svg>
You have not yet validated your configuration. You will not be able to download your configuration until you have done this.</p>
<p data-bind="visible: __ValidationResult() == 1" class="p-3 mb-2 bg-danger text-white">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-octagon" viewBox="0 0 16 16">
<path d="M4.54.146A.5.5 0 0 1 4.893 0h6.214a.5.5 0 0 1 .353.146l4.394 4.394a.5.5 0 0 1 .146.353v6.214a.5.5 0 0 1-.146.353l-4.394 4.394a.5.5 0 0 1-.353.146H4.893a.5.5 0 0 1-.353-.146L.146 11.46A.5.5 0 0 1 0 11.107V4.893a.5.5 0 0 1 .146-.353L4.54.146zM5.1 1 1 5.1v5.8L5.1 15h5.8l4.1-4.1V5.1L10.9 1H5.1z"></path>
<path d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"></path>
</svg>
Validation Failed - You must address the following failures before you may continue.</p>
<p data-bind="visible: __ValidationResult() == 2" class="p-3 mb-2 bg-warning text-dark">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">
<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"></path>
<path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"></path>
</svg>
Validation Passed with Warnings - You should consider addressing the following warnings.</p>
<p data-bind="visible: __ValidationResult() == 3" class="p-3 mb-2 bg-success text-white">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"></path>
<path d="M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z"></path>
</svg>
Validation Passed - Great stuff! You may now download the completed configuration below.</p>
</div>
<div class="mb-3">
<div class="h5">Validation Issues:</div>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Category</td>
<th scope="col">Issue</td>
<th scope="col">Recommentation</td>
</tr>
</thead>
<tbody>
<!-- ko foreach: __ValidationResults -->
<tr data-bind="class: gradeClass">
<th data-bind="text: grade"></td>
<td data-bind="text: issue"></td>
<td data-bind="text: recommendation"></td>
</tr>
<!-- ko if: impact != 0 -->
<tr data-bind="class: gradeClass">
<td>Impact:</th>
<td data-bind="text: impact" colspan="2"></td>
</tr>
<!-- /ko -->
<!-- /ko -->
<!-- ko if: __ValidationResults().length == 0 -->
<tr class="table-success">
<th colspan="3">No validation issues</td>
</tr>
<!-- /ko -->
</tbody>
</table>
</div>
<div>
<div>
<button type="button" class="btn btn-primary mb-3" data-bind="enable: __ValidationResult() > 1, click: __DownloadConfig">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"></path>
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"></path>
</svg>
Download Configuration</button>
<button type="button" class="btn btn-primary mb-3" data-bind="enable: __ValidationResult() > 1, click: __DownloadSettingsManifest">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"></path>
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"></path>
</svg>
Download Settings Manifest</button>
</div>
<p class="p-3 mb-2 bg-warning text-dark">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">
<path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"></path>
<path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"></path>
</svg>
Make sure to keep a backup of your configuration by using the 'Export' option at the top of the page! You will need this to make further changes even after downloading the configuration and manifest.</p>
</div>
<div class="mb-3">
<h5>Using the generated configuration</h5>
<p>Place the .kvp and .json files in your ADS instance under the <code>/Plugins/ADSModule/GenericTemplates</code> directory along side the other .kvp and .json files.</p>
<p>Then restart ADS, and your new configuration will appear as an option when you select 'Create Instance'.</p>
</div>
<p> </p>
</form>
</div>
</main>
<div class="col-md-3 col-lg-3 d-md-block bg-light leftLine">
<div class="row rightbar">
<h1 class="h2 pt-3">Generated Data</h1>
<small class="mb-3">Values that are calculated automatically based on your input.</small>
<table class="table table-striped">
<tbody data-bind="foreach: __GenData">
<tr>
<!-- ko if: value.length > 32 -->
<td colspan="2">
<h6 data-bind="text: key"></h6>
<span data-bind="text: value"></span>
<!-- ko if: value == "" -->
<small class="form-text">No Generated Value</small>
<!-- /ko -->
</td>
<!-- /ko -->
<!-- ko if: value.length <= 32 -->
<td class="genTableHeader">
<h6 data-bind="text: key"></h6>
</td>
<td>
<span data-bind="text: value"></span>
<!-- ko if: value == "" -->
<small class="form-text">No Generated Value</small>
<!-- /ko -->
</td>
<!-- /ko -->
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="addEditSettingModal" data-bind="with: __AddEditSetting">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
data-bind="text: __vm.__IsEditingSetting() ? 'Edit Setting' : 'Add New Setting'"></h5>
<button type="button" class="close" data-bind="click: __vm.__CloseSetting">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="mb-3 col-6">
<label for="settingDispNameField">Display Name
<small class="d-block text-muted">The name of the setting as it will appear within AMPs
configuration page.</small>
</label>
<input type="text" class="form-control" id="settingDispNameField"
data-bind="value: DisplayName">
</div>
<div class="mb-3 col-6">
<label for="settingCategoryField">Category
<small class="d-block text-muted">Settings within the same category are automatically
grouped together.</small>
</label>
<input type="text" class="form-control" id="settingCategoryField"
data-bind="value: Category">
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label for="settingDescriptionField">Description
<small class="d-block text-muted">A brief explanation as to what the setting does and
what effect it will have.</small>
</label>
<input type="text" class="form-control" id="settingDescriptionField"
data-bind="value: Description">
</div>
<div class="mb-3 col-6">
<label for="settingKeywordField">Keywords
<small class="d-block text-muted">Keywords that relate to this setting. AMP uses these
to help users find settings when using the search box.</small>
</label>
<input type="text" class="form-control" id="settingKeywordField"
data-bind="value: Keywords">
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label for="settingFieldNameField">Field Name
<small class="d-block text-muted">The name of the command line argument that this
setting controls. Used as the arguments key.</small>
</label>
<input type="text" class="form-control" id="settingFieldNameField"
data-bind="value: FieldName">
</div>
<div class="mb-3 col-6">
<label for="settingInputTypeField">Input Type
<small class="d-block text-muted">Controls what interface is displayed to the user when
editing this setting.</small>
</label>
<select class="form-select" id="settingInputTypeField" data-bind="value: InputType">
<option value="text">Text</option>
<option value="password">Password</option>
<option value="number">Number</option>
<option value="checkbox">Checkbox</option>
</select>
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label>
<input class="form-check-input" type="checkbox"
data-bind="checked: IncludeInCommandLine">
<span>
Include in formatted command line
<small class="d-block text-muted">This setting controls a command line
argument/flag.</small>
</span>
</label>
</div>
<div class="mb-3 col-6"
data-bind="visible: InputType() == 'checkbox' && IncludeInCommandLine()">
<label>
<input class="form-check-input" type="checkbox" data-bind="checked: IsFlagArgument">
<span>
Is a flag argument
<small class="d-block text-muted">For checkbox based settings, the checkbox being on
will add the 'True' value as a flag without using the field name as a
key.</small>
</span>
</label>
</div>
</div>
<div class="row" data-bind="visible: InputType() == 'checkbox'">
<div class="mb-3 col-6">
<label for="settingCheckedValueField">Checked Value
<small class="d-block text-muted">The value used for this setting if it is
checked.</small>
</label>
<input type="text" class="form-control" id="settingCheckedValueField"
data-bind="value: _CheckedValue">
</div>
<div class="mb-3 col-6">
<label for="settingUncheckedValueField">Unchecked Value
<small class="d-block text-muted">The value used for this setting if it is not
checked.</small>
</label>
<input type="text" class="form-control" id="settingUncheckedValueField"
data-bind="value: _UncheckedValue">
</div>
</div>
<div class="row">
<div class="mb-3 col-6">
<label for="settingDefaultValueVield">Default Value
<small class="d-block text-muted">The value that this setting will have by default until
changed.</small>
</label>
<input type="text" class="form-control" id="settingDefaultValueVield"
data-bind="value: DefaultValue">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary"
data-bind="visible: !__vm.__IsEditingSetting(), click: __vm.__DoAddSetting">Add New
Setting</button>
<button type="button" class="btn btn-secondary"
data-bind="click: __vm.__CloseSetting">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="importExportDialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">