zulip/web/src/setup.ts
Prakhar Pratyush 52a9846cdf user_profile: Remove 'tutorial_status' field.
The 'tutorial_status' field on 'UserProfile' model is
no longer used to show onboarding tutorial.

This commit removes the 'tutorial_status' field,
'POST users/me/tutorial_status' endpoint, and
'needs_tutorial' parameter in 'page_params'.

Fixes part of zulip#30043.
2024-08-15 13:31:40 -07:00

29 lines
734 B
TypeScript

import $ from "jquery";
import * as blueslip from "./blueslip";
import * as loading from "./loading";
export let page_load_time: number | undefined;
// Miscellaneous early setup.
$(() => {
page_load_time = Date.now();
// Display loading indicator. This disappears after the first
// get_events completes.
loading.make_indicator($("#page_loading_indicator"), {
abs_positioned: true,
});
$.fn.get_offset_to_window = function () {
return this[0]!.getBoundingClientRect();
};
$.fn.expectOne = function () {
if (blueslip && this.length !== 1) {
blueslip.error("Expected one element in jQuery set", {length: this.length});
}
return this;
};
});