File: basic.html.j2

package info (click to toggle)
mysqltuner 2.8.29-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: perl: 7,229; sh: 620; python: 135; makefile: 119
file content (223 lines) | stat: -rw-r--r-- 9,936 bytes parent folder | download | duplicates (3)
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
<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
    <link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.19.1/dist/bootstrap-table.min.css">
<script src="https://unpkg.com/bootstrap-table@1.19.1/dist/bootstrap-table.min.js"></script>
    <title>MySQL Tuner {{ MySQLTuner.version }} - {{ MySQLTuner.datetime | default(' ??? ') }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <h1>MySQL Tuner {{ MySQLTuner.version }} - {{ MySQLTuner.datetime | default(' ??? ') }}</h1>

<div class="d-flex align-items-start">
  <div class="nav flex-column nav-pills me-3 justify-content-rigth" id="v-pills-tab" role="tablist" aria-orientation="vertical">
    {% set sections = { "Recommendations": "bi bi-list-check", "Variables": "bi bi-list-check", "Status": "bi bi-list-check", "Calculations": "bi bi-list-check" } %}
    {% for etab in sections %}
      <button class="nav-link{% if loop.index == 1 %} active{% endif %}" id="v-pills-{{ etab }}-tab" data-bs-toggle="pill" data-bs-target="#v-pills-{{ etab }}" type="button" role="tab" aria-controls="v-pills-{{ etab }}" aria-selected="true"><i class="{{ sections[etab] }}"></i>{{ etab }}</button>
    {% endfor %}
  </div>
  <div class="tab-content" id="v-pills-tabContent">
    <div class="tab-pane fade show active" id="v-pills-Recommendations" role="tabpanel" aria-labelledby="v-pills-Recommendations-tab">
      <h3><i class="bi bi-list-check"></i>Recommendations</h3>
      <script>
        function recFunction() {
          var input, filter, table, tr, td, i, txtValue;
          input = document.getElementById("recInput");
          filter = input.value.toUpperCase();
          table = document.getElementById("recTable");
          tr = table.getElementsByTagName("tr");
          for (i = 0; i < tr.length; i++) {
            td = tr[i].getElementsByTagName("td")[1];
            if (td) {
              txtValue = td.textContent || td.innerText;
              if (txtValue.toUpperCase().indexOf(filter) > -1) {
                tr[i].style.display = "";
              } else {
                tr[i].style.display = "none";
              }
            }
          }
        }
      </script>
      <table class="table" id="recTable">
        <thead>
          <tr>
            <th scope="col">#</th>
            <th scope="col">Recommandations <input type="text" id="recInput" onkeyup="recFunction()" placeholder="Search for names.." title="Type in a name"\></th>
          </tr>
        </thead>
        <tbody class="results">{% for result in Recommendations %}
          <tr>
              <td> {{ loop.index }}</td>
              <td> {{ result }}</td>
          </tr>{% endfor %}
        </tbody>
      </table>  
    </div>
    
    <div class="tab-pane fade" id="v-pills-Variables" role="tabpanel" aria-labelledby="v-pills-Variables-tab">
      <h3><i class="bi bi-list-check"></i>System variables</h3>
      <ul>
        <li><a href="https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html" target="_blank">MySQL 5.7 system variables</a></li>
        <li><a href="https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html" target="_blank">MySQL 8.0 system variables</a></li>
        <li><a href="https://mariadb.com/kb/en/server-system-variables" target="_blank">MariaDB system variables</a></li>
      </ul>
      <script>
        function sysFunction() {
          var input, filter, table, tr, td, i, txtValue;
          input = document.getElementById("sysInput");
          filter = input.value.toUpperCase();
          table = document.getElementById("sysTable");
          tr = table.getElementsByTagName("tr");
          for (i = 0; i < tr.length; i++) {
            td = tr[i].getElementsByTagName("td")[1];
            if (td) {
              txtValue = td.textContent || td.innerText;
              if (txtValue.toUpperCase().indexOf(filter) > -1) {
                tr[i].style.display = "";
              } else {
                tr[i].style.display = "none";
              }
            }
          }
        }
      </script>
      <table class="table" id="sysTable">
        <thead>
          <tr>
            <th scope="col">#</th>
            <th scope="col">Variable <input type="text" id="sysInput" onkeyup="sysFunction()" placeholder="Search for names.." title="Type in a name"\></th>
            <th scope="col">Value</th>
          </tr>
        </thead>
        <tbody>{% for vari in Variables %}
          <tr>
              <td> {{ loop.index }}</td>
              <td> {{ vari }}</td>
              <td>
                <ul>
                {% if Variables[vari] is string %}
                  {% for v in Variables[vari].split(',') %}
                    <li>{% if v == '' %}NOT DEFINED{% else %}{{ v }}{% endif %}</li>
                  {% endfor %}
                {% else %}
                  <li>{{ Variables[vari] }}</li>
                {% endif %}
                </ul>
              </td>
          </tr>{% endfor %}
        </tbody>
      </table>
    </div>
    <div class="tab-pane fade" id="v-pills-Status" role="tabpanel" aria-labelledby="v-pills-Status-tab">
      <h3><i class="bi bi-list-check"></i>Status Variables</h3>
      <ul>
        <li><a href="https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html" target="_blank">MySQL 5.7 Server status</a></li>
        <li><a href="https://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html" target="_blank">MySQL 8.0 Server status</a></li>
        <li><a href="https://mariadb.com/kb/en/server-status-variables/" target="_blank">MariaDB Server status</a></li>
      </ul>
      <script>
        function statFunction() {
          var input, filter, table, tr, td, i, txtValue;
          input = document.getElementById("statInput");
          filter = input.value.toUpperCase();
          table = document.getElementById("statTable");
          tr = table.getElementsByTagName("tr");
          for (i = 0; i < tr.length; i++) {
            td = tr[i].getElementsByTagName("td")[1];
            if (td) {
              txtValue = td.textContent || td.innerText;
              if (txtValue.toUpperCase().indexOf(filter) > -1) {
                tr[i].style.display = "";
              } else {
                tr[i].style.display = "none";
              }
            }
          }
        }
      </script>
      <table class="table" id="statTable">
        <thead>
          <tr>
            <th scope="col">#</th>
            <th scope="col">Variable de status <input type="text" id="statInput" onkeyup="statFunction()" placeholder="Search for names.." title="Type in a name"\></th>
            <th scope="col">Value</th>
          </tr>
        </thead>
        <tbody>{% for vari in Status %}
          <tr>
              <td> {{ loop.index }}</td>
              <td> {{ vari }}</td>
              <td>
                <ul>
                {% if Status[vari] is string %}
                  {% for v in Status[vari].split(',') %}
                    <li>{% if v == '' %}NOT DEFINED{% else %}{{ v }}{% endif %}</li>
                  {% endfor %}
                {% else %}
                  <li>{{ Status[vari] }}</li>
                {% endif %}
                </ul>
              </td>

          </tr>{% endfor %}
        </tbody>
      </table>
    </div>
    <div class="tab-pane fade" id="v-pills-Calculations" role="tabpanel" aria-labelledby="v-pills-Calculations-tab">
      <h3><i class="bi bi-list-check"></i>Calculated variables</h3>
      <script>
        function calcFunction() {
          var input, filter, table, tr, td, i, txtValue;
          input = document.getElementById("calcInput");
          filter = input.value.toUpperCase();
          table = document.getElementById("calcTable");
          tr = table.getElementsByTagName("tr");
          for (i = 0; i < tr.length; i++) {
            td = tr[i].getElementsByTagName("td")[1];
            if (td) {
              txtValue = td.textContent || td.innerText;
              if (txtValue.toUpperCase().indexOf(filter) > -1) {
                tr[i].style.display = "";
              } else {
                tr[i].style.display = "none";
              }
            }
          }
        }
      </script>
      <table class="table" id="calcTable">
        <thead>
          <tr>
            <th scope="col">#</th>
            <th scope="col">Calculated variables <input type="text" id="calcInput" onkeyup="calcFunction()" placeholder="Search for names.." title="Type in a name"\></th>
            <th scope="col">Value</th>
          </tr>
        </thead>
        <tbody>{% for vari in Calculations %}
          <tr>
              <td> {{ loop.index }}</td>
              <td> {{ vari }}</td>
              <td> {{ Calculations[vari] }}</td>
          </tr>{% endfor %}
        </tbody>
      </table>
    </div>
  </div>
</div>
    
  

  </body>
</html>