aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Dynamic language select defaultValue (#182)Ben Woodward2021-08-081-2/+9
| | | | | | | | | | | | | | | | | | | | | Replaces the hardcoded 'en-US' defaultValue of the language select with the value supplied by the i18n language detection. In my testing I found when setting my browser to "German" or "Dutch", the navigator.language returned is simply "de" and "nl" but the translation ids in the translations are "de-DE" and "nl-NL", respectively. This results in the select box defaulting to the first language (Arabic) because "de" and "nl" are not values in any of the options. This patch takes the i18n detected language and first checks if the id is a known translation. If not, 'en-US' is returned. If it is, the detected language is returned. Unfortunately I am not able to test this as both my Firefox and Chrome browsers are only setting the generic locale language ids. I can verify the fallback to english works. Additionally, editing the localStorage 'i18nextLng' key to 'de-DE' produces the expected translation. Related to #180
* Support Hidden WiFi networks (#101)olekstomek2021-08-082-1/+6
| | | | | | | | | | | | | | | * 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
* Replace network font with Source Serif (#178)Ben Woodward2021-08-062-7/+6
| | | | | This removes the dependency on Google Fonts. Additionally I've reintroduced the textarea border on the printed card to help ephasize the important information.
* Removes direction prop from wificard (#177)Ben Woodward2021-08-061-7/+1
| | | | This was causing a runtime error and isn't necessary. Fixes #172
* Hungarian translation (#170)Munkácsi Márk2021-08-061-5/+6
| | | | | | | * Hunagrian lang added 🇭🇺 * Fix 'None' field translation at encryptions * Fix SelectField error
* Refactor translation plumbing (#168)Ben Woodward2021-08-061-23/+6
| | | | | - Centralize user-defined translations into a single file - Automatically sort the language dropdown - Update the translation contribution guide
* Style and code refactor (#166)Ben Woodward2021-08-054-250/+246
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move all settings below card * refactor components; lifting state up * background color * Evergreen components for everything * password error * Tighten card size * Simply hide password to basic toggle, never disable * Hide password label, too * Maximize mobile portrait width * Make wifi tip smaller * Small style tweaks * Copy: update password length error text to include helpful instructions This will need a backfill for other translations * Remove unused css * Use empty string for EncryptionMode=None value * Remove light.min.css * Include logo on wificard * Cleanup after rebase * Clean-up comments on state * Padding for mobile
* Hotfix: Revert SVG QR Code (#162)olekstomek2021-08-021-1/+0
|
* Translate encryption mode 'None' (#157)Ben Woodward2021-07-311-1/+3
| | | Fixes #106
* code refactoring proposal (#155)olekstomek2021-07-311-25/+13
| | | | | | | | | | | | | * code refactoring proposal * convert function to an ES6 function * Update src/components/Card.js Suggested change Co-authored-by: Ben Woodward <benjamindwoodward@gmail.com> Co-authored-by: Ben Woodward <benjamindwoodward@gmail.com>
* remember the password even if it is cleared by the None option (#127)olekstomek2021-07-301-3/+2
| | | | | | | * remember the password even if it is cleared by the None option * refactor remembering password after code review * fixes: label and checking encryption mode for saving password
* Add checkbox state to fix issue (#134)Pushpender Saini2021-07-301-2/+10
| | | | | | | * Add checkbox state to fix issue: 'None' Encryption disable Checkbox of 'Hide password field before printing' * Checkbox implimentation with newtork.hidePassword * Remove hidePassword from line :191 and :202
* 🐛 fix rtl direction bugs (#124)Ahmed Tarek2021-07-291-36/+40
| | | | | * :bug: fix rtl direction bugs * fix conflicts
* QR Code sharpness (#139)Ben Woodward2021-07-292-0/+3
| | | | | | | | | | | * resolved issue #82 * added max and min widht at style.css * render as svg * added credits to the pt-br language and runned fmt.write Co-authored-by: ismaelpereira <ismaelfgpereira@gmail.com>
* fix for loop to for-of - SonarLint warning (#112)olekstomek2021-07-261-5/+4
| | | | | | | * fix for loop to for-of - SonarLint warning * just remove empty line * improvement the loop that builds values for qr code
* hide password option is possible when password has correct length for… (#103)olekstomek2021-07-261-0/+13
| | | | | | | | | * hide password option is possible when password has correct length for WEP and WPA * refactor, logic is factored out into a function instead of in-lined in the markup * refactor of function because Sonar warning * improvement after code review - move function
* label attribute for->htmlFor (#97)hatsu2021-07-261-4/+4
|
* Add RTL Direction & Persian Translation (#79)Ramin2021-07-261-3/+9
| | | | | | | | | * feat: add RTL direction and persian lang * feat: init RTL direction * fix: style issues Co-authored-by: Ramin <r.rezaei@digikala.com>
* generated PDF has name WiFi Card with your network name (#102)olekstomek2021-07-241-0/+1
|
* standarized names for wifi alert min 8 characters (#94)olekstomek2021-07-241-1/+1
|
* just adding information about the possibility of using WPA3 (#91)olekstomek2021-07-241-2/+2
|
* fix: unmatched title (#70)Baoyuan2021-07-171-1/+1
|
* Unset password when encryption mode is 'None' (#53)Faithfulness Alamu2021-07-161-3/+7
| | | | | | | * Unset password when encryption mode is 'None' Fixes #46 * Run code format
* [Issue #49] feat: add i18n (#58)Baoyuan2021-07-161-14/+17
| | | | | * feat: add i18n * fix: code clean
* [Issue #44] Hide password when using "None" encryption (#56)Noah Hefner2021-07-162-7/+23
| | | | | | | | | * Changes behavior of password textarea when None encryption is selected * prettier * password text area hides on checking hide password tikbox * className re-structuring, changed Hide Password
* Add check for non-null network name (#52)Lionel Karlen2021-07-151-8/+12
|
* Added website icon and small design change in WiFi details box (#45)llamaiscool2021-07-152-1/+5
| | | | | | | * Added website icon and small design change in WiFi details box * Fixed few errors of previous pull * Fixed errors of previous pull
* [Feature Request #39] Added encryption options (#43)Noah Hefner2021-07-152-19/+64
| | | | | | | | | | | | | * Added encryption options [Feature Request #39] * Added encryption options [Feature Request #39] * Removed encrypt options from print page * made requested changes * fixed css issue * checked WPA/WPA2 as default encryption type
* Hide password before printing (#42)Ben Woodward2021-07-132-1/+20
| | | | | | | | | | * feat: add possiblity to hide password fiel before priting * HidePassword as a property of network and additional print styles - Moves hidePassword into the network object - Adds missing CSS for hiding password Co-authored-by: orenaksakal <orenaksakal@gmail.com>
* Fix typo (#38)Alan Hogan2021-07-111-1/+1
| | | atleast → at least
* Disable autocorrections on input fieldsbndw2021-07-111-0/+8
|
* Portrait orientation (#35)Ben Woodward2021-07-112-25/+61
| | | | | | | | | | * Portrait orientation Adds a rotate button that toggle landscape and portrait orientation. Fixes #30 * Fix QRCode padding in portait orientation * Default to portrait on small screens
* Change inputs to textareas (#34)Ben Woodward2021-07-062-6/+8
| | | | | | Issue #28 discovered long ssid and password values would be visibly cropped. This change replaces the input fields with 2-row textareas that properly handle the maximum length of both ssids and passwords, 32 and 63 characters respectively.
* Password must be atleast 8 charactersbndw2021-07-041-1/+9
| | | | Fixes #29
* Prettier formatting (#33)Ben Woodward2021-07-042-20/+41
| | | | | * Add prettier * Format code
* Set password maxLength to 63bndw2021-07-041-1/+1
| | | | Fixes #27
* Update deps (#7)Ben Woodward2020-06-071-2/+2
| | | | | | | * :arrow_up: yarn upgrade * Run yarn for first time install * :lipstick: s/maxlength/maxLength on input fields
* :bug: Escape special chars (#6)Ben Woodward2020-06-071-1/+19
| | | | Escapes special characters `";,:\` Fixes #3
* Serif font for input fields (#5)Ben Woodward2020-06-042-2/+5
| | | Fixes #4
* Rewrite Card.js with hooks (#1)Yusuf YILDIZ2020-06-021-47/+33
|
* :bug: Set maxLength on inputsbndw2020-05-311-2/+2
|
* Initial commitbndw2020-05-312-0/+103