diff options
| author | olekstomek <olekstomek@gmail.com> | 2021-08-08 18:26:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-08 09:26:48 -0700 |
| commit | ade8bc7d68922543ab74ee2d41920de139fd0bd3 (patch) | |
| tree | 9a3b0857a97187110fbf1b2f446bf4394a5803f5 /src/App.js | |
| parent | df6d62c397992aef26c3abb26ad667bcbc7184ad (diff) | |
Support Hidden WiFi networks (#101)
* ability to set that WiFi network is hidden
* fix: hide password checbox hidden chebox with hidden SSID option
* improvement, delete constant
* merge master
* add a setting - the WiFi network can have a hidden SSID
* update translation for English and Polish language
* change one line translation in Eng, add semicolon in format to connect to WiFi
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -20,6 +20,8 @@ function App() { | |||
| 20 | encryptionMode: 'WPA', | 20 | encryptionMode: 'WPA', |
| 21 | // Settings: Hide password on the printed card | 21 | // Settings: Hide password on the printed card |
| 22 | hidePassword: false, | 22 | hidePassword: false, |
| 23 | // Settings: Mark your network as hidden SSID | ||
| 24 | hiddenSSID: false, | ||
| 23 | // Settings: Portrait orientation | 25 | // Settings: Portrait orientation |
| 24 | portrait: false, | 26 | portrait: false, |
| 25 | }); | 27 | }); |
| @@ -87,6 +89,9 @@ function App() { | |||
| 87 | const onHidePasswordChange = (hidePassword) => { | 89 | const onHidePasswordChange = (hidePassword) => { |
| 88 | setSettings({ ...settings, hidePassword }); | 90 | setSettings({ ...settings, hidePassword }); |
| 89 | }; | 91 | }; |
| 92 | const onHiddenSSIDChange = (hiddenSSID) => { | ||
| 93 | setSettings({ ...settings, hiddenSSID }); | ||
| 94 | }; | ||
| 90 | const onFirstLoad = () => { | 95 | const onFirstLoad = () => { |
| 91 | html.style.direction = htmlDirection(); | 96 | html.style.direction = htmlDirection(); |
| 92 | firstLoad.current = false; | 97 | firstLoad.current = false; |
| @@ -129,6 +134,7 @@ function App() { | |||
| 129 | onEncryptionModeChange={onEncryptionModeChange} | 134 | onEncryptionModeChange={onEncryptionModeChange} |
| 130 | onOrientationChange={onOrientationChange} | 135 | onOrientationChange={onOrientationChange} |
| 131 | onHidePasswordChange={onHidePasswordChange} | 136 | onHidePasswordChange={onHidePasswordChange} |
| 137 | onHiddenSSIDChange={onHiddenSSIDChange} | ||
| 132 | /> | 138 | /> |
| 133 | 139 | ||
| 134 | <Button | 140 | <Button |
