This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-14
Channels
- # admin-announcements (5)
- # aws (3)
- # beginners (35)
- # boot (96)
- # cider (1)
- # clara (6)
- # cljs-dev (12)
- # cljsrn (34)
- # clojure (151)
- # clojure-boston (3)
- # clojure-brasil (4)
- # clojure-canada (1)
- # clojure-czech (8)
- # clojure-dusseldorf (11)
- # clojure-japan (5)
- # clojure-russia (120)
- # clojure-taiwan (1)
- # clojure-uk (3)
- # clojurescript (7)
- # component (27)
- # cursive (13)
- # data-science (45)
- # datomic (1)
- # devcards (5)
- # emacs (3)
- # funcool (65)
- # hoplon (103)
- # instaparse (3)
- # jobs (14)
- # jobs-discuss (1)
- # juxt (2)
- # lein-figwheel (2)
- # off-topic (16)
- # om (20)
- # onyx (49)
- # parinfer (17)
- # perun (1)
- # planck (5)
- # proton (4)
- # re-frame (14)
- # ring-swagger (4)
- # spacemacs (4)
- # untangled (110)
- # yada (14)
<!-- and --> do not work for me at least with this: <!-- (p "this is a new world ") -->
@jouerose: another option, no longer ships with hoplon itself but available as separate boot task: https://github.com/tailrecursion/boot-heredoc
so you could do e.g.
(p
;;{{
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eget
eleifend metus. Curabitur vitae vestibulum ligula, vel pulvinar nisl. Sed
cursus ipsum id enim rutrum iaculis. Mauris non ullamcorper sem. In porttitor
mi ut massa molestie, eu pharetra turpis aliquet. Ut fermentum varius tortor,
sit amet maximus mi. Praesent et orci orci. Nullam auctor nisi eget sagittis
pharetra. Sed ullamcorper mauris sit amet metus pulvinar, et pretium elit
tincidunt.
;;}}
)
@l1sp3r: For scrolling events, I know there is also the cljsjs lib Waypoints https://clojars.org/cljsjs/waypoints #justincase
You are probably all set with Hoplon though.
@alandipert: thanks.
@l1sp3r: also don't hesitate to contribute, can really use help with docs especially
you will be rewarded with an abundance of emoji
Trying to get started with hoplon. Following https://github.com/hoplon/hoplon/wiki/Get-Started but "boot dev" fails with "clojure.lang.ExceptionInfo: java.lang.IllegalArgumentException: No such task (dev)". New install of boot. Ideas? #C08BDAPRA
@lspector: hey, welcome! 👋
@lspector: are you perhaps not inside the project directory that was created?
after doing boot -d seancorfield/boot-new new -t hoplon -n address-book
you should cd address-book
Beautiful yes, was following by rote, didn't cd
, and didn't understand the error. Thanks @alandipert!
@lspector: my pleasure :thumbsup:
@alandipert: are you aware of any changes to AWS EB that would break the adapter servlet?
@raywillig: i am not, what are you seeing?
i first noticed this yesterday. I added one new defrpc to my api and did my usual boot build-tomcat beanstalk -de ….
when my front end hit the api, i got back an error that unable to resolve symbol x. I did this a few more times and got similar errors but each time with a different symbol or unbound function or similar
things that I hadn’t touched in weeks. Led me to think that clj files weren’t being compiled. So i added aot -a to my build pipeline and yahtzee
i just retested again. built the war w/o aot and errors, build it with aot and working
i only mentioned that I added one new defrpc so you understand I didn’t make a major overhaul, etc. also tested the api ns in the repl w no problems and it works locally with boot-jetty with no issues
hm, sounds like maybe a corrupt zip file or something?
i vaguely remember running into obscure problems like that and just doing the deploy again fixing them
hmm, it’s very repeatable tho. i could build without aot 10 times in a row and have that problem. i’ll aot for now, but it makes me feel dirty and ashamed
i dunno if micha told you about it yet, but we have been moving away from eb to a think that micha came up with
basically a set of shell scripts that do everything eb does but way simpler
we can get you on the private beta
and by that i mean, we can send you these scripts and help you use them lol
is this app a web or a worker?
uses eb java APIs
many levels of disgust
i would be a little surprised if it broke and you didn't press the "upgrade container" button
does hoplon provide something to get data out of form fields? cells are a one-way binding mechanism between fields and values. is there a mechanism for the other way?
I know I can do get element by id, but I'm wondering whether there's a goody in hoplon for that
@roti: i’m accomplishing this by having each field update an atom bound to a dynamic var, then retrieving the contents of that atom to create the full transaction from the form when an appropriate event is fired, like this: https://github.com/hoplon/ui/blob/master/src/hoplon/ui.clj, https://github.com/hoplon/ui/blob/master/src/hoplon/ui.cljs.hl#L472-L480
i know micha has an even more elaborate technique, but i don’t think it is part of hoplon… yet.
any idea if I can use the this js keyword in the change handler? this way there is no need to covert the element into a jquery object every time
(input :type "text" :keyup #(reset some-cell @%))
@roti for textarea
and input
I use :
:keyup #(reset! cell (-> % .-target js/jQuery .val)
@alandipert right, except this does not work with IE (any version)
whoa, i did not know
for :type "radio"
I use
:click #(reset! cell @item)
@alandipert: yeah, at least this is what i have experienced
@leontalbot: i’m curious why that is, the implementation of IDeref
is the same code.
for :type "checkbox"
it is a bit more tricky
:click #(let [c @cell, i @item]
(if (some #{i} c)
(reset! cell (vec (remove #{i} c)))
(reset! cell (vec (conj c i)))))
@jumblerg: if this code is older than 01/2016, then I has not been working. If more recent maybe micha has made an update...
let me see...
and to clojar too?
here is the discussion
no I didn't...
i’m just a concerned citizen that hasn’t bothered to do any of my x-browser testing on my current project. will find out what the deal is when i do.
I use browser stack. I have a subscription. I f you need help, you can tell me...
btw, for working with your lib, can I directly use alpha14 from clojar?
no, i haven’t convinced @micha to take my last couple prs yet. and the one that introduces support for responsive attributes isn’t ready for prime time because it doesn’t collect its own handlers.
if you checkout this branch, boot build-jar
, then boot build
in the ui repo, you’ll be good to go. https://github.com/hoplon/hoplon/tree/responsive-layout-attributes
Yes, regarding this, where do I put the hoplon and ui jars back in my project?
It would be the first time I use other jars then clojar jars
so if I want to push this to heroku, what do I do?
oh no, I get this.
right
i need to config my keys on this laptop, but i’ll try to put a jar out there in the next couple days.
But I undertand, when i do boot make-war, then this war files includes ~/.m2 dependencies...
So I guess i'll be all set...
Thanks!
give it a whirl, the layouts seem to be working well now in most cases, there are still a few i haven’t covered.
I use your master?
I think i'll try hoplon/ui
tonight
you can do boot run
first and play with the demos in what was originally intended to be the test directory
see you @jumblerg!