config-vars.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <!doctype html>
  2. <html lang=en>
  3. <head>
  4. <meta charset=utf-8>
  5. <meta name=viewport content="width=device-width,initial-scale=1">
  6. <title>Environment Variables</title>
  7. <style>*,::before,::after{box-sizing:border-box}html{-ms-overflow-style:scrollbar;-ms-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%;font-family:sans-serif;line-height:1.15}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:0!important}b{font-weight:bolder}small{font-size:80%}table{border-collapse:collapse}th{text-align:inherit}html{box-sizing:border-box;-ms-overflow-style:scrollbar}*,::before,::after{box-sizing:inherit}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.col-12{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}body{color:#1e375a;position:relative;background-color:#eee}.table{border:1px solid #dee2e6;color:#000;table-layout:fixed;vertical-align:top;width:100%}.table > :not(caption) > * > *{border-bottom-width:1px;padding:.5rem}.table > tbody{vertical-align:inherit}.table > thead{vertical-align:bottom}.table > thead,.table > tbody{display:block}.table tr{display:block}.table th,.table td{display:block}.table tr th,.table tr td{overflow:hidden;text-overflow:ellipsis;white-space:normal}.table thead tr{background-color:#e9ecef}.table tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table tbody tr:hover{background-color:#fffbdf}@media (min-width: 576px){.table > thead{display:table-header-group}.table > tbody{display:table-row-group}.table tr{display:table-row}.table th,.table td{display:table-cell}.table tr th,.table tr td{white-space:nowrap}}.table tr.required td{color:#ed5757}</style>
  8. </head>
  9. <body>
  10. <div class="container-fluid">
  11. <div class="row">
  12. <div class="col-12">
  13. <div style="padding:15px 0">
  14. <table class="table">
  15. <thead>
  16. <tr>
  17. <th>Variable</th>
  18. <th>Value</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {{ if gt (len $.Data) 0 }}
  23. {{range $key, $value := $.Data}}
  24. <tr{{if $value.Required}} class="required"{{end}}>
  25. <td>
  26. <div>
  27. <b>{{$value.NameFlag}}</b>
  28. </div>
  29. <div>
  30. {{$value.NameEnv}}
  31. </div>
  32. <div>
  33. <small>{{$value.Desc}}</small>
  34. </div>
  35. </td>
  36. <td>
  37. <div><b>{{$value.Type}}</b></div>
  38. <div>
  39. <span title="Current">
  40. {{if $value.Secret}}
  41. {{if ne $value.Value ""}}
  42. {{secret $value.Value}}
  43. {{else}}
  44. {{secret "&mdash;"}}
  45. {{end}}
  46. {{else}}
  47. {{if ne $value.Value ""}}
  48. {{$value.Value}}
  49. {{else}}
  50. &mdash;
  51. {{end}}
  52. {{end}}
  53. </span>
  54. </div>
  55. {{if $value.Required}}
  56. <div>
  57. <b><small>Required</small></b>
  58. </div>
  59. {{else}}
  60. <div>
  61. <span title="Default">
  62. <small>
  63. {{if $value.Secret}}
  64. {{if ne $value.Default ""}}
  65. {{secret $value.Default}}
  66. {{else}}
  67. {{secret "&mdash;"}}
  68. {{end}}
  69. {{else}}
  70. {{if ne $value.Default ""}}
  71. {{$value.Default}}
  72. {{else}}
  73. &mdash;
  74. {{end}}
  75. {{end}}
  76. </small>
  77. </span>
  78. </div>
  79. {{end}}
  80. </td>
  81. </tr>
  82. {{end}}
  83. {{else}}
  84. <tr>
  85. <td colspan="2">No data for display</td>
  86. </tr>
  87. {{end}}
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </body>
  95. </html>