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
467e7b11c5
functional-tab: Split ‘name’ into ‘page’ and ‘label’.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-12-02 15:52:29 -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
d2f949d683
Use Electron Event type.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2023-09-13 19:15:08 -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
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
68232f966e
WebView: Wait for did-navigate before constructing WebView.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
fb5c6b365e
css: Simplify webview CSS.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-03-04 16:56:44 -08:00
Anders Kaseorg
84849d2c84
Move functional tab pages out of separate webviews.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2022-02-28 16:42:04 -08:00
Anders Kaseorg
4db89ac3a7
typescript: Enable noImplicitOverride.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-09-10 21:52:32 -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
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
277d7ef824
FunctionalTab: Inline init method.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-04-01 18:11:55 -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
76d321fa79
xo: Enable @typescript-eslint/consistent-type-imports.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2021-03-29 17:48:54 -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
ba191c3699
xo: Enable object-curly-spacing.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com >
2020-04-30 13:48:18 -07:00
Anders Kaseorg
39c6fa4ace
xo: Enable @typescript-eslint/member-ordering.
...
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
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
vsvipul
2b1e594286
tabs: Fix constructors in webview tabs.
...
template() property used earlier in tab.ts was a
property of its child classes, which causes problems
in compiler, which this PR fixes.
2019-07-17 00:22:17 +05:30
vsvipul
312dc1daaf
typescript: Migrate functional-tab.js to typescript.
2019-07-17 00:22:17 +05:30