Anders Kaseorg
063324550e
run-dev: Fix for one package.json structure.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 20:00:36 -08:00
Anders Kaseorg
268471df6b
typings: Remove redundant ZulipWebWindow.$.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 18:17:13 -08:00
Anders Kaseorg
ca6b2312be
typings: Get Window.Notification from upstream.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 18:16:01 -08:00
Anders Kaseorg
ff026e5763
typings: Get NotificationOptions.silent from upstream.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 18:14:13 -08:00
Anders Kaseorg
8f810481e3
typings: Get requestIdleCallback from DefinitelyTyped.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 18:13:26 -08:00
Anders Kaseorg
f91e95647a
typings: Use type declarations from DefinitelyTyped.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 18:01:24 -08:00
Anders Kaseorg
e9536f247b
dependencies: Use one package.json structure.
...
The two package.json structure is no longer needed.
https://www.electron.build/tutorials/two-package-structure
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 11:02:59 -08:00
Anders Kaseorg
067cbf32a1
build: Fix cld sources exclusion.
...
As of commit 107e522914 , @paulcbetts/cld
was renamed to cld.
docs is not being included anyway since it’s outside of app.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-03 10:59:41 -08:00
Anders Kaseorg
6824978114
dependencies: Remove @types/dotenv compatibility stub.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 20:31:20 -08:00
Anders Kaseorg
fa86f1ca25
dependencies: Upgrade everything to latest.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 20:31:19 -08:00
Anders Kaseorg
a63b3873ae
dependencies: Remove electron-debug.
...
We already implement all of its functionality.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 20:15:43 -08:00
Anders Kaseorg
5064ea4b47
dependencies: Upgrade node-json-db from 0.9.2 to 1.0.3.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 19:52:39 -08:00
Anders Kaseorg
6b0d8520c5
dependencies: Remove unused dependencies assert, cp-file, is-ci.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 19:19:37 -08:00
Anders Kaseorg
4b16164155
cleanup: Remove unused tests/e2e directory.
...
It is not used even by test-e2e.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 19:18:25 -08:00
Anders Kaseorg
6036a44fb2
new-server-form: Remove useless .server-save-action wrappers.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 19:08:45 -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
Anders Kaseorg
675bc2f06c
appveyor.yml, .travis.yml: Test current Node.js releases.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-03-02 16:30:12 -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
Tim Abbott
39ea18228c
dependencies: Update gulp testing packages.
2020-02-29 22:54:50 -08:00
Tim Abbott
909e0f07e3
dependencies: Upgrade linters and fix linter errors.
...
The changes here are mostly straightforward; the one exception is
removing a zulipdev.org hack.
We disable some lint rules we'll want to address later (E.g. we want
to switch to using async/await rather than .then()). But those are
out of scope for this commit.
2020-02-29 22:47:42 -08:00
Tim Abbott
31af6596bf
dependencies: Upgrade Electron to version 8.
...
This is the latest Electron release, which means we're now getting
nearly modern Chrome (hopefully with fewer rendering bugs and better
performance).
2020-02-29 21:49:19 -08:00
Tim Abbott
3c9914542f
badge: Clear badge counts on Linux as well.
...
My Linux desktop environment doesn't display unread badges, it seems,
but this is clearly how this code should read.
2020-02-29 21:39:56 -08:00
Tim Abbott
f4b9605742
electron: Update some setter/getters to user newer properties.
...
This removes a few deprecation warnings on app startup.
2020-02-29 21:39:56 -08:00
Tim Abbott
e2fc9241fa
dependencies: Upgrade to Electron 7.
...
This works without any other changes, thanks to Electron's deprecation
process being done over multiple releases.
2020-02-29 21:39:56 -08:00
Tim Abbott
3b18357c74
download: Use removeListener for removing the updated listener.
...
This is slightly cleaner code, and also fixes a typescript error (that
might be a bug) we'll get when we upgrade to Electron 7.
2020-02-29 21:39:56 -08:00
Tim Abbott
c4beedf740
proxy: Migration to use async/await.
...
This is required for the upgrade to Electron 7, which removes the old
callback-based form of these APIs.
2020-02-29 21:39:56 -08:00
Anders Kaseorg
b34bf7236f
.travis.yml: Fix npm ci invocation for app directory.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-02-29 18:49:01 -08:00
Tim Abbott
e32968b2f3
preferences: Convert one more dialog to use async/await.
...
This should have been in the main version update commit.
2020-02-29 18:32:09 -08:00
Anders Kaseorg
747fbb5ab0
.travis.yml: Run npm ci, not npm install.
...
This enforces that package-lock.json is up to date in Git.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-02-29 18:30:05 -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
Tim Abbott
c83bc08359
i18n: Add additional automatically output strings.
...
I'm skeptical of the setup that these are generated dynamically while
working in the development environment; that seems not robust.
2020-02-29 17:38:23 -08:00
Anders Kaseorg
ef0b056437
package.json: Fix clean-ts-files script to spare app/node_modules.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-02-29 17:03:53 -08:00
Tim Abbott
9370f783ba
i18n: Update generated translation data.
...
I feel like this should probably not be in Git.
2020-02-29 16:14:00 -08:00
Tim Abbott
227e59fee2
gitattributes: Disable binary handling of lock files.
...
This makes it possible to see what packages change after npm
operations.
2020-02-29 13:09:29 -08:00
Akash Nimare
b7147d0b29
webview: Update web security preference.
...
Electron docs suggests that we should not use
`disablewebsecurity` thus removing the same.
2020-02-27 16:55:47 +05:30
Akash Nimare
f93053eb20
release: New release 4.1.0-beta.
2020-02-27 10:37:55 +05:30
ViPuL
49b29bfed6
auth: Move social login process to browser.
...
Moves the social login to browser since there
was no way to verify the authencity of the
auth process for a custom server and to
prevent phishing attacks.
Fixes #849 .
Co-authored-by: Kanishk Kakar <kanishk.kakar@gmail.com >
2020-02-25 20:05:27 +05:30
Akash Nimare
0fb610f858
macOS: Add colorless tray icon for macOS.
...
Fixes : #825 .
2020-02-05 21:41:10 +05:30
ViPuL
1d9a923245
startup: Use inbuilt electron API for autostartup. ( #859 )
...
Switch from using the external auto-launch module to
inbuilt setLoginItemSettings for windows and macOS,
as some users reported issues on windows.
Fixes : #851 .
2020-01-28 12:26:41 +05:30
Ross Brunton
9582d32de8
Added option to select download locations.
...
Added an option that, when enabled, will mean any file downloads that
would normally go to ~/Downloads (or wherever), in fact prompt.
2020-01-21 16:41:56 +05:30
ViPuL
a2a21631f2
Decode server name in Window menu.
2020-01-08 11:58:44 +05:30
Akash Nimare
9490265a03
dock: Toggle app on clicking the dock icon.
2019-12-29 00:49:46 +05:30
Brandon Liu
70bd619fa8
Fix size of macOS dock icon.
...
Fixes : #845 .
2019-11-30 17:07:31 +05:30
Akash Nimare
c5797e4edb
release: New release v4.0.3.
2019-11-21 12:47:29 +05:30
Kanishk Kakar
32321daef2
docs: Add release notes for v4.0.2-beta. ( #841 )
2019-11-17 04:27:55 +05:30
Akash Nimare
95a9568ece
beta-release: New release v4.0.2-beta.
v4.0.2-beta
2019-11-13 14:56:34 +05:30
Kanishk Kakar
e7a885a1fb
macos: Enable notarization for macOS Catalina.
...
This fixes the issue for Catalina users.
2019-11-13 14:55:11 +05:30
Akash Nimare
17d4d97e2e
certificate: Make certificate location dynamic.
...
* certificate: Make certificate location dynamic.
* Update certificate location for old servers.
2019-11-01 19:56:22 +05:30
Akash Nimare
3b14684058
Add docs for translation
2019-10-30 02:10:38 +05:30
Akash Nimare
7d592a0a1c
validation: Add SSL troubleshooting guide in error message.
2019-10-25 21:03:28 +05:30