You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vscode-api-cn.js/assets/js/src/bootstrap.ts

25 lines
803 B

import { Application, registerComponent } from "./typedoc/Application";
import { MenuHighlight } from "./typedoc/components/MenuHighlight";
import { initSearch } from "./typedoc/components/Search";
import { Signature } from "./typedoc/components/Signature";
import { Toggle } from "./typedoc/components/Toggle";
import { Filter } from "./typedoc/components/Filter";
import "../../css/main.sass";
initSearch();
registerComponent(MenuHighlight, ".menu-highlight");
registerComponent(Signature, ".tsd-signatures");
registerComponent(Toggle, "a[data-toggle]");
if (Filter.isSupported()) {
registerComponent(Filter, "#tsd-filter");
} else {
document.documentElement.classList.add("no-filter");
}
const app: Application = new Application();
Object.defineProperty(window, "app", { value: app });