This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-12
Channels
- # admin-announcements (2)
- # aleph (2)
- # arachne (16)
- # beginners (33)
- # boot (20)
- # bristol-clojurians (6)
- # capetown (4)
- # cider (50)
- # clojure (74)
- # clojure-austin (4)
- # clojure-canada (1)
- # clojure-china (2)
- # clojure-czech (1)
- # clojure-greece (1)
- # clojure-poland (4)
- # clojure-quebec (5)
- # clojure-russia (5)
- # clojure-spec (34)
- # clojure-uk (45)
- # clojurescript (131)
- # cursive (4)
- # datascript (2)
- # datomic (9)
- # editors (2)
- # emacs (2)
- # hoplon (173)
- # jobs (5)
- # lein-figwheel (3)
- # leiningen (1)
- # off-topic (1)
- # om (44)
- # onyx (8)
- # proton (10)
- # re-frame (81)
- # reagent (23)
- # untangled (57)
- # vim (2)
- # yada (8)
hi, I am trying to add http basic-auth to a simple SPA in reagent and I have no idea where to start - is there a simple example? Thank you very much.
I just want to put a password on a couple of SPAs we have internally but need to expose to some turkers ^.^
Is there any widely adopted way to handle Bootstrap modals in Reagent?
I've found https://github.com/Frozenlock/reagent-modals in reagent-cookbook
but it doesn't work for me due to an error in show-modal!
. I've also tried to debug it a little and found that (let [m (js/jQuery (get-modal))] (aget m "modal"))
always yields nil
when I follow basic example from reagent-cookbook
. Perhaps my bootstrap version makes some troubles. it's 4.0.0-alpha.2
.
@novakboskov: I just tried w/ bootstrap 4 alpha2 and modal seems to work as expected ☝️
@gadfly361: Yup, my bad. I forgot to include Bootstraps JS. But, my original question remains the same - Is this widely adopted/mostly used way?
@gadfly361: Thanks! You use custom CSS or some other drop-in solution (I'm curious about what Reagent community prefer)?
For work, i have been custom rolling CSS, but hoping to eventually use Semantic UI for a project. I think it is pretty complete for what most UIs need and has good ability to theme.
@gadfly361: You plan to do so through https://github.com/gadfly361/soda-ash?
Eventually yes, i have been working in a dev branch called v0.1.1. The currently available version should not be used as it is incomplete and will not be supported going forward. Basically, i decided on a re-write bc it was too verbose.
Hi folks I asked around here yesterday for an example of http basic-auth with reagent - reposting to see if it helps 🙂.
@shriphani: If using cljs-ajax (https://github.com/JulianBirch/cljs-ajax), I think you might be looking for this:
:headers {:Authorization "Basic XXX"}
Drop that alongside :handler
and :error-handler