qmeeus / balancedview-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User interface

This repository is the user interface of a larger software located here. For more information about the whole project, please refer to the parent repository.

The UI is pretty intuitive for anyone with some experience with developing Flask websites and we will thus not develop it here. For a general understanding, it suffices to say that the only thing that it does is to capture user input, format it in a JSON document to forward to the API and display the API results in a web page. The code is very simple and self-explanatory. I won't go into the trouble of explaining how to add or modify web pages, many tutorials exist that explain this much better than I would.

A note on security: We use a CSRF token in the form to prevent Cross-Site Request Forgery attacks. We use the ``flask-csplibrary to implement the [Content Security Policy](https://en.wikipedia.org/wiki/Content_Security_Policy) that protects against XSS and other attacks. If you encounter problems displaying content in the web page, badly configured CSP is likely the culprit. Check out how they are implemented versus what is sent by the server. Note thatnginx` might tamper with these so the cause of the problem can be more complex that first meets the eye. Please refer to `flask` documentation (and Google) for more information about these.

About

License:GNU General Public License v3.0


Languages

Language:CSS 92.5%Language:HTML 3.4%Language:Python 1.9%Language:JavaScript 1.9%Language:Dockerfile 0.3%