From ddfc4c01d0381a96be03ac35c2f6e17e2828bacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 11:29:34 +0200 Subject: [PATCH 1/8] some style and text fixes --- lang/en.php | 21 ++++++++++++--------- pages/cfg_system.php | 9 +++++---- pages/cfg_term.php | 26 +++++++++++++------------- pages/help/charsets.php | 2 +- pages/help/cmd_system.php | 4 ++-- pages/help/sgr_colors.php | 2 +- pages/help/sgr_styles.php | 2 +- sass/form/_form_layout.scss | 6 +++++- sass/layout/_box.scss | 12 ++++++++++++ sass/pages/_about.scss | 3 ++- 10 files changed, 54 insertions(+), 33 deletions(-) diff --git a/lang/en.php b/lang/en.php index 9b29c99..0b45801 100644 --- a/lang/en.php +++ b/lang/en.php @@ -35,9 +35,9 @@ return [ 'term.defaults' => 'Initial Settings', 'term.expert' => 'Expert Options', 'term.explain_initials' => ' - Those are the initial settings used after ESPTerm powers on or when the screen - reset command is received. Some options can be changed by the application via escape sequences, - those changes won\'t be saved in Flash. + Those are the initial settings used after ESPTerm powers on, or when the screen + reset command is received. They can be later changed by control commands by the + terminal application. ', 'term.explain_expert' => ' Those are advanced config options that usually don\'t need to be changed. @@ -66,8 +66,8 @@ return [ 'term.fn_alt_mode' => 'SS3 Fn keys', 'term.show_config_links' => 'Show nav links', 'term.show_buttons' => 'Show buttons', - 'term.loopback' => 'Local Echo', - 'term.crlf_mode' => 'Enter sends CR+LF', + 'term.loopback' => 'Local Echo (SRM)', + 'term.crlf_mode' => 'CR+LF enter (LNM)', 'term.want_all_fn' => 'Capture all keys
(F5, F11, F12…)', 'term.button_msgs' => 'Button codes
(ASCII, dec, CSV)', 'term.color_fg' => 'Default fg.', @@ -173,21 +173,23 @@ return [ 'system.password' => 'Admin password:', 'system.restore_defaults' => 'Reset to saved defaults', 'system.write_defaults' => 'Save active settings as defaults', - 'system.restore_hard' => 'Reset active settings to firmware defaults', + 'system.restore_hard' => 'Reset active settings to factory defaults', + 'system.restore_hard_explain' => '(This clears the WiFi config! Does not affect saved defaults or admin password.)', 'system.explain_persist' => ' ESPTerm saves all settings in Flash. The active settings can be copied to the "defaults area" and restored later using the blue button below. ', 'system.uart' => 'Serial Port', 'system.explain_uart' => ' - This form controls the primary, communication UART. The debug UART is fixed + This form controls the communication UART. The debug UART is fixed at 115.200 baud, one stop-bit and no parity. ', 'system.security' => 'Access Restrictions', 'system.explain_security' => ' Some parts, or all of the web interface can be protected by a password prompt. - Leave the new password fields empty if you do not wish to change it. + Leave the new password fields empty if you do not wish to change it.
+ The default password is "%def_access_pw%". ', 'system.pwlock' => 'Protected pages', 'system.pwlock.none' => 'None, all open', @@ -207,7 +209,8 @@ return [ and to change access restrictions. This password is not saved as part of the main config, i.e. using save / restore does not affect this password. When the admin password is forgotten, the easiest way to - re-gain access is to wipe and re-flash the chip. + re-gain access is to wipe and re-flash the chip.
+ The default admin password is "%def_admin_pw%". ', 'system.new_admin_pw' => 'New admin pass.', 'system.new_admin_pw2' => 'New pass., repeat', diff --git a/pages/cfg_system.php b/pages/cfg_system.php index bcf99f9..c4993a9 100644 --- a/pages/cfg_system.php +++ b/pages/cfg_system.php @@ -5,7 +5,7 @@ -
+ -
+
-
+
- +
+
diff --git a/pages/cfg_term.php b/pages/cfg_term.php index 11b70aa..c56c737 100644 --- a/pages/cfg_term.php +++ b/pages/cfg_term.php @@ -2,7 +2,7 @@
-
+

@@ -166,6 +166,18 @@
+
+ + +
+ +
+ + +
+
@@ -262,24 +274,12 @@
-
- - -
-
-
- - -
-
diff --git a/pages/help/charsets.php b/pages/help/charsets.php index c21b1dc..961eda6 100644 --- a/pages/help/charsets.php +++ b/pages/help/charsets.php @@ -41,7 +41,7 @@ } ?> -

Switching commands

+

Codepage switching commands

There are two character set slots, G0 and G1. diff --git a/pages/help/cmd_system.php b/pages/help/cmd_system.php index f7b19f0..28989d3 100644 --- a/pages/help/cmd_system.php +++ b/pages/help/cmd_system.php @@ -14,8 +14,8 @@ `\ec` - Clear screen, reset attributes and cursor. - The screen size, title and button labels remain unchanged. + Clear screen, reset attributes and cursor. This command also restores the default + screen size, title, button labels and messages. diff --git a/pages/help/sgr_colors.php b/pages/help/sgr_colors.php index 7ad778c..ff42217 100644 --- a/pages/help/sgr_colors.php +++ b/pages/help/sgr_colors.php @@ -1,6 +1,6 @@

-

Commands: Color SGR

+

Commands: Color attributes

diff --git a/pages/help/sgr_styles.php b/pages/help/sgr_styles.php index bfa788a..d8b2e44 100644 --- a/pages/help/sgr_styles.php +++ b/pages/help/sgr_styles.php @@ -1,5 +1,5 @@

-

Commands: Style SGR

+

Commands: Style attributes

diff --git a/sass/form/_form_layout.scss b/sass/form/_form_layout.scss index 6e76b4e..ae9e792 100755 --- a/sass/form/_form_layout.scss +++ b/sass/form/_form_layout.scss @@ -65,13 +65,17 @@ form { @include naked(); } } // buttons2 is the same style, but different selector for use in the admin page - &.buttons { + &.buttons, &.buttons2 { margin: 16px auto; input, .button { margin-right: dist(-1); } } + &.buttons2 { + display:block; + } + &.centered { justify-content: center; } diff --git a/sass/layout/_box.scss b/sass/layout/_box.scss index 219757f..f97c1d5 100755 --- a/sass/layout/_box.scss +++ b/sass/layout/_box.scss @@ -145,6 +145,18 @@ } } } + + @include media($tablet-min) { + &.desktop-expanded { + .Row { + display: flex; + + &.v { + display: block; + } + } + } + } } .Box.fold { diff --git a/sass/pages/_about.scss b/sass/pages/_about.scss index 91a1cda..1e5dfdf 100644 --- a/sass/pages/_about.scss +++ b/sass/pages/_about.scss @@ -24,7 +24,8 @@ .page-help { code { - background: rgba(33, 97, 109, 0.31); + background: #2da2b9; + color: black; border-radius: 1px; padding: 0 2px; } From bbba9ec52751af2ee92fac8571e9a0f690c0fe61 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Tue, 26 Sep 2017 11:46:41 +0200 Subject: [PATCH 2/8] Grammar --- lang/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/en.php b/lang/en.php index 0b45801..d89ae25 100644 --- a/lang/en.php +++ b/lang/en.php @@ -36,7 +36,7 @@ return [ 'term.expert' => 'Expert Options', 'term.explain_initials' => ' Those are the initial settings used after ESPTerm powers on, or when the screen - reset command is received. They can be later changed by control commands by the + reset command is received. They can be changed later by control commands by the terminal application. ', 'term.explain_expert' => ' From 5d907c11efa05b0e202321a91fa180edbabd5ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 11:53:47 +0200 Subject: [PATCH 3/8] grammar v. 2 --- lang/en.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/en.php b/lang/en.php index d89ae25..17b9a7c 100644 --- a/lang/en.php +++ b/lang/en.php @@ -36,8 +36,8 @@ return [ 'term.expert' => 'Expert Options', 'term.explain_initials' => ' Those are the initial settings used after ESPTerm powers on, or when the screen - reset command is received. They can be changed later by control commands by the - terminal application. + reset command is received. They can be changed later by the terminal application + via control commands. ', 'term.explain_expert' => ' Those are advanced config options that usually don\'t need to be changed. From d831d47f5329e3bab11786942d941eb8ff4d1682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 13:26:57 +0200 Subject: [PATCH 4/8] show tx power as dBm --- js/wifi.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/wifi.js b/js/wifi.js index 40d8020..9728a6f 100644 --- a/js/wifi.js +++ b/js/wifi.js @@ -7,8 +7,8 @@ const tr = require('./lang') let curSSID // Get XX % for a slider input - function rangePt (inp) { - return Math.round(((inp.value / inp.max) * 100)) + '%' + function calc_dBm (inp) { + return `+${(inp.value * 0.25).toFixed(2)} dBm` } // Display selected STA SSID etc @@ -142,11 +142,11 @@ const tr = require('./lang') let inp = x.querySelector('input') let disp1 = x.querySelector('.x-disp1') let disp2 = x.querySelector('.x-disp2') - let t = rangePt(inp) + let t = calc_dBm(inp) $(disp1).html(t) $(disp2).html(t) $(inp).on('input', function () { - t = rangePt(inp) + t = calc_dBm(inp) $(disp1).html(t) $(disp2).html(t) }) From 64c1ebbf8f66b0c01306efd5cfda60c9981618a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 14:15:12 +0200 Subject: [PATCH 5/8] implemented "success messages" for submitted forms (?msg=...) --- compile_html.php | 19 ++++++++++++++++--- js/appcommon.js | 24 ++++++++++++++++-------- pages/_head.php | 2 ++ sass/form/_form_layout.scss | 5 +++++ 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/compile_html.php b/compile_html.php index 5bc4f15..c8698fc 100755 --- a/compile_html.php +++ b/compile_html.php @@ -22,9 +22,22 @@ ob_start(); foreach($_pages as $_k => $p) { if ($p->bodyclass == 'api') { if (ESP_DEMO) { - $target = 'term.html'; - echo "Generating: ~$_k.html -> $target\n"; - $s = ""; + echo "Generating: ~$_k.html (bounce)\n"; + + if ($_k=='index') { + $s = ""; + } + else { + $s = " + "; + } + + } else { continue; } diff --git a/js/appcommon.js b/js/appcommon.js index 26f8733..58cb378 100644 --- a/js/appcommon.js +++ b/js/appcommon.js @@ -90,24 +90,32 @@ $.ready(function () { // (a way to pass errors back from server via redirect) let errAt = window.location.search.indexOf('err=') if (errAt !== -1 && qs('.Box.errors')) { - let errs = window.location.search.substr(errAt + 4).split(',') + let errs = decodeURIComponent(window.location.search.substr(errAt + 4)).split(',') let humanReadableErrors = [] errs.forEach(function (er) { let lbls = qsa('label[for="' + er + '"]') - for (let i = 0; i < lbls.length; i++) { - let lbl = lbls[i] - lbl.classList.add('error') - if (i === 0) humanReadableErrors.push(lbl.childNodes[0].textContent.trim().replace(/: ?$/, '')) + if (lbls) { + for (let i = 0; i < lbls.length; i++) { + let lbl = lbls[i] + lbl.classList.add('error') + if (i === 0) humanReadableErrors.push(lbl.childNodes[0].textContent.trim().replace(/: ?$/, '')) + } + } else { + humanReadableErrors.push(er) } - // else { - // hres.push(er) - // } }) qs('.Box.errors .list').innerHTML = humanReadableErrors.join(', ') qs('.Box.errors').classList.remove('hidden') } + let msgAt = window.location.search.indexOf('msg=') + if (msgAt !== -1 && qs('.Box.message')) { + let msg = decodeURIComponent(window.location.search.substr(msgAt + 4)) + qs('.Box.message').innerHTML = msg + qs('.Box.message').classList.remove('hidden') + } + modal.init() notify.init() diff --git a/pages/_head.php b/pages/_head.php index 9466a12..af974b9 100644 --- a/pages/_head.php +++ b/pages/_head.php @@ -32,4 +32,6 @@ if (strpos($_GET['BODYCLASS'], 'cfg') !== false) {  

+ + diff --git a/sass/form/_form_layout.scss b/sass/form/_form_layout.scss index ae9e792..88e9c44 100755 --- a/sass/form/_form_layout.scss +++ b/sass/form/_form_layout.scss @@ -12,6 +12,11 @@ form { @include naked(); } } } +.Box.message { + font-weight: bold; + color: #0fca50; +} + .Row { vertical-align: middle; margin: 12px auto; From c846cffedbd927433354f4fc2004154cd596916f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 14:39:36 +0200 Subject: [PATCH 6/8] make confirm msg auto-fade --- js/appcommon.js | 11 +++++++++-- sass/form/_form_layout.scss | 5 +++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/js/appcommon.js b/js/appcommon.js index 58cb378..61fb689 100644 --- a/js/appcommon.js +++ b/js/appcommon.js @@ -112,8 +112,15 @@ $.ready(function () { let msgAt = window.location.search.indexOf('msg=') if (msgAt !== -1 && qs('.Box.message')) { let msg = decodeURIComponent(window.location.search.substr(msgAt + 4)) - qs('.Box.message').innerHTML = msg - qs('.Box.message').classList.remove('hidden') + let box = qs('.Box.message') + box.innerHTML = msg + box.classList.remove('hidden') + setTimeout(() => { + box.classList.add('hiding') + setTimeout(() => { + box.classList.add('hidden') + }, 1000) + }, 2000) } modal.init() diff --git a/sass/form/_form_layout.scss b/sass/form/_form_layout.scss index 88e9c44..0ad23da 100755 --- a/sass/form/_form_layout.scss +++ b/sass/form/_form_layout.scss @@ -15,6 +15,11 @@ form { @include naked(); } .Box.message { font-weight: bold; color: #0fca50; + transition: opacity linear 1s; + opacity: 1; + &.hiding { + opacity: 0; + } } .Row { From 18ece41390f3432920c981d5ea3b80dcce91a2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Tue, 26 Sep 2017 16:43:43 +0200 Subject: [PATCH 7/8] some menu cleaning & added overclock toggle --- base.php | 6 +- js/appcommon.js | 6 +- lang/en.php | 183 +++++++++++++++++++++++----------------- pages/cfg_network.php | 3 + pages/cfg_system.php | 83 +++++++++++------- pages/cfg_term.php | 16 ++-- pages/cfg_wifi.php | 2 + pages/cfg_wifi_conn.php | 20 ++--- sass/app.scss | 2 +- sass/layout/_box.scss | 5 +- 10 files changed, 197 insertions(+), 129 deletions(-) diff --git a/base.php b/base.php index c0458cf..e31c847 100644 --- a/base.php +++ b/base.php @@ -97,7 +97,11 @@ function je($s) function tr($key) { global $_messages; - return isset($_messages[$key]) ? $_messages[$key] : ('??' . $key . '??'); + if (isset($_messages[$key])) return $_messages[$key]; + else { + ob_end_clean(); + die('??' . $key . '??'); + } } /** Like eval, but allows */ diff --git a/js/appcommon.js b/js/appcommon.js index 61fb689..0f103df 100644 --- a/js/appcommon.js +++ b/js/appcommon.js @@ -33,7 +33,11 @@ $.ready(function () { let h = x.querySelector('h2') let hdl = function () { - $(x).toggleClass('expanded') + if ($(x).hasClass('d-expanded')) { + $(x).removeClass('d-expanded') + } else { + $(x).toggleClass('expanded') + } } $(h).on('click', hdl).on('keypress', cr(hdl)) }) diff --git a/lang/en.php b/lang/en.php index 17b9a7c..9333add 100644 --- a/lang/en.php +++ b/lang/en.php @@ -12,10 +12,24 @@ return [ 'menu.term' => 'Back to Terminal', 'menu.cfg_system' => 'System Settings', 'menu.cfg_wifi_conn' => 'Connecting to Network', - 'menu.settings' => 'Settings', - 'title.term' => 'Terminal', + // not used - api etc. Added to suppress warnings + 'menu.term_set' => '', + 'menu.wifi_connstatus' => '', + 'menu.wifi_set' => '', + 'menu.wifi_scan' => '', + 'menu.network_set' => '', + 'menu.system_set' => '', + 'menu.write_defaults' => '', + 'menu.restore_defaults' => '', + 'menu.restore_hard' => '', + 'menu.reset_screen' => '', + 'menu.index' => '', + + // Terminal page + + 'title.term' => 'Terminal', // page title of the terminal page 'term_nav.config' => 'Config', 'term_nav.wifi' => 'WiFi', @@ -26,18 +40,14 @@ return [ 'term_nav.keybd' => 'Keyboard', 'term_nav.paste_prompt' => 'Paste text to send:', - 'net.ap' => 'DHCP Server (AP)', - 'net.sta' => 'DHCP Client (Station)', - 'net.sta_mac' => 'Station MAC', - 'net.ap_mac' => 'AP MAC', - 'net.details' => 'MAC addresses', + // Terminal settings page 'term.defaults' => 'Initial Settings', 'term.expert' => 'Expert Options', 'term.explain_initials' => ' Those are the initial settings used after ESPTerm powers on, or when the screen - reset command is received. They can be changed later by the terminal application - via control commands. + reset command is received (\ec). They can be changed by the + terminal application using escape sequences. ', 'term.explain_expert' => ' Those are advanced config options that usually don\'t need to be changed. @@ -58,7 +68,7 @@ return [ 'term.term_width' => 'Width', 'term.term_height' => 'Height', 'term.buttons' => 'Button labels', - 'term.theme' => 'Color scheme', + 'term.theme' => 'Color palette', 'term.cursor_shape' => 'Cursor style', 'term.parser_tout_ms' => 'Parser timeout', 'term.display_tout_ms' => 'Redraw delay', @@ -67,13 +77,13 @@ return [ 'term.show_config_links' => 'Show nav links', 'term.show_buttons' => 'Show buttons', 'term.loopback' => 'Local Echo (SRM)', - 'term.crlf_mode' => 'CR+LF enter (LNM)', + 'term.crlf_mode' => 'Enter = CR+LF (LNM)', 'term.want_all_fn' => 'Capture all keys
(F5, F11, F12…)', 'term.button_msgs' => 'Button codes
(ASCII, dec, CSV)', 'term.color_fg' => 'Default fg.', 'term.color_bg' => 'Default bg.', - 'term.color_fg_prev' => 'Fg. colors', - 'term.color_bg_prev' => 'Bg. colors', + 'term.color_fg_prev' => 'Foreground', + 'term.color_bg_prev' => 'Background', 'term.colors_preview' => 'Defaults', 'cursor.block_blink' => 'Block, blinking', @@ -83,23 +93,7 @@ return [ 'cursor.bar_blink' => 'I-bar, blinking', 'cursor.bar_steady' => 'I-bar, steady', -// // terminal color labels -// 'color.0' => 'Black', -// 'color.1' => 'Red', -// 'color.2' => 'Green', -// 'color.3' => 'Yellow', -// 'color.4' => 'Blue', -// 'color.5' => 'Purple', -// 'color.6' => 'Cyan', -// 'color.7' => 'Silver', -// 'color.8' => 'Gray', -// 'color.9' => 'Light Red', -// 'color.10' => 'Light Green', -// 'color.11' => 'Light Yellow', -// 'color.12' => 'Light Blue', -// 'color.13' => 'Light Purple', -// 'color.14' => 'Light Cyan', -// 'color.15' => 'White', + // Network config page 'net.explain_sta' => ' Switch off Dynamic IP to configure the static IP address.', @@ -118,6 +112,14 @@ return [ 'net.sta_addr_mask' => 'Subnet mask', 'net.sta_addr_gw' => 'Gateway IP', + 'net.ap' => 'DHCP Server (AP)', + 'net.sta' => 'DHCP Client (Station)', + 'net.sta_mac' => 'Station MAC', + 'net.ap_mac' => 'AP MAC', + 'net.details' => 'MAC addresses', + + // Wifi config page + 'wifi.ap' => 'Built-in Access Point', 'wifi.sta' => 'Join Existing Network', @@ -143,67 +145,51 @@ return [ 'wifi.enter_passwd' => 'Enter password for ":ssid:"', 'wifi.sta_explain' => 'After selecting a network, press Apply to connect.', - 'wifi.conn.status' => 'Status:', - 'wifi.conn.back_to_config' => 'Back to WiFi config', - 'wifi.conn.telemetry_lost' => 'Telemetry lost; something went wrong, or your device disconnected.', - 'wifi.conn.explain_android_sucks' => ' + // Wifi connecting status page + + 'wificonn.status' => 'Status:', + 'wificonn.back_to_config' => 'Back to WiFi config', + 'wificonn.telemetry_lost' => 'Telemetry lost; something went wrong, or your device disconnected.', + 'wificonn.explain_android_sucks' => ' If you\'re configuring ESPTerm via a smartphone, or were connected from another external network, your device may lose connection and this progress indicator won\'t work. Please wait a while (~ 15 seconds), then check if the connection succeeded.', - 'wifi.conn.explain_reset' => ' + 'wificonn.explain_reset' => ' To force enable the built-in AP, hold the BOOT button until the blue LED starts flashing. Hold the button longer (until the LED flashes rapidly) for a "factory reset".', - 'wifi.conn.disabled' =>"Station mode is disabled.", - 'wifi.conn.idle' =>"Idle, not connected and has no IP.", - 'wifi.conn.success' => "Connected! Received IP ", - 'wifi.conn.working' => "Connecting to selected AP", - 'wifi.conn.fail' => "Connection failed, check settings & try again. Cause: ", + 'wificonn.disabled' =>"Station mode is disabled.", + 'wificonn.idle' =>"Idle, not connected and has no IP.", + 'wificonn.success' => "Connected! Received IP ", + 'wificonn.working' => "Connecting to selected AP", + 'wificonn.fail' => "Connection failed, check settings & try again. Cause: ", - 'system.save_restore' => 'Save & Restore', - 'system.confirm_restore' => 'Restore all settings to their default values?', - 'system.confirm_restore_hard' => - 'Restore to firmware default settings? This will reset ' . - 'all active settings and switch to AP mode with the default SSID.', - 'system.confirm_store_defaults' => - 'Enter admin password to confirm you want to overwrite the default settings.', - 'system.password' => 'Admin password:', - 'system.restore_defaults' => 'Reset to saved defaults', - 'system.write_defaults' => 'Save active settings as defaults', - 'system.restore_hard' => 'Reset active settings to factory defaults', - 'system.restore_hard_explain' => '(This clears the WiFi config! Does not affect saved defaults or admin password.)', - 'system.explain_persist' => ' - ESPTerm saves all settings in Flash. The active settings can be copied to - the "defaults area" and restored later using the blue button below. - ', - 'system.uart' => 'Serial Port', - 'system.explain_uart' => ' - This form controls the communication UART. The debug UART is fixed - at 115.200 baud, one stop-bit and no parity. - ', + // Access restrictions form - 'system.security' => 'Access Restrictions', - 'system.explain_security' => ' + 'pwlock.title' => 'Access Restrictions', + 'pwlock.explain' => ' Some parts, or all of the web interface can be protected by a password prompt. Leave the new password fields empty if you do not wish to change it.
The default password is "%def_access_pw%". ', - 'system.pwlock' => 'Protected pages', - 'system.pwlock.none' => 'None, all open', - 'system.pwlock.settings_noterm' => 'WiFi, Net & System settings', - 'system.pwlock.settings' => 'All settings pages', - 'system.pwlock.menus' => 'This entire menu section', - 'system.pwlock.all' => 'Everything, even terminal', - 'system.new_access_pw' => 'New password', - 'system.new_access_pw2' => 'New pass., repeat', - 'system.admin_pw' => 'Admin password', - 'system.access_name' => 'Username', - - 'system.change_adminpw' => 'Change Admin Password', - 'system.explain_adminpw' => + 'pwlock.region' => 'Protected pages', + 'pwlock.region.none' => 'None, all open', + 'pwlock.region.settings_noterm' => 'WiFi, Net & System settings', + 'pwlock.region.settings' => 'All settings pages', + 'pwlock.region.menus' => 'This entire menu section', + 'pwlock.region.all' => 'Everything, even terminal', + 'pwlock.new_access_pw' => 'New password', + 'pwlock.new_access_pw2' => 'Repeat', + 'pwlock.admin_pw' => 'Admin password', + 'pwlock.access_name' => 'Username', + + // Setting admin password + + 'adminpw.title' => 'Change Admin Password', + 'adminpw.explain' => ' The "admin password" is used to manipulate the stored default settings and to change access restrictions. This password is not saved as part @@ -212,10 +198,36 @@ return [ re-gain access is to wipe and re-flash the chip.
The default admin password is "%def_admin_pw%". ', - 'system.new_admin_pw' => 'New admin pass.', - 'system.new_admin_pw2' => 'New pass., repeat', - 'system.old_admin_pw' => 'Old admin pass.', + 'adminpw.new_admin_pw' => 'New admin password', + 'adminpw.new_admin_pw2' => 'Repeat', + 'adminpw.old_admin_pw' => 'Old admin password', + + // Persist form + 'persist.title' => 'Save & Restore', + 'persist.explain' => ' + ESPTerm saves all settings in Flash. The active settings can be copied to + the "defaults area" and restored later using the blue button below. + ', + 'persist.confirm_restore' => 'Restore all settings to their default values?', + 'persist.confirm_restore_hard' => + 'Restore to firmware default settings? This will reset ' . + 'all active settings and switch to AP mode with the default SSID.', + 'persist.confirm_store_defaults' => + 'Enter admin password to confirm you want to overwrite the default settings.', + 'persist.password' => 'Admin password:', + 'persist.restore_defaults' => 'Reset to saved defaults', + 'persist.write_defaults' => 'Save active settings as defaults', + 'persist.restore_hard' => 'Reset active settings to factory defaults', + 'persist.restore_hard_explain' => '(This clears the WiFi config! Does not affect saved defaults or admin password.)', + + // UART settings form + + 'uart.title' => 'Serial Port Parameters', + 'uart.explain' => ' + This form controls the communication UART. The debug UART is fixed + at 115.200 baud, one stop-bit and no parity. + ', 'uart.baud' => 'Baud rate', 'uart.parity' => 'Parity', 'uart.parity.none' => 'None', @@ -226,6 +238,19 @@ return [ 'uart.stop_bits.one_and_half' => 'One and half', 'uart.stop_bits.two' => 'Two', + // HW tuning form + + 'hwtuning.title' => 'Hardware Tuning', + 'hwtuning.explain' => ' + ESP8266 can be overclocked from 80 MHz to 160 MHz. + This will make it more responsive and allow faster screen updates + at the expense of slightly higher power consumption. This can also make + it more susceptible to interference. Use with care. + ', + 'hwtuning.overclock' => 'Overclock to 160MHz', + + // Generic button / dialog labels + 'apply' => 'Apply!', 'enabled' => 'Enabled', 'disabled' => 'Disabled', diff --git a/pages/cfg_network.php b/pages/cfg_network.php index d9b602d..7116b04 100644 --- a/pages/cfg_network.php +++ b/pages/cfg_network.php @@ -2,6 +2,7 @@ $ipmask='pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}$"'; ?> +

@@ -35,6 +36,7 @@ $ipmask='pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}$"';
+

@@ -73,6 +75,7 @@ $ipmask='pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}$"';
+

diff --git a/pages/cfg_system.php b/pages/cfg_system.php index c4993a9..edae7c7 100644 --- a/pages/cfg_system.php +++ b/pages/cfg_system.php @@ -1,108 +1,131 @@ +
-

+

- +
- +
- - +
- +
+ +
+

+ +
+ +
+ +
+ + +
+ +
+ +
+
+ + -
-

+ + +

- +
- +
- +
- + >
- + >
- +
- +
-
-

+ + +

- +
- +
- +
- +
- +