import linkService from '../services/link.js'; import utils from '../services/utils.js'; import server from '../services/server.js'; import treeService from "../services/tree.js"; import treeCache from "../services/tree_cache.js"; const $dialog = $("#recent-changes-dialog"); const $content = $("#recent-changes-content"); export async function showDialog() { utils.closeActiveDialog(); glob.activeDialog = $dialog; $dialog.modal(); const result = await server.get('recent-changes'); // preload all notes into cache await treeCache.getNotes(result.map(r => r.noteId), true); $content.empty(); if (result.length === 0) { $content.append("No changes yet ..."); } const groupedByDate = groupByDate(result); for (const [dateDay, dayChanges] of groupedByDate) { const $changesList = $('