Commit graph

162 commits

Author SHA1 Message Date
Dmitriy Danilov 67179c0b31
feat(spellcheck): add Ukrainian language for spellcheck (#1382) 2020-10-14 17:08:02 +02:00
Eugeny Fomin f06a498134
add Russian language in the list available for spellcheck (#1375) 2020-10-02 00:34:42 +02:00
Guillermo Vayá 36c6106cad
[MM-22648] basic auth external sites (#1295)
* fix not using babel

* wip

* added tests, moved to map, polifill-like to convert between object and map

* basic structure setup

* working, found new bug

* change buttons

* fix login issue

* remove logging code

* address CR comments

* remove custom function in favor of airbnb shim

* fix linting

* fix PM requested changes

* [MM-25323] fix basic auth cancelling

* fix crash when multiple request were made

* address UX comments, added external link for user
convenience
2020-05-28 10:53:57 +02:00
William Gathoye 929b62874a Fix tests 2020-05-15 01:42:27 +02:00
Guillermo Vayá c2102bb257
[MM-22102] upgrade to electron 7 (#1268)
* fix errors

* upgrade to electron 7

* getsavepath is deprecated

* fix typo

* disable messaging from 'null'

* replace getname to its property

* deprecated zoomlevel

* deprecated setbadgecount

* isdarkmode deprecated

* it's a property, not a function

* fix error message

* fix test

* fix test on linux
2020-05-09 00:29:02 +02:00
Hunter Lester cf097e624f [MM-18007] macOS app reopens closed window on Cmd+Tab (#1110) 2020-01-23 12:09:22 +01:00
JtheBAB f6129c8253 Add pl-PL as spellchecker (#1155)
* Update contextMenu.js

* Update SpellChecker.js

* Update spellchecker_test.js

* Update test/specs/spellchecker_test.js

Co-Authored-By: Dean Whillier <deanwhillier@users.noreply.github.com>

Co-authored-by: Dean Whillier <deanwhillier@users.noreply.github.com>
2020-01-21 09:08:50 -05:00
Raoul Scarazzini f9b5d64993 Add it-IT spell checker (#1139) 2020-01-16 22:20:15 -05:00
Devin Binnie 932ddafdb0
[MM-10586] Desktop App Window/Tabs Update (#1056)
* [MM-19054] Added new server tab look and feel, still missing proper hover states and session expired icon

* [MM-19055] Added window controls and removed border for macOS

* [MM-19055] Add dark mode for macOS

* [MM-19054] Added session expired icon

* Test windows titlebar

* Fixed the menu issue and added non-macOS dark mode

* Blank commit

* Fixed a lint issue

* Fixed more lint issues

* Fixed more issues

* New tray icons

* [MM-19603] Drag and drop tabs

* Fixed some assets and fixed build output to include missing assets

* Fixed a couple small issues

* Only show tabs for only 1 server on Mac

* Fixed some more tests

* Fixed another test

* Revert "Fixed another test"

This reverts commit 36040294a71a68663d06996d71eecc5ed23d7014.

* Fixed another test

* Trial and error!

* A bunch of additional fixes

* Fixed a lint issue

* Fixed restore focus on add server tab causing bad UX

* Trial and error on flaky test again

* Fixed some bugs based on PR feedback.

* blank commit to push tests

* Revert "Test windows titlebar"

This reverts commit 9cd46b71b1427b75942434ac49185870d2437b85.

* Remove the rest of the old new titlebar and fixes

* Added three-dot link

* New menu

* Rest of new windows menu and other fixes

* Fixed lint errors

* Added windows 10 style title bar buttons for non mac OS

* Lint fixes and enabled the tab bar regardless of number of servers

* Missed one

* Fixed unicode characters

* Commenting out test that should no longer be applicable

* Removed Windows 10 style titlebar icons and used material design instead

* Fixed a lint issue

* Some small UX fixes

* blank commit

* Fixed an issue where dropping the first tab moves it too far over before snapping into place

* Additional style fixes

* Another small issue fix

* Back to Windows 10 style

* Lint fixes

* Accessible three dot menu

* Lint fixes

* Shrinking tabs when window is too small

* Gradient between tabs and title bar buttons when window is too small

* Add drag to gradient

* Replaced icons, drag and drop cursor sticking fix, slight tab change

* Lint and some mac fixes

* Light theme fix to three dot menu

* Hack for tab sticking to cursor on macOS

* Fixes for the find utility

* Fix for Catalina dark mode

* Revert "Fix for Catalina dark mode"

This reverts commit 45da05dd0f17f46efd1c53fafb92e9c1fd9dd8d9.

* Fixed a couple issues Dean found

* More fixes

* Three dot hover effect to circle

* PR feedback

* Test fixes

* Test and config fixes

* Disable dragging when there are GPO servers

* [MM-20757] Fixed dark mode on debug when running macOS Catalina

* Allow future config versions to use v2 config if launching this version of the app

* Oops

* New titlebar icons, blur for titlebar on inactive

* Lint fix

* Set unfocused opacity to 0.4

* Final FINAL icons

* Fixed closing menu not returning focus to the app

* Lint fix

* Update src/browser/components/TabBar.jsx

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Update src/main/Validator.js

Co-Authored-By: Guillermo Vayá <guivaya@gmail.com>

* Lint fixes

* Moved react-smooth-dnd fork to MM org and fixed another merge issue

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Guillermo Vayá <guivaya@gmail.com>
2020-01-03 12:00:43 -05:00
Dean Whillier e1f64f0ba0
[MM-19266] User activity monitor updates (#1061)
* user activity monitor updates

- re-work of the mechanism for determining user activity status and triggering updates that are passed to the server via the webapp
- removing system events (login/out screensaveer on/of etc.) to be re-considered for a future release

* add missing descriptions

* review tweaks

* update tests
2019-10-09 09:00:15 -04:00
Dean Whillier 761ef8d0e6
[MM-18152] Desktop notifications (#1040)
* temp

* add in html5 notification tests

* strip out custom permissions handling

* disable middle click

* validate as URI instead of URL

allow’s custom protocol’s to pass through

* add context isolation to new window requests

* add new permissions handling

* prevent setting user to away from quit/shutdown

* dispatch desktop notifications from renderer

* remove test code

* log desktop notification errors

* should deny as a last resort

* only trigger callback once
2019-09-23 14:59:12 -04:00
Dean Whillier 576bea19bd
bugfix: initialize chromeDriverArgs arg (#1032) 2019-09-10 15:07:54 -04:00
Dean Whillier e12d47ea62
Mm 16694 master validate urls (#1000)
* validate urls before deeplink or link click

* tests for isValidURL utility function

* review change - invert condition

* add validation for loaded files

bounds-info.json, app-state.json, config.json

* further validation and tweaks

certificate.json, permission.json

* add 2 more files for validation

* parse and validate deeplinks

- includes fix for windows deeplink when app is open

* disable auto-updator when in dev

* Squirrel is not used anymore

* fix validating allowedProtocols

* discard any args following a deeplink url

* tweaks

* update test

* support scheme’s with and without slashes

* stop after finding the first occurance of a deep link

* test updates

* updates to run tests successfully

* port updates to validation from 4.2

* url validation updates

changed validation package to better support internal domains and punycode domains
2019-09-09 12:38:31 -04:00
Guillermo Vayá 304d26cece
[MM-18135] use no sandbox, separate linting, circle 2.1 (#1029)
* [MM-18135] use no sandbox, separate linting, circle 2.1

* [MM-18135] merge lint and test step, use -quiet, clarify changing debugging port
2019-09-06 22:44:52 +02:00
Dean Whillier 2cfc735d6d
[MM 7970] Maintain online status while the Desktop App is in the background ... and other things. (#993)
* monitor os-level user activity

* disable eslint warnings

* add tests for UserActivityMonitor

* couple more tests

* udpate headers of new files
2019-06-25 10:11:03 -04:00
Dean Whillier 4137d0ea23 [MM-14740] Consolidate configuration to support integration of MSI/GPO (#959)
* config logic consolidation

* filter out duplicate servers

* build default teams and GPO teams are not editable

* tweaks

* tweak config architecture to support tests

- config needs to load in each process (main and renderer) and then synchronize with each other
- finished saving ui functionality

* add esdoc comments to new config module

* remove old config-related files

* revert eslint comment

* don’t filter teams, duplicates are allowed

* some code review tweaks

* Remove unecessary deepCopy

* tweak for tests

* Skip test for now

Can’t seem to get this test to work, even though what is being tested works fine in the actual app.

* fix for failing test

click of ‘light’ option wasn’t triggering an update as it is selected by default, so flipped the order to first select ‘dark’ and then ‘light’
2019-04-11 13:58:30 +02:00
Jesse Hallam 79e020ba43 MM-14446: consider subpath when evaluating if url is internal (#946)
* MM-14446: consider subpath when evaluating if url is internal

When clicking on an URL with `target=_blank`, the webview decides if it should launch an external browser or a new window within the Electron application. Update this logic to consider the application's configured subpath so as to treat links outside the subpath but on the same domain as external.

* fix licensing on new file

* fix .eslintrc.json indentation

* tweak header eslint rules for specific files
2019-03-15 20:20:41 +01:00
Yuya Ochiai 6d6d586b3b Add eslint-plugin-eslint-comments 2019-03-12 23:31:45 +09:00
Yuya Ochiai 596f3a8721 Fix failing tests
Setting filename to window.location is no longer working.
2019-02-05 00:08:03 +09:00
Yuya Ochiai de03d513d0 Tweak timeout to fix failing test 2019-01-07 23:17:43 +09:00
Sven Hüster e47061fd7b
Merge branch 'master' into fix-typos 2018-12-10 22:20:18 +01:00
Sven Huester fa961654f3 fixes several typos 2018-12-02 14:55:24 +01:00
Yuya Ochiai 70b3aa0531 Fix or skip broken tests
When there is navigation with #btnClose, all APIs would fail.
So such tests are marked as "skipped".
2018-11-13 22:51:00 +09:00
Hans-Peter Schadler 8bad9e002e Add tests for spellcheck suggestions 2018-10-09 18:58:32 +02:00
rodrigo f2d6cd383c Add pt-BR spell checker 2018-07-30 13:28:53 -03:00
Yuya Ochiai 37b71476d2 Fix ESLint header/header error 2018-05-31 00:30:24 +09:00
Yuya Ochiai 1c9c531826 Tweak pausing in NewServerModal test 2018-05-26 00:23:28 +09:00
Yuya Ochiai 6b7dd6616a Resize test window to click target element 2018-05-25 21:10:16 +09:00
Yuya Ochiai 66f273039f Skip failing tests due to chromedriver issue 2018-05-25 21:10:16 +09:00
Yuya Ochiai 0a673bc0cd Resize the window to click the center of body in test 2018-05-24 01:40:53 +09:00
Yuya Ochiai 11b5bc16c2 Manually calculate scroll offset in test 2018-05-24 01:40:53 +09:00
Yuya Ochiai fd801b0f25 Tweak waiting for animation in test 2018-05-24 01:38:28 +09:00
Yuya Ochiai 15bd3acc0c Scroll to the target element before clicking in test 2018-05-18 00:38:43 +09:00
Yuya Ochiai 8edd57dd0c Fix test assertion due to changed default option 2018-05-15 21:37:09 +09:00
Yuya Ochiai e8e60beff2 Tweak timeout 2018-04-12 23:01:46 +09:00
Yuya Ochiai 0b150ee60a Tweak timeout 2018-04-12 22:40:38 +09:00
Yuya Ochiai 8432a1ec16 Fix tests 2018-04-10 22:00:31 +09:00
Yuya Ochiai 60e6058869 Use ES6 import/export for modules 2018-04-10 22:00:30 +09:00
Yuya Ochiai 4586704238 Fix test for gpu option 2018-04-03 21:53:37 +09:00
Yuya Ochiai 570b256da9 Stop using scroll in test 2018-03-21 00:02:13 +09:00
Yuya Ochiai b737e63f68 Add "Enable GPU hardware acceleration" option 2018-03-21 00:02:13 +09:00
Yuya Ochiai aa5e6563fe Tweak pause of modal tests 2018-03-16 20:17:33 +09:00
Yuya Ochiai 75116e66d8
Merge pull request #731 from yuya-oc/fix-spellchecker
Fix correct spellchecker locale is not selected for non en-US locales
2018-03-16 00:12:31 +09:00
Yuya Ochiai a0ab0255d6 Make sure SpellCheker.getSpellCheckerLocale() returns correct locale 2018-03-14 23:34:34 +09:00
Yuya Ochiai 0be402be81 Rewrite tests with async/await 2018-03-14 21:55:20 +09:00
Yuya Ochiai 12f240d196 Add showTrayIcon test for Mac and Linux 2018-02-27 20:00:49 +09:00
Yuya Ochiai 75b34927b9 Tweak pause duration of failing test 2018-02-23 20:29:44 +09:00
Yuya Ochiai 197b172a59 Fix eslint errors 2018-02-23 00:37:24 +09:00
Yuya Ochiai a5a5393149
Merge pull request #711 from yuya-oc/upgrade-electron
Upgrade Electron
2018-02-23 00:15:11 +09:00
Jesse Hallam 620c5484e3
invoke yarn fix:js to adopt the updated eslint rules. No other changes are included. 2018-02-21 14:21:16 -05:00