Merge branch 'master' into feat/db

This commit is contained in:
Gabriel Horner
2023-07-24 12:21:19 -04:00
141 changed files with 2092 additions and 2248 deletions

View File

@@ -10,7 +10,6 @@
[frontend.ui :as ui]
[frontend.util :as util]
[frontend.util.text :as text-util]
[frontend.db :as db]
[rum.core :as rum]
[frontend.config :as config]
[frontend.handler.repo :as repo-handler]
@@ -127,12 +126,7 @@
(or (config/demo-graph? url)
(= url (state/get-current-repo)))))
(map (fn [{:keys [url]}]
{:value (text-util/get-graph-name-from-path
;; TODO: Use helper when a common one is refactored
;; from components.repo
(if (config/local-file-based-graph? url)
(config/get-local-dir url)
(db/get-repo-path url)))
{:value (text-util/get-graph-name-from-path url)
:id (config/get-repo-dir url)
:graph url}))))
:prompt-key :select.graph/prompt
@@ -150,12 +144,7 @@
(remove (fn [{:keys [url]}]
(config/demo-graph? url)))
(map (fn [{:keys [url] :as original-graph}]
{:value (text-util/get-graph-name-from-path
;; TODO: Use helper when a common one is refactored
;; from components.repo
(if (config/local-file-based-graph? url)
(config/get-local-dir url)
(db/get-repo-path url)))
{:value (text-util/get-graph-name-from-path url)
:id (config/get-repo-dir url)
:graph url
:original-graph original-graph}))))