Skip to content

Commit 8b2ecbe

Browse files
committed
Backend refactoring
1 parent 7c218e6 commit 8b2ecbe

File tree

8 files changed

+73100
-73100
lines changed

8 files changed

+73100
-73100
lines changed

resources/public/js/main.js

Lines changed: 72737 additions & 72737 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/public/js/main.min.js

Lines changed: 349 additions & 349 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-cljs/sample/data.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[goog.net.XhrIo :as xhr]
44
[goog.Uri.QueryData :as gquery-data]
55
[goog.structs :as gstruct]
6-
[clojure.string])
6+
[clojure.string :as string])
77
(:require-macros
88
[cljs.core.async.macros :refer [go]]))
99

@@ -15,9 +15,9 @@
1515

1616
(defn- to-query-param [items]
1717
(str "("
18-
(clojure.string/join ","
19-
(map :id
20-
(filter is-selected items)))
18+
(string/join ","
19+
(map :id
20+
(filter is-selected items)))
2121
")"))
2222

2323

src/sample/core.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(ns sample.core
2-
(:require [sample.components.jdbc :as jdbc]
3-
[sample.components.web :as web]
2+
(:require [sample.db.core :as db]
3+
[sample.web.core :as web]
44
[com.stuartsierra.component :as component])
55
(:gen-class :main :true))
66

@@ -20,7 +20,7 @@
2020
"App system with jdbc and http-kit web server"
2121
[config]
2222
(component/system-map
23-
:jdbc (jdbc/new-jdbc (:jdbc config))
23+
:jdbc (db/new-jdbc (:jdbc config))
2424
:web (component/using (web/new-web (:web config)) [:jdbc])))
2525

2626

src/sample/components/jdbc.clj renamed to src/sample/db/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns sample.components.jdbc
1+
(ns sample.db.core
22
(:require [clojure.java.jdbc :as clj-jdbc]
33
[com.stuartsierra.component :as component]
44
[honeysql.core :as sql]

src/sample/data.clj renamed to src/sample/db/data.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
(ns sample.data
2-
(:require [honeysql.helpers :refer :all]
3-
[honeysql.core :as sql]
4-
[sample.components.jdbc :refer [query]]))
1+
(ns sample.db.data
2+
(:require [sample.db.core :refer [query]]
3+
[honeysql.helpers :refer :all]
4+
[honeysql.core :as sql]))
55

66

77
(defn years

src/sample/components/web.clj renamed to src/sample/web/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns sample.components.web
1+
(ns sample.web.core
22
(:require [com.stuartsierra.component :as component]
33
[org.httpkit.server :as server]
44
[ring.middleware.json :refer [wrap-json-response wrap-json-body]]

src/sample/web/routes.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[ring.middleware.keyword-params :refer [wrap-keyword-params]]
77
[ring.middleware.json :refer [wrap-json-response]]
88
[ring.util.response :refer [response redirect]]
9-
[sample.data :as data]))
9+
[sample.db.data :as data]))
1010

1111

1212
(defn- jdbc

0 commit comments

Comments
 (0)