Anders Kaseorg
ec205f68a6
Send only needed data from tabs over IPC.
...
Fixes exceptions from the structured clone algorithm raised by
Electron 9.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-24 00:39:38 -07:00
Anders Kaseorg
5fe5989710
xo: Enable import/newline-after-import.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-23 23:18:25 -07:00
Anders Kaseorg
69141b5395
Remove spurious 'use-strict' [sic] directives.
...
The directive is 'use strict'. It’s not necessary in TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-23 23:09:12 -07: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
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
24b28f9ded
proxy-util: Fix misuse of void.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-07-01 15:01:29 -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
Anders Kaseorg
b6e11f623a
darwin-notifications: Avoid no-useless-return warnings.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-26 18:56:07 -07:00
Anders Kaseorg
1c60c335fd
logger-util: Avoid no-fallthrough warnings.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-26 18:56:03 -07:00
Anders Kaseorg
c9249b1724
context-menu: Avoid no-unnecessary-boolean-literal-compare warning.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-26 15:56:23 -07:00
Anders Kaseorg
9e957ba704
context-menu: Copy the email address, not the link text.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-26 15:47:38 -07:00
Abhigyan Khaund
addfe2e414
context-menu: Remove trailing and leading separators when not required.
...
Fixes : #979 .
2020-06-27 02:38:03 +05:30
Abhigyan Khaund
bda0dd29df
context-menu: Fix bug in Copy Link and add copy Email.
...
Fixes : #986
2020-06-27 02:27:44 +05:30
Abhigyan Khaund
01926e1234
context-menu: Enable copy only when copy is possible.
2020-06-27 02:27:44 +05:30
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
Manav Mehta
25f4c3aba8
translations: Prevent i18n to automatically add strings.
...
Now that we have moved to Transifex, auto updation of translation strings is not required.
We would only need to update the resource file (en.json) and push it to Transifex and pulling the rest <lang>.json
2020-06-12 13:18:04 +05:30
Anders Kaseorg
1b23468375
Update zulipchat.com emails to zulip.com.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-06-08 14:02:08 -07:00
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
a5ceffc856
transifex: Setup Transifex for better translation process.
2020-05-20 22:11:13 +05:30
Manav Mehta
f55570f2f5
Handle Reset options gracefully.
...
Fixes : #903 .
2020-05-20 21:54:36 +05:30
Manav Mehta
4f890c0316
macOS: Use electron API to get dark tray icon for the light theme.
2020-05-19 21:03:13 +05:30
Priyank Patel
bf651dece0
report-issue: Remove unnessacary instructions from the placeholder.
...
It looks like the removed instructions were directly copied from GitHub
issue template and did not fit here. Specifically, the first point about
including the platform is automatically included in the email we prepare for
the user and we also include browser and electron version. Then the second
bullet point re-iterates the instructions present. Lastly, the third point
asks for screenshot however user cannot add screenshot in the UI but they can
in the email.
We also remove an comment disabling a eslint rule. The rule was disable for no
reason because we should have used template literal instead of the undocumented
multi-str format which is not cleaner.
2020-05-19 11:02:39 -04:00
Priyank Patel
bfd146f2d9
send-feedback: Move custom css to a css file.
...
It just makes it a bit cleaner and easier to update css.
During this transition we update the color hex values to rgb
because of stylelint.
2020-05-19 11:02:39 -04:00
Sanskar Bajpai
3126510245
report-issue: Add a cancel button to the modal.
...
A user found the lack of a cancel button in the UI a bad
experience. Previously, we would close it when the overlay
was clicked but it does not seem informative in terms of it's
function.
Fixes : #966 .
2020-05-19 11:02:39 -04:00
Anders Kaseorg
d661895545
Remove the insecure ignoreCerts option.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-13 04:06:50 -07:00
Akash Nimare
ca9ab6168e
Update support email.
2020-05-13 12:19:45 +05:30
Manav Mehta
109a9bbd10
document: Remove inessential comment inherited from #902 and #909
...
The comment was created to document a piece of code in #902 but #909 addressed code quality
The comment is no longer essential and hence ought to be removed
2020-05-06 17:01:47 -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
cafff9a008
new-server-form: Add missing string conversion for error message.
...
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
40b26dbb0e
dnd-util: Refine typing.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-03 20:03:41 -07:00
Anders Kaseorg
ae4f03f4ba
logger-util: Clean up typing disaster zone.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-03 20:03:41 -07:00
Anders Kaseorg
8ea32a7a96
feedback: Stub send-feedback types.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-03 19:33:52 -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
a0c033431e
electron-bridge: Add decrypt_clipboard helper.
...
This one helper allows us to implement browser-based social login
entirely on the server side.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-05-01 15:00:02 -07:00
Abhigyan Khaund
82421d843a
downloadFiles: Fix issue of showing two Save As dialog box.
...
Currently, there are two dialog boxes shown while downloading files (in Ubuntu). One by default behavior of electron and other by the dialog box for save as feature.
This PR fixes this issue by using electron's save as dialog box.
Fixes : #947 .
2020-05-01 17:55:46 +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