Commit Graph

56 Commits

Author SHA1 Message Date
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
Allen Lai
2a426ebe09 MM-18754: Desktop: Convert binding functions to arrow functions (#1123)
* change to using arrow function

* conform to lint
2019-12-30 11:08:27 +01:00
Devin Binnie
52da23fafe [MM-20796] Removed visibility: hidden from MM view when error page was showing (#1127) 2019-12-27 10:48:08 +01:00
Devin Binnie
e95b7aad02 [MM-19223] Created reduced size notification icon to fix pixelation (#1136) 2019-12-27 10:44:43 +01:00
Dean Whillier
4a54b58e65 [MM-19266] Manually exit html fullscreen on macOS when in fullscreen (#1097)
* manually exit html fullscreen on mac in fullscreen

* Ensure the element that is fullscreen is an iframe

* remove unused import
2019-11-23 02:31:18 -05:00
Dean Whillier
5edc665978 stop cursor bug fix from running in inactive tabs (#1054) 2019-10-03 09:06:40 -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
171e4a03a7 [MM 17255] Fix OneLogin and other OAUTH/SAML custom login attempts (#1025)
* allow custom login activity (oath, saml)

* fix electron missing cursor bug

* change variable name

* tweaks to custom login process
2019-09-16 16:02:37 -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
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
f3204443f9 open certain internal paths in default browser 2019-03-25 22:23:23 -04: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
Sven Huester
fa961654f3 fixes several typos 2018-12-02 14:55:24 +01:00
Harrison Healey
c861827d32 MM-12800 Remove partial ability to use file:// links 2018-10-25 13:41:06 -04:00
Jesse Hallam
cbe7889f20 MM-12275: detect an expired session and show badging 2018-09-24 18:26:45 -04:00
Yuya Ochiai
5091f59786 Remove findDOMNode() from components 2018-09-06 00:30:17 +09:00
Yuya Ochiai
23ca8bbe5a Use ES6 class for React components 2018-09-03 23:43:09 +09:00
Yuya Ochiai
d73f98825e Apply no-var eslint rule 2018-09-03 21:41:04 +09:00
Yuya Ochiai
37b71476d2 Fix ESLint header/header error 2018-05-31 00:30:24 +09:00
Yuya Ochiai
e899113f1f Fix MattermostView.focusOnWebview() if statement 2018-05-08 21:11:36 +09:00
Yuya Ochiai
2df19c4dd7 Fix an error where the main page gets blank when adding a server 2018-05-03 21:20:21 +09:00
Yuya Ochiai
0c0cdb756b Apply new loading animation 2018-04-22 00:50:28 +09:00
Yuya Ochiai
60e6058869 Use ES6 import/export for modules 2018-04-10 22:00:30 +09:00
Yuya Ochiai
d5ff7c7a98 Ignore did-fail-load event when trying to use U2F devices 2018-03-16 22:12:38 +09:00
David Meza
011b84e2f4 Whitelabel: Downloads link opens in Mattermost branded window. 2018-03-07 20:11:29 -05:00
Yuya Ochiai
7718cf046a Merge pull request #712 from lip-d/file_protocol
Fixed an issue where clicking on a file:// protocol path does not open windows explorer since version 3.5.0. #579
2018-02-26 21:29:12 +09:00
lip-d
267b8780cf Fixed an issue where clicking on a file:// protocol path does not open windows explorer since version 3.5.0. 2018-02-25 10:51:45 +09:00
Yuya Ochiai
197b172a59 Fix eslint errors 2018-02-23 00:37:24 +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
lip-d
dcc7819dea implemented all the review comments 2018-02-21 19:57:15 +09:00
lip-d
d4060d0d59 Fixed issue: clicking on a file:// protocol path does not open windows explorer since version 3.5.0 #579 2018-02-17 18:15:14 +09:00
Yuya Ochiai
92489aea30 Allow deep-linking protocol when opening a link 2018-01-19 00:24:08 +09:00
Yuya Ochiai
869e673ae6 Show the loading icon until React app is actually rendered 2017-11-07 20:48:16 +09:00
Yuya Ochiai
616465748b Use a Mattermost animation icon when loading a page in the app 2017-11-07 20:48:15 +09:00
David Meza
c624a9a009 Refactorings to make code cleaner. Fixes to not execute anything when windows squirrel installer. 2017-10-23 18:55:28 -05:00
David Meza
150b829a67 Logic for deep linking to go to the right tab and channel based on domain 2017-10-23 18:55:28 -05:00
David Meza
40892e0430 Protocol handler for deep linking in desktop app 2017-10-23 18:55:28 -05:00
Yuya Ochiai
39f88b3513 Cancel automatic reloading when an error page is manually reloaded 2017-08-24 21:14:27 +09:00
Yuya Ochiai
2e310dc1ee Follow up react's deprecation 2017-05-12 00:17:13 +09:00
Yuya Ochiai
8d4b2624ca Merge pull request #519 from yuya-oc/download-public-file
Don't show an extra window when clicking public file link
2017-04-28 21:16:42 +09:00
Yuya Ochiai
95c574eadc Show only save file dialog when clicking public file link
For #390
2017-04-27 22:45:32 +09:00
Yuya Ochiai
256e317402 Add context menu to select spelling language 2017-04-27 20:26:37 +09:00
Yuya Ochiai
84d0ec432a Implement simple spellchecker 2017-04-26 00:12:23 +09:00
Yuya Ochiai
7c9dd50477 Hide webview with the recommended approach
https://electron.atom.io/docs/api/webview-tag/#css-styling-notes
2017-04-18 23:52:03 +09:00
Yuya Ochiai
d42a4ff16c Removed Japanese fonts support
Now Electron chooses proper fonts. So the feature is no longer necessary.
2017-03-23 01:04:25 +09:00
Yuya Ochiai
f08db8c72b Remove "Display secure content only" option
allowDisplayingInsecureContent is removed in Electron 1.6.
And it's no longer necessary to show http contents in https server.
2017-03-18 21:33:51 +09:00
Yuya Ochiai
b1d586e9da Remove nodeIntegration warning of webview in BrowserWindow
nodeintegration attribute is ignored in React because it's unknown.
So fortunately the integration is not working.
New 'will-attach-webview' allows us to set nodeIntegration = false.
2017-03-18 20:58:32 +09:00
Yuya Ochiai
1ab0859ac1 Stop using __dirname to avoid confusing 2017-03-06 23:43:27 +09:00
Yuya Ochiai
ae1c079b95 Stop using dist directory to build 2017-03-03 23:07:06 +09:00