This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-17
Channels
- # alda (5)
- # bangalore-clj (1)
- # beginners (9)
- # bigdata (1)
- # boot (51)
- # carry (1)
- # cider (9)
- # cljs-dev (22)
- # clojars (39)
- # clojure (118)
- # clojure-brasil (1)
- # clojure-czech (8)
- # clojure-france (2)
- # clojure-italy (5)
- # clojure-korea (9)
- # clojure-russia (9)
- # clojure-spec (17)
- # clojure-uk (42)
- # clojurescript (48)
- # core-async (1)
- # emacs (3)
- # figwheel (1)
- # funcool (3)
- # hoplon (39)
- # klipse (51)
- # lein-figwheel (4)
- # leiningen (2)
- # luminus (5)
- # off-topic (245)
- # om (18)
- # onyx (19)
- # parinfer (1)
- # pedestal (18)
- # re-frame (47)
- # reagent (19)
- # ring-swagger (1)
- # specter (18)
- # untangled (93)
- # vim (8)
- # yada (56)
If anyone is interested, we’ve started working on Untangled Components. A library of reusable components. Right now it mostly contains some half-baked ideas, but I’m in the midst of adding some nifty CRUD form support (with remote integration) that already makes form stuff pretty dreamy. My first sample is running in a devcard on the project. Here is the PR (which will get added to as I go): https://github.com/untangled-web/untangled-components/pull/2
Given that it doesn’t define the UI for you (just all of the madness around controlling the form interactions), I’m strongly tempted to make it part of core untangled client.
Thanks a lot @tony.kay! We hope, we can start in the end of this year our first untangled project….u guys are doing an amazing job.
@tony.kay looks awesome! I really like the idea of composable form elements, given how often we use them. @paul4nandez also built a filtered-list component in insight that you might want to take a look at. It has been very handy for searches
@tony.kay hi there, is there a place with untangled boilerplates? I’d love to migrate some apps I have with angular, but I’m finding it hard to start. Specifically would love a oauth2 universal app boilerplate
I get a 404 when I try to access this URL: http://untangled-web.github.io/.. I think that used to work. I can still access the site with this URL: http://untangled-web.github.io/untangled/
@fatihict Only the later is a valid site, I don’t believe we have any redirects in place, or if we even can given its hosted by github
but that’s an area I know very little about!
@tony.kay I absolutely love the new untangled.client.data-fetch/load
combined with the target
option. But on thing I am missing is to get some context in the post mutation (for example the :target or the given params). Is that by design or is that just something you never seem to need?
@mitchelkuijpers if you look in the new form stuff I just mentioned, I have a FIXME to add post mutation parameters to U.C. 😄
Whohoo
it is certainly needed...just have not needed it personally yet. Fortunately, it is easy to add
Btw, now that I got you here
I will be giving a Untangled presentation at the Amsterdam clojure meetup group
@mping no oauth one yet. On the horizon. http://github.com/awkay/untangled-template-workspace is as far as I've gotten on a good template.
@mitchelkuijpers That's great! Anything I can help with?
Yeah I will probably rip of some of your presentations
Ah cool I will look for them
I want to do some live coding. To show the power of untangled 😄
There was pretty much no one who knew untangled which was interesting
I’ll probaby put them on the untangled tutorial
should be a good test 😉
I think I am going for a short presentation and then get to work (they will learn more from the tutorial then from a presentation)
sure. good rule though is to keep it to simple things that everyone can follow easily....which is a little hard with Om to start because of the dramatically different model
Yeah I might start with a small database
Will be a bit of a challenge
There's a lot of minutia to get in the way of the fact that it's actually simple 🙂 E.g. query syntax
good luck! I'll be excited to see the result. Record it if you can (at least with QT screen recording)
Thank you it will be recorded
there will even be a live recording 😉
I’ll keep you posted
Hey folks, does anyone have any advice for setting up the Untangled Server to always serve the Untangled App for every request? I tried putting an entry in :extra-routes
for [true :index]
but that’s not working correctly.
although the way I’m doing it is with a completely protected url under oauth (say, /authenticated/…
), its "server-side" oauth
@gardnervickers you should try something like
[“” {true :index}]
@adambros Thanks, I had made a false assumption about the bidi syntax.
also in front of /index
@mping That'd be great. Like I said, we've already done quite a bit of work there...just need to get it into something on the OSS codebase
ah yeah it would
might be something we should change....extra routes should not be in front of API service
you might be able to get away with a regex
a prehook might be better for @gardnervickers problem
[“” {#”^[/api]” :handler}]
ish
@gardnervickers what is your use case for wanting everything to :index
?
oh like a single page app?
isnt this what hash fragment routes are for?
@tony.kay exactly
@adambros If you're using fragments, you're ok, but if you're using URI paths, it isn't
well anyway i think extra-routes should at least be “in front of” /index
i could see someone wanting to change the location of /api as well
Hash fragments probably make more sense for our app anyway. Thanks
as a note this regex seems to do it: #"^(?!api$).*”
(defn- auth-middleware [ring-handler]
(-> ring-handler
(wrap-bidi-routes ["/" {#"^history.*" {:get redirect-to-index}
#"^(?!api|static|generated|history).*$" {:get index-page}}])
(defrecord Authentication [handler]
component/Lifecycle
(start [this]
(add-ring-middleware! handler auth-middleware)
this)
(stop [this] this))
(defn make-system []
(make-untangled-server
....
:components {
:auth-hook (auth/make-authentication)
....
)
I am trying to start a server from untangled-template-workspace, and failing. I get the user prompt, but when I type (go), I get a compiler exception saying ago is not found. any idea what I am doing wrong?
λ lein run -m clojure.main
16-10-17 19:09:20 Tony-Kays-MacBook-Pro.local INFO [template.api.read:7] - Loading API definitions for template.api.read
Clojure 1.8.0
user=> (go)
16-10-17 19:09:27 Tony-Kays-MacBook-Pro.local INFO [untangled.server.impl.components.handler:180] - Creating web server handler.
16-10-17 19:09:27 Tony-Kays-MacBook-Pro.local INFO [untangled.server.impl.components.web-server:18] - Web server started successfully. With options: {:port 3000}
#<SystemMap>
nope can’t find user/go either. I don’t see username space in the server sources for this project.
I’m using intellij, the docs say to use a clojure.main repl, which is what I did. I switch to a lein configuration and it found go. the client is failing to load a resource which is the javascript for the client. there must be a configuration problem I will investigate.