Anders Kaseorg
8d66f05924
xo: Sort imports with import/order.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-23 23:06:41 -07:00
Anders Kaseorg
9cf26f4890
dependencies: Upgrade dependencies.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-01 15:01:47 -07:00
Anders Kaseorg
397a7381b8
main: Use import() syntax for electron-connect.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-01 15:01:38 -07:00
Anders Kaseorg
9ceabe02d5
Use optional catch binding.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-01 15:01:29 -07:00
Manav Mehta
e97ab2e6dd
Replace deprecated getWebContents API
2020-06-30 20:33:41 -07:00
Manav Mehta
0fff6336c7
spellchecker: Use Electron 8 built-in spellchecker.
...
* Using electron built-in spellchecker
* Added the custom context menu
Co-authored-by: Anders Kaseorg <anders@zulipchat.com >
Fixes : #504
2020-06-18 18:14:23 +05:30
Akash Nimare
f976270d33
lint: Fix linting errors.
2020-06-17 01:44:08 +05:30
Akash Nimare
2f70621255
windows: Turn off start at login by default.
...
Fixes : #960 .
2020-06-16 20:10:23 +05:30
Anders Kaseorg
5d775405d9
Update zulipchat.com links to zulip.com.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-08 14:01:40 -07:00
Anders Kaseorg
99a3530238
xo: Add arrow-body-style rule
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-26 11:25:24 -07:00
Manav Mehta
f55570f2f5
Handle Reset options gracefully.
...
Fixes : #903 .
2020-05-20 21:54:36 +05:30
Anders Kaseorg
d661895545
Remove the insecure ignoreCerts option.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-13 04:06:50 -07:00
Anders Kaseorg
22d7ef5615
main: Turn electron-connect off by default.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-06 16:58:25 -07:00
Anders Kaseorg
983254c310
CVE-2020-12637: Do not ignore certificate errors without ignoreCerts.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-05 12:54:35 -07:00
Anders Kaseorg
b6059077d8
Generalize permission-response mechanism to renderer-callback.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-05 12:54:35 -07:00
Anders Kaseorg
34e2b3a3d0
typescript: Eradicate most any annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-04 01:08:05 -07:00
Anders Kaseorg
6b7cce0366
ServerManagerView: Convert loading from object to Set.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-03 19:16:05 -07:00
Anders Kaseorg
73fec72e6d
registerIpcs: Convert webviewListeners to array with functions.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-03 19:09:22 -07:00
Manav Mehta
98174fdcaf
help: Update Help Center URL.
...
Earlier the menu option used to redirect to *.zulipchat.com/help which is already reachable from the webapp.
This will enable the desktop app to redirect only to zulipchat.com/help instead of the help page of the corresponding organization.
Fixes : #948 .
2020-05-02 20:17:25 +05:30
Anders Kaseorg
d9afee3330
ServerManagerView: Convert functionalTabs from object to Map.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
a46f2ed618
xo: Enable import/no-mutable-exports.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
fb800f7862
xo: Enable @typescript-eslint/no-unused-vars.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
ba191c3699
xo: Enable object-curly-spacing.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
e49a880ed6
xo: Enable capitalized-comments.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
4bfa7c9265
xo: Enable no-else-return.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
963c2e5388
xo: Enable @typescript-eslint/restrict-plus-operands.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
fc6ff83485
xo: Enable no-alert.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
5ae2a717fa
xo: Enable padding-line-between-statements.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
cfdc08a038
xo: Enable unicorn/catch-error-name.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
bb88a7b7a8
xo: Handle floating promises.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
0225778050
typescript: Annotate queueDomain.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
2e03f779e8
typescript: Annotate setMenu props.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Manav Mehta
16f0af8853
Remove storing of User-Agent on disk.
...
Fixes : #921 .
Co-authored-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-26 13:30:39 -07:00
am2505
bb6d90671f
typescript: Complete most TypeScript todos.
2020-04-25 15:49:10 -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
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
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
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
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
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
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
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
am2505
534f4c1463
Convert Promise to async-await.
...
Fixes #878 .
2020-03-03 20:40:10 -08:00
Anders Kaseorg
598b96b6e8
webview: Wait for dom-ready before sending messages.
...
Fixes tests/test-add-organization.js.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 18:52:37 -08:00
Tim Abbott
eb2988a5e4
dependencies: Update typescript and typescript-eslint.
...
The changes are mostly done via `xo --fix`; the other changes are
either trivial or disabling new linter rules that we plan to address
in future commits.
2020-02-29 23:39:55 -08:00