mirror of
https://github.com/zadam/trilium.git
synced 2026-01-06 14:44:25 +01:00
chore(client): fix typecheck
This commit is contained in:
parent
9adf24da01
commit
d21127e3a7
@ -101,7 +101,9 @@ function SingleNoteRenderer({ note, onReady }: RendererProps) {
|
|||||||
await loadCustomCss(note);
|
await loadCustomCss(note);
|
||||||
}
|
}
|
||||||
|
|
||||||
load().then(() => requestAnimationFrame(() => onReady({})));
|
load().then(() => requestAnimationFrame(() => onReady({
|
||||||
|
type: "single-note"
|
||||||
|
})));
|
||||||
}, [ note ]);
|
}, [ note ]);
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
|
import "./TablePrintView.css";
|
||||||
|
|
||||||
import { useEffect, useRef, useState } from "preact/hooks";
|
import { useEffect, useRef, useState } from "preact/hooks";
|
||||||
|
import { ExportModule, FormatModule, Tabulator as VanillaTabulator} from 'tabulator-tables';
|
||||||
|
|
||||||
|
import { RawHtmlBlock } from "../../react/RawHtml";
|
||||||
import { ViewModeProps } from "../interface";
|
import { ViewModeProps } from "../interface";
|
||||||
import useData, { TableConfig } from "./data";
|
import useData, { TableConfig } from "./data";
|
||||||
import { ExportModule, FormatModule, Tabulator as VanillaTabulator} from 'tabulator-tables';
|
|
||||||
import Tabulator from "./tabulator";
|
import Tabulator from "./tabulator";
|
||||||
import { RawHtmlBlock } from "../../react/RawHtml";
|
|
||||||
import "./TablePrintView.css";
|
|
||||||
|
|
||||||
export default function TablePrintView({ note, noteIds, viewConfig, onReady }: ViewModeProps<TableConfig>) {
|
export default function TablePrintView({ note, noteIds, viewConfig, onReady }: ViewModeProps<TableConfig>) {
|
||||||
const tabulatorRef = useRef<VanillaTabulator>(null);
|
const tabulatorRef = useRef<VanillaTabulator>(null);
|
||||||
@ -13,7 +15,10 @@ export default function TablePrintView({ note, noteIds, viewConfig, onReady }: V
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!html) return;
|
if (!html) return;
|
||||||
onReady?.();
|
onReady?.({
|
||||||
|
type: "collection",
|
||||||
|
ignoredNoteIds: []
|
||||||
|
});
|
||||||
}, [ html ]);
|
}, [ html ]);
|
||||||
|
|
||||||
return rowData && (
|
return rowData && (
|
||||||
@ -45,5 +50,5 @@ export default function TablePrintView({ note, noteIds, viewConfig, onReady }: V
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user