Fork me on GitHub
#re-frame
<
2016-08-20
>
andrewboltachev10:08:43

Hi. Are there examples of "feature-rich" re-frame apps which make use of websockets, implement file uploads, authorization etc?

mccraigmccraig14:08:18

@andrewboltachev: i have one... corporate chat app with mobile deployment to iOS and android on cordova, websockets for in-app notifications, camera access, picture upload, JWT auth...

mnewhook14:08:50

I want to show some stacked bar graphs, anyone got recommendations for something easy to integrate that plays well with re-frame/reagent?

nilrecurring15:08:49

@mccraigmccraig I guess it's not open source though..?

andrewboltachev15:08:38

@mccraigmccraig Anyway awesome! Does it feel more like out-of-the box or you still have to add much effort to put all the pieces together?

mccraigmccraig15:08:05

@andrewboltachev: it's not out-of-the-box - re-frame/reagent gives you a way of managing app-state and rendering... you will need libs for other things

mccraigmccraig15:08:33

that's pretty much par for the clojure/script course though, so it's no different to any other clojure/script project really

andrewboltachev15:08:31

@mccraigmccraig Thanks! I've been looking at number of CLJ/S frontend/full-stack solutions, but and re-frame seems to be the right choice out there for me now.

mccraigmccraig15:08:42

@andrewboltachev: fwiw re-frame is the best UI dev experience i've ever had

mnewhook16:08:08

However, getting the data into the chart is proving a bit tricky.

mnewhook16:08:51

looks like somehow the values are somehow children of the component in the draw-weight-graph?

mnewhook17:08:37

ok, so I got it more or less working following the pattern from https://groups.google.com/forum/#!topic/clojurescript/rGcBOvLOhm4 However, I have one remaining issue. When the data changes in the chart I get another svg added to the element div, instead of replacing the element that used to be in the div.

mnewhook17:08:32

I think the basic problem here is that morris adds a new to the :element div each time .Bar is called. What should occur is that the existing chart should be updated (call setData on the chart) or the containing div should be emptied and a new chart created.