feat(dictionary): add Hachidori backend support

- Add backend selection, setup gating, Anki integration, and external host support
- Add launcher flags, documentation, packaging, and focused tests
- Open on-demand overlay modals on the first attempt
This commit is contained in:
2026-09-22 00:21:19 -07:00
parent 1508863dbb
commit d9fdc7ef6d
446 changed files with 109060 additions and 244 deletions
+15
View File
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0-or-later
export function downloadBlob(document, blob, filename) {
const window = document.defaultView;
const url = window.URL.createObjectURL(blob);
try {
const anchor = document.createElement("a");
anchor.href = url;
anchor.download = filename;
anchor.click();
} catch (error) {
window.URL.revokeObjectURL(url);
throw error;
}
window.setTimeout(() => window.URL.revokeObjectURL(url), 60_000);
}