aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Remove hash params featurebndw2026-01-241-48/+0
| | | | | | The hash params implementation was buggy and auto-polluting the URL bar with all settings on every render. Removing it entirely for now until a cleaner approach is designed.
* Updates jan 2026 (#313)Ben Woodward2026-01-244-5/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update dependencies to latest versions and migrate to React 19 - Update all dependencies to latest versions - Migrate to React 19 createRoot API (replaces deprecated ReactDOM.render) - Update qrcode.react import to v4 named export (QRCodeSVG) * Format CSS with prettier * Add Hebrew translation * Add Slovak translation * Add Malagasy translation * Add Bangla translation * Init field * Change the logic concerning number of cards to print * fix/clean * Fix Increment-field-ID-in-the-print-area * Increment-field-ID-in-the-print-area * Review id implementation logic * Fix git commit * Handle Query parameter * Fix package.json * Fix query parameter for language * fix query parameter for language * Fix EncryptionModeChange query parameters // Error when non in query * Fix EncryptionModeChange query parameters // Error when empty in query * clean Setting.js don't need to import i18n * clean file App.js * first iteration for Hash * Add Esperanto translation * Update translations for Occitan 2 lines added * Update translations.js Added Swiss German to the Translations JavaScript-File * Update translations.js Removed custom Translations-Strings of my own Version. * Update README.md * Format translations.js with prettier --------- Co-authored-by: Ido Bronfeld <idobronfeld@gmail.com> Co-authored-by: Matej Kubinec <matej.kubinec@outlook.com> Co-authored-by: mpilasy <88362233+mpilasy@users.noreply.github.com> Co-authored-by: Tarek Hasan <94107336+Tarek-Hasan@users.noreply.github.com> Co-authored-by: ofostier <ofostier@gmail.com> Co-authored-by: zeecho <30541894+zeecho@users.noreply.github.com> Co-authored-by: Mejans <61360811+Mejans@users.noreply.github.com> Co-authored-by: Jan Zehnder <44242812+NZehnder@users.noreply.github.com>
* Allow setting additional cards to print (#275)guicamest2023-08-153-99/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add setting for additional cards to print * Render additional cards to print * Do not render additional cards if amount is less than 1 * Render additional cards when printing * Improve layout for portrait printing * Render eap and identity textfields conditionally so that they dont use space * Use all width in print-area * Change additionalCards setting to Input and react to changes * Allow hiding tip (legend) on card * Print only full cards * Move print-area - not-displayed - to the bottom of the page * Set default ssid back to empty, additional cards to 0 * Lower marginBottom of password field to 5 instead of 24 (default) * Use conditional rendering instead of class to hide password * Set marginBottom to QR code only on portrait mode * Set row-gap to 0 to allow up to 6 cards to fit in portrait mode in A4 * Move hideTip setting right after hiddenSSID
* fix: nopass support (#266)Ben Woodward2023-01-231-8/+15
| | | Fixes #265
* Added margin between checkbox, radio box and text (#251)Ali Farooq2022-09-131-0/+4
| | | For issue #250, added margin between checkboxes, radio boxes, and text which was getting messed up when RTL-based language was selected
* Add support for EAP-PWD (#246)Jan Tatje2022-08-122-4/+58
| | | I also added a German translation of the new strings.
* Always add paddingRight for rtl (#207)Ben Woodward2021-08-281-2/+3
| | | | | | | | | | | | | * :bug: hotfix logo padding for rtl languages * manually run prettier * :bug: fix icons padding * :bug: fix header padding * Always add paddingRight for rtl Co-authored-by: Tokyo <ahmed.tokyo1@gmail.com>
* 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