implemented the simplest web user interface possible #2

Merged
didiercrunch merged 3 commits from wui into master 2018-07-21 13:52:41 -04:00
29 changed files with 7796 additions and 44 deletions

No files matched your search

+1
View File
@@ -14,3 +14,4 @@ book.iml
skirmish.iml skirmish.iml
full-stack full-stack
fixtures fixtures
node_modules
-24
View File
@@ -1,24 +0,0 @@
# Change Log
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
## [Unreleased]
### Changed
- Add a new arity to `make-widget-async` to provide a different widget shape.
## [0.1.1] - 2018-05-21
### Changed
- Documentation on how to make the widgets.
### Removed
- `make-widget-sync` - we're all async, all the time.
### Fixed
- Fixed widget maker to keep working when daylight savings switches over.
## 0.1.0 - 2018-05-21
### Added
- Files from the new template.
- Widget maker public API - `make-widget-sync`.
[Unreleased]: https://github.com/your-name/book/compare/0.1.1...HEAD
[0.1.1]: https://github.com/your-name/book/compare/0.1.0...0.1.1
-3
View File
@@ -1,3 +0,0 @@
# Introduction to book
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
+10
View File
@@ -0,0 +1,10 @@
(ns skirmish.wui.middleware
(:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]]
[prone.middleware :refer [wrap-exceptions]]
[ring.middleware.reload :refer [wrap-reload]]))
(defn wrap-middleware [handler]
(-> handler
(wrap-defaults site-defaults)
wrap-exceptions
wrap-reload))
+33
View File
@@ -0,0 +1,33 @@
(ns skirmish.wui.repl
(:use skirmish.wui.handler
figwheel-sidecar.repl-api
ring.server.standalone
[ring.middleware file-info file]))
(defonce server (atom nil))
(defn get-handler []
;; #'app expands to (var app) so that when we reload our code,
;; the server is forced to re-resolve the symbol in the var
;; rather than having its own copy. When the root binding
;; changes, the server picks it up without having to restart.
(-> #'app
; Makes static assets in $PROJECT_DIR/resources/public/ available.
(wrap-file "resources")
; Content-Type, Content-Length, and Last Modified headers for files in body
(wrap-file-info)))
(defn start-server
"used for starting the server in development mode from REPL"
[& [port]]
(let [port (if port (Integer/parseInt port) 3000)]
(reset! server
(serve (get-handler)
{:port port
:auto-reload? true
:join? false}))
(println (str "You can view the site at http://localhost:" port))))
(defn stop-server []
(.stop @server)
(reset! server nil))
+19
View File
@@ -0,0 +1,19 @@
(ns skirmish.wui.cards
(:require [reagent.core :as reagent :refer [atom]]
[skirmish.wui.core :as core]
[devcards.core :as dc])
(:require-macros
[devcards.core
:as dc
:refer [defcard defcard-doc defcard-rg deftest]]))
(defcard-rg first-card
[:div>h1 "This is your first devcard!"])
(defcard-rg home-page-card
[core/home-page])
(reagent/render [:div] (.getElementById js/document "app"))
;; remember to run 'lein figwheel devcards' and then browse to
;; http://localhost:3449/cards
+10
View File
@@ -0,0 +1,10 @@
(ns ^:figwheel-no-load skirmish.wui.dev
(:require
[skirmish.wui.core :as core]
[devtools.core :as devtools]))
(devtools/install!)
(enable-console-print!)
(core/init!)
+6
View File
@@ -0,0 +1,6 @@
(ns skirmish.wui.middleware
(:require [ring.middleware.defaults :refer [site-defaults wrap-defaults]]))
(defn wrap-middleware [handler]
(wrap-defaults handler site-defaults))
+7
View File
@@ -0,0 +1,7 @@
(ns skirmish.prod
(:require [skirmish.wui.core :as core]))
;;ignore println statements in prod
(set! *print-fn* (fn [& _]))
(core/init!)
+867
View File
@@ -0,0 +1,867 @@
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.611 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.552 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.471 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.464 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.447 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:37 column:1 ----
current-page at line 24 is being replaced
33 ;; -------------------------
34 ;; Initialize app
35 
36 
37 (defn current-page []
  ^--- current-page at line 24 is being replaced
38  [:div
39  (dase.topbar/top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:39 column:5 ----
No such namespace: dase.topbar, could not locate dase/topbar.cljs, dase/topbar.cljc, or JavaScript source providing "dase.topbar"
37 (defn current-page []
38  [:div
39  (dase.topbar/top-bar state)
   ^--- No such namespace: dase.topbar, could not locate dase/topbar.cljs, dase/topbar.cljc, or JavaScript source providing "dase.topbar"
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:39 column:5 ----
Use of undeclared Var dase.topbar/top-bar
37 (defn current-page []
38  [:div
39  (dase.topbar/top-bar state)
   ^--- Use of undeclared Var dase.topbar/top-bar
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:39 column:25 ----
Use of undeclared Var skirmish.core/state
37 (defn current-page []
38  [:div
39  (dase.topbar/top-bar state)
   ^--- Use of undeclared Var skirmish.core/state
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:43 column:9 ----
No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
39  (dase.topbar/top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
   ^--- No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
44 
45 
46 (defn mount-root []
47  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:43 column:9 ----
Use of undeclared Var session/get
39  (dase.topbar/top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
   ^--- Use of undeclared Var session/get
44 
45 
46 (defn mount-root []
47  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:51 column:1 ----
mount-root at line 46 is being replaced
47  (reagent/render [current-page] (.getElementById js/document "app")))
48 
49 
50 
51 (defn mount-root []
  ^--- mount-root at line 46 is being replaced
52  (reagent/render [current-page] (.getElementById js/document "app")))
53 
54 (defn init! []
55  (accountant/configure-navigation!
56  {:nav-handler
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.575 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:37 column:1 ----
current-page at line 24 is being replaced
33 ;; -------------------------
34 ;; Initialize app
35 
36 
37 (defn current-page []
  ^--- current-page at line 24 is being replaced
38  [:div
39  (top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:39 column:13 ----
Use of undeclared Var skirmish.core/state
37 (defn current-page []
38  [:div
39  (top-bar state)
   ^--- Use of undeclared Var skirmish.core/state
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:43 column:9 ----
No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
39  (top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
   ^--- No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
44 
45 
46 (defn mount-root []
47  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:43 column:9 ----
Use of undeclared Var session/get
39  (top-bar state)
40  [:div
41  [:div.columns
42  [:div.column.is-8.is-offset-2
43  [(session/get :current-page)]]]]])
   ^--- Use of undeclared Var session/get
44 
45 
46 (defn mount-root []
47  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:51 column:1 ----
mount-root at line 46 is being replaced
47  (reagent/render [current-page] (.getElementById js/document "app")))
48 
49 
50 
51 (defn mount-root []
  ^--- mount-root at line 46 is being replaced
52  (reagent/render [current-page] (.getElementById js/document "app")))
53 
54 (defn init! []
55  (accountant/configure-navigation!
56  {:nav-handler
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.517 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:40 column:1 ----
current-page at line 27 is being replaced
36 ;; -------------------------
37 ;; Initialize app
38 
39 
40 (defn current-page []
  ^--- current-page at line 27 is being replaced
41  [:div
42  (top-bar state)
43  [:div
44  [:div.columns
45  [:div.column.is-8.is-offset-2
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:46 column:9 ----
No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
42  (top-bar state)
43  [:div
44  [:div.columns
45  [:div.column.is-8.is-offset-2
46  [(session/get :current-page)]]]]])
   ^--- No such namespace: session, could not locate session.cljs, session.cljc, or JavaScript source providing "session"
47 
48 
49 (defn mount-root []
50  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:46 column:9 ----
Use of undeclared Var session/get
42  (top-bar state)
43  [:div
44  [:div.columns
45  [:div.column.is-8.is-offset-2
46  [(session/get :current-page)]]]]])
   ^--- Use of undeclared Var session/get
47 
48 
49 (defn mount-root []
50  (reagent/render [current-page] (.getElementById js/document "app")))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
---- Compiler Warning on src/cljs/skirmish/core.cljs line:54 column:1 ----
mount-root at line 49 is being replaced
50  (reagent/render [current-page] (.getElementById js/document "app")))
51 
52 
53 
54 (defn mount-root []
  ^--- mount-root at line 49 is being replaced
55  (reagent/render [current-page] (.getElementById js/document "app")))
56 
57 (defn init! []
58  (accountant/configure-navigation!
59  {:nav-handler
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.489 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:41 column:1 ----
current-page at line 28 is being replaced
37 ;; -------------------------
38 ;; Initialize app
39 
40 
41 (defn current-page []
  ^--- current-page at line 28 is being replaced
42  [:div
43  (top-bar state)
44  [:div
45  [:div.columns
46  [:div.column.is-8.is-offset-2
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.553 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.436 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.447 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.649 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/todo.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.561 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/todo.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.521 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/todo.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.477 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/home_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.531 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/todo_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.464 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/home_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 1.474 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.496 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.479 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.44 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.472 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.432 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.449 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.468 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.466 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:26 column:1 ----
page already refers to: skirmish.wui.components.todo-page/page being replaced by: skirmish.core/page
23 ;; -------------------------
24 ;; Routes
25 
26 (defonce page (atom #'home-page))
  ^--- page already refers to: skirmish.wui.components.todo-page/page being replaced by: skirmish.core/page
27 
28 (secretary/defroute "/todo" []
29  (session/put! :current-page 'page)
30  (swap! state #(assoc % :page :todo)))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.479 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:26 column:1 ----
page already refers to: skirmish.wui.components.todo-page/page being replaced by: skirmish.core/page
23 ;; -------------------------
24 ;; Routes
25 
26 (defonce page (atom #'home-page))
  ^--- page already refers to: skirmish.wui.components.todo-page/page being replaced by: skirmish.core/page
27 
28 (secretary/defroute "/todo" []
29  (session/put! :current-page #'page)
30  (swap! state #(assoc % :page :todo)))
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.473 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.458 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.435 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.474 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:34 column:21 ----
No such namespace: pages, could not locate pages.cljs, pages.cljc, or JavaScript source providing "pages"
30  (session/put! :current-page #'page)
31  (swap! state #(assoc % :page :todo)))
32 
33 (secretary/defroute "/" []
34  (session/put! :current-page #'pages/homepage)
   ^--- No such namespace: pages, could not locate pages.cljs, pages.cljc, or JavaScript source providing "pages"
35  (swap! state #(assoc % :page :home)))
36 ;(secretary/defroute "/" []
37 ; (reset! page #'home-page))
38 ;
39 ;(secretary/defroute "/about" []
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.234 seconds.
---- Could not Analyze src/cljs/skirmish/core.cljs line:34 column:21 ----
Unable to resolve var: homepage in this context at line 34 src/cljs/skirmish/core.cljs
33 (secretary/defroute "/" []
34  (session/put! :current-page #'pages/homepage)
   ^--- Unable to resolve var: homepage in this context at line 34 src/cljs/skirmish/core.cljs
35  (swap! state #(assoc % :page :home)))
36 ;(secretary/defroute "/" []
37 ; (reset! page #'home-page))
---- Analysis Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:35 column:21 ----
No such namespace: pages, could not locate pages.cljs, pages.cljc, or JavaScript source providing "pages"
31  (session/put! :current-page #'page)
32  (swap! state #(assoc % :page :todo)))
33 
34 (secretary/defroute "/" []
35  (session/put! :current-page #'pages/homepage)
   ^--- No such namespace: pages, could not locate pages.cljs, pages.cljc, or JavaScript source providing "pages"
36  (swap! state #(assoc % :page :home)))
37 ;(secretary/defroute "/" []
38 ; (reset! page #'home-page))
39 ;
40 ;(secretary/defroute "/about" []
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.286 seconds.
---- Could not Analyze src/cljs/skirmish/core.cljs line:35 column:21 ----
Unable to resolve var: homepage in this context at line 35 /home/didier/gitlab/skirmish/skirmish/src/cljs/skirmish/core.cljs
34 (secretary/defroute "/" []
35  (session/put! :current-page #'pages/homepage)
   ^--- Unable to resolve var: homepage in this context at line 35 /home/didier/gitlab/skirmish/skirmish/src/cljs/skirmish/core.cljs
36  (swap! state #(assoc % :page :home)))
37 ;(secretary/defroute "/" []
38 ; (reset! page #'home-page))
---- Analysis Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.443 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.444 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/home_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.437 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.394 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.409 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.409 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.384 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.245 seconds.
---- Could not Analyze src/cljs/skirmish/core.cljs ----
Invalid :refer, var skirmish.pages/pages does not exist 
---- Analysis Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.248 seconds.
---- Could not Analyze src/cljs/skirmish/core.cljs ----
Invalid :refer, var skirmish.pages/pages does not exist 
---- Analysis Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.254 seconds.
---- Could not Analyze src/cljs/skirmish/core.cljs ----
Invalid :refer, var skirmish.pages/pages does not exist 
---- Analysis Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
---- Compiler Warning on src/cljs/skirmish/core.cljs line:49 column:5 ----
Use of undeclared Var skirmish.core/top-bar
47 (defn current-page []
48  [:div
49  (top-bar state)
   ^--- Use of undeclared Var skirmish.core/top-bar
50  [:div
51  [:div.columns
52  [:div.column.is-8.is-offset-2
53  [(session/get :current-page)]]]]])
---- Compiler Warning : Please see src/cljs/skirmish/core.cljs ----
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.434 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.409 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.395 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.439 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/home_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.39 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.398 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.433 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.424 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.422 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.413 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.391 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.389 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.402 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 1.82 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.616 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.515 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.586 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.481 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.521 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.496 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.457 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.531 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.448 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.442 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.461 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.437 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/topbar.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.419 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.438 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.436 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.414 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.453 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.435 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.412 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.407 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.433 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.497 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.504 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.384 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.373 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.39 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.367 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.444 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.278 seconds.
---- Could not Read src/cljs/skirmish/core.cljs line:68 ----
/home/didier/gitlab/skirmish/skirmish/src/cljs/skirmish/core.cljs [line 68, col 1] Unexpected EOF while reading item 8 of list, starting at line 37 and column 1.
---- Reader Error : Please see src/cljs/skirmish/core.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.427 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.441 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.455 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.432 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.418 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.421 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.445 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.407 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.398 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.41 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.427 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.402 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.427 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.393 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.392 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.4 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.385 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.392 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.423 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.386 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.399 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.393 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.393 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.404 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.388 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.431 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.457 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.417 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.414 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.45 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.452 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.445 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.402 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.397 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.452 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.44 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.423 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.446 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Notifying browser that CSS file changed: resources/public/css/site.css
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.402 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.385 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.396 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/core.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.418 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.401 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/home_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.39 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.392 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/components/security_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.387 seconds.
---- Could not Analyze src/cljs/skirmish/wui/pages.cljs ----
No such namespace: skirmish.components.todo-page, could not locate skirmish/components/todo_page.cljs, skirmish/components/todo_page.cljc, or JavaScript source providing "skirmish.components.todo-page" (Please check that namespaces with dashes use underscores in the ClojureScript file name) 
---- Analysis Error : Please see src/cljs/skirmish/wui/pages.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.3 seconds.
---- Could not Analyze src/cljs/skirmish/wui/pages.cljs ----
No such namespace: skirmish.components.todo-page, could not locate skirmish/components/todo_page.cljs, skirmish/components/todo_page.cljc, or JavaScript source providing "skirmish.components.todo-page" (Please check that namespaces with dashes use underscores in the ClojureScript file name) 
---- Analysis Error : Please see src/cljs/skirmish/wui/pages.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Failed to compile build :app from ["src/cljs" "src/cljc" "env/dev/cljs"] in 0.307 seconds.
---- Could not Analyze src/cljs/skirmish/wui/pages.cljs ----
No such namespace: skirmish.components.todo-page, could not locate skirmish/components/todo_page.cljs, skirmish/components/todo_page.cljc, or JavaScript source providing "skirmish.components.todo-page" (Please check that namespaces with dashes use underscores in the ClojureScript file name) 
---- Analysis Error : Please see src/cljs/skirmish/wui/pages.cljs ----
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 2.041 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/wui/pages.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.814 seconds.
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.603 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/order.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.746 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/goog/deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/cljs_deps.js
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/wui/components/securities_page.js
Compiling build :app to "target/cljsbuild/public/js/app.js" from ["src/cljs" "src/cljc" "env/dev/cljs"]...
Successfully compiled build :app to "target/cljsbuild/public/js/app.js" in 0.533 seconds.
notifying browser that file changed: target/cljsbuild/public/js/out/skirmish/wui/components/securities_page.js
+18
View File
@@ -0,0 +1,18 @@
{
"name": "skirmish",
"version": "0.1.0-SNAPSHOT",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"bulma": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/bulma/-/bulma-0.7.1.tgz",
"integrity": "sha512-wRSO2LXB+qI9Pyz2id+uZr4quz5aftSN7Ay1ysr1+krzVp3utD+Ci4CeKuZdrYGc800t65b7heXBL6qw2Wo/lQ=="
},
"font-awesome": {
"version": "4.7.0",
"resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz",
"integrity": "sha1-j6jPBBGhoxr9B7BtKQK7n8gVoTM="
}
}
}
+134 -15
View File
@@ -3,10 +3,12 @@
:url "https://gitlab.com/didiercrunch/skirmish/" :url "https://gitlab.com/didiercrunch/skirmish/"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"} :url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.9.0"] :dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/core.async "0.4.474"] [org.clojure/core.async "0.4.474"]
[org.clojure/math.combinatorics "0.1.4"] [org.clojure/math.combinatorics "0.1.4"]
;; web
;; server
[aero "1.1.3"] [aero "1.1.3"]
[http-kit "2.3.0"] [http-kit "2.3.0"]
[compojure "1.6.1"] [compojure "1.6.1"]
@@ -14,23 +16,140 @@
[javax.servlet/javax.servlet-api "3.1.0"] [javax.servlet/javax.servlet-api "3.1.0"]
[org.apache.kafka/kafka-streams "1.1.0"] [org.apache.kafka/kafka-streams "1.1.0"]
[org.apache.kafka/kafka-clients "1.1.0"] [org.apache.kafka/kafka-clients "1.1.0"]
[spootnik/kinsky "0.1.22"]
;;utils ;;utils
[slingshot "0.12.2"] [slingshot "0.12.2"]
[spootnik/kinsky "0.1.22"]
[org.clojars.fossi/kafka-streams-clojure "0.1.0-SNAPSHOT"] ;; JEAH!
[orchestra "2017.11.12-1"] [orchestra "2017.11.12-1"]
[cheshire "5.8.0"]] [cheshire "5.8.0"]
:java-source-paths ["src/java"]
:main ^:skip-aot skirmish.core
:target-path "target/%s"
:plugins [[lein-midje "3.2.1"]]
:source-paths ["src/clj" "src/java"]
:profiles {
:uberjar {:aot :all}
:dev {:jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
:dependencies [[midje "1.9.1"]
[stylefruits/gniazdo "1.0.1"]
[com.stuartsierra/frequencies "0.1.0"] [com.stuartsierra/frequencies "0.1.0"]
[clj-http "3.9.0"]]}})
;; wui
[ring-server "0.5.0"]
[reagent "0.8.1"]
[reagent-utils "0.3.1"]
[ring "1.6.3"]
[ring/ring-defaults "0.3.1"]
[compojure "1.6.1"]
[hiccup "1.0.5"]
;; cljs
[org.clojure/clojurescript "1.10.339" :scope "provided"]
[secretary "1.2.3"]
[venantius/accountant "0.2.4" :exclusions [org.clojure/tools.reader]]]
:plugins [[lein-midje "3.2.1"]
[lein-npm "0.6.2"]
[lein-environ "1.1.0"] ;; maybe to remove
[lein-cljsbuild "1.1.7"]
[lein-asset-minifier "0.2.7" :exclusions [org.clojure/clojure]]]
:java-source-paths ["src/java"]
:npm {:dependencies [[bulma "0.7.1"]
[font-awesome "4.7.0"]]}
:ring {:handler skirmish.wui.handler/app
:uberwar-name "skirmish.war"}
:min-lein-version "2.5.0"
:uberjar-name "skirmish.jar"
:main skirmish.wui.core
:jvm-opts ["--add-modules" "java.xml.bind"]
:clean-targets ^{:protect false}
[:target-path
[:cljsbuild :builds :app :compiler :output-dir]
[:cljsbuild :builds :app :compiler :output-to]]
:source-paths ["src/clj" "src/cljc"]
:resource-paths ["resources" "target/cljsbuild"]
:minify-assets
{:assets
{"resources/public/css/site.min.css" "resources/public/css/site.css"}}
:cljsbuild
{:builds {:min
{:source-paths ["src/cljs" "src/cljc" "env/prod/cljs"]
:compiler
{:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js"
:source-map "target/cljsbuild/public/js/app.js.map"
:optimizations :advanced
:pretty-print false}}
:app
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:figwheel {:on-jsload "skirmish.wui.core/mount-root"}
:compiler
{:main "skirmish.wui.dev"
:asset-path "/js/out"
:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js/out"
:source-map true
:optimizations :none
:pretty-print true}}
:devcards
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:figwheel {:devcards true}
:compiler {:main "skirmish.wui.cards"
:asset-path "js/devcards_out"
:output-to "target/cljsbuild/public/js/app_devcards.js"
:output-dir "target/cljsbuild/public/js/devcards_out"
:source-map-timestamp true
:optimizations :none
:pretty-print true}}}}
:figwheel
{:http-server-root "public"
:server-port 3449
:nrepl-port 7002
:nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl"]
:css-dirs ["resources/public/css"]
:ring-handler skirmish.wui.handler/app}
:sass {:source-paths ["src/sass"]
:target-path "resources/public/css"}
:profiles {:dev {:repl-options {:init-ns skirmish.wui.repl
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:dependencies [[midje "1.9.1"]
[stylefruits/gniazdo "1.0.1"] ;; only used in benchmark
[clj-http "3.9.0"] ;; only used in benchmark
[binaryage/devtools "0.9.10"]
[ring/ring-mock "0.3.2"]
[ring/ring-devel "1.6.3"]
[prone "1.5.2"]
[figwheel-sidecar "0.5.16"]
[org.clojure/tools.nrepl "0.2.13"]
[com.cemerick/piggieback "0.2.2"]
[devcards "0.2.3" :exclusions [cljsjs/react]]
[pjstadig/humane-test-output "0.8.3"]
;; To silence warnings from sass4clj dependecies about missing logger implementation
[org.slf4j/slf4j-nop "1.7.25"]]
:source-paths ["env/dev/clj"]
:plugins [[lein-figwheel "0.5.16"]
[deraen/lein-sass4clj "0.3.1"]]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:env {:dev true}}
:uberjar {:hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env {:production true}
:aot :all
:omit-source true}})
+3
View File
@@ -24,6 +24,9 @@
:max-body 524288 ;; 512kb, small but enough :max-body 524288 ;; 512kb, small but enough
:max-ws 524288} :max-ws 524288}
:wui
{:port #long #or [#env WUI_PORT 3000]}
;; list of tradable securities ;; list of tradable securities
:securities :securities
[{:sec-id :foo} [{:sec-id :foo}
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
@keyframes spinAround{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}.delete,.modal-close,.is-unselectable,.button,.file,.breadcrumb,.pagination-previous,.pagination-next,.pagination-link,.pagination-ellipsis,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select:not(.is-multiple):not(.is-loading)::after,.navbar-link::after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-0.4375em;pointer-events:none;position:absolute;top:50%;transform:rotate(-45deg);transform-origin:center;width:.625em}.box:not(:last-child),.content:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.table:not(:last-child),.table-container:not(:last-child),.title:not(:last-child),.subtitle:not(:last-child),.block:not(:last-child),.highlight:not(:last-child),.breadcrumb:not(:last-child),.level:not(:last-child),.message:not(:last-child),.tabs:not(:last-child){margin-bottom:1.5rem}.delete,.modal-close{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(10,10,10,0.2);border:0;border-radius:290486px;cursor:pointer;display:inline-block;flex-grow:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:0;position:relative;vertical-align:top;width:20px}.delete::before,.modal-close::before,.delete::after,.modal-close::after{background-color:white;content:"";display:block;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) rotate(45deg);transform-origin:center center}.delete::before,.modal-close::before{height:2px;width:50%}.delete::after,.modal-close::after{height:50%;width:2px}.delete:hover,.modal-close:hover,.delete:focus,.modal-close:focus{background-color:rgba(10,10,10,0.3)}.delete:active,.modal-close:active{background-color:rgba(10,10,10,0.4)}.is-small.delete,.is-small.modal-close{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.is-medium.delete,.is-medium.modal-close{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.is-large.delete,.is-large.modal-close{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.button.is-loading::after,.select.is-loading::after,.control.is-loading::after,.loader{animation:spinAround 500ms infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em}.is-overlay,.image.is-square img,.image.is-1by1 img,.image.is-5by4 img,.image.is-4by3 img,.image.is-3by2 img,.image.is-5by3 img,.image.is-16by9 img,.image.is-2by1 img,.image.is-3by1 img,.image.is-4by5 img,.image.is-3by4 img,.image.is-2by3 img,.image.is-3by5 img,.image.is-9by16 img,.image.is-1by2 img,.image.is-1by3 img,.modal,.modal-background,.hero-video{bottom:0;left:0;position:absolute;right:0;top:0}.button,.input,.textarea,.select select,.file-cta,.file-name,.pagination-previous,.pagination-next,.pagination-link,.pagination-ellipsis{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:4px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-bottom:calc(0.375em - 1px);padding-left:calc(0.625em - 1px);padding-right:calc(0.625em - 1px);padding-top:calc(0.375em - 1px);position:relative;vertical-align:top}.button:focus,.input:focus,.textarea:focus,.select select:focus,.file-cta:focus,.file-name:focus,.pagination-previous:focus,.pagination-next:focus,.pagination-link:focus,.pagination-ellipsis:focus,.is-focused.button,.is-focused.input,.is-focused.textarea,.select select.is-focused,.is-focused.file-cta,.is-focused.file-name,.is-focused.pagination-previous,.is-focused.pagination-next,.is-focused.pagination-link,.is-focused.pagination-ellipsis,.button:active,.input:active,.textarea:active,.select select:active,.file-cta:active,.file-name:active,.pagination-previous:active,.pagination-next:active,.pagination-link:active,.pagination-ellipsis:active,.is-active.button,.is-active.input,.is-active.textarea,.select select.is-active,.is-active.file-cta,.is-active.file-name,.is-active.pagination-previous,.is-active.pagination-next,.is-active.pagination-link,.is-active.pagination-ellipsis{outline:0}[disabled].button,[disabled].input,[disabled].textarea,.select select[disabled],[disabled].file-cta,[disabled].file-name,[disabled].pagination-previous,[disabled].pagination-next,[disabled].pagination-link,[disabled].pagination-ellipsis{cursor:not-allowed}/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select,textarea{margin:0}html{box-sizing:bLine truncated
+3 -2
View File
@@ -3,6 +3,7 @@
[skirmish.rest.core] [skirmish.rest.core]
[skirmish.cli.benchmark] [skirmish.cli.benchmark]
[skirmish.exchange.core] [skirmish.exchange.core]
[skirmish.wui.server]
[skirmish.middleware.core :refer [create-exchange-apis-for]] [skirmish.middleware.core :refer [create-exchange-apis-for]]
[aero.core :refer (read-config)] [aero.core :refer (read-config)]
[orchestra.spec.test :as st] [orchestra.spec.test :as st]
@@ -13,8 +14,8 @@
;; arguments: the config map and the "exchange-api" ;; arguments: the config map and the "exchange-api"
{:api-server skirmish.rest.core/api-main {:api-server skirmish.rest.core/api-main
:exchange-core skirmish.exchange.core/-main ;; should be skirmish.exchange.core/api-main :exchange-core skirmish.exchange.core/-main ;; should be skirmish.exchange.core/api-main
:api-bookkeeper skirmish.rest.core/bookkeeper-main}) :api-bookkeeper skirmish.rest.core/bookkeeper-main
;:benchmark skirmish.cli.benchmark/-main}) :wui skirmish.wui.server/-main})
(defn run-all-targets-in-separate-threads [target-fns config exchange-apis] (defn run-all-targets-in-separate-threads [target-fns config exchange-apis]
(println "running multiple targets. This is okay in dev but horrible in production") (println "running multiple targets. This is okay in dev but horrible in production")
+54
View File
@@ -0,0 +1,54 @@
(ns skirmish.wui.handler
(:require [compojure.core :refer [GET defroutes]]
[compojure.route :refer [not-found resources]]
[hiccup.page :refer [include-js include-css html5]]
[skirmish.wui.middleware :refer [wrap-middleware]]))
(def mount-target
[:div#app
[:h3 "ClojureScript has not been compiled!"]
[:p "please run "
[:b "lein figwheel"]
" in order to start the compiler"]])
(defn head []
[:head
[:meta {:charset "utf-8"}]
[:meta {:name "viewport"
:content "width=device-width, initial-scale=1"}]
(include-css "/css/site.css"); use "/css/site.min.css" in production
(include-css "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css")
(include-css "https://fonts.googleapis.com/css?family=Frijole%7CKarma")])
(defn homepage []
(html5 {:class "has-background-black"}
(head)
[:body.body-container
mount-target
(include-js "/js/app.js")]))
(defn loading-page []
(html5
(head)
[:body {:class "body-container"}
mount-target
(include-js "/js/app.js")]))
(defn cards-page []
(html5
(head)
[:body
mount-target
(include-js "/js/app_devcards.js")]))
(defroutes routes
(GET "/" [] (homepage))
(GET "/:client-path" [] (homepage))
(GET "/:client-path-1/:client-path-2" [] (homepage))
(GET "/:client-path-1/:client-path-2/:client-path-3" [] (homepage))
(GET "/about" [] (loading-page))
(GET "/cards" [] (cards-page))
(resources "/")
(not-found "Not Found"))
(def app (wrap-middleware #'routes))
+8
View File
@@ -0,0 +1,8 @@
(ns skirmish.wui.server
(:require [skirmish.wui.handler :refer [app]]
[ring.adapter.jetty :refer [run-jetty]])
(:gen-class))
(defn -main [config exchange-apis]
(let [port 3000]
(run-jetty app {:port port :join? false})))
File renamed without changes.
@@ -0,0 +1,4 @@
(ns skirmish.wui.components.home-page)
(defn page [state]
[:h1 "Hello world sdjjksd dsklsd"])
@@ -0,0 +1,22 @@
(ns skirmish.wui.components.securities-page)
(def table-head
[:thead.has-background-grey-dark
[:tr
[:th.has-text-white-bis "sec-id"]
[:th.has-text-white-bis "name"]
[:th.has-text-white-bis "description"]]])
(defn create-row [sec]
(let [link [:a {:href (str "/securities/" (-> sec :sec-id name))} (-> sec :sec-id name)]]
[:tr.has-text-white-bis {:key (:sec-id sec)}
[:td link]
[:td (:name sec)]
[:td (:description sec)]]))
(defn page [state]
(let [securities [{:sec-id :foo} {:sec-id :bar} {:sec-id :toto}]]
[:table.table.is-hoverable.is-fullwidth
table-head
[:tbody
(for [sec securities] (create-row sec))]]))
@@ -0,0 +1,4 @@
(ns skirmish.wui.components.security-page)
(defn page [state]
[:h1 (str "this is a security page for " (:sec-id state))])
@@ -0,0 +1,32 @@
(ns skirmish.wui.components.todo-page)
(def on-it {:style {:font-weight "bold"}})
(def done {:style {:text-decoration "line-through"}})
(defn page []
[:div.content
[:ul
[:li "shits"
[:ul
[:li "add a list of bogus securities"]]]
[:li "kafka"
[:ul
[:li done "setup kafka"]
[:li "try kafka streams"]
[:li done "pass every order in kafka"]]]
[:li "Logic"
[:ul
[:li done "les orders doivent inclurent les bornes"]
[:li done "simplifier le spec des ordres en enlevant " [:code ":order/"]]
[:li "finish insertion logic and test with spec"]
[:li "link insertion logic to application"]]]
[:li "User interface"
[:ul
[:li "Add logo"]
[:li "Faire un ui pour sell limit order"]
[:li "Faire un ui pour buy limit order"]
[:li "Faire un ui pour sell market order"]
[:li "Faire un ui pour buy market order"]]]]])
@@ -0,0 +1,23 @@
(ns skirmish.wui.components.topbar)
(defn font-awesome [class]
[:i {:class (str "fa fa-" class) :aria-hidden true}])
(defn- top-bar-class [state page]
(when (= (:page @state) page)
"is-active"))
(defn top-bar [state]
[:nav.navbar.is-dark.is-boxed {:style {:margin-bottom "1em"}}
[:div.container
[:div.navbar-start
[:a.navbar-item.is-tab {:href "/" :class (top-bar-class state :home)} "Home"]
[:a.navbar-item.is-tab {:href "/securities" :class (top-bar-class state :securities)} "Securities"]
[:a.navbar-item.is-tab {:href "/create-order" :class (top-bar-class state :create-order)} "Create order"]
[:a.navbar-item.is-tab {:href "/portfolio" :class (top-bar-class state :view-portfolio)} "View Portfolio"]
[:a.navbar-item.is-tab {:href "/todo" :class (top-bar-class state :todo)} "Todo"]]
[:div.navbar-end
[:a.navbar-item.is-tab {} "Skirmish Shitty Exchange"]]]])
+63
View File
@@ -0,0 +1,63 @@
(ns skirmish.wui.core
(:require [reagent.core :as reagent :refer [atom]]
[skirmish.wui.pages :as pages]
[skirmish.wui.components.topbar :refer [top-bar]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[accountant.core :as accountant]))
;; -------------------------
;; Views
(enable-console-print!)
(defonce state (atom {}))
;; -------------------------
;; Routes
(secretary/defroute "/todo" []
(session/put! :current-page #'pages/todo-page)
(swap! state #(into % {:page :todo})))
(secretary/defroute "/" []
(session/put! :current-page #'pages/home-page)
(swap! state #(into % {:page :home})))
(secretary/defroute "/securities" []
(session/put! :current-page #'pages/securities-page)
(swap! state #(into % {:page :securities})))
(secretary/defroute "/securities/:sec-id" [sec-id]
(session/put! :current-page #'pages/security-page)
(swap! state #(into % {:page :securities :sec-id (keyword sec-id)})))
;; -------------------------
;; Initialize app
(defn current-page []
"This is the basic page setup."
[:div
(top-bar state)
[:div
[:div.columns
[:div.column.is-8.is-offset-2
[(session/get :current-page) @state]]]]])
(defn mount-root []
(reagent/render [current-page] (.getElementById js/document "app")))
(defn init! []
(accountant/configure-navigation!
{:nav-handler
(fn [path]
(secretary/dispatch! path))
:path-exists?
(fn [path]
(secretary/locate-route path))})
(accountant/dispatch-current!)
(mount-root))
+13
View File
@@ -0,0 +1,13 @@
(ns skirmish.wui.pages
(:require [skirmish.wui.components.todo-page]
[skirmish.wui.components.home-page]
[skirmish.wui.components.securities-page]
[skirmish.wui.components.security-page]))
(def home-page skirmish.wui.components.home-page/page)
(def todo-page skirmish.wui.components.todo-page/page)
(def securities-page skirmish.wui.components.securities-page/page)
(def security-page skirmish.wui.components.security-page/page)
+4
View File
@@ -0,0 +1,4 @@
body {
background: tomato;
color: pink;
}
+37
View File
@@ -0,0 +1,37 @@
@charset "utf-8";
// Files not starting with _ are consided entrypoints, i.e. they are compiled to .css files
// Partials (files starting with _) can be inclued using @import:
// (import path can include _ but it is not needed)`
@import "../../node_modules/bulma/sass/utilities/_all";
$background: $black;
$body-background-color: $black;
$text: $white-ter;
$link: $turquoise;
$table-background-color: $grey-dark;
$table-cell-heading-color: $grey-darker;
$border: $yellow;
@import "../../node_modules/bulma/sass/base/_all";
@import "../../node_modules/bulma/sass/elements/_all";
@import "../../node_modules/bulma/sass/components/_all";
@import "../../node_modules/bulma/sass/grid/_all";
@import "../../node_modules/bulma/sass/layout/_all";
//@import "../../node_modules/bulma/sass/bulma.sass";
//@import "../../node_modules/bulma/sass/base/_all";
//@import "../../node_modules/bulma/sass/elements/_all";
//@import "../../node_modules/bulma/sass/components/_all";
//@import "../../node_modules/bulma/sass/grid/_all";
//@import "../../node_modules/bulma/sass/layout/_all";
//@import "../../node_modules/metrics-graphics/dist/metricsgraphics";
+1
View File
@@ -0,0 +1 @@
java.runtime.version=1.8