Commit Graph

53 Commits

Author SHA1 Message Date
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
Yuya Ochiai
579e966e19 Tweak options style of window.open 2017-02-23 01:06:50 +09:00
Yuya Ochiai
1ff8ec5120 Fix window.open() looks not working
Intorduced by f8fadcb844
because {show:false} option was inherited from the main window.

https://github.com/electron/electron/blob/v1.4.13/docs/api/window-open.md

Close #450
2017-02-23 00:37:44 +09:00
Yuya Ochiai
97df4e1c42 Add context menu only once even if after reloading
Close #408
2017-01-11 22:07:06 +09:00