"a few changes"
Took 6 hours 57 minutes
This commit is contained in:
6
server/views/error.pug
Normal file
6
server/views/error.pug
Normal file
@ -0,0 +1,6 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
h1= message
|
||||
h2= error.status
|
||||
pre #{error.stack}
|
68
server/views/index.pug
Normal file
68
server/views/index.pug
Normal file
@ -0,0 +1,68 @@
|
||||
extends layout
|
||||
|
||||
block setup
|
||||
div#setupLEDDiv
|
||||
h1 LED-Einstellungen
|
||||
div.inputGroup
|
||||
label(onclick="document.getElementById('ledCheckbox').checked = !document.getElementById('ledCheckbox').checked;") Aktivieren
|
||||
input#ledCheckbox.input(type="checkbox")
|
||||
div.inputGroup
|
||||
label GPIO-Pin
|
||||
input#ledGPIO.input(type="number" value="18" style="width:15%" disabled="disabled")
|
||||
div.inputGroup
|
||||
label Ambiente Farbe
|
||||
input#ambientColor.input(type="color" value="#05445E" style="width:15%")
|
||||
|
||||
div#setupExtraDiv
|
||||
h1 Erweiterte Einstellungen
|
||||
div.inputGroup
|
||||
label(onclick="document.getElementById('allowRemoteCheckbox').checked = !document.getElementById('allowRemoteCheckbox').checked;") Remote-Verbindungen erlauben
|
||||
input#allowRemoteCheckbox.input(type="checkbox")
|
||||
//div.inputGroup
|
||||
// label(onclick="document.getElementById('hotspotCheckbox').checked = !document.getElementById('hotspotCheckbox').checked;") Ohne WiFi Hotspot aktivieren
|
||||
// input#hotspotCheckbox.input(type="checkbox")
|
||||
div.inputGroup
|
||||
label() Arduino Mega als Proxy erlauben
|
||||
input#proxyCheckbox.input(type="checkbox")
|
||||
|
||||
|
||||
div#setupContainersDiv
|
||||
h1 Behälter
|
||||
// Setup
|
||||
button.btn.btn-primary#containerAddBtn Hinzufügen
|
||||
br
|
||||
div#setupContainers
|
||||
|
||||
|
||||
button.btn.btn-danger#setup_cancelBtn(style="grid-row: span 1; grid-column: span 1; border-radius: 15px; font-size: 1.2em;") Abbrechen
|
||||
button.btn.btn-success#setup_saveBtn(style="grid-row: span 1; grid-column: span 1; border-radius: 15px; font-size: 1.2em;") Speichern
|
||||
|
||||
block menu
|
||||
// Menu
|
||||
// gridrow span 1
|
||||
setupcontainers
|
||||
butto
|
||||
button.btn.btn-primary#menu_containers Behälter
|
||||
button.btn.btn-primary#menu_stats Statistiken
|
||||
button.btn.btn-primary#menu_settings Einstellungen
|
||||
button.btn.btn-primary#menu_setup Setup
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
block settings
|
||||
// Settings
|
||||
button.btn.btn-primary#settings_refreshDrinks Datenbank aktualisieren
|
||||
button.btn.btn-primary#settings_deleteDrinks Datenbank leeren
|
||||
button.btn.btn-primary#settings_reload Oberfläche neu starten
|
||||
button.btn.btn-primary#settings_hotspot Hotspot Einstellungen
|
||||
button.btn.btn-primary#settings_getInfo Systeminformationen
|
||||
button.btn.btn-primary#settings_update System aktualisieren
|
||||
button.btn.btn-primary#settings_restart(disabled="disabled") iTender neu starten
|
||||
button.btn.btn-primary#settings_shutdown() iTender herunterfahren
|
||||
|
||||
|
||||
block main
|
||||
// Main is build dynamically
|
58
server/views/layout.pug
Normal file
58
server/views/layout.pug
Normal file
@ -0,0 +1,58 @@
|
||||
doctype html
|
||||
html
|
||||
head
|
||||
title iTender
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
||||
link(rel='stylesheet', href='/stylesheets/reset.css')
|
||||
link(rel='stylesheet', href='/stylesheets/style.css')
|
||||
link(rel='preload' as='image' href='/static/shot.png')
|
||||
link(rel='preload' as='image' href='/static/small.png')
|
||||
link(rel='preload' as='image' href='/static/normal.png')
|
||||
link(rel='preload' as='image' href='/static/large.png')
|
||||
meta(charset="UTF-8")
|
||||
body
|
||||
div#blockPanel
|
||||
div.modal#modal
|
||||
div.modal-content#modal-content
|
||||
div.modalInnerContent#modalInnerContent
|
||||
|
||||
div#overlay
|
||||
div#top
|
||||
span#left <strong>Status:</strong> <span id="status">...</span>
|
||||
span#title iTender
|
||||
span#right 00:00
|
||||
div#bottom
|
||||
div
|
||||
button.btn#menuBtn Menü
|
||||
|
||||
div#menuContainers
|
||||
div.container(style="background-color:red")
|
||||
span 3%
|
||||
div.container
|
||||
span 20%
|
||||
div.container
|
||||
span 100%
|
||||
div.container
|
||||
span 30%
|
||||
div.container(style="background-color:#ef4f00")
|
||||
span 12%
|
||||
div.container
|
||||
span 100%
|
||||
div.container(style="background-color:grey")
|
||||
span 0%
|
||||
div.container(style="background-color:red")
|
||||
span 3%
|
||||
|
||||
|
||||
div#container
|
||||
div.pane#main
|
||||
block main
|
||||
div.pane#setup
|
||||
block setup
|
||||
div.pane#menu
|
||||
block menu
|
||||
div.pane#settings
|
||||
block settings
|
||||
|
||||
block extra
|
||||
script(src="/web.js")
|
Reference in New Issue
Block a user