mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-09-19 15:59:07 +02:00
- Refactoring
- Action Button with Parameter - Actor Action with Parameter - Sensor Action with Parameter
This commit is contained in:
@@ -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 |
Vendored
+7713
-2
File diff suppressed because one or more lines are too long
+37
-36
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user