On Friday, June 20, 2014 10:29:38 AM UTC-4, Jonathon McKitrick wrote:
I discovered that along with Om, there are Reagent and Quiescence.
Has anyone worked with the latter alternatives, and how might I decide what
the tradeoffs are for using each of them?
So tell me if this is accurate
On Monday, June 23, 2014 3:13:26 AM UTC-4, David Della Costa wrote:
Leaving aside the irrelevant details of creating an absolutely
positioned widget of some sort, here's how I would create a component
which keeps track of window resizing events. It's very simple and
doesn't require
. Code
helps so much in trying to help folks out.
Will
On Friday, June 27, 2014 2:50:54 PM UTC-4, Tony Tam wrote:
can you post the actual clojurescript code?
On Thursday, June 26, 2014 12:57:52 PM UTC-7, Jonathon McKitrick wrote:
I hate asking questions like these, but I'm out
What current library provides basic modals, like jQuery and Bootstrap offer?
--
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
On Sunday, June 29, 2014 2:00:04 PM UTC-4, William Sommers wrote:
Should you want to, you could just use bootstrap and jquery with cljs.
I'm trying that approach now. I went with the declarative approach with
bookstrap to minimize code dependencies, but that's not working well, so I'm
going
I am using jQuery and the Bootstrapjs modal to pop up a dialog to edit a row
from a table. When the dialog
Here is the code for the component in the dialog:
(defn select-component []
(let [val (atom nil)]
(fn [id choices name-fn value-fn selected-item]
(js/alert (str Select
I ended up setting up another atom to hold the unique id of the record
being edited. When that changes, I reset VAL as well.
--
Jonathon McKitrick
On Mon, Jun 30, 2014 at 11:47 AM, Jonathon McKitrick jmckitr...@gmail.com
wrote:
I am using jQuery and the Bootstrapjs modal to pop up a dialog
Before I start posting code, I want to describe my logic to make sure I'm on
the right path.
I show a table scheduling lectures. Each row (reagent component) has a date, a
department, a speaker, and a topic. Each of these (except date) is a dropdown,
whose list of possible values is
I have three select components (picklists) which are dependent. The first
determines the values of the second, and so on to the third. I'm able to get
the first pair working, but the second pair has been tricky.
Has anyone implemented something similar?
--
Note that posts from new members
I started researching core.async after reading your post. I'm curious how
it's implemented in single-threaded javascript.
--
Jonathon McKitrick
On Mon, Aug 4, 2014 at 12:55 PM, Harsha msreehar...@gmail.com wrote:
I'm not familiar with that approach of using core.async. I'm simply
using
Or an easy way to integrate an existing JS library?
--
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
I've applied Friend to my page authentication with great success, but I'm not
sure how to do the same with my AJAX API calls. Obviously, you don't want to
pass cleartext credentials around.
What have you all used in this case?
--
Note that posts from new members are moderated - please be
On Friday, August 15, 2014 5:25:03 PM UTC-4, Tobias Quinn wrote:
I've used Friend for a single page app. It serves the main page to anyone and
has a route that can issue a json web token (jwt) using http basic
authentication. I used clj-jwt to generate the token.
Then, the api routes
I have a working Reagent single-page app, and a very primitive cljs test:
(ns outlines.test
(:require-macros [cemerick.cljs.test
:refer (is deftest with-test run-tests testing test-var)])
(:require [cemerick.cljs.test :as t]
;;[outlines]
))
?
--
Jonathon McKitrick
On Sun, Aug 17, 2014 at 1:59 PM, Jonathon McKitrick jmckitr...@gmail.com
wrote:
Can this be done without SSL?
On Sunday, August 17, 2014, Jonathon McKitrick jmckitr...@gmail.com
wrote:
On Friday, August 15, 2014 5:25:03 PM UTC-4, Tobias Quinn wrote:
I've used Friend
I have about 6 pages with their own cljs code, and I'd also like to have dev,
pre-prod, and prod compilation settings.
What's the best way to organize the project file to do this?
I currently have something like this:
:cljsbuild {:builds
{:outlines
{:source-paths
Well, it's several destination .js files, basically. And I also would like
separate cljs-build profiles for different compiler settings.
I'm learning my way around cljs-build, and this is my next goal.
--
Jonathon McKitrick
On Tue, Sep 9, 2014 at 9:12 AM, Zubair Quraishi zuba...@gmail.com
I guess that could be done, and yes, it does deal with code duplication. I
guess with optimizations on, there's no reason to worry about code size?
--
Jonathon McKitrick
On Tue, Sep 9, 2014 at 10:12 AM, Gary Trakhman gary.trakh...@gmail.com
wrote:
Maybe this is a stupid question, but why
That's a very good point. The overhead of all the closure library stuff
and CLJS code is much more than my client code. That's a great idea
--
Jonathon McKitrick
On Tue, Sep 9, 2014 at 11:05 AM, Gary Trakhman gary.trakh...@gmail.com
wrote:
Well, one cached possibly-larger file vs 6
I have server-side tests and I'd like to add integration tests. I'd like tests
that will let me know the client needs updated when the API on the server
changes.
Given that I'm using all AJAX calls on the client to call the API, is there a
recommended way to check these calls via client-side
Given this in my profiles section:
:test {:dependencies [[ring-mock 0.1.5]
[org.clojars.runa/conjure 2.1.3]]
:cljsbuild
{:builds
{:client
{:source-paths ^:replace [src/cljs
I cannot figure out how to do this. I have a few simple macros I'd like to use
in the clojurescript side of my project, but I'm constantly gettings errors
like these:
Compiling ClojureScript.
Compiling resources/public/js/main.js from [src/cljs]...
WARNING: No such namespace: pts.macros at
I'm following these instructions:
http://swannodette.github.io/2014/12/22/waitin/
and I'm up to compiling ClojureScript AOT with this command:
lein trampoline run -m clojure.main
And this is the error output:
Exception in thread main java.io.FileNotFoundException: Could not locate
No luck:
➜ pts git:(integration-january) ✗ rm *-init.clj
remove b9bb1d9002680b93c59fea118d80a7f390e89554-init.clj? y
➜ pts git:(integration-january) ✗ ls
Procfile project.clj resources src
system.properties targettest
➜ pts
Is there a guide on how to combine optimization settings, source maps, externs,
and maybe the preamble in the same project and/or build configuration? It
seems when I change one, I inadvertently break the others.
I'm using jQuery and React in my preamble, and I would like to enable advanced
Is there a guide on how to combine optimization settings, source maps, externs,
and maybe the preamble in the same project and/or build configuration? It
seems when I change one, I inadvertently break the others.
I'm using jQuery and React in my preamble, and I would like to enable advanced
This does not include my attempts to get source maps working.
--
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
Here's one set
:cljsbuild {:builds
{:prod
{:source-paths [src/cljs]
:compiler {:output-to resources/public/js/main.js
:optimizations :advanced
;;:pretty-print true
Let's start with source maps. How can I get them working while still
optimizing the output from the compiler?
On Sunday, January 11, 2015 at 11:39:35 AM UTC-5, David Nolen wrote:
OK, but you have not explained what exactly is not working for each of them?
--
Note that posts from new members
Specify :source-map path/to/source.map.js in your :compiler options.
I'm making progress. I couldn't get source-map to work with output-dir and a
simple filename. It needed the entire path, as you posted.
Next, I had to disable :closure-warnings because of this error:
Compiling
Let's try this again, with more isolated cases. I now have 2 working build
profiles, prod and dev. The dev code is working the way I want, but I want
full optimizations for the prod build. Currently, I get this error in an event
handler of my app:
TypeError: kt.a(...).Hf is not a function
On Sunday, January 11, 2015 at 4:22:08 PM UTC-5, adrian...@mail.yu.edu wrote:
That's almost certainly an externs issue. Looks to me like you need to supply
externs for react.js.
When I add reagent/react.js to the externs vector, I get this error:
Jan 11, 2015 4:27:43 PM
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably elide it.
Google Closure provides a ton of advanced compilation compatible
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote:
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably
On Sunday, January 11, 2015 at 7:01:55 PM UTC-5, Jonathon McKitrick wrote:
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably
, 2015 at 7:01 PM, Jonathon McKitrick jmcki...@gmail.com
wrote:
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably elide
On Sunday, January 11, 2015 at 5:24:13 PM UTC-5, adrian...@mail.yu.edu wrote:
Hmm, perhaps the minified jQuery is doing its own munging. I have no idea.
Sorry. :( If you don't *really* need jQuery, you should probably elide it.
Google Closure provides a ton of advanced compilation compatible
Problem solved. It turns out the namespace error came before a syntax error,
which was the actual problem. Once I fixed that, remembering that the macro
code is spliced into the destination code and needs function calls to be
correctly namespaced, the problem was basically solved.
Thanks for
Problem solved. I had a cljsbuild hook in the project file, and obviously that
attempts to start the cljs compiler. I took that out, and it worked fine. I
didn't get quite as dramatic a speed improvement as I was expecting, but I'll
keep working on it.
thanks!
--
Note that posts from new
-paths [src/cljs]})
HTH,
/thomas
On Saturday, January 3, 2015 12:27:56 AM UTC+1, Jonathon McKitrick wrote:
I cannot figure out how to do this. I have a few simple macros I'd like to
use in the clojurescript side of my project, but I'm constantly gettings
errors like
I might have solved it... but I'm not sure yet. I'll follow up.
--
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
Excellent! Thanks for all the work on CLJS.
On Thursday, February 19, 2015 at 7:04:33 PM UTC-5, David Nolen wrote:
I believe this is a classloader issue that's since been resolved on master.
There are some other important REPL related issues holding up a release but
we're trying to work
I'm using the latest versions of CLJS locally with no issues. But when I
deploy to Heroku, I get this error:
Compiling resources/public/js/main.js from (src/cljs src/cljs
src/cljs/common src/cljs src/cljs/common)...
Compiling resources/public/js/main.js failed.
Is there a testing mode where the server runs and then the client tests against
the server API calls? I'm thinking of using the asynchronous testing ability
of clojurescript.test, but I'm not sure how to make it work.
--
Note that posts from new members are moderated - please be patient with
The cljsjs issue is fixed!
On Monday, March 16, 2015 at 7:03:00 PM UTC-4, David Nolen wrote:
And cut 0.0-3123 based on feedback from releases earlier today. One fix
addresses redundant information in the dependency graph when compiling, the
other fixes an issue when using advanced
I'd like suggestions on how to take advantage of current optimization settings
and perhaps the new module feature, especially in production. I'm going to
explain some of the decisions I've made, then paste in the relevant bits of my
project file.
1. It's a tabbed app, where each tab is a SPA
I just tried a build with this version, and I'm getting this error in my CLJS
test suite, which does not happen with 0.0-2985.
Compiling ClojureScript.
Compiling resources/public/js/unit-test.js from [src/cljs test/cljs]...
Successfully compiled resources/public/js/unit-test.js in 17.483
This time in the browser
16:25:10.455 goog.require could not find: cljs.core1 main.js:19687:6
goog.require() main.js:19687
weasel.repl.connect/connect__delegate/goog.require/() main.js:70424
anonymous main.js:85280
It's really frustrating that I used to have this working perfectly
--
I'm interested as well. I'm plagued with constant issues now trying to run
piggieback and weasel within cider, when this used to work. But I haven't
figured out how to work exclusively in the repl with clojurescript either. I'm
open to any of your suggestions in this area.
There was a cider
I have identical cljs compiler settings for my local development (main) and for
an uberjar deployed to Heroku. While the local version (lein run) works fine,
the uberjar version (foreman start) which is deployed to Heroku gives this
error:
Reference Error: pts is not defined.
`pts` is of
(defn edit-button-component [attrs]
[:button.btn.btn-default attrs
[:span.glyphicon.glyphicon-pencil]])
(defn edit-button-component-dec []
(with-meta edit-button-component
{:component-did-mount #(.tooltip (js/$ (reagent.core/dom-node %)) #js
{:title Test})
:component-will-mount
I was about to submit an error report myself on a different issue, after I got
all the detail together. I get a client-side error in generated code when
using whitespace optimization.
I'll try to get some details together today.
On Thursday, March 26, 2015 at 6:49:57 AM UTC-4, David Nolen
Issue #1:
Running my test suite under 0.3.2 passes.
Running it under 0.3.3 fails with this message:
TypeError: 'null' is not an object (evaluating 'a.appendChild')
and can be tracked down to this function used for testing React components:
(defn add-test-div [name]
(let [doc js/document
Is there a simple way to track down which externs are not being resolved? The
browser console just has cryptic, munged function names, of course, and I'm
extern'ing the only libraries I'm using, AFAIK: jQuery and Bootstrap.
On Thursday, March 26, 2015 at 1:07:01 PM UTC-4, Jonathon McKitrick
Hmm. No success yet. Is there anything special required when using cljsjs
packages, i.e. externs, settings, etc?
--
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
I'm about to make a monetary offer to anyone who can ScreenHero with me and fix
this. Any takers? ;-)
--
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
I poked around, and found exactly what I needed in that template. Thanks!
On Monday, March 2, 2015 at 9:32:33 AM UTC-5, ducky wrote:
I suggest that you generate a project with testing using reagent-template and
then inspect its project.clj and the test folder to see whats needed.
It
How difficult is it to move an existing project into a template like this?
--
Jonathon McKitrick
On Mon, Mar 2, 2015 at 8:43 AM, ducky rohit.aggar...@gmail.com wrote:
You can have a look here:
https://github.com/reagent-project/reagent-template
The reagent-template has a flag
Here's what I'm currently trying and failing with:
(defn new-id
([]
(str container- (gensym)))
([id]
(str container- id)))
(defn new-node
[id]
(- (dommy/create-element div)
(dommy/set-attr! id id)))
(defn append-node
[node]
(dommy/append! (dommy/sel1 js/document :body)
I just opened an issue in that same project you might have insight on.
--
Jonathon McKitrick
On Tue, Mar 3, 2015 at 12:07 PM, ducky rohit.aggar...@gmail.com wrote:
Thats great!
--
Note that posts from new members are moderated - please be patient with
your first post.
---
You received
I've seen a number of articles on how to set up Om client-side testing, but
I've not found anything similar (yet) for Reagent. Can anyone point the way,
or explain a setup that has worked for you?
--
Note that posts from new members are moderated - please be patient with your
first post.
---
the issue? I just thought maybe there were some
namespacing features or dependency features that might help here.
On Tuesday, February 24, 2015 at 8:43:38 PM UTC-5, David Nolen wrote:
Hopefully addressed in 0.0-2913 yes.
David
On Tue, Feb 24, 2015 at 8:05 PM, Jonathon McKitrick jmcki
Is this fixed in a recent version now?
--
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
I've run across two optimization related issues I cannot get past. I followed
the advice in 'reporting issues' on the ClojureScript wiki, and I've created 2
simple repos demonstrating the issues. These could be user error, but I've
tried to remove anything clouding the issue.
I thought it
I've been unable to get mine working:
{:source-paths [src/cljs] ;;env/dev/cljs
:compiler
{:output-to resources/public/js/main.js
:optimizations :advanced
:cache-analysis true
/js/bootstrap.min.js]
:preamble [jquery/jquery-2.1.1.min.js
I used `brew install slimerjs` to install, and I have my env set up pointing to
Firefox. I replaced phantomjs with slimerjs in my project file, and got
this error when running client tests:
Compiling ClojureScript.
Compiling ClojureScript.
Running ClojureScript test: client-test
Error during
What would you say is the most complex, hard-to-grok code in the ClojureScript
codebase?
--
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
On Friday, March 27, 2015 at 12:23:55 PM UTC-4, David Nolen wrote:
The way to avoid this in the future will be :main support under higher
:optimizations settings than :none. Won't make it into the next release but
no later than the one after that. Until then use the classpath (via
There was a recent article that progressively and thoroughly explained Closure
libraries, and it came out in the last couple of weeks IIRC. I *just* saw it
recently, thought I added it to Evernote, but Alas! I cannot find it.
Does anyone recall the article I'm thinking of?
--
Note that posts
I currently use lein test aliases to run server-side tests and client-side
tests. But that currently means my client-side AJAX calls are either mocked or
just return fixture data.
How can I run client-side tests which will actually call a running instance of
the server to test live data?
--
Has anyone figured out a way to run client tests against a running server as a
leiningen task?
I'd like one task that would stand up the server, start cljsbuild tests, and
let me verify client-side behavior against a running server and database.
--
Note that posts from new members are
I have a basic SPA app using JSON for client/server communication. I'm
considering switching to EDN.
* Is there any reason I should consider staying with JSON, assuming this API
will not be consumed elsewhere?
* How complex is the changeover on both client and server sides?
* Are there any
I'm using this project as a guideline on moving from clojurescript.test to
cljs.test with PhantomJS as the calling program:
https://github.com/testdouble/clojurescript.csv
In my project the clojurescript tests run from lein were hanging at the end. I
finally bisected and found out that at
Out of a desire to support free software and open standards, and also to
somewhat protect my privacy, I've been trying to use Firefox as my main browser.
However, I've found that Firefox is slow in comparison, and has a nagging issue
with caching that makes it frustrating to use Figwheel or any
I have an app that's been working wonderfully for a few years now. I want to
improve it by adding links. If you see a person's name, I want to be able to
click on that name and the app will jump to the 'user' page (simple enough) and
then move the browser view to that particular item. In static
Hi all,
I'm slowly but surely weaseling Clojure and Clojurescript into our
company's codebase. I'm tasked with a script which will read from a MySQL
database and generate a very simple report.
So far, I have a NodeJS REPL project up and running, but I'm not quite sure
how to get Node's MySQL
I have my first NodeJS clojurescript project, and it WFM (Works For Me).
I’ve run `lein cljsbuild once` and `node XXX` to run the script many times,
though a few times I found `node_modules` was not populated, the after
running builds again, it would miraculously re-appear.
Now that my
So I've come to the conclusion that the REPL and CIDER do not pick up any
of the NodeJS namespaces. I have to build the project and run it with node
instead. Not sure exactly why this is the case
On Monday, September 25, 2017 at 7:56:16 AM UTC-4, Jonathon McKitrick wrote:
>
>
^
Error: Can't resolve 'url' in
'/Users/devmbp42/arc/check-templates/node_modules/mysql/lib'
at onError
(/Users/devmbp42/arc/check-templates/node_modules/enhanced-resolve/lib/Resolver.js:61:15)
So it's finding the modules and attempting to load them. But I don't know
enough about NodeJ
My last non-trivial app used Reagent, but I did the rest of the wiring
manually. Now that there are many alternatives out there, I'd like to hear
your suggestions and comparisons, as I'm about to select one for a
non-trivial team (not personal) project.
Re-frame is the obvious choice, but I've
I'd love a demo that I can show my team to illustrate what reagent and
reframe can do.
Does anyone know of any?
--
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
I’m starting a Re-frame project that will need some less/sass styles found
in an NPM repo at our company. I’m not very familiar with the css pipelines
out there, but I just need to import this project and figure out how to get
the styles I need into my front-end. Where do I start?
--
Note
I need https://www.npmjs.com/package/react-avatar-editor
and https://www.npmjs.com/package/react-image-gallery for a CLJS project.
I followed the instructions here to start the
package: https://github.com/cljsjs/packages/wiki/Creating-Packages
using this link for the first library
above:
83 matches
Mail list logo