Anders Kaseorg
f9f2b20e90
preference: Use querySelector relative to $root.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-02-17 22:45:10 -08:00
Anders Kaseorg
e48c9067a3
Upgrade Prettier to 2.3.2.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-07-05 16:55:47 -07:00
Anders Kaseorg
79f9362736
Strongly type IPC messages.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-25 20:44:05 -07:00
Anders Kaseorg
76d9c36426
Explode NewServerForm class to a function.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 14:26:20 -07:00
Anders Kaseorg
07ffb09391
Explode BaseComponent class to a function.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 13:10:15 -07:00
Anders Kaseorg
b07995c3ed
Simplify querySelectorAll(…)[0] to querySelector(…).
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-01 14:06:43 -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
ce9a680333
Add a tagged template function for HTML supporting HTML interpolation.
...
This allows better Prettier integration: Prettier recognizes and
reformats tagged template literals with a tag named ‘html’.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-31 20:00:49 -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
cc2424e0bf
xo: Fix @typescript-eslint/no-confusing-void-expression.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-01-25 11:23:48 -08:00
aryanshridhar
cd77fc6448
new-server-form: Strip whitespace from added organization URL.
...
Fixes #1037 .
2020-11-15 19:56:53 -08:00
Anders Kaseorg
d5a9063378
typescript: Fix implicit any in catch clauses.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-10-24 15:47:13 -07:00
Anders Kaseorg
a9d59b3dcd
CVE-2020-24582: Escape all strings interpolated into HTML.
...
Also fix various variable names to consistently indicate which strings
contain HTML.
Some of these changes close cross-site scripting vulnerabilities, and
others are for consistency. It’s important to be meticulously
consistent about escaping so that changes that would introduce
vulnerabilities stand out as obviously wrong.
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-09-04 22:52:38 -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
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
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
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
am2505
bb6d90671f
typescript: Complete most TypeScript todos.
2020-04-25 15:49:10 -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
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
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
am2505
534f4c1463
Convert Promise to async-await.
...
Fixes #878 .
2020-03-03 20:40:10 -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
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
Muskan Khedia
30b40e2ff2
network: Prompts Desktop App to ask for network setting in add-org page.
...
Fixes : #540 .
2019-09-28 17:44:34 +05:30
Kanishk Kakar
6d34da5953
i18n: Add translations to the new server form.
2019-08-02 00:45:12 +05:30
vsvipul
77c5b8af30
typescript: Migrate new-server-form.js to typescript.
2019-07-17 00:22:17 +05:30