Convert roam namespaces to cljs

The clj functionality was only for tests and those tests no longer
exist for clj. Also removed unused dependency
This commit is contained in:
Gabriel Horner
2022-05-04 15:14:09 -04:00
parent 823b8ec39e
commit ca9cc2454f
3 changed files with 37 additions and 53 deletions

View File

@@ -0,0 +1,17 @@
(ns frontend.external
(:require [frontend.external.roam :refer [->Roam]]
[frontend.external.protocol :as protocol]))
(defonce roam-record (->Roam))
(defn get-record
[type]
(case type
:roam
roam-record
nil))
(defn to-markdown-files
[type content config]
(when-let [record (get-record (keyword type))]
(protocol/toMarkdownFiles record content config)))