docker-ifyed.

This commit is contained in:
Bryce Covert
2017-12-20 10:57:08 -08:00
parent ee3ea0be2c
commit 4625ef4474
15 changed files with 63 additions and 32 deletions

View File

@@ -6,7 +6,7 @@
[auto-ap.config :as config]
[auto-ap.effects :as effects]
[pushy.core :as pushy]
[auto-ap.pushy :as p]
[auto-ap.history :as p]
[bidi.bidi :as bidi]))
(defn dev-setup []

View File

@@ -3,7 +3,7 @@
(:require [re-frame.core :as re-frame]
[cljs-http.client :as http]
[cljs.core.async :refer [<!]]
[auto-ap.pushy :as p]
[auto-ap.history :as p]
[pushy.core :as pushy]))
(re-frame/reg-fx

View File

@@ -1,4 +1,4 @@
(ns auto-ap.pushy
(ns auto-ap.history
(:require [bidi.bidi :as bidi]
[pushy.core :as pushy]
[auto-ap.routes :as routes]

View File

@@ -5,5 +5,5 @@
(def login-url
(let [client-id "264081895820-0nndcfo3pbtqf30sro82vgq5r27h8736.apps.googleusercontent.com"
redirect-uri "http%3A%2F%2Flocalhost%3A3449%2Fapi%2Foauth"]
redirect-uri (js/encodeURI (str (.-origin (.-location js/window)) "/api/oauth"))]
(str "https://accounts.google.com/o/oauth2/auth?access_type=online&client_id=" client-id "&redirect_uri=" redirect-uri "&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile")))