Commit Graph

315 Commits (088316e006638c2f2b7c9de98df40e8f488f9c52)
 

Author SHA1 Message Date
Roberto Hueso Gómez b7e980f946 Add 500 default error handler
This handles HTTP 500 internal server errors.
2020-09-04 13:21:36 +02:00
Roberto Hueso Gómez 31d2808a43 Add 404 default error handler.
This handles HTTP 404 page does not exist errors.
2020-09-04 13:20:11 +02:00
Roberto Hueso Gómez bb7e201991 Add refresh action
This action can be applied on single or multiple scopes.
2020-09-04 13:18:26 +02:00
Roberto Hueso Gómez d5eaf699a7 Add WoL action
This action can be applied on one or multiple scopes. This
implementation use Flask-WTF as a way to build and valdiate forms. As a
side effect, this adds CSRF protection to all forms.
2020-09-04 11:09:44 +02:00
Roberto Hueso Gómez 73a6e07b83 Add reboot action
This action handles reboot on one or multiple scopes.
2020-09-03 11:50:58 +02:00
Roberto Hueso Gómez ef609cf52a Rename add_state_to_scopes() function
This function is renamed to add_state_and_ips() which is more accurate.
2020-09-02 14:50:52 +02:00
Roberto Hueso Gómez c12ff832c7 Add action_poweroff() view function
This function handles a poweroff request to one or multiple scopes.
2020-09-02 14:46:20 +02:00
Roberto Hueso Gómez 30c5173aea Implement scopes() view function
This function provides the data needed to render the scopes.html
template.
2020-09-02 14:45:02 +02:00
Roberto Hueso Gómez 46b88fff0b Add requests functionality to the OGServer class
These functions will be used to make HTTP GET and POST requests to the
OGServer.
2020-09-02 14:42:10 +02:00
Roberto Hueso Gómez a4957f2284 Add scopes.html template
This template shows information about scopes and its states as well as a
tool to apply actions on them. Style improvements are still necessary.
2020-09-02 14:37:56 +02:00
Roberto Hueso Gómez 3fe6ad6ac6 Add bootstrap bundle
This is used for multiple bootstrap components such as dropdown menus.
2020-09-02 14:35:30 +02:00
Roberto Hueso Gómez 01efd71022 Add frontend basic structure
This adds base.html and nav.html templates as well as its dependencies
on Bootstrap and jQuery.
2020-08-31 11:58:38 +02:00
Roberto Hueso Gómez df2e425b34 Add basic backend structure
This adds views functions and ogServer config loading.
2020-08-31 11:58:27 +02:00
Roberto Hueso Gómez 0e160da4c0 Add requirements.txt
These are the basic libraries this app needs in order to run:
- Flask
- requests
- Flask-Babel

the rest of libraries are dependencies of theirs.
2020-08-31 11:51:07 +02:00
Roberto Hueso Gómez 8429541558 Add gitignore 2020-08-28 10:18:43 +02:00