Anders Kaseorg
6e8fe36876
Fix typos.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-04-19 13:50:40 -07:00
Anders Kaseorg
56a4461c2a
xo: Fix n/file-extension-in-import, maybe.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-01-03 16:05:28 -08:00
Anders Kaseorg
8ea7f7864f
autoupdater: Add const assertion.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-01-03 14:09:17 -08:00
Anders Kaseorg
52486d687d
Allow the autoupdater to quit the app normally.
...
Forcing it to quit would prematurely terminate the update on some
platforms.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-04-28 19:51:07 -07:00
Anders Kaseorg
e39d2a9b95
xo: Fix unicorn/prefer-node-protocol.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-31 21:52:32 -07:00
Anders Kaseorg
3b04b61662
Upgrade dependencies, including Electron 18.0.1.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-31 21:21:21 -07:00
Anders Kaseorg
5acc45cba4
Use process-specific electron/{main,renderer,common} imports.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-14 21:38:18 -07:00
Anders Kaseorg
4151e020f6
Revert "xo: Fix import/extensions."
...
This reverts commit 5623ab3866 .
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-08 21:58:40 -08:00
Anders Kaseorg
5623ab3866
xo: Fix import/extensions.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-08 21:15:32 -08:00
Anders Kaseorg
a3f4e19aa2
autoupdater: Avoid deprecated log.FileTransport.file.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-08-30 14:18:31 -07:00
Anders Kaseorg
892f7c8e47
Strongly type config options.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-28 20:29:40 -07:00
Anders Kaseorg
67228d295d
Reformat all code with Prettier.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-31 20:04:00 -07:00
Anders Kaseorg
851bb7904f
Move modules shared between main and renderer processes to app/common.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-29 18:01:52 -07:00
Anders Kaseorg
d7598d3091
Replace LinkUtil.openBrowser in main process with shell.openExternal.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-29 18:01:15 -07:00
Anders Kaseorg
76d321fa79
xo: Enable @typescript-eslint/consistent-type-imports.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-29 17:48:54 -07:00
Anders Kaseorg
7b095a683c
Replace electron-is-dev with app.isPackaged.
...
This unfortunately uses remote, but that’s what electron-is-dev was
doing anyway.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-08 23:14:00 -08:00
Anders Kaseorg
75da0a16c1
xo: Fix unicorn/no-array-for-each.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-08 23:13:36 -08:00
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
Manav Mehta
14a1f5d3e1
request: Replace deprecated request module with net.request.
...
Co-authored-by: Anders Kaseorg <anders@zulip.com >
Fixes : #886 .
2020-07-14 15:50:52 +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
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
b76467529d
xo: Upgrade xo to 0.30.
...
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
4093304b4d
typescript: Annotate electron-updater events.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -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
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
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
vsvipul
107e522914
deps: Update Electron and related packages to Electron v6.
...
This updates most of our direct dependencies to much newer versions
(Electron v6, with compatible versions of related packages like
Spectron).
Further, it updates all of our recursive dependencies with `npm update
--depth=999`.
Modified by tabbott to migrate to async/await for dialogs rather than
the old synchronous API.
2020-02-29 18:28:42 -08:00
vsvipul
e4ef0e195a
typescript: Do final cleanup of issues.
...
Using `import * as` import syntax causes some problem if the
module exports a class or function. Because the whole point of
star import is to import every property the module exports. It turns
out we have been using it incorrectly in many places which this commit
fixes.
Then we fix a linting error by adding a eslint disable rule to solve
it along with a TODO because the way we currently do it is wrong.
Finally, to conclude this cleanup, we merge all the .gitignore paths
into once now that we can.
2019-07-17 00:22:17 +05:30
vsvipul
29753b1a46
typescript: Migrate autoupdater to typescript.
2019-07-17 00:22:17 +05:30