Add tree multiselection, batch actions and Markdown export

This commit is contained in:
eezd committed 2026-10-21 16:10:49 +08:00
1 parent f473ec64b6
commit ffc95d6dbc
14 files changed
+532 -46

No files matched your search

+2
View File
@@ -142,6 +142,8 @@ export const api = {
return json<ImportResult>(request('POST', '/api/v1/import', { body }))
},
exportFiles: (paths: string[]) => request('POST', '/api/v1/export', { json: { paths } }),
tree: async () => (await json<{ entries: Entry[] }>(request('GET', '/api/v1/tree'))).entries,
search: async (q: string) => (await json<{ results: SearchResult[] }>(request('GET', '/api/v1/search?q=' + encodeURIComponent(q)))).results,