import linkService from '../services/link.js'; import utils from '../services/utils.js'; import server from '../services/server.js'; const $dialog = $("#recent-changes-dialog"); const $content = $("#recent-changes-content"); async function showDialog() { utils.closeActiveDialog(); glob.activeDialog = $dialog; $dialog.modal(); const result = await server.get('recent-changes'); $content.empty(); if (result.length === 0) { $content.append("No changes yet ..."); } const groupedByDate = groupByDate(result); for (const [dateDay, dayChanges] of groupedByDate) { const changesListEl = $('