This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-12
Channels
- # beginners (85)
- # boot (7)
- # cider (7)
- # clara (1)
- # cljsrn (49)
- # clojure (85)
- # clojure-dev (19)
- # clojure-dusseldorf (15)
- # clojure-greece (1)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-russia (21)
- # clojure-sanfrancisco (1)
- # clojure-spec (25)
- # clojure-uk (59)
- # clojurescript (29)
- # core-async (5)
- # core-matrix (1)
- # css (1)
- # datomic (1)
- # docker (10)
- # fulcro (12)
- # graphql (21)
- # hoplon (7)
- # jobs-rus (6)
- # jobs_rus (1)
- # lein-figwheel (1)
- # mount (5)
- # off-topic (6)
- # om (4)
- # onyx (8)
- # perun (1)
- # portkey (25)
- # protorepl (7)
- # re-frame (78)
- # reagent (24)
- # ring-swagger (32)
- # rum (3)
- # schema (1)
- # shadow-cljs (122)
- # spacemacs (3)
- # specter (2)
- # sql (1)
- # testing (1)
- # uncomplicate (2)
- # yada (14)
@tobowers try transit if possible... from @rgm #re-frame "the 7-8 sec CSV parse is now < 1s using JSON Transit. gzipped size of the CSV and Transit are both around 350kb"
@lovuikeng unfortunately no, need to get protobufs working… for some reason https://www.npmjs.com/package/protobufjs doesn’t go through clojurescripts browserify correctly.
However… I got protoc from google working because it has google closure require/provide… makes my :libs section ugly though… but works
can I do something like this in garden
?
(defn button-css [colour]
(g/css [:.btn-colour {:background-color colour
:color "white"
:cursor "pointer"}]))
For those that have any experience with unit testing, please, check my post at #testing . Thanks!
Reagent and React Native complaining about:
No such namespace: cljsjs.react, could not locate cljsjs/react.cljs, cljsjs/react.cljc, or JavaScript source providing "cljsjs.react" in file ..boot-expo/zbu/-d8mh6z/main.out/reagent/impl/util.cljs
Been stuck on this for a few hours. Any help would be appreciated. Am I missing a dependency or an exclusion?I haven’t experienced this personally, but I’ve seen it described as being a dependency conflict
You can get clues about where the conflict is by running lein deps :tree
(assuming you’re using lein)
I can't for the life of me get the format
function to cross-compile. Here is my ns header:
(ns my-ns.validation
(:require [struct.core :as st]
#?(:cljs [goog.string :refer [format]])
#?(:cljs [goog.string.format])))
Getting this in the browser: Uncaught TypeError: Cannot read property 'call' of undefined
I used that as my reference, but that's for cljs
specifically. I'm trying to port that over to cljc
.
Hence the :refer [format]
portion; I'd like to not have to use gstring/format
reader conditionals all over 😕
What’s an idiomatic way of doing class MyClass extends BaseClass { ... }
in clojurescript?
I want to recreate this example in CLJS https://github.com/quilljs/parchment#example
Hey guys. Newcomer to CLJS… I’m using garden
and cljss
to manage styles, etc, and I’m coming from a Sass background. I’m looking for functions like saturate
, lighten
, opacify
, etc … does anyone have any library recommendations?
@wpcarro https://github.com/thi-ng/color is pretty good
@selfsame interesting… looks like a bulk of the functionality is in conversions, etc… is that not the case?