feat: implement initial frontend SPA with advanced search, query parsing, and autocomplete suggestions.

This commit is contained in:
2026-03-24 09:41:03 -04:00
parent 1bfe2359d9
commit 5e300f9ada
3 changed files with 148 additions and 3 deletions
+2 -3
View File
@@ -2179,9 +2179,8 @@
document.createTextNode("Nouvelle fenêtre"),
]);
openNewWindowBtn.addEventListener("click", () => {
const currentUrl = window.location.origin + window.location.pathname;
const fileUrl = `${currentUrl}?popup=true#file=${encodeURIComponent(data.vault)}:${encodeURIComponent(data.path)}`;
window.open(fileUrl, '_blank', 'menubar=no,toolbar=no,location=no,status=no,width=1000,height=800');
const popoutUrl = `/popout/${encodeURIComponent(data.vault)}/${encodeURIComponent(data.path)}`;
window.open(popoutUrl, `popout_${data.vault}_${data.path.replace(/[^a-zA-Z0-9]/g, '_')}`, 'width=1000,height=700,menubar=no,toolbar=no,location=no,status=no,resizable=yes,scrollbars=no');
});
// Frontmatter