Commit graph

2197 commits

Author SHA1 Message Date
Dean Whillier 5edc665978
stop cursor bug fix from running in inactive tabs (#1054) 2019-10-03 09:06:40 -04:00
Michael Kochell 593ded98f6
[MM-18936] Guard against bad server url so app doesn't crash (#1049)
* guard against invalid server url so app doesn't crash

* move if statement and add try/catch
2019-10-01 12:17:08 -06:00
William Gathoye a5368a9587
Add msi, gpo, new CI and runtime/sandbox hardening
* Add msi installer via Wixtoolset
* Add PowerShell Makefile
* [MM-18135] merge lint and test step, use -quiet, clarify changing debugging port
* [MM-18135] use no sandbox, separate linting, circle 2.1
* [MM-18137] Add MSI installer job
* [MM-18137] Add windows signing
* [MM-18152] Desktop notifications (#1040)
* [MM-18345] use non-dangerous wix version
* [MM-18348] add code signing to windows build (#1044)
* [MM-18348] fix review comments
* [MM-18851] runtime/sandbox hardening (#1042)
* [MM-18906] remove GPU acceleration option from GPO settings (#1047)
* Other minor refinements
2019-10-01 14:10:25 +02:00
Devin Binnie 4d7f5ab417 [MM-18750] Fixed a typo that was causing tray icon to constantly show up (#1041) 2019-09-26 13:51:24 -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
dependabot[bot] 77d823a076 Bump mixin-deep from 1.3.1 to 1.3.2 (#1027)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-20 16:33:16 +02:00
dependabot[bot] 97fdedcc64 Bump eslint-utils from 1.3.1 to 1.4.2 (#1024)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-20 16:33:09 +02:00
dependabot[bot] 175eaad6f6 Bump bootstrap from 3.3.7 to 3.4.1 in /src (#1021)
Bumps [bootstrap](https://github.com/twbs/bootstrap) from 3.3.7 to 3.4.1.
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](https://github.com/twbs/bootstrap/compare/v3.3.7...v3.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-20 16:33:01 +02: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 99fae82514
[MM-18551] Remove (auto)updater from v4.3 (#1035)
* remove (auto)updater from v4.3
2019-09-16 13:08:45 -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
Dean Whillier f12f9da798
switch to ‘postMessage’ for webapp communication (#1026) 2019-09-09 12:33:14 -04:00
Dean Whillier 2d173e6f70
Enable context isolation (#999) 2019-09-09 12:30:25 -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
amyblais 32b747ab30 Update CHANGELOG.md (#1017) 2019-08-09 12:33:50 -07:00
amyblais 38dff13a39 Update CHANGELOG.md (#1014) 2019-08-08 14:11:48 +02:00
amyblais 544d76bb89 Update CHANGELOG.md (#1012) 2019-08-07 20:07:26 +02:00
amyblais fde71906ef Update CHANGELOG.md (#1011) 2019-08-07 20:02:09 +02:00
Carlos Tadeu Panato Junior a5f9590723 remove jenkins (#1008) 2019-08-02 15:51:14 -07:00
Peter Dave Hello 310fc63132 Optimize png image with zopflipng lossless compression (#981) 2019-07-09 21:29:02 -04:00
steevsachs e6acdf387c [MM-11896] Do not use minimize shortcut on win32 (#971) 2019-07-02 15:09:39 +02:00
Yuya Ochiai 04c03c3baf Upgrade dependencies (#996)
* Upgrade Electron to 5.0.4

* Fix spellcheck provider

* npm audit fix
2019-06-26 15:46:13 -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 2cf0acc38c
center badge text and nomention dot (#995)
- also add padding and updated border radius to be a bit more consistent with badges in webapp
2019-06-21 17:39:43 -04:00
Dean Whillier b3d1b977fd
upgrade electron (#989) 2019-06-17 09:56:06 -04:00
Dean Whillier 694e6554e0 reference menion counts from LHS only (#990) 2019-06-17 15:21:57 +05:30
Jesús Espino 241fe8db62 MM-13690: Centering the dot correctly on nomentions badge (#978) 2019-05-24 12:59:30 -04:00
Dan Maas 55ae63e0b2 Update NOTICE file with electron version and new 'winreg' dependency 2019-05-11 23:35:46 +02:00
MikeNicholls 9aca5c6651 Fix inability to authenticate against a server protected with HTTP Basic Auth
Remove use of refs for login dialog username and password, shift values into instance properties instead (#966)
2019-05-11 22:02:14 +02:00
Dean Whillier d662b5c863 [MM-14740] Address potential race condition and cleanup main.js (#968)
A potential race condition between loading registry data in Windows and the electron app becoming ready is fixed with Promise.all() to make sure they are both loaded before finishing initialization that relies on both. Code has been reorganized to support this.
2019-05-11 19:27:51 +02:00
Dean Whillier 25b920f412
[MM-14740] Integrate GPO functionality (#961)
* integrate gpo functionality

* support multiple windows registry ‘hives’

* correct some copy paste errors

* registry config progress

* tweaks
2019-04-18 13:19:04 -04:00
Eric Sethna 9c0ac76f69 Update README.md (#960) 2019-04-18 12:37:20 -04:00
Dan Maas b9d8e25c72 Update NOTICE.txt (#957)
(this is the automated NOTICE.txt update for April 2019)
2019-04-17 10:51:03 +02: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
amyblais b7b88c4fbb Update ISSUE_TEMPLATE.md (#930)
* Update ISSUE_TEMPLATE.md

* Update ISSUE_TEMPLATE.md
2019-04-10 20:42:29 -04:00
Dean Whillier f175e21c03
Merge pull request #956 from mattermost/MM-13349
open certain internal paths in default browser
2019-03-26 10:14:10 -04:00
Dean Whillier 28bf5ce08d
Merge pull request #954 from mattermost/MM-14176
[MM-14176] Fix restart after quitting in full screen
2019-03-26 09:56:45 -04:00
Dean Whillier c72c30144c
Merge pull request #953 from mattermost/MM-14172
[MM-14172] Fix black screen when closing window in fullscreen on a Mac
2019-03-26 09:29:20 -04:00
Dean Whillier f3204443f9 open certain internal paths in default browser 2019-03-25 22:23:23 -04:00
Dean Whillier feda6e6c02 don’t save window.fullscreen to app state 2019-03-21 11:44:48 -04:00
Yuya Ochiai deb8608874
Merge pull request #952 from mattermost/amyblais-patch-2
4.2.1 changelog
2019-03-21 22:19:27 +09:00
Dean Whillier c17fdc23a4 fix black screen when closing window in fullscreen 2019-03-20 16:43:27 -04:00
Jesse Hallam 4079234037
Update CHANGELOG.md
Co-Authored-By: amyblais <amy_blais@hotmail.com>
2019-03-20 09:36:44 -04:00
amyblais 5be2d254b9
Update CHANGELOG.md 2019-03-20 08:51:54 -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 6e2b3d7fab
Merge pull request #883 from yuya-oc/eslint-plugin-eslint-comments
Add eslint-plugin-eslint-comments
2019-03-13 23:59:53 +09:00
Yuya Ochiai cd91b1d170 Fix Mocha debug config 2019-03-12 23:45:52 +09:00
Yuya Ochiai 6d6d586b3b Add eslint-plugin-eslint-comments 2019-03-12 23:31:45 +09:00
Yuya Ochiai 4725bd9bf9 Update CHANGELOG.md 2019-03-12 23:05:25 +09:00