enhance: add export edn graph as file

Remove command version of export which is a less useful dev tool
than what's possible with cli
This commit is contained in:
Gabriel Horner
2025-03-17 23:20:01 -04:00
parent 4d37ce8565
commit 06b3bba5fc
8 changed files with 40 additions and 15 deletions

View File

@@ -4,6 +4,7 @@
[frontend.config :as config]
[frontend.context.i18n :refer [t]]
[frontend.db :as db]
[frontend.handler.db-based.export :as db-export-handler]
[frontend.handler.export :as export]
[frontend.handler.export.html :as export-html]
[frontend.handler.export.opml :as export-opml]
@@ -100,6 +101,10 @@
[:div
[:a.font-medium {:on-click #(export/export-repo-as-zip! current-repo)}
(t :export-zip)]])
(when db-based?
[:div
[:a.font-medium {:on-click #(db-export-handler/export-repo-as-db-edn! current-repo)}
(t :export-db-edn)]])
(when db-based?
[:div
[:a.font-medium {:on-click #(export/export-repo-as-debug-transit! current-repo)}