Loading src/webui/service/main/routes.py +3 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,9 @@ def topology(): def about(): return render_template('main/about.html') @main.get('/debug') def debug(): return render_template('main/debug.html') @main.get('/resetsession') def reset_session(): Loading src/webui/service/templates/base.html +9 −4 Original line number Diff line number Diff line Loading @@ -77,8 +77,13 @@ </li> <li class="nav-item"> <a class="nav-link" href="#" id="grafana_link" target="grafana">Grafana</a> <a class="nav-link" href="/grafana" id="grafana_link" target="grafana">Grafana</a> </li> <li class="nav-item"> <a class="nav-link" href="{{ url_for('main.debug') }}">Debug</a> </li> <!-- <li class="nav-item"> <a class="nav-link" href="#">Context</a> </li> Loading Loading @@ -143,9 +148,9 @@ <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-kQtW33rZJAHjgefvhyyzcGF3C5TFyBQBA13V1RKPf4uH+bwyzQxZ6CmMZHmNBEfJ" crossorigin="anonymous"></script> <!-- <script src="{{ url_for('static', filename='site.js') }}"/> --> <script> <!-- <script> document.getElementById("grafana_link").href = window.location.protocol + "//" + window.location.hostname + ":30300" </script> </script> --> <!-- Option 2: Separate Popper and Bootstrap JS --> <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script> Loading src/webui/service/templates/main/debug.html 0 → 100644 +36 −0 Original line number Diff line number Diff line <!-- Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> {% extends 'base.html' %} {% block content %} <h1>Debug</h1> <h3>Dump ContextDB:</h3> <ul> <li> <a class="nav-link" href="/context/api/dump/html" id="context_html_link" target="context_html"> as HTML </a> </li> <li> <a class="nav-link" href="/context/api/dump/text" id="context_text_link" target="context_text"> as Text </a> </li> </ul> {% endblock %} Loading
src/webui/service/main/routes.py +3 −0 Original line number Diff line number Diff line Loading @@ -118,6 +118,9 @@ def topology(): def about(): return render_template('main/about.html') @main.get('/debug') def debug(): return render_template('main/debug.html') @main.get('/resetsession') def reset_session(): Loading
src/webui/service/templates/base.html +9 −4 Original line number Diff line number Diff line Loading @@ -77,8 +77,13 @@ </li> <li class="nav-item"> <a class="nav-link" href="#" id="grafana_link" target="grafana">Grafana</a> <a class="nav-link" href="/grafana" id="grafana_link" target="grafana">Grafana</a> </li> <li class="nav-item"> <a class="nav-link" href="{{ url_for('main.debug') }}">Debug</a> </li> <!-- <li class="nav-item"> <a class="nav-link" href="#">Context</a> </li> Loading Loading @@ -143,9 +148,9 @@ <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-kQtW33rZJAHjgefvhyyzcGF3C5TFyBQBA13V1RKPf4uH+bwyzQxZ6CmMZHmNBEfJ" crossorigin="anonymous"></script> <!-- <script src="{{ url_for('static', filename='site.js') }}"/> --> <script> <!-- <script> document.getElementById("grafana_link").href = window.location.protocol + "//" + window.location.hostname + ":30300" </script> </script> --> <!-- Option 2: Separate Popper and Bootstrap JS --> <!-- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script> Loading
src/webui/service/templates/main/debug.html 0 → 100644 +36 −0 Original line number Diff line number Diff line <!-- Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> {% extends 'base.html' %} {% block content %} <h1>Debug</h1> <h3>Dump ContextDB:</h3> <ul> <li> <a class="nav-link" href="/context/api/dump/html" id="context_html_link" target="context_html"> as HTML </a> </li> <li> <a class="nav-link" href="/context/api/dump/text" id="context_text_link" target="context_text"> as Text </a> </li> </ul> {% endblock %}