From c83413c4c4bc5b29cc988931b407e428fd0ed28b Mon Sep 17 00:00:00 2001 From: VanessaHuertas Date: Sat, 19 May 2018 12:06:35 -0500 Subject: [PATCH] Noalmerge --- EntidadVirtual/API_REST/server.py | 8 +++--- .../src/app/alerta/alerta.component.css | 11 +++++++- .../src/app/alerta/alerta.component.html | 5 ++-- .../src/app/fallo/fallo.component.html | 24 ++---------------- Front/SoftSecurity/src/index.html | 11 +++++--- Front/SoftSecurity/src/styles.css | 25 +++++++++++++++---- 6 files changed, 47 insertions(+), 37 deletions(-) diff --git a/EntidadVirtual/API_REST/server.py b/EntidadVirtual/API_REST/server.py index 5a41727..733ad65 100644 --- a/EntidadVirtual/API_REST/server.py +++ b/EntidadVirtual/API_REST/server.py @@ -13,11 +13,12 @@ import json from os import environ as env from werkzeug.exceptions import HTTPException -import horarios.horariosLogic as hl +# import horarios.horariosLogic as hl from authlib.flask.client import OAuth from six.moves.urllib.parse import urlencode import requests from functools import wraps +from dotenv import load_dotenv, find_dotenv app = Flask(__name__, static_url_path='/public', static_folder='./public', template_folder='templates') app.secret_key = 'estaesunaclavesecreta' @@ -28,7 +29,7 @@ client.connect("broker.mqtt-dashboard.com", 1883) app.config['MONGO_DBNAME'] = 'restdb' -app.config['MONGO_URI'] = 'mongodb://localhdost:27017/restdb' +app.config['MONGO_URI'] = 'mongodb://localhost:27017/restdb' mongo = PyMongo(app) oauth = OAuth(app) @@ -58,7 +59,7 @@ def insert_cerradura(): nuevo_candado = "0;"+password+";"+posicion; #hl.agregar_candado(hora_inicio, hora_fin, posicion) - hl.agregar_candado(hora_inicio, hora_fin, posicion) + # hl.agregar_candado(hora_inicio, hora_fin, posicion) client.publish(topico, nuevo_candado) return jsonify(nuevo_candado) @@ -521,6 +522,5 @@ def add_hub(id_propietario): return jsonify({'result': output}) - if __name__ == '__main__': app.run(debug=True) diff --git a/Front/SoftSecurity/src/app/alerta/alerta.component.css b/Front/SoftSecurity/src/app/alerta/alerta.component.css index c00f5fd..980d906 100644 --- a/Front/SoftSecurity/src/app/alerta/alerta.component.css +++ b/Front/SoftSecurity/src/app/alerta/alerta.component.css @@ -3,7 +3,7 @@ div#alerta { right:662px; left:160px; height:180px; - width:490px; + width:490px; background-color:white; z-index:0; } @@ -12,3 +12,12 @@ p.textoAlerta { color: #8f0000; font-size: 200%; } + +div#redPointer { + width:45px; + height:45px; + left:30px; + margin:10px; + background-image: url(/imagenes/redPointer.png); + z-index:1; +} diff --git a/Front/SoftSecurity/src/app/alerta/alerta.component.html b/Front/SoftSecurity/src/app/alerta/alerta.component.html index a37b059..637ffce 100644 --- a/Front/SoftSecurity/src/app/alerta/alerta.component.html +++ b/Front/SoftSecurity/src/app/alerta/alerta.component.html @@ -1,8 +1,9 @@
-

Alertas!

+

Alertas!

- +
+
diff --git a/Front/SoftSecurity/src/app/fallo/fallo.component.html b/Front/SoftSecurity/src/app/fallo/fallo.component.html index bb685f0..b948404 100644 --- a/Front/SoftSecurity/src/app/fallo/fallo.component.html +++ b/Front/SoftSecurity/src/app/fallo/fallo.component.html @@ -1,25 +1,5 @@ -
+

Fallos!

- -
-
    -
    -
  • - {{fallo.tipoFallo + ', ' + fallo.fecha + ', ' + fallo.hora}} -
  • -
    -
-
- -
- - +
diff --git a/Front/SoftSecurity/src/index.html b/Front/SoftSecurity/src/index.html index be3b5e3..051fa40 100644 --- a/Front/SoftSecurity/src/index.html +++ b/Front/SoftSecurity/src/index.html @@ -19,10 +19,15 @@ -
-

SoftSecurity

+
-
+
+
+

SoftSecurity

+
+
+

Log Out!

+