This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-22
Channels
- # announcements (1)
- # beginners (27)
- # calva (11)
- # cider (37)
- # clj-kondo (44)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (4)
- # clojurescript (6)
- # cursive (17)
- # data-science (1)
- # datomic (27)
- # duct (4)
- # events (1)
- # fulcro (3)
- # graphql (14)
- # lingy (3)
- # lsp (1)
- # malli (16)
- # off-topic (23)
- # portal (19)
- # reitit (10)
- # releases (2)
- # ring (4)
- # ring-swagger (2)
- # scittle (22)
- # shadow-cljs (33)
- # sql (19)
- # testify (1)
shouldn't this work? from clojurescript
(tap> (with-meta
(ddiff/diff {:a 1} {:a 2})
{:portal.viewer/default :portal.viewer/diff}))
opens the inspector viewer with no way of choosing the diff viewer
relevant parts of shadow-cljs.edn
{:builds
{:my-build
{:target :browser,
,,,
:build-hooks [(portal.shadow.remote/hook {:port 12345})]
:devtools {:preloads [cljs.user]}
,,,}}}
cljs.user
(ns cljs.user
(:require [portal.web :as p]
[portal.ui.viewer.diff]))
(add-tap p/submit)
I can highlight two values and run the lambdaisland.deep-diff2/diff-impl/diff
command
lambdaisland.deep-diff2 is already included in the client so you just need to set the viewer.
(tap> (with-meta
[{:a 1} {:a 2}]
{:portal.viewer/default :portal.viewer/diff}))
as expected; I was holding it wrong. Thanks! đ
I have a html view that is not showing the full height of portal tab. (and has itâs own scrollbar) is there a way to make this full height?
Also i am doing below to navigate past the meta parent container an only show this html. Is this the way? (seems like some ceremony to render only the value Iâm inspecting)
(p/clear)
(-> [myhiccup ctx]
(portal-hiccup) ;; hiccup-> portal.viewer/html with embedded