[ClojureScript] What is clojurescript 1.9.495?

2017-03-30 Thread Linus Ericsson
When running lein ancient on a clojurescript project, it suggests there is a version 1.9.495, but the clojurescript github page states that 1.9.494 is the latest released clojurescript version. Where does clojurescript 1.9.495 come from, really? Thanks, Linus -- Note that posts from new

Re: [ClojureScript] ClojureScript Dropdown Menu

2017-03-15 Thread Linus Ericsson
Hi Rickesh, it looks like you use reagent. I think the type-ahead functionality in reagent-forms is the simplest way to get that functionality. https://github.com/reagent-project/reagent-forms#typeahead /Linus 2017-03-15 11:31 GMT+01:00 'Rickesh Bedia' via ClojureScript <

Re: [ClojureScript] Adding schema.org microdata using hiccup

2017-02-21 Thread Linus Ericsson
it's like... not possible with hiccup. Usually I do [:div {:itemscope true} "BRMC"] or perhaps [:div {:itemscope :itemscope} "BRMC"]. I hope that works out in this case as well. /Linus 2017-02-21 21:33 GMT+01:00 Divyansh Prakash : > Hi! > > I'm working on a music

[ClojureScript] Refactoring for ClojureScript?

2016-07-07 Thread Linus Ericsson
Is it possible to run something like cljr clean ns [1] on ClojureScript source code? /Linus [1] https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-clean-ns -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message

Re: [ClojureScript] How to Integrate Third Party Libraries

2016-07-06 Thread Linus Ericsson
There are cookbooks for both Om and Reagent: https://github.com/omcljs/om-cookbook https://github.com/reagent-project/reagent-cookbook They're really helpful, both for Om and Reagent respectively, but also for getting a better understanding och js-interop in general. /Linus 2016-07-06 21:58

Re: [ClojureScript] Re: svg element disappears when figwheel icon disappears

2016-07-04 Thread Linus Ericsson
Are you aware of that reagent make react have the DOM under quite tight control by default? Have you made wrapped your graph along the lines of https://github.com/reagent-project/reagent-cookbook/blob/master/recipes/highcharts/README.md ie that React should leave the node with subnodes untouched

Re: [ClojureScript] Mocking Javascript method for test

2016-05-25 Thread Linus Ericsson
I think you could just use (aset the-object "methodName" (fn [] ...)). I don't know how javascript handles "this" in such a case, hopefully you can do without it. There are plenty of examples of interacting with js objects in ClojureScript here:

Re: [ClojureScript] Reagent and Semantic-UI

2016-04-06 Thread Linus Ericsson
You have to make sure React doesn't touch the elements after Modal dialog codes it job. Use the similar technique as is shown in the highcharts cookbook entry: https://github.com/reagent-project/reagent-cookbook/blob/master/recipes/highcharts/README.md (You may consider if it's a good idea to

Re: [ClojureScript] Om.Next: Component structure limitations

2016-03-29 Thread Linus Ericsson
datomics pull-api actually goes both ways with reverse-lookup [1] by using reverse lookups you could have the dashboard query look something like [{:dashboard/items [:item :name {:_cart [:id]}] (minus om/get-query things). Such a data-structure would make highlighting easy, just look if the

Re: [ClojureScript] interop to ChartJs (newbie level)

2016-03-11 Thread Linus Ericsson
Either you can checkout Quil in clojurescript, which is wrapping Processing for js. It's a well designed and mostly imperative-style graphical environment. https://github.com/quil/quil/wiki/ClojureScript You can, of course, use the ordinary js methods to create and paint on a canvas element like

Re: [ClojureScript] Easiest way to compile cljs live

2015-09-10 Thread Linus Ericsson
Figwheel is nice, even though I just get the repl in the command-line there (no autocomplete etc). The features for compiling and update client side cljs is really really good. https://github.com/bhauman/lein-figwheel Den 11 sep 2015 04:22 skrev "Mike Fikes" : > 1. Are

Re: [ClojureScript] Use a specialized Clojure library in Clojurescript

2015-09-08 Thread Linus Ericsson
This is a good question. Until very recently, there was no easy way to share code between Clojure and ClojureScript at all, although the pure clojure-core stuff did work pretty much out of the box. Still it's quite common that a library has dependencies to other jvm-stuff, or uses jvm-stuff

Re: [ClojureScript] Migrating from JSON to EDN

2015-09-04 Thread Linus Ericsson
Transit is noticeably faster than EDN. I cannot recommend to use JSON between a clojure backend and a clojurescript application, it's just simply too much work to get everything right, entering dates, big decimals, UUIDs... /Linus 2015-09-04 18:37 GMT+02:00 Brandon Adams : >

Re: [ClojureScript] Namespaces in ClojureScript that begin with clojure

2015-08-14 Thread Linus Ericsson
I'm not sure if I understand your question, but there's no apparent way clojure.browser.dom would make any sense since it doesn't (or at least didn't) map to any specific JVM host language feature, but was very relevant in clojurescript, at least in the pre-react era. The stranger part is

Re: [ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Linus Ericsson
Well, if you know javascript well enough I don't think the interop is that much of a problem. There are some things which can be a bit unintuitive, but usually there are plenty of answered questions at StackOverflow and other places, or just ask here! I would recommend starting out with lein

Re: [ClojureScript] (newbie) Om/reagent (and react) clarity questions

2014-10-23 Thread Linus Ericsson
One cool thing which solves one of the problems (namely get views out of the data) is DataScript [1]. There are some nice and quite compact examples [2] which are not that trivial (at least they have two different widgets). DataScript is encouraging in that it feels doable to get data out of the

Re: [ClojureScript] Re: Om when updating mouse-position dependent Dom

2014-06-23 Thread Linus Ericsson
Thanks for IDidUpdate! That works, but... It turns out I cannot easily get the coordinates of the mouse or the element where the mouse is. I solved my particular issue by using CSS :hover functionality instead. CSS seems to get events whenever the layout is changed and can keep track of the