feat: implement initial frontend SPA with advanced search, query parsing, and autocomplete suggestions.
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user