mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
WIP for counting note and subtree size
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import CollapsibleWidget from "../collapsible_widget.js";
|
||||
import server from "../../services/server.js";
|
||||
|
||||
const TPL = `
|
||||
<table class="note-info-widget-table">
|
||||
@@ -78,6 +79,14 @@ export default class NoteInfoWidget extends CollapsibleWidget {
|
||||
else {
|
||||
this.$mime.empty();
|
||||
}
|
||||
|
||||
let resp = await server.get(`stats/note-size/${note.noteId}`);
|
||||
|
||||
console.log(resp);
|
||||
|
||||
resp = await server.get(`stats/subtree-size/${note.noteId}`);
|
||||
|
||||
console.log(resp);
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
|
||||
Reference in New Issue
Block a user