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
cd023ec5ab
xo: Fix @typescript-eslint/consistent-type-definitions.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-01-03 16:05:28 -08: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
5edffbdf21
Move handleExternalLink to main process.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-31 21:10:13 -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
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
66bc43674b
Explode ShortcutsSection class to a function.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 14:28:11 -07:00
Anders Kaseorg
ea2d84e810
Explode BaseSection class to functions.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 14:14:48 -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
tarun8718
07ae127cc8
shortcuts-section: Deduplicate templateMacHTML and templateWinLinHTML.
...
Signed-off-by: tarun8718 <tarunkumar8718@gmail.com >
2021-02-02 10:49:35 -08: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
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
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
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
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
Kanishk Kakar
dab30dfb7a
i18n: Add translations for shortcuts pane.
2019-08-02 00:45:12 +05:30
vsvipul
c41bbf9dfd
typescript: Migrate shortcuts-section.js to typescript.
2019-07-17 00:22:17 +05:30