Anders Kaseorg
26b226c7ae
Use .ts extensions for imports.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2025-06-20 16:35:18 -07:00
Anders Kaseorg
a736f664c6
nav: Statically mark navigation items for translation.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-12-02 15:52:06 -08:00
Anders Kaseorg
47366b7617
xo: Fix unicorn/prevent-abbreviations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-03-22 16:07:32 -07:00
Anders Kaseorg
86e28f5b00
xo: Fix import/no-duplicates.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-03-22 15:33:00 -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
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
1aa4ade3c0
xo: Fix @typescript-eslint/parameter-properties.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-01-03 16:05:28 -08: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
bc59714192
xo: Fix @typescript-eslint/naming-convention.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-08 21:24:49 -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
79f9362736
Strongly type IPC messages.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-25 20:44:05 -07:00
Anders Kaseorg
9a81ade1c8
typescript: Enable strictNullChecks.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 15:19:42 -07:00
Anders Kaseorg
385ec00640
PreferenceNav: inline init method.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-02 15:08:40 -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
eeade47eb6
nav: Add NavItem literal type.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-01 18:45:55 -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
97f8fe71af
Escape all strings inserted into CSS selectors.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2020-09-04 22:52:42 -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
am2505
bb6d90671f
typescript: Complete most TypeScript todos.
2020-04-25 15:49:10 -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
Kanishk Kakar
cfd1ebc643
i18n: Add translations to settings sidebar.
2019-08-02 00:45:12 +05:30
vsvipul
8c52b563bf
typescript: Migrate nav.js to typescript.
2019-07-17 00:22:17 +05:30