This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-10
Channels
- # admin-announcements (1)
- # aleph (1)
- # asami (9)
- # babashka (30)
- # beginners (83)
- # calva (8)
- # cherry (4)
- # cider (4)
- # clj-kondo (15)
- # cljs-dev (11)
- # cljsrn (8)
- # clojure (85)
- # clojure-europe (87)
- # clojure-losangeles (9)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (3)
- # clojurescript (12)
- # community-development (5)
- # conjure (1)
- # core-typed (3)
- # datomic (21)
- # docker (13)
- # emacs (13)
- # funcool (1)
- # google-cloud (1)
- # graalvm (12)
- # gratitude (14)
- # holy-lambda (6)
- # introduce-yourself (18)
- # lsp (15)
- # malli (6)
- # matcher-combinators (15)
- # nbb (15)
- # off-topic (37)
- # pathom (31)
- # portal (23)
- # rdf (3)
- # releases (2)
- # reveal (2)
- # sci (4)
- # scittle (3)
- # shadow-cljs (14)
- # squint (2)
- # tools-deps (29)
Best part is that the docs are "just data" so they can be treated like all other data in portal.
Where is the data for the docs? And how can I use portal for something similar. I've been thinking of can I expose portal as part of my app π. Might be useful
The data is hosted via a github gist and being loaded like https://cljdoc.org/d/djblue/portal/0.33.0/doc/guides/portal-standalone#preloading-data. You can select the root value and change the viewer to get a sense of what the underlying data looks like π
I've definitely stealing https://github.com/djblue/portal/blob/master/dev/tasks/tools.clj for use in future projects π


https://djblue.github.io/portal/?content-url=https://gist.githubusercontent.com/djblue/9a2cd250e061f62ce527b20648fd8256/raw/e7bd673df60b3c503306956b950bb9589ba480eb/data.clj&content-type=application/edn is what the build output looks like in portal
I'm using table mode and filtering on a column. How can I remove the highlighting? (All rows turns grey).
There currently isn't an option to disable. It should be relatively easy to add https://github.com/djblue/portal/blob/master/src/portal/ui/inspector.cljs#L266. One option is to toggle dimming, but if it's hurting readability, maybe it should stop dimming and only highlight what's matched :thinking_face:
Hey, thanks for the reply. Yeah the problem for me was that I found it harder to read
https://github.com/djblue/portal/commit/97d793083936fa6ecf89515327f7c0661d8f0c01 should fix the readability issue π
Hey all! Thought I would share a recent debugging experience. I had a collection that wasn't rendering correctly. PS. Love the tool - it has become almost essential for one of the projects I am working on.
If I called (tap> (take 1 coll))
I got something that looks like the attached screen shot
If I then called portal/clear
and call (tap> (take 1 coll))
it worked fine.
Later I found this to something to do with one of the entries crashing the portal/submit
Further investigation reveals that the issue is that it can't handle a map with ##Inf
in it.
All in all some logging or throwing of errors might be worth considering rather than silently failing
Thanks for the kind words! This is probably related to using json at the bottom for serialization. Might need to add this as a special case when serializing numbers. I already have to do https://github.com/djblue/portal/blob/master/src/portal/runtime/cson.cljc#L31-L37. Sounds like portal needs special handling for ##Inf, probably https://github.com/djblue/portal/blob/master/src/portal/runtime/cson.cljc#L52-L55 :thinking_face:
https://github.com/cognitect/transit-js/blob/master/src/com/cognitect/transit/types.js#L1257-L1269 is how transit does it. Unfortunately, portal had to stop using transit for serialization due to transitive dependency version conflicts π’
That's too bad indeed π
Had some time so to fix it https://github.com/djblue/portal/commit/36acbe599d297de148b52eb5c5aefd25cb3c6bb6 π
Nice!