Sfoglia il codice sorgente

Removed unnecessary file

master
Vikram Shaw 6 anni fa
parent
commit
c8acb35946
6 ha cambiato i file con 13 aggiunte e 16 eliminazioni
  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 Vedi File

@@ -39,14 +39,14 @@
:output-to "target/public/cljs-out/login-main.js" :output-to "target/public/cljs-out/login-main.js"
:output-dir "target/public/cljs-out/login" :output-dir "target/public/cljs-out/login"
:source-map-timestamp true}} :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]} :repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}
;; need to add the compliled assets to the :clean-targets ;; need to add the compliled assets to the :clean-targets


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

@@ -3,8 +3,8 @@
[compojure.route :refer [not-found resources]] [compojure.route :refer [not-found resources]]
[hiccup.core :refer :all] [hiccup.core :refer :all]
[hiccup.page :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]])) [ring.middleware.reload :refer [wrap-reload]]))


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




BIN
src/cljs/auth_cljs_example/.DS_Store Vedi File


+ 0
- 3
src/cljs/auth_cljs_example/core.cljs Vedi 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 Vedi File

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


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


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

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


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


Loading…
Annulla
Salva