Anders Kaseorg
e536a03fab
dependencies: Fix package-lock.json stability.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-25 13:07:28 -07:00
Anders Kaseorg
ee60702276
release: Update package-lock.json for new release v5.1.0.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-25 13:07:24 -07:00
Akash Nimare
e721211619
release: New release v5.1.0
2020-04-25 13:53:44 +05:30
Anders Kaseorg
ff671b53ef
dependencies: Upgrade dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-24 22:15:20 -07:00
Akash Nimare
340eb8da99
server-icon: Handle server icon update gracefully.
...
Don't trigger user-facing network error for updating the server icon.
2020-04-24 11:48:27 +05:30
Anders Kaseorg
ae689ad6bb
general-section: Import supported-locales.json as a JSON module.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-22 13:06:00 -07:00
Anders Kaseorg
7ffddded5d
Configure language by value, not by index.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-22 13:05:59 -07:00
Anders Kaseorg
714cd926ae
generateSelectTemplate: Add missing HTML escaping.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-22 13:05:15 -07:00
Manav Mehta
b2f4af0f49
Add feature to set application language.
...
User can now select application language without changing the language in the operating system.
Fixes : #855 .
2020-04-22 18:08:49 +05:30
Aditya Mudgil
d7136aef25
macOS: Update dock icon.
...
* Added inner padding to .icns dock icon for mac
* Change inner padding of the image to 20px for each side
Fixes : #787 .
2020-04-14 20:20:48 +05:30
Anders Kaseorg
73f8b21a9f
scripts: Synchronize Debian scripts with electron-builder 22.4.1.
...
Fixes #912 .
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-08 14:15:43 -07:00
Akash Nimare
4ce08cb5a2
dock: Do not toggle window on clicking dock.
...
We are reverting back our decision after getting a lot of feedback
on this behaviour. Fromm now on, when you click on the dock icon we'll
show the app window and won't hide it after clicking again on dock.
Fixes : #914 .
2020-04-07 20:16:50 +05:30
Anders Kaseorg
814ce071a3
release: New release v5.0.0.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
v5.0.0
2020-03-30 19:38:33 -07:00
Anders Kaseorg
92fb176f67
Revert "auth: Move social login process to browser."
...
This reverts commit 49b29bfed6 (#863 ).
The design of this feature is still under discussion; we expect it to
return after the security release.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
a03f569af9
CVE-2020-10857: Whitelist safe URL protocols for shell.openExternal.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
af59bb7c99
handleExternalLink: Do not navigate the current window.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
4390966a62
Always show downloaded files in file manager.
...
shell.openItem is unsafe.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
a6d942fe6c
CVE-2020-10858: Lock down session permission requests.
...
This fixes a vulnerability reported by Matt Austin.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
9d4093b3d8
CVE-2020-10856: Enable context isolation.
...
This fixes a vulnerability reported by Matt Austin.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
20a6c5d128
preload: Use IPC for logout, shortcut, showNotificationSettings.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
c843e179fc
tray: Remove tray variable from window.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:33:24 -07:00
Anders Kaseorg
438d4fffa7
notification: Convert loadBots from jQuery to fetch.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:32:23 -07:00
Tim Abbott
5c164bfa7d
webview: Disable insecure content.
...
Zulip servers in production are designed to only serve content over
HTTPS. And a development environment's root page will be served over
HTTP.
So there is no purpose in enabling allowInsecureContent, even
conditionally for use against Zulip development environments; we should
just remove the setting.
2020-03-30 19:32:23 -07:00
Anders Kaseorg
cbc89a72a2
tray: Work around Electron segfault on certain platforms.
...
Set the tray icon’s context menu immediately after creating the Tray
object. This seems to prevent an Electron segfault at startup on
certain platforms, such as Ubuntu 16.04 i386. See
https://github.com/electron/electron/issues/22652 and its linked
issues.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-30 19:26:29 -07:00
Anders Kaseorg
fb1e163130
typescript: Fix errors hidden by skipLibCheck.
...
This requires temporarily downgrading to @types/node@^12 (see
https://github.com/electron/electron/issues/21612 ).
Leave skipLibCheck on for now as it still saves a few seconds when
running tsc.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-26 16:35:13 -07:00
Anders Kaseorg
2ebeeedba8
dependencies: Move fs-extra from devDependencies to dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-24 21:07:25 -07:00
Anders Kaseorg
82a7f97ca6
dependencies: Upgrade dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-23 17:22:48 -07:00
Anders Kaseorg
55eb768064
xo: Upgrade xo to 0.28.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-23 16:53:14 -07:00
Anders Kaseorg
611932c66d
xo: Unabbreviate variable names.
...
To satisfy unicorn/prevent-abbreviations in xo 0.28.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-23 16:53:12 -07:00
Anders Kaseorg
5deffa5022
changelog: Add missing changelog entry for v4.0.3.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-23 15:08:21 -07:00
Anders Kaseorg
6f01f1362a
js: Declare 'use strict' on tests too.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-09 22:14:23 -07:00
Anders Kaseorg
9d2739f050
js: Declare 'use strict' on all scripts and no modules.
...
And enable the import/unambiguous ESLint rule as a check on our
partition between scripts and modules. After this commit, if you add
a new file and get this error:
✖ 1:1 This module could be parsed as a valid script. import/unambiguous
* For a module, add an `import` or `export` declaration to make the
file unambiguously a module (the empty `export {};` declaration
suffices).
* For a script, add the file to the xo overrides section of
package.json that marks it "sourceType": "script", and add a 'use
strict' declaration.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-09 20:04:43 -07:00
Akash Nimare
01f6e77237
macOS: Fix undo redo not working on macOS.
...
The default API provided by Electron doesn't work
as expected. More info here -
https://github.com/electron/electron/issues/15728
Fixes : #866 .
2020-03-10 00:32:05 +05:30
Manav Mehta
7ac35cc087
macOS: Replace deprecated isDarkMode() with shouldUseDarkColors.
...
Fixes : #891 .
2020-03-08 14:55:43 +05:30
Anders Kaseorg
32e6b3054f
xo: Use more xo defaults.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 21:46:18 -08:00
Anders Kaseorg
40bf2a1f20
xo: Lint *.js too.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 21:22:04 -08:00
Anders Kaseorg
dee2f05ac0
locale-helper: Move supported-locales.js to supported-locales.json.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 20:45:57 -08:00
Anders Kaseorg
ca5de73155
xo: Reenable several easy rules.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 20:15:01 -08:00
Anders Kaseorg
d0f8c040c7
package.json: Add tsc to test script.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 18:26:06 -08:00
Anders Kaseorg
7cf40f1e08
typescript: One more switch to ES export syntax.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 18:15:42 -08:00
Anders Kaseorg
598c0df60b
package.json: Reformat to match npm generated output.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 17:52:10 -08:00
Anders Kaseorg
d3bcd7306a
typescript: Switch to ES import/export syntax.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 17:21:03 -08:00
Anders Kaseorg
b3261bcdff
js: Explode more singleton classes to modules.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 16:27:44 -08:00
Manav Mehta
20c6f487c4
typescript: Implement some TODOs.
2020-03-04 14:21:25 -08:00
Anders Kaseorg
340797ca10
typescript: Refine some type annotations to avoid any.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 12:12:31 -08:00
Anders Kaseorg
220aac2d54
js: Explode singleton classes to modules.
...
Singleton classes may have a purpose. This was not that purpose.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-04 11:54:45 -08:00
Akash Nimare
d9f6cf4cc9
docs: Update recommended node version for development.
2020-03-04 16:59:21 +05:30
Anders Kaseorg
dc3e5d4930
package.json: Sort xo overrides.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 21:50:02 -08:00
Anders Kaseorg
fc2b80c36a
main: Fix realm icon updating.
...
Commit c937317ecf (#605 ) should have
updated this, but didn’t.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 21:50:02 -08:00
Anders Kaseorg
ab667d8053
checkCertError: Fix showMessageBox usage.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 21:50:02 -08:00