This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-30
Channels
- # 100-days-of-code (2)
- # announcements (2)
- # beginners (8)
- # boot (6)
- # calva (52)
- # cider (6)
- # cljs-dev (11)
- # cljsrn (3)
- # clojure (58)
- # clojure-austin (2)
- # clojure-russia (6)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (29)
- # datomic (10)
- # emacs (1)
- # figwheel (2)
- # figwheel-main (2)
- # fulcro (3)
- # luminus (1)
- # off-topic (38)
- # re-frame (21)
- # ring-swagger (1)
- # robots (1)
- # shadow-cljs (65)
- # spacemacs (3)
- # tools-deps (16)
Does anyone use one of the datalog implementations for app state. I saw datascript has posh and I'm starting to learn datalog
Also is there a benefit to using this if you are using local storage or a non-datomik like database?
This is good stuff 🙂, which one of you made it? haha http://app.klipse.tech/
I always use it for timed coding challenges so I don't have to wait for the built-in clojure backend to compile
Happy that you found http://app.klipse.tech/ useful
Like for instance: http://app.klipse.tech/?cljs_in.gist=viebel/26a5a21b38ba2d2f3011be7b3cfdc95c&eval_only=1
nope, that's nifty
I just found out about Netlify, very easy to put something public for free. Tried it with a pokemon re-frame game I made last Chistmas. https://pokequiz.netlify.com/
Hi, is there a way to pprint custom edn ? My record implements IPrintWithWriter but it seems pprint doesnt care... https://gist.github.com/Artesonraju/9a6fa406b1d45371a4cb7d6dd4033f55
can anyone recommend an intro to Datomic, and (same or separate) how it can work across the network and on the web?
did anyone manage to solve the Cannot find module 'react'
problem?
I do not have any such problem? I use shadow-cljs and npm install
-ed react.
I heard that it's not a problem with shadow-cljs, but using shadow-cljs is a very big change
I'll stick with cljsjs packaging, then
...between these problems with npm-deps and shadow-cljs's promise of reliable modules, I'm finally trying shadow-cljs. @U05224H0W might win this one after all 😛
Hello! Any idea how to make my macro output #js
? The problem is that the reader tries to process it... My code:
~(let [~name #js ~js-data] ...)
Thanks!sorry, forget it, I just realized I perhaps don't need it since the data will be inserted there later, when it is already compiled to javascript
@holyjak you could just use js-obj
instead. its more or less identical. otherwise you can wrap the value in cljs.tagged-literal/JSValue.
Is there a way to run a command on figwheel js reload? E.g let's say you save a file and then runs "lein cljfmt fix"?
Not sure if "main", but I am using figwheel
"lein figwheel" is what I run to develop stuff
Hello, somebody could help me how can I use :npm-deps? I read all spec, but not clear for me. I would like to add to project eg. react-google-charts npm repo.
:cljsbuild {:builds
[{:id "dev"
:source-paths ["src/cljs"]
:figwheel {:on-jsload "cljs-react-semantic-ui-example.core/mount-root"}
:compiler {:main cljs-react-semantic-ui-example.core
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true
:preloads [print.foo.preloads.devtools]
:external-config {:devtools/config {:features-to-install :all}}
:install-deps true
:npm-deps {:semantic-ui-react "0.73.1"
:react "15.6.2"
:react-dom "15.6.2"
:react-quill "1.3.1"
:react-google-charts "3.0.8"
}}}
(ns cljs-react-semantic-ui-example.views
(:require
[re-frame.core :as re-frame]
["react-quill" :as ReactQuill]
;??? ["react-google-charts" :as Chart] ;;; or :refer]
["semantic-ui-react/dist/commonjs" :as ui]
["semantic-ui-react/dist/commonjs/modules/Transition/Transition" :as transition]
["semantic-ui-react/dist/commonjs/modules/Transition/TransitionGroup" :as transition-group]
[reagent.core :as r]))
(def divider (r/adapt-react-class ui/Divider))
(def button (r/adapt-react-class ui/Button))
(def quill-component (r/adapt-react-class ReactQuill))
;???
;(def chart (r/adapt-react-class Chart))
(defn main-panel []
(let [name (re-frame/subscribe [:name])
visible? (r/atom true)]
(fn []
[:div
[:div "Hello from " @name]
[divider]
[:div [:p "hello"]]
[button {:on-click #(println "clicked sui button")} "hello"]
[:div
[quill-component {:value "hello" :theme "snow" :style {:width 650 :height 350 :padding-left 100}}]]
[:div
[chart ???]]
])))