mirror of https://github.com/zulip/zulip.git
about_zulip: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ce48aac3db
commit
325b308ed5
|
@ -45,7 +45,7 @@ def make_set(files: List[str]) -> Set[str]:
|
|||
EXEMPT_FILES = make_set(
|
||||
[
|
||||
"web/shared/src/poll_data.ts",
|
||||
"web/src/about_zulip.js",
|
||||
"web/src/about_zulip.ts",
|
||||
"web/src/add_stream_options_popover.js",
|
||||
"web/src/add_subscribers_pill.js",
|
||||
"web/src/admin.js",
|
||||
|
|
|
@ -8,7 +8,7 @@ import {show_copied_confirmation} from "./copied_tooltip";
|
|||
import * as overlays from "./overlays";
|
||||
import {page_params} from "./page_params";
|
||||
|
||||
export function launch() {
|
||||
export function launch(): void {
|
||||
overlays.open_overlay({
|
||||
name: "about-zulip",
|
||||
$overlay: $("#about-zulip"),
|
||||
|
@ -24,7 +24,7 @@ export function launch() {
|
|||
});
|
||||
}
|
||||
|
||||
export function initialize() {
|
||||
export function initialize(): void {
|
||||
const rendered_about_zulip = render_about_zulip({
|
||||
zulip_version: page_params.zulip_version,
|
||||
zulip_merge_base: page_params.zulip_merge_base,
|
|
@ -4,7 +4,7 @@ import {$t} from "./i18n";
|
|||
|
||||
export function show_copied_confirmation(
|
||||
copy_button: HTMLElement,
|
||||
on_hide_callback: () => void,
|
||||
on_hide_callback?: () => void,
|
||||
timeout_in_ms = 1000,
|
||||
): void {
|
||||
// Display a tooltip to notify the user the message or code was copied.
|
||||
|
|
Loading…
Reference in New Issue