Browse Source

Removed unnecessary file

master
Vikram Shaw 5 years ago
parent
commit
c8acb35946
6 changed files with 13 additions and 16 deletions
  1. +8
    -8
      project.clj
  2. +3
    -3
      src/clj/auth_cljs_example/core.clj
  3. BIN
      src/cljs/auth_cljs_example/.DS_Store
  4. +0
    -3
      src/cljs/auth_cljs_example/core.cljs
  5. +1
    -1
      src/cljs/auth_cljs_example/login.cljs
  6. +1
    -1
      src/cljs/auth_cljs_example/signup.cljs

+ 8
- 8
project.clj View File

@@ -39,14 +39,14 @@
:output-to "target/public/cljs-out/login-main.js"
:output-dir "target/public/cljs-out/login"
:source-map-timestamp true}}
:signup {:source-paths ["src/cljs"]
:figwheel true
:compiler
{:main auth-cljs-example.signup
:asset-path "cljs-out/login"
:output-to "target/public/cljs-out/login-main.js"
:output-dir "target/public/cljs-out/login"
:source-map-timestamp true}}}}
:signup {:source-paths ["src/cljs"]
:figwheel true
:compiler
{:main auth-cljs-example.signup
:asset-path "cljs-out/login"
:output-to "target/public/cljs-out/login-main.js"
:output-dir "target/public/cljs-out/login"
:source-map-timestamp true}}}}

:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
;; need to add the compliled assets to the :clean-targets


+ 3
- 3
src/clj/auth_cljs_example/core.clj View File

@@ -3,8 +3,8 @@
[compojure.route :refer [not-found resources]]
[hiccup.core :refer :all]
[hiccup.page :refer :all]
[ring.adapter.jetty :as jetty]
[ring.util.response :as resp]
[ring.adapter.jetty :as jetty]
[ring.util.response :as resp]
[ring.middleware.reload :refer [wrap-reload]]))

(defn foo [request]
@@ -13,7 +13,7 @@
(defroutes app
(GET "/" [] foo)
(GET "/login" [] (resp/resource-response "login.html" {:root "public"}))
;;(GET "/signup" [] (resp/resource-response "signup.html" {:root "public"}))
(GET "/signup" [] (resp/resource-response "signup.html" {:root "public"}))
(resources "/")
(not-found "<h1>Page not found</h1>"))



BIN
src/cljs/auth_cljs_example/.DS_Store View File


+ 0
- 3
src/cljs/auth_cljs_example/core.cljs View File

@@ -1,3 +0,0 @@
(ns auth-cljs-example.core)

(.log js/console "this is core.cljs file")

+ 1
- 1
src/cljs/auth_cljs_example/login.cljs View File

@@ -1,6 +1,6 @@
(ns auth-cljs-example.login
(:require [reagent.core :as r]
[ajax.core :refer [GET POST]]))
[ajax.core :refer [GET POST]]))

(defn atom-username [value]
[:input {:type "text"


+ 1
- 1
src/cljs/auth_cljs_example/signup.cljs View File

@@ -1,6 +1,6 @@
(ns auth-cljs-example.signup
(:require [reagent.core :as r]
[ajax.core :refer [GET POST]]))
[ajax.core :refer [GET POST]]))

(defn atom-username [value]
[:input {:type "text"


Loading…
Cancel
Save