aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Settings.js
Commit message (Collapse)AuthorAgeFilesLines
* Updates jan 2026 (#313)Ben Woodward2026-01-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-151-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add support for EAP-PWD (#246)Jan Tatje2022-08-121-1/+12
| | | I also added a German translation of the new strings.
* 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-081-0/+5
| | | | | | | | | | | | | | | * 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
* 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-051-0/+77
* 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