forked from brave/browser-laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When a user downloads a file to a location that they do not have access to, it currently just says "Downloading... 0%". This is to add a download state to indicate that the user doesn't have access to the director they are trying to download into. Commit list: - Add new download state - Update state if directory is unauthorized - Update electron download state change - Add 'Unauthorized' download state to 'clear completed downloads' reducer - Add isUnauthorized getter - Add unauthorized state as part of condition for hiding progress display - Add isUnauthorized to condition for rendering a download item - Set unauthorized as a stop condition for downloads - Set getL10nId for unauthorized downloads - Add 'unauthorized' as a style class for finished download items - Add downloadUnauthorized locale id for all languages TODO: Update localization for all languages for this state Fixes brave#7747 Update test Return 0% when download totalBytes is 0 or undefined Fix brave#10264 Updated code to handle falsey inputs + added more unit tests :) Auditors: @diracdeltas Test Plan: `npm run unittest -- --grep="downloadUtil"` Move properties inside main.less to window.less Closes brave#10860 Auditors: Test Plan: 1. npm run watch 2. npm start 3. Make sure the browser starts 4. Open the devtool and make sure the two properties are applied Converted Country Textbox to Select Dropdown Creating a dropdown for the country list in the about:autofill panel Fix brave#9053 Small cleanup for autofill country list per discussion in PR Auditors: @dfperry5 Fix two issues - handle when locale is called with null/undefined/falsey value (before would fail on toLowerCase()) - handle situation where activeTab is not set and developer tools are opened (will be fixed soon by @bbondy) Auditors: @bbondy, @dfperry5 Issue brave#9053 - Updating so that first option on dropdown for countries is a blank modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js modified: app/renderer/components/autofill/autofillAddressPanel.js Add 'CommonFormFullWidthDropdown' to commonForm.js Auditors: @cezaraugusto Test Plan: 1. Open about:autofill 2. Click 'Add Address' Update autofill webdriver tests to use Country as a dropdown value instead of a text field Auditors: @dfperry5, @darkdh, @luixxiul Test Plan: `npm run test -- --grep="Autofill" Style Edits Auditors: Test Plan:
- Loading branch information
Showing
52 changed files
with
718 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,253 @@ | ||
const countryCodes = [ | ||
'AF', | ||
'AX', | ||
'AL', | ||
'DZ', | ||
'AS', | ||
'AD', | ||
'AO', | ||
'AI', | ||
'AQ', | ||
'AG', | ||
'AR', | ||
'AM', | ||
'AW', | ||
'AU', | ||
'AT', | ||
'AZ', | ||
'BS', | ||
'BH', | ||
'BD', | ||
'BB', | ||
'BY', | ||
'BE', | ||
'BZ', | ||
'BJ', | ||
'BM', | ||
'BT', | ||
'BO', | ||
'BQ', | ||
'BA', | ||
'BW', | ||
'BV', | ||
'BR', | ||
'IO', | ||
'BN', | ||
'BG', | ||
'BF', | ||
'BI', | ||
'KH', | ||
'CM', | ||
'CA', | ||
'CV', | ||
'KY', | ||
'CF', | ||
'TD', | ||
'CL', | ||
'CN', | ||
'CX', | ||
'CC', | ||
'CO', | ||
'KM', | ||
'CG', | ||
'CD', | ||
'CK', | ||
'CR', | ||
'CI', | ||
'HR', | ||
'CU', | ||
'CW', | ||
'CY', | ||
'CZ', | ||
'DK', | ||
'DJ', | ||
'DM', | ||
'DO', | ||
'EC', | ||
'EG', | ||
'SV', | ||
'GQ', | ||
'ER', | ||
'EE', | ||
'ET', | ||
'FK', | ||
'FO', | ||
'FJ', | ||
'FI', | ||
'FR', | ||
'GF', | ||
'PF', | ||
'TF', | ||
'GA', | ||
'GM', | ||
'GE', | ||
'DE', | ||
'GH', | ||
'GI', | ||
'GR', | ||
'GL', | ||
'GD', | ||
'GP', | ||
'GU', | ||
'GT', | ||
'GG', | ||
'GN', | ||
'GW', | ||
'GY', | ||
'HT', | ||
'HM', | ||
'VA', | ||
'HN', | ||
'HK', | ||
'HU', | ||
'IS', | ||
'IN', | ||
'ID', | ||
'IR', | ||
'IQ', | ||
'IE', | ||
'IM', | ||
'IL', | ||
'IT', | ||
'JM', | ||
'JP', | ||
'JE', | ||
'JO', | ||
'KZ', | ||
'KE', | ||
'KI', | ||
'KP', | ||
'KR', | ||
'KW', | ||
'KG', | ||
'LA', | ||
'LV', | ||
'LB', | ||
'LS', | ||
'LR', | ||
'LY', | ||
'LI', | ||
'LT', | ||
'LU', | ||
'MO', | ||
'MK', | ||
'MG', | ||
'MW', | ||
'MY', | ||
'MV', | ||
'ML', | ||
'MT', | ||
'MH', | ||
'MQ', | ||
'MR', | ||
'MU', | ||
'YT', | ||
'MX', | ||
'FM', | ||
'MD', | ||
'MC', | ||
'MN', | ||
'ME', | ||
'MS', | ||
'MA', | ||
'MZ', | ||
'MM', | ||
'NA', | ||
'NR', | ||
'NP', | ||
'NL', | ||
'NC', | ||
'NZ', | ||
'NI', | ||
'NE', | ||
'NG', | ||
'NU', | ||
'NF', | ||
'MP', | ||
'NO', | ||
'OM', | ||
'PK', | ||
'PW', | ||
'PS', | ||
'PA', | ||
'PG', | ||
'PY', | ||
'PE', | ||
'PH', | ||
'PN', | ||
'PL', | ||
'PT', | ||
'PR', | ||
'QA', | ||
'RE', | ||
'RO', | ||
'RU', | ||
'RW', | ||
'BL', | ||
'SH', | ||
'KN', | ||
'LC', | ||
'MF', | ||
'PM', | ||
'VC', | ||
'WS', | ||
'SM', | ||
'ST', | ||
'SA', | ||
'SN', | ||
'RS', | ||
'SC', | ||
'SL', | ||
'SG', | ||
'SX', | ||
'SK', | ||
'SI', | ||
'SB', | ||
'SO', | ||
'ZA', | ||
'GS', | ||
'SS', | ||
'ES', | ||
'LK', | ||
'SD', | ||
'SR', | ||
'SJ', | ||
'SZ', | ||
'SE', | ||
'CH', | ||
'SY', | ||
'TW', | ||
'TJ', | ||
'TZ', | ||
'TH', | ||
'TL', | ||
'TG', | ||
'TK', | ||
'TO', | ||
'TT', | ||
'TN', | ||
'TR', | ||
'TM', | ||
'TC', | ||
'TV', | ||
'UG', | ||
'UA', | ||
'AE', | ||
'GB', | ||
'US', | ||
'UM', | ||
'UY', | ||
'UZ', | ||
'VU', | ||
'VE', | ||
'VN', | ||
'VG', | ||
'VI', | ||
'WF', | ||
'EH', | ||
'YE', | ||
'ZM', | ||
'ZW' | ||
] | ||
|
||
module.exports = countryCodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.