* add Dashboards log handler to all known loggers * add list of last 3 warnings/errors to page * add note list to page * create LogHandler for the dashboard - simple memory log handler which stores the last 64 warnings/errors for the dashboard * render warnings/errors as note list * add page for warnings and errors * fix double defined build target * add well done message if no errors in the logs * translate page titles * more translations * add Notes page and table for important messages * add unit tests
33 lines
673 B
Python
33 lines
673 B
Python
from quart import render_template
|
|
from .wrapper import url_for
|
|
|
|
from . import web
|
|
|
|
|
|
@web.route('/')
|
|
async def index():
|
|
return await render_template(
|
|
'page_index.html.j2',
|
|
fetch_url=url_for('.data_fetch'))
|
|
|
|
|
|
@web.route('/mqtt')
|
|
async def mqtt():
|
|
return await render_template(
|
|
'page_mqtt.html.j2',
|
|
fetch_url=url_for('.mqtt_fetch'))
|
|
|
|
|
|
@web.route('/notes')
|
|
async def notes():
|
|
return await render_template(
|
|
'page_notes.html.j2',
|
|
fetch_url=url_for('.notes_fetch'))
|
|
|
|
|
|
@web.route('/logging')
|
|
async def logging():
|
|
return await render_template(
|
|
'page_logging.html.j2',
|
|
fetch_url=url_for('.file_fetch'))
|