feat: support complet des images — arborescence, visionneuse, indexation #108
This commit is contained in:
@@ -94,6 +94,18 @@ def test_vault_dir(tmp_path: Path) -> str:
|
||||
# Non-markdown file
|
||||
(vault / "config.json").write_text('{"key": "value"}', encoding="utf-8")
|
||||
|
||||
# Image attachments (roadmap #108) — indexed as metadata-only binaries and
|
||||
# listed in the tree / browse endpoint.
|
||||
import base64
|
||||
|
||||
(vault / "chatScreenshot.png").write_bytes(base64.b64decode(
|
||||
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR4nGNgAAIAAAUAAen63NgAAAAASUVORK5CYII="
|
||||
))
|
||||
(vault / "vector-icon.svg").write_text(
|
||||
'<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"></svg>',
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
# File with accents in title
|
||||
(vault / "café_crème.md").write_text(
|
||||
"---\ntitle: Café Crème\n---\n# Café Crème\nUn bon café.\n",
|
||||
|
||||
Reference in New Issue
Block a user