- Refactoring

- Action Button with Parameter
- Actor Action with Parameter
- Sensor Action with Parameter
This commit is contained in:
Manuel83
2017-11-29 22:37:18 +01:00
parent 13836a5680
commit 9b7908c9c5
41 changed files with 8098 additions and 271 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
from flask import Blueprint,render_template
from modules.core.core import cbpi
from modules import cbpi
react = Blueprint('ui', __name__, template_folder='templates', static_folder='static')
@cbpi.addon.core.initializer(order=10)
def init(cbpi):
cbpi._app.register_blueprint(react, url_prefix='/ui')
cbpi.web.register_blueprint(react, url_prefix='/ui')
@react.route('/', methods=["GET"])
@@ -22,7 +22,7 @@ def index():
@cbpi._app.errorhandler(404)
@cbpi.web.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

+7713 -2
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6
View File
@@ -10,11 +10,17 @@
<link rel="stylesheet" href="static/bootstrap.dark.css">
<style>
html {
background-image: url('static/bg.png');
}
</style>
<title>CraftBeerPi 3.0</title>
</head>
<body>
<div id="root" ></div>
HALLO
<script src="static/bundle.js" type="text/javascript"></script>
+4 -9
View File
@@ -7,18 +7,13 @@
<link rel="stylesheet" href="static/bootstrap.min.css">
<link rel="stylesheet" href="static/css/font-awesome.min.css">
<link rel="stylesheet" href="static/bootstrap.dark.css">
<link href="https://fonts.googleapis.com/css?family=Dosis:200,500" rel="stylesheet">
<style>
body, h1, h2, h3, h4, h5, h6 {
font-family: 'Dosis', sans-serif;
}
</style>
<link rel="stylesheet" href="static/theme.css">
<link href="https://fonts.googleapis.com/css?family=Dosis:200,500" rel="stylesheet"/>
<title>CraftBeerPi 3.1</title>
</head>
<body>
<div id="root" ></div>