chore(prettier): fix code style

This commit is contained in:
Panagiotis Papadopoulos
2025-03-02 20:47:57 +01:00
parent 67509bc92f
commit 2beaaa95bf
112 changed files with 857 additions and 819 deletions

View File

@@ -55,8 +55,8 @@ const TPL = `<div class="toc-widget">
</div>`;
interface Toc {
$toc: JQuery<HTMLElement>,
headingCount: number
$toc: JQuery<HTMLElement>;
headingCount: number;
}
export default class TocWidget extends RightPanelWidget {
@@ -89,8 +89,8 @@ export default class TocWidget extends RightPanelWidget {
return false;
}
const isHelpNote = (this.note.type === "doc" && this.note.noteId.startsWith("_help"));
const isTextNote = (this.note.type === "text");
const isHelpNote = this.note.type === "doc" && this.note.noteId.startsWith("_help");
const isTextNote = this.note.type === "text";
const isNoteSupported = isTextNote || isHelpNote;
return isNoteSupported
@@ -156,7 +156,7 @@ export default class TocWidget extends RightPanelWidget {
const tocLabelValue = this.tocLabelValue;
const visible = (tocLabelValue === "" || tocLabelValue === "show") || headingCount >= (options.getInt("minTocHeadings") ?? 0);
const visible = tocLabelValue === "" || tocLabelValue === "show" || headingCount >= (options.getInt("minTocHeadings") ?? 0);
this.toggleInt(visible);
if (this.noteContext?.viewScope) {
this.noteContext.viewScope.tocPreviousVisible = visible;