Commit Graph

360 Commits (30562a9af524da8cbd08592b74d788ce3a9405e1)
 

Author SHA1 Message Date
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