mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
chore(react): fix editorconfig
This commit is contained in:
parent
49b189e7a9
commit
4891721cc0
@ -1,6 +1,6 @@
|
|||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*.{js,ts,.tsx}]
|
[*.{js,ts,tsx}]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
@ -52,6 +52,7 @@ export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit<P
|
|||||||
<div class="note-list-pager">
|
<div class="note-list-pager">
|
||||||
{children}
|
{children}
|
||||||
|
|
||||||
|
// no need to distinguish "note" vs "notes" since in case of one result, there's no paging at all
|
||||||
<span className="note-list-pager-total-count">({t("pagination.total_notes", { count: totalNotes })})</span>
|
<span className="note-list-pager-total-count">({t("pagination.total_notes", { count: totalNotes })})</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -39,19 +39,9 @@ class ListOrGridView extends ViewMode<{}> {
|
|||||||
|
|
||||||
this.$noteList.show();
|
this.$noteList.show();
|
||||||
|
|
||||||
this.renderPager();
|
|
||||||
|
|
||||||
return this.$noteList;
|
return this.$noteList;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderPager() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// no need to distinguish "note" vs "notes" since in case of one result, there's no paging at all
|
|
||||||
$pager.append(`<span class=""></span>`);
|
|
||||||
}
|
|
||||||
|
|
||||||
async renderNote(note: FNote, expand: boolean = false) {
|
async renderNote(note: FNote, expand: boolean = false) {
|
||||||
const { $renderedAttributes } = await attributeRenderer.renderNormalAttributes(note);
|
const { $renderedAttributes } = await attributeRenderer.renderNormalAttributes(note);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user