Verison 1.0.3 Release
Based on Buildbotics 0.4.14
This commit is contained in:
68
src/pug/templates/admin-general-view.pug
Normal file
68
src/pug/templates/admin-general-view.pug
Normal file
@@ -0,0 +1,68 @@
|
||||
//-/////////////////////////////////////////////////////////////////////////////
|
||||
//- //
|
||||
//- This file is part of the Buildbotics firmware. //
|
||||
//- //
|
||||
//- Copyright (c) 2015 - 2018, Buildbotics LLC //
|
||||
//- All rights reserved. //
|
||||
//- //
|
||||
//- This file ("the software") is free software: you can redistribute it //
|
||||
//- and/or modify it under the terms of the GNU General Public License, //
|
||||
//- version 2 as published by the Free Software Foundation. You should //
|
||||
//- have received a copy of the GNU General Public License, version 2 //
|
||||
//- along with the software. If not, see <http://www.gnu.org/licenses/>. //
|
||||
//- //
|
||||
//- The software is distributed in the hope that it will be useful, but //
|
||||
//- WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
//- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
|
||||
//- Lesser General Public License for more details. //
|
||||
//- //
|
||||
//- You should have received a copy of the GNU Lesser General Public //
|
||||
//- License along with the software. If not, see //
|
||||
//- <http://www.gnu.org/licenses/>. //
|
||||
//- //
|
||||
//- For information regarding this software email: //
|
||||
//- "Joseph Coffland" <joseph@buildbotics.com> //
|
||||
//- //
|
||||
//-/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
script#admin-general-view-template(type="text/x-template")
|
||||
#admin-general
|
||||
h2 Firmware
|
||||
button.pure-button.pure-button-primary(@click="check") Check
|
||||
//button.pure-button.pure-button-primary(@click="upgrade") Upgrade
|
||||
label.pure-button.pure-button-primary(@click="upload_firmware") Upload
|
||||
form.upload-firmware.file-upload
|
||||
input(type="file", accept=".bz2", @change="upload")
|
||||
|
||||
p
|
||||
input(type="checkbox", v-model="autoCheckUpgrade",
|
||||
@change="change_auto_check_upgrade")
|
||||
label(for="auto-check-upgrade") Automatically check for upgrades
|
||||
|
||||
h2 Configuration
|
||||
button.pure-button.pure-button-primary(@click="backup") Backup
|
||||
|
||||
label.pure-button.pure-button-primary(@click="restore_config") Restore
|
||||
form.restore-config.file-upload
|
||||
input(type="file", accept=".json", @change="restore")
|
||||
message(:show.sync="configRestored")
|
||||
h3(slot="header") Success
|
||||
p(slot="body") Configuration restored.
|
||||
|
||||
button.pure-button.pure-button-primary(@click="confirmReset = true") Reset
|
||||
message(:show.sync="confirmReset")
|
||||
h3(slot="header") Reset to default configuration?
|
||||
p(slot="body") Non-network configuration changes will be lost.
|
||||
div(slot="footer")
|
||||
button.pure-button(@click="confirmReset = false") Cancel
|
||||
button.pure-button.button-success(@click="reset") OK
|
||||
|
||||
message(:show.sync="configReset")
|
||||
h3(slot="header") Success
|
||||
p(slot="body") Configuration reset.
|
||||
|
||||
h2 Debugging
|
||||
a(href="/api/log", target="_blank")
|
||||
button.pure-button.pure-button-primary View Log
|
||||
a(href="/api/bugreport")
|
||||
button.pure-button.pure-button-primary Bug Report
|
||||
Reference in New Issue
Block a user