Skip to content

Commit

Permalink
Side load portal.ui.repl.sci.eval
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Sep 21, 2024
1 parent 40081e2 commit 483060c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions dev/portal/setup.cljs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(ns portal.setup
(:require [clojure.datafy :refer [datafy]]
[examples.data :refer [data]]
[portal.client.web :as remote]
[portal.console :as log]
[portal.runtime :as rt]
[portal.shadow.remote :as remote]
#_[portal.shadow.remote :as remote]
[portal.shortcuts :as shortcuts]
[portal.ui.api :as api]
[portal.ui.commands :as commands]
[portal.ui.inspector :as ins]
[portal.ui.repl.sci.eval :as sci]
[portal.ui.rpc :as rpc]
[portal.ui.select :as select]
[portal.ui.state :as state]
Expand Down Expand Up @@ -44,7 +44,7 @@

(defn submit [value]
(let [value (datafy value)]
(comment (remote/submit value))
(remote/submit {:encoding :cson :port js/location.port} value)
(dashboard-submit value)))

(defn async-submit [value]
Expand Down Expand Up @@ -77,7 +77,6 @@
[["Portal Client"
(section "Taps" tap-list)
(section "State" state/state)
(section "SCI Context" sci/ctx)
["RPC"
(section "Logs" state/log)]
(section "Viewers" api/viewers)
Expand Down
4 changes: 3 additions & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
:warnings-as-errors true
:output-feature-set :es2018}
:build-hooks [(portal.shadow.remote/hook {:port 53755})]
:modules {:main {:init-fn portal.ui.core/main!}}
:modules {:main {:init-fn portal.ui.core/main!
:entries [portal.ui.core
portal.ui.repl.sci.eval]}}
:release {:output-dir "resources/portal/"}
:devtools {:after-load portal.ui.core/reload!
:use-document-host false
Expand Down
1 change: 0 additions & 1 deletion src/portal/extensions/vs_code_notebook.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
[portal.ui.inspector :as ins]
[portal.ui.load :as load]
[portal.ui.options :as opts]
[portal.ui.repl.sci.eval]
[portal.ui.rpc :as rpc]
[portal.ui.state :as state]
[reagent.core :as r]
Expand Down
1 change: 0 additions & 1 deletion src/portal/ui/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
[portal.ui.inspector :as ins]
[portal.ui.options :as opts]
[portal.ui.react :refer [use-effect]]
[portal.ui.repl.sci.eval]
[portal.ui.rpc :as rpc]
[portal.ui.state :as state]
[reagent.core :as r]
Expand Down

0 comments on commit 483060c

Please sign in to comment.