File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 17
17
(v/with-viewer taps-viewer @tap/!taps)))))
18
18
([id content] (open! id {} content))
19
19
([id opts content]
20
+ ; ; TODO: consider calling v/transform-result
20
21
(webserver/update-window! id (merge opts {:nextjournal/presented (update (v/present content) :nextjournal/css-class #(or % [" px-0" ]))
21
22
:nextjournal/hash (gensym )
22
23
:nextjournal/fetch-opts {:blob-id (str id)}
23
24
:nextjournal/blob-id (str id)}))))
24
25
26
+ (add-watch tap/!taps ::tap-watcher (fn [_ _ _ _] (open! ::taps )))
27
+
25
28
(defn destroy! [id] (webserver/destroy-window! id))
26
29
27
30
(defn destroy-all! []
28
31
(doseq [w (keys @webserver/!windows)]
29
32
(destroy! w)))
30
33
31
34
#_(open! ::taps )
32
-
33
- #_(defn tapped [x] (swap! !taps conj x) (open! ::taps ))
34
- #_(defonce taps-setup (add-tap tapped))
35
-
36
35
#_(doseq [f @@(resolve 'clojure.core/tapset)] (remove-tap f))
37
36
#_(reset! !taps ())
38
37
#_(tap> (range 30 ))
39
- #_(open! ::taps )
40
38
#_(destroy! ::taps )
41
39
#_(tap> (v/html [:h1 " Ahoi" ]))
42
40
#_(tap> (v/table [[1 2 ] [3 4 ]]))
You can’t perform that action at this time.
0 commit comments