mirror of
https://github.com/Manuel83/craftbeerpi3
synced 2026-08-10 02:55:27 +02:00
-Custom Web View Examples Added
-UI Adjustment for small screens. Brew Steps are displayed above the kettles. -
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"presets" : ["es2015", "stage-0", "react"]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
from flask import Blueprint
|
||||
|
||||
from modules.core.core import cbpi, addon
|
||||
from flask_swagger import swagger
|
||||
from flask import json
|
||||
from flask import Blueprint
|
||||
|
||||
@addon.core.initializer(order=22)
|
||||
def web(cbpi):
|
||||
|
||||
s = Blueprint('webviewreact', __name__, template_folder='templates', static_folder='static')
|
||||
|
||||
@s.route('/', methods=["GET"])
|
||||
def index():
|
||||
return s.send_static_file("index.html")
|
||||
|
||||
print "REGISTER"
|
||||
cbpi.addon.core.add_menu_link("ReactJS View", "/webviewreact")
|
||||
cbpi._app.register_blueprint(s, url_prefix='/webviewreact')
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "react-app2",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"react-scripts": "0.9.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.16.1",
|
||||
"babel-core": "^6.18.2",
|
||||
"babel-loader": "^6.2.8",
|
||||
"babel-preset-es2015": "^6.18.0",
|
||||
"babel-preset-react": "^6.16.0",
|
||||
"babel-preset-stage-0": "^6.22.0",
|
||||
"classnames": "^2.2.5",
|
||||
"highcharts-boost": "^0.1.2",
|
||||
"highcharts-exporting": "^0.1.2",
|
||||
"highcharts-more": "^0.1.2",
|
||||
"immutability-helper": "^2.1.2",
|
||||
"rc-slider": "^7.0.8",
|
||||
"react": "^15.5.4",
|
||||
"react-bootstrap": "^0.30.10",
|
||||
"react-bs-notifier": "^4.3.2",
|
||||
"react-dom": "^15.5.4",
|
||||
"react-fileupload-progress": "^0.4.0",
|
||||
"react-highcharts": "^12.0.0",
|
||||
"react-js-diagrams": "^3.1.2",
|
||||
"react-jsonschema-form": "^0.50.1",
|
||||
"react-redux": "^5.0.4",
|
||||
"react-router-dom": "^4.1.1",
|
||||
"react-sortable-hoc": "^0.6.3",
|
||||
"redux": "^3.6.0",
|
||||
"redux-logger": "^3.0.1",
|
||||
"redux-thunk": "^2.2.0",
|
||||
"socket.io-client": "^1.7.3",
|
||||
"webpack": "^1.13.3"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>CraftBeerPi WebView</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root" >
|
||||
|
||||
</div>
|
||||
<script src="static/bundle.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user