This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-30
Channels
- # announcements (2)
- # babashka (37)
- # beginners (64)
- # biff (27)
- # cherry (7)
- # cider (19)
- # clj-kondo (10)
- # clojure-austin (4)
- # clojure-doc (18)
- # clojure-europe (72)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (5)
- # clojurescript (18)
- # data-science (28)
- # events (5)
- # graalvm (32)
- # hyperfiddle (6)
- # introduce-yourself (1)
- # jobs (4)
- # joyride (16)
- # juxt (6)
- # malli (7)
- # missionary (3)
- # off-topic (18)
- # pathom (15)
- # portal (14)
- # re-frame (14)
- # reitit (5)
- # releases (1)
- # rum (2)
- # sci (1)
- # shadow-cljs (102)
- # spacemacs (3)
- # sql (6)
- # web-security (2)
- # xtdb (10)
@djblue What a fantastic talk you gave at London Clojurians! I loved all the tips you gave — congrats on all the successes and progress!
Not urgent, but strange: I loved all the new portal.viewers
that you’ve introduced — I attempted to replicate this example, but found that bin
, text
, and others weren’t in version 0.48.0
. i.e., the portal.viewers
file doesn’t match https://github.com/djblue/portal/blob/master/src/portal/viewer.cljc.
I’m guessing that file didn’t get bundled into the latest release? (In my jar file, according to IntelliJ/Cursive, the portal.viewer.cljc file is 95 lines long? The one on GitHub is 161 lines. This is super strange Is my jar file corrupted?)
Purely FYI
Purely for your amusement — before purging my .m2 cache, I was delighted to see all these versions of Portal I’ve used over the years. All the way back to 0.12.0!
(I’m trying not to even contemplate that my portal.viewer.cljc file is not from 0.48.0 — that would mean somehow IntelliJ is mixing up files from different versions, which would be… confusing… and bad…)
Hi @U6VPZS1EK, I think the most recent version hasn't been released yet, sorry. I was intending on doing a release before my talk but got busy. The next version should be out shortly.
@U6VPZS1EK I just exploded 0.48.0 and portal/viewer.cljc
is 94 line with these functions in it:
> fgrep defn portal/viewer.cljc
(defn default
(defn for [value opts]
(defn ex
(defn log
(defn http
(defn test-report
(defn color
(defn duration-ns
(defn duration-ms
(defn pprint
(defn vega-lite
(defn vega
(defn table
(defn tree
(defn pr-str
(defn hiccup
(defn date-time
(defn diff
(defn prepl
(so you're not crazy and nor is IntelliJ 🙂 )
Wonderful!!! I’m so relieved — the idea of having to resolve some sort of misconfiguring in IntelliJ was… daunting. 😂 Killer presentation! I am ridiculously pleased with myself that I got this viewer defined — display as table any sequence of maps. 🎉
(def defaults
{
#(and (sequential? %)
(-> % first map?))
pv/table
;string? pv/text
;bytes? pv/bin
,})
(added to your example you gave in your presentation!)@U04V70XH6 I’m so relieved! Thank you!
@djblue Here’s the slide you presented that made me go, “Hey, I can build one of those! 🙂 ”
I just started the release https://github.com/djblue/portal/actions/runs/6698796578 0.49.0 should have what you are looking for.
https://github.com/djblue/portal/blob/master/doc/guides/default-viewer.md is the doc version of the guide 👌