[ClojureScript] Re: Can anyone recommend a library for saving attachments and images on S3?
On Friday, February 3, 2017 at 2:05:55 PM UTC+13, Hari Krishnan wrote: > Hello, > > Can anyone recommend a CarrierWave (for Ruby on Rails) like library for > Clojure/Clojurescript, for S3 and Datomic? Much appreciated. > > What is the good practice? Any thoughts? > > Thanks in advance. > -Hari There is s3-beam (https://github.com/martinklepsch/s3-beam) which lets you upload directly to S3 from the browser. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
Re: [ClojureScript] Re: [ANN] 2016 State of Clojure Community Survey
Sorry for the delay on this but should be out this week! On Sun, Feb 5, 2017 at 11:07 AM, Rangel Spasovwrote: > Looking forward to the results! :) > > On Monday, December 12, 2016 at 6:43:58 AM UTC-8, Alex Miller wrote: > > It's time for the annual State of Clojure Community survey! > > > > If you are a user of Clojure, ClojureScript, or ClojureCLR, we are > greatly interested in your responses to the following survey: > > > > https://www.surveymonkey.com/r/clojure2016 > > > > The survey contains four pages: > > > > 1. General questions applicable to any user of Clojure, ClojureScript, > or ClojureCLR > > 2. Questions specific to the JVM Clojure (skip if not applicable) > > 3. Questions specific to ClojureScript (skip if not applicable) > > 4. Final comments > > > > The survey will close December 23rd. We will release all of the data and > our analysis in January. We are greatly appreciative of your input! > > > > If you have any questions, please let me know. > > > > Alex Miller > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to a topic in the > Google Groups "ClojureScript" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/clojurescript/M-kV_AkcWJU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at https://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
[ClojureScript] Re: CSS in CLJS
> Cheers Thomas. When you have the likes of a containing element. How do you > handle the wrap when defstyled returns a ReactElement? > > (defstyled container :div > [_] > {:display "flex"}) Not sure I understand the question? ReactElements can have children, which this fully supports. (defstyled things :div [_] {:display "flex"}) (defstyled thing :div [_] {:flex 1 "&.wide" {:flex 2}}) (things {} (thing {} "one") (thing {:classes ["wide"]} "two") (thing {} "three")) If you are talking about styles that should only apply when B is contained in A you can do this (defstyled A :div [_] {}) (defstyled B :div [_] {:normal "styles" A {:inside-a "styles"}}) I just relaxed the requirements for nesting a bit, previously you had to wrap it in a vector and supply a suffix. (defstyled B :div [_] {:normal "styles" [A ""] {:inside-a "styles"}}) But with [thheller/shadow-client "1.0.183"] you can do the above version without the vector. The suffix is so you can refer to parent selectors as well. I have used this once in my project (defstyled control-group :div [_] {:margin-bottom 20 "&.inline" {:display "flex"} "&:last-child" {:margin-bottom 0} }) (defstyled control-label :div [_] (css/root {} (css/rule "&.select" {:line-height 37}) (css/rule "&.bold" {:font-weight "bold"}) (css/nested-rule [control-group ".inline"] {:flex 1}))) (css/...) is the little more verbose syntax, which the maps desugar too. Could have used a map, wrote that before I had the map syntax. The result of this is (assuming "test" ns): div.test--control-group {...} div.test--control-group.inline {...} div.test--control-label {...} ;; and the nested rule: div.test--control-group.inline div.test--control-label {..} Hope that answers your question. /thomas -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
[ClojureScript] Re: [ANN] 2016 State of Clojure Community Survey
Looking forward to the results! :) On Monday, December 12, 2016 at 6:43:58 AM UTC-8, Alex Miller wrote: > It's time for the annual State of Clojure Community survey! > > If you are a user of Clojure, ClojureScript, or ClojureCLR, we are greatly > interested in your responses to the following survey: > > https://www.surveymonkey.com/r/clojure2016 > > The survey contains four pages: > > 1. General questions applicable to any user of Clojure, ClojureScript, or > ClojureCLR > 2. Questions specific to the JVM Clojure (skip if not applicable) > 3. Questions specific to ClojureScript (skip if not applicable) > 4. Final comments > > The survey will close December 23rd. We will release all of the data and our > analysis in January. We are greatly appreciative of your input! > > If you have any questions, please let me know. > > Alex Miller -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
[ClojureScript] Re: CSS in CLJS
On Thursday, February 2, 2017 at 10:36:43 PM UTC, Thomas Heller wrote: > Hello, > > I'm not sure how many of you are in this horrible situation where you have to > write CSS for your React Components. I typically have to write way more than > I'd like and always hated the way I wrote it. Until a few weeks ago. > > I wrote this thing and so far I really like it. Too early to tell whether > this is actually a good idea but I already prefer it over pretty much > everything else I have used in the past (CSS, SCSS, OOCSS, BEM, ...). > > Anyways here it goes: > > (ns my.fancy.component > (:require [shadow.markup.css :as css :refer (defstyled)])) > > (defstyled title :h1 > [env] > {:color "red"}) > > (h1 {} "hello world") > > In Clojure this produces hello > world. There are also ways to generate the appropriate CSS so the > element is actually styled in your page. Not totally settled on the final API > but it works well enough for now. > > In ClojureScript this produces a ReactElement and should work with React > natively and most CLJS React Wrappers like OM (although I tried no other than > my own). No extra CSS generation is required here, just include it in your > page and it will be styled. > > More here: https://github.com/thheller/shadow/wiki/shadow.markup > > This is basically my take on the whole css-in-js thing that is happening in > the JS world if anyone follows this. I wasn't happy with any of their > implementations so I wrote this. > > If you'd like to use this try it with this: > > [thheller/shadow-client "1.0.180"] > > The Clojure part also requires hiccup, the CLJS parts require React via > cljsjs.react. > > If anyone is actually interested in this I'd be happy to go over some more > details. I just open-sourced this as I wanted to use it in another project > and needed a place to put it. Consider this very ALPHA though, you have been > warned. ;) > > Cheers, > /thomas Cheers Thomas. When you have the likes of a containing element. How do you handle the wrap when defstyled returns a ReactElement? (defstyled container :div [_] {:display "flex"}) -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.