feat(encryption): add ui to enter the secret phrase

This commit is contained in:
Tienson Qin
2021-02-07 23:37:34 +08:00
parent 022abff722
commit 289b31d5f5
5 changed files with 95 additions and 20 deletions

View File

@@ -95,6 +95,15 @@
(state/set-config! repo-url config)
config)))
(defn read-metadata!
[repo-url content]
(try
(reader/read-string content)
(catch js/Error e
(println "Parsing metadata file failed: ")
(js/console.dir e)
{})))
(defn request-app-tokens!
[ok-handler error-handler]
(let [repos (state/get-repos)