From d81106b7c3ad5760746a14caac2ed1cc9ef9f505 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Sat, 6 Mar 2021 21:49:51 +0100 Subject: [PATCH] rename wanijo.infrastructure to wanijo.infra --- README.md | 12 ++++++------ project.clj | 4 +++- src/wanijo/attribute/db.clj | 2 +- src/wanijo/attribute/routes.clj | 2 +- src/wanijo/handler.clj | 2 +- src/wanijo/home/routes.clj | 2 +- src/wanijo/home/view.clj | 2 +- src/wanijo/{infrastructure => infra}/auth.clj | 6 +++--- src/wanijo/{infrastructure => infra}/common.clj | 2 +- src/wanijo/{infrastructure => infra}/gzip.clj | 2 +- src/wanijo/{infrastructure => infra}/neo4j.clj | 2 +- src/wanijo/{infrastructure => infra}/repl.clj | 4 ++-- src/wanijo/{infrastructure => infra}/routing.clj | 2 +- src/wanijo/{infrastructure => infra}/time.clj | 2 +- src/wanijo/{infrastructure => infra}/view.clj | 4 ++-- src/wanijo/instance/db.clj | 2 +- src/wanijo/instance/routes.clj | 2 +- src/wanijo/instance/view/bulk_link_selection.clj | 6 +++--- src/wanijo/instance/view/edit.clj | 6 +++--- src/wanijo/instance/view/instances.clj | 6 +++--- src/wanijo/instance/view/link_selection.clj | 4 ++-- src/wanijo/instance/view/show.clj | 6 +++--- src/wanijo/instance/view/starred.clj | 6 +++--- src/wanijo/link/db.clj | 2 +- src/wanijo/schema/db.clj | 2 +- src/wanijo/schema/domain.clj | 2 +- src/wanijo/schema/middleware.clj | 2 +- src/wanijo/schema/routes.clj | 2 +- src/wanijo/schema/view.clj | 6 +++--- src/wanijo/specs.clj | 2 +- src/wanijo/tag/db.clj | 2 +- src/wanijo/tag/routes.clj | 2 +- src/wanijo/tag/view.clj | 2 +- src/wanijo/user/db.clj | 2 +- src/wanijo/user/routes.clj | 2 +- src/wanijo/user/view.clj | 4 ++-- src/wanijo/visualisation/db.clj | 2 +- src/wanijo/visualisation/routes.clj | 2 +- src/wanijo/visualisation/view.clj | 4 ++-- src/wanijo/visualisation/viz.clj | 2 +- .../{infrastructure => infra}/routing_test.clj | 4 ++-- 41 files changed, 68 insertions(+), 66 deletions(-) rename src/wanijo/{infrastructure => infra}/auth.clj (90%) rename src/wanijo/{infrastructure => infra}/common.clj (62%) rename src/wanijo/{infrastructure => infra}/gzip.clj (98%) rename src/wanijo/{infrastructure => infra}/neo4j.clj (98%) rename src/wanijo/{infrastructure => infra}/repl.clj (97%) rename src/wanijo/{infrastructure => infra}/routing.clj (97%) rename src/wanijo/{infrastructure => infra}/time.clj (89%) rename src/wanijo/{infrastructure => infra}/view.clj (96%) rename test/wanijo/{infrastructure => infra}/routing_test.clj (84%) diff --git a/README.md b/README.md index b3fa5ed..9b921e6 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,16 @@ You'll need: - start a neo4j database with `lein neo4j` - start a repl with `lein repl` or similar -- import `wanijo.infrastructure.repl` +- import `wanijo.infra.repl` - if you use leiningen for launching the repl, this will be your init-ns -- run `wanijo.infrastructure.repl/create-user!` using the desired username and password as parameters to create an application user -- run `wanijo.infrastructure.repl/run-migrations!` to create desireable database constraints and structures +- run `wanijo.infra.repl/create-user!` using the desired username and password as parameters to create an application user +- run `wanijo.infra.repl/run-migrations!` to create desireable database constraints and structures ### Launch the application server - start a repl -- import `wanijo.infrastructure.repl` -- run `wanijo.infrastructure.repl/dev-server!` +- import `wanijo.infra.repl` +- run `wanijo.infra.repl/dev-server!` - the application is available on port `8080` ## Launch as a standalone @@ -54,4 +54,4 @@ The first level of structure are the building blocks of the domain, e.g. `instan `wanijo.handler` collects all routes and passes them to ring. -`wanijo.infrastructure` contains the namespaces needed for technical code that do not belong to any domain, like database access, routing or similars. +`wanijo.infra` contains the namespaces needed for technical code that do not belong to any domain, like database access, routing or similars. diff --git a/project.clj b/project.clj index 1974219..4074431 100644 --- a/project.clj +++ b/project.clj @@ -52,6 +52,8 @@ :profiles {:dev {:plugins [;; web stuff [lein-less "1.7.5"] + [joshavg/lein-neo4j "0.5.0"] + ;; code quality [lein-ancient "LATEST"] [jonase/eastwood "LATEST"] @@ -62,7 +64,7 @@ :main wanijo.main}} :neo4j {:path "neo4j"} - :repl-options {:init-ns wanijo.infrastructure.repl} + :repl-options {:init-ns wanijo.infra.repl} :less {:source-paths ["resources/app/stylesheets"] :target-path "resources/public/css"} :aliases {"uberjar" ["do" ["less" "once"] "uberjar"]} diff --git a/src/wanijo/attribute/db.clj b/src/wanijo/attribute/db.clj index 8d30796..dfe24a9 100644 --- a/src/wanijo/attribute/db.clj +++ b/src/wanijo/attribute/db.clj @@ -1,5 +1,5 @@ (ns wanijo.attribute.db - (:require [wanijo.infrastructure.neo4j :as neo4j])) + (:require [wanijo.infra.neo4j :as neo4j])) (neo4j/defquery findy-by-schema "MATCH (a:attribute)-->(s:schema) diff --git a/src/wanijo/attribute/routes.clj b/src/wanijo/attribute/routes.clj index 976f779..9785ff0 100644 --- a/src/wanijo/attribute/routes.clj +++ b/src/wanijo/attribute/routes.clj @@ -3,7 +3,7 @@ [clojure.pprint :refer [pprint]] [ring.util.response :as resp] [formulare.core :as form] - [wanijo.infrastructure.routing :refer [register! path]] + [wanijo.infra.routing :refer [register! path]] [wanijo.attribute.db :as domain] [wanijo.schema [routes :as schema-routes] diff --git a/src/wanijo/handler.clj b/src/wanijo/handler.clj index 7aa6677..fdf4974 100644 --- a/src/wanijo/handler.clj +++ b/src/wanijo/handler.clj @@ -18,7 +18,7 @@ [wanijo.instance.routes :as instance-routes] [wanijo.visualisation.routes :as vis-routes] [wanijo.tag.routes :as tag-routes] - [wanijo.infrastructure + [wanijo.infra [auth :as auth] [routing :refer [path]] [gzip :as gzip] diff --git a/src/wanijo/home/routes.clj b/src/wanijo/home/routes.clj index 5120955..b960925 100644 --- a/src/wanijo/home/routes.clj +++ b/src/wanijo/home/routes.clj @@ -1,6 +1,6 @@ (ns wanijo.home.routes (:require [compojure.core :refer [defroutes GET]] - [wanijo.infrastructure.routing :refer [register!]] + [wanijo.infra.routing :refer [register!]] [wanijo.home.view :as home-view])) (defroutes routes diff --git a/src/wanijo/home/view.clj b/src/wanijo/home/view.clj index 171019f..03078e0 100644 --- a/src/wanijo/home/view.clj +++ b/src/wanijo/home/view.clj @@ -1,5 +1,5 @@ (ns wanijo.home.view - (:require [wanijo.infrastructure.view :as view])) + (:require [wanijo.infra.view :as view])) (defn root! [req] (view/layout :session (:session req))) diff --git a/src/wanijo/infrastructure/auth.clj b/src/wanijo/infra/auth.clj similarity index 90% rename from src/wanijo/infrastructure/auth.clj rename to src/wanijo/infra/auth.clj index 8369057..a65996e 100644 --- a/src/wanijo/infrastructure/auth.clj +++ b/src/wanijo/infra/auth.clj @@ -1,11 +1,11 @@ -(ns wanijo.infrastructure.auth +(ns wanijo.infra.auth (:require [compojure.core :refer [POST GET defroutes]] [ring.util.response :refer [redirect]] [ring.util.anti-forgery :refer [anti-forgery-field]] [buddy.hashers :as hashers] [hiccup.form :as hform] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [register! path]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [register! path]] [wanijo.user.db :as user-domain])) (defn- login-check! [req] diff --git a/src/wanijo/infrastructure/common.clj b/src/wanijo/infra/common.clj similarity index 62% rename from src/wanijo/infrastructure/common.clj rename to src/wanijo/infra/common.clj index eff25c8..bc0ee0f 100644 --- a/src/wanijo/infrastructure/common.clj +++ b/src/wanijo/infra/common.clj @@ -1,4 +1,4 @@ -(ns wanijo.infrastructure.common) +(ns wanijo.infra.common) (defn in? [coll x] (some? (some (partial = x) coll))) diff --git a/src/wanijo/infrastructure/gzip.clj b/src/wanijo/infra/gzip.clj similarity index 98% rename from src/wanijo/infrastructure/gzip.clj rename to src/wanijo/infra/gzip.clj index babbb1d..cb007ee 100644 --- a/src/wanijo/infrastructure/gzip.clj +++ b/src/wanijo/infra/gzip.clj @@ -1,4 +1,4 @@ -(ns wanijo.infrastructure.gzip +(ns wanijo.infra.gzip (:require [clojure.java.io :as io]) (:import (java.io InputStream Closeable diff --git a/src/wanijo/infrastructure/neo4j.clj b/src/wanijo/infra/neo4j.clj similarity index 98% rename from src/wanijo/infrastructure/neo4j.clj rename to src/wanijo/infra/neo4j.clj index 4c9642d..8bd4462 100644 --- a/src/wanijo/infrastructure/neo4j.clj +++ b/src/wanijo/infra/neo4j.clj @@ -1,4 +1,4 @@ -(ns wanijo.infrastructure.neo4j +(ns wanijo.infra.neo4j (:require [neo4j-clj.core :as db] [neo4j-clj.in-memory :as db-inm] [clj-time.format :as time-format] diff --git a/src/wanijo/infrastructure/repl.clj b/src/wanijo/infra/repl.clj similarity index 97% rename from src/wanijo/infrastructure/repl.clj rename to src/wanijo/infra/repl.clj index 040fa19..e97124f 100644 --- a/src/wanijo/infrastructure/repl.clj +++ b/src/wanijo/infra/repl.clj @@ -1,7 +1,7 @@ -(ns wanijo.infrastructure.repl +(ns wanijo.infra.repl (:require [buddy.hashers :as hashers] [wanijo.main :as main] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (neo4j/defquery create-user "CREATE (n:user) diff --git a/src/wanijo/infrastructure/routing.clj b/src/wanijo/infra/routing.clj similarity index 97% rename from src/wanijo/infrastructure/routing.clj rename to src/wanijo/infra/routing.clj index 085f401..6d8158f 100644 --- a/src/wanijo/infrastructure/routing.clj +++ b/src/wanijo/infra/routing.clj @@ -1,4 +1,4 @@ -(ns wanijo.infrastructure.routing +(ns wanijo.infra.routing (:require [clojure.string :as string])) (def all-routes diff --git a/src/wanijo/infrastructure/time.clj b/src/wanijo/infra/time.clj similarity index 89% rename from src/wanijo/infrastructure/time.clj rename to src/wanijo/infra/time.clj index eee35c7..6bb70af 100644 --- a/src/wanijo/infrastructure/time.clj +++ b/src/wanijo/infra/time.clj @@ -1,4 +1,4 @@ -(ns wanijo.infrastructure.time +(ns wanijo.infra.time (:require [clj-time.format :as format])) (defn prettify-dt [date-str] diff --git a/src/wanijo/infrastructure/view.clj b/src/wanijo/infra/view.clj similarity index 96% rename from src/wanijo/infrastructure/view.clj rename to src/wanijo/infra/view.clj index 5ed975c..ab97f6d 100644 --- a/src/wanijo/infrastructure/view.clj +++ b/src/wanijo/infra/view.clj @@ -1,8 +1,8 @@ -(ns wanijo.infrastructure.view +(ns wanijo.infra.view (:require [hiccup [page :refer [html5 include-js include-css]] [core :refer [h]]] - [wanijo.infrastructure.routing :refer [path]])) + [wanijo.infra.routing :refer [path]])) (defn btnlink ([target caption] diff --git a/src/wanijo/instance/db.clj b/src/wanijo/instance/db.clj index f09af34..9a753e4 100644 --- a/src/wanijo/instance/db.clj +++ b/src/wanijo/instance/db.clj @@ -1,6 +1,6 @@ (ns wanijo.instance.db (:require [clojure.spec.alpha :as spec] - [wanijo.infrastructure.neo4j :as neo4j] + [wanijo.infra.neo4j :as neo4j] [wanijo.instance.domain :as domain-instance] [wanijo.tag.db :as db-tag])) diff --git a/src/wanijo/instance/routes.clj b/src/wanijo/instance/routes.clj index 53295f2..e1de5c2 100644 --- a/src/wanijo/instance/routes.clj +++ b/src/wanijo/instance/routes.clj @@ -16,7 +16,7 @@ [wanijo.schema.db :as domain-schema] [wanijo.schema.middleware :as middleware-schema] [wanijo.link.db :as domain-link] - [wanijo.infrastructure.routing :refer [register! path]] + [wanijo.infra.routing :refer [register! path]] [wanijo.attribute.db :as db-attr])) (defn route-list! [schema-uuid req] diff --git a/src/wanijo/instance/view/bulk_link_selection.clj b/src/wanijo/instance/view/bulk_link_selection.clj index e46ec49..5741150 100644 --- a/src/wanijo/instance/view/bulk_link_selection.clj +++ b/src/wanijo/instance/view/bulk_link_selection.clj @@ -1,9 +1,9 @@ (ns wanijo.instance.view.bulk-link-selection (:require [hiccup.form :as hform] [hiccup.core :refer [h]] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]] [wanijo.instance.view.view :refer [req-attrs-headings req-attrs-cells diff --git a/src/wanijo/instance/view/edit.clj b/src/wanijo/instance/view/edit.clj index 6ed0237..d3e793a 100644 --- a/src/wanijo/instance/view/edit.clj +++ b/src/wanijo/instance/view/edit.clj @@ -2,9 +2,9 @@ (:require [hiccup.form :as hform] [hiccup.core :refer [h]] [ring.util.anti-forgery :refer [anti-forgery-field]] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]] [wanijo.tag.view :as view-tag] [formulare.core :as form])) diff --git a/src/wanijo/instance/view/instances.clj b/src/wanijo/instance/view/instances.clj index c788575..511b24f 100644 --- a/src/wanijo/instance/view/instances.clj +++ b/src/wanijo/instance/view/instances.clj @@ -3,9 +3,9 @@ [hiccup.core :refer [h]] [formulare.core :as form] [wanijo.instance.view.view :as view-instance] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]])) + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]])) (defn instances [schema instances new-form req] (view/layout diff --git a/src/wanijo/instance/view/link_selection.clj b/src/wanijo/instance/view/link_selection.clj index 5bcff89..336c396 100644 --- a/src/wanijo/instance/view/link_selection.clj +++ b/src/wanijo/instance/view/link_selection.clj @@ -1,8 +1,8 @@ (ns wanijo.instance.view.link-selection (:require [hiccup.form :as hform] [hiccup.core :refer [h]] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] [formulare.core :as form])) (defn link-selection [instance schema form req] diff --git a/src/wanijo/instance/view/show.clj b/src/wanijo/instance/view/show.clj index 3f60823..220fc60 100644 --- a/src/wanijo/instance/view/show.clj +++ b/src/wanijo/instance/view/show.clj @@ -2,9 +2,9 @@ (:require [hiccup.form :as hform] [hiccup.core :refer [h]] [ring.util.anti-forgery :refer [anti-forgery-field]] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]] [wanijo.instance.view.view :as view-instance] [wanijo.tag.view :as view-tag] [markdown.core :as md] diff --git a/src/wanijo/instance/view/starred.clj b/src/wanijo/instance/view/starred.clj index dbe8e42..a75f411 100644 --- a/src/wanijo/instance/view/starred.clj +++ b/src/wanijo/instance/view/starred.clj @@ -1,8 +1,8 @@ (ns wanijo.instance.view.starred (:require [hiccup.core :refer [h]] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]])) + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]])) (defn starred [instances req] (view/layout diff --git a/src/wanijo/link/db.clj b/src/wanijo/link/db.clj index 3f73841..e36624a 100644 --- a/src/wanijo/link/db.clj +++ b/src/wanijo/link/db.clj @@ -1,7 +1,7 @@ (ns wanijo.link.db (:require [clojure.spec.alpha :as spec] [wanijo.specs :as specs] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (spec/def ::link (spec/keys :req-un [::neo4j/uuid diff --git a/src/wanijo/schema/db.clj b/src/wanijo/schema/db.clj index 86e8b34..326f826 100644 --- a/src/wanijo/schema/db.clj +++ b/src/wanijo/schema/db.clj @@ -1,5 +1,5 @@ (ns wanijo.schema.db - (:require [wanijo.infrastructure.neo4j :as neo4j] + (:require [wanijo.infra.neo4j :as neo4j] [wanijo.schema.domain :as domain] [clojure.spec.alpha :as spec])) diff --git a/src/wanijo/schema/domain.clj b/src/wanijo/schema/domain.clj index 64d2f8c..7ecf336 100644 --- a/src/wanijo/schema/domain.clj +++ b/src/wanijo/schema/domain.clj @@ -2,7 +2,7 @@ (:require [clojure.spec.alpha :as spec] [wanijo.specs :as specs] [wanijo.attribute.domain :as domain-attr] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (spec/def ::name (spec/and ::specs/name (complement empty?))) diff --git a/src/wanijo/schema/middleware.clj b/src/wanijo/schema/middleware.clj index c1f4610..b998924 100644 --- a/src/wanijo/schema/middleware.clj +++ b/src/wanijo/schema/middleware.clj @@ -1,6 +1,6 @@ (ns wanijo.schema.middleware (:require [ring.util.response :as resp] - [wanijo.infrastructure.routing :refer [path]] + [wanijo.infra.routing :refer [path]] [wanijo.schema.db :as db])) (defn wrap-user-schemas! [handler] diff --git a/src/wanijo/schema/routes.clj b/src/wanijo/schema/routes.clj index 3ccf066..7effc51 100644 --- a/src/wanijo/schema/routes.clj +++ b/src/wanijo/schema/routes.clj @@ -2,7 +2,7 @@ (:require [compojure.core :refer [defroutes GET POST DELETE] :as comp] [ring.util.response :as resp] [formulare.core :as form] - [wanijo.infrastructure.routing :refer [register! path]] + [wanijo.infra.routing :refer [register! path]] [wanijo.user.db :as domain-user] [wanijo.schema [view :as schema-view] diff --git a/src/wanijo/schema/view.clj b/src/wanijo/schema/view.clj index 695e842..e499982 100644 --- a/src/wanijo/schema/view.clj +++ b/src/wanijo/schema/view.clj @@ -4,9 +4,9 @@ [core :refer [h]]] [ring.util.anti-forgery :refer [anti-forgery-field]] [formulare.core :as form] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.time :refer [prettify-dt]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] + [wanijo.infra.time :refer [prettify-dt]] [wanijo.schema.db :as domain] [wanijo.schema.forms :as forms])) diff --git a/src/wanijo/specs.clj b/src/wanijo/specs.clj index e6faf61..2468c1b 100644 --- a/src/wanijo/specs.clj +++ b/src/wanijo/specs.clj @@ -1,6 +1,6 @@ (ns wanijo.specs (:require [clojure.spec.alpha :as spec] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (spec/def ::created_at ::neo4j/date-str) (spec/def ::updated_at ::neo4j/date-str) diff --git a/src/wanijo/tag/db.clj b/src/wanijo/tag/db.clj index cef3bd8..63fd0a2 100644 --- a/src/wanijo/tag/db.clj +++ b/src/wanijo/tag/db.clj @@ -1,7 +1,7 @@ (ns wanijo.tag.db (:require [clojure.spec.alpha :as spec] [wanijo.specs :as specs] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (spec/def ::name (spec/and ::specs/name diff --git a/src/wanijo/tag/routes.clj b/src/wanijo/tag/routes.clj index 92d4e45..263e8d4 100644 --- a/src/wanijo/tag/routes.clj +++ b/src/wanijo/tag/routes.clj @@ -2,7 +2,7 @@ (:require [compojure.core :refer [defroutes POST DELETE]] [ring.util.response :as resp] [formulare.core :as form] - [wanijo.infrastructure.routing :refer [register! path]] + [wanijo.infra.routing :refer [register! path]] [wanijo.schema.db :as domain-schema] [wanijo.instance.db :as db-instance] [wanijo.instance.view.show :refer [show]] diff --git a/src/wanijo/tag/view.clj b/src/wanijo/tag/view.clj index c6c9e57..6c01918 100644 --- a/src/wanijo/tag/view.clj +++ b/src/wanijo/tag/view.clj @@ -4,7 +4,7 @@ [ring.util.anti-forgery :refer [anti-forgery-field]] [formulare.core :as form] [wanijo.tag.forms :as forms] - [wanijo.infrastructure + [wanijo.infra [routing :refer [path]] [view :as view] [time :refer [prettify-dt]]])) diff --git a/src/wanijo/user/db.clj b/src/wanijo/user/db.clj index 31b6338..55e3b80 100644 --- a/src/wanijo/user/db.clj +++ b/src/wanijo/user/db.clj @@ -1,6 +1,6 @@ (ns wanijo.user.db (:require [clojure.spec.alpha :as spec] - [wanijo.infrastructure.neo4j :as neo4j])) + [wanijo.infra.neo4j :as neo4j])) (spec/def ::ident (spec/and string? not-empty)) diff --git a/src/wanijo/user/routes.clj b/src/wanijo/user/routes.clj index 8be2024..e1986ae 100644 --- a/src/wanijo/user/routes.clj +++ b/src/wanijo/user/routes.clj @@ -1,7 +1,7 @@ (ns wanijo.user.routes (:require [compojure.core :refer [defroutes GET POST]] [ring.util.response :as resp] - [wanijo.infrastructure.routing :refer [register!]] + [wanijo.infra.routing :refer [register!]] [wanijo.user.view :as view-user] [wanijo.user.db :as domain])) diff --git a/src/wanijo/user/view.clj b/src/wanijo/user/view.clj index 253596d..7f640be 100644 --- a/src/wanijo/user/view.clj +++ b/src/wanijo/user/view.clj @@ -2,8 +2,8 @@ (:require [hiccup.form :as hform] [ring.util.anti-forgery :refer [anti-forgery-field]] [formulare.core :as form] - [wanijo.infrastructure.view :as view] - [wanijo.infrastructure.routing :refer [path]] + [wanijo.infra.view :as view] + [wanijo.infra.routing :refer [path]] [wanijo.user.db :as domain])) (def edit-form diff --git a/src/wanijo/visualisation/db.clj b/src/wanijo/visualisation/db.clj index 1418108..a16b5f6 100644 --- a/src/wanijo/visualisation/db.clj +++ b/src/wanijo/visualisation/db.clj @@ -1,6 +1,6 @@ (ns wanijo.visualisation.db (:require [clojure.spec.alpha :as spec] - [wanijo.infrastructure.neo4j :as neo4j] + [wanijo.infra.neo4j :as neo4j] [wanijo.instance.db :as db-instance] [wanijo.instance.domain :as domain-instance])) diff --git a/src/wanijo/visualisation/routes.clj b/src/wanijo/visualisation/routes.clj index 0c71232..c3afa13 100644 --- a/src/wanijo/visualisation/routes.clj +++ b/src/wanijo/visualisation/routes.clj @@ -1,7 +1,7 @@ (ns wanijo.visualisation.routes (:require [compojure.core :refer [defroutes wrap-routes GET POST DELETE]] - [wanijo.infrastructure + [wanijo.infra [routing :refer [register! path]] [view :as view]] [wanijo.instance.db :as db-instance] diff --git a/src/wanijo/visualisation/view.clj b/src/wanijo/visualisation/view.clj index 73414cd..5718a24 100644 --- a/src/wanijo/visualisation/view.clj +++ b/src/wanijo/visualisation/view.clj @@ -2,8 +2,8 @@ (:require [hiccup.page :refer [include-js include-css]] [hiccup.form :as hform] [hiccup.core :refer [h]] - [wanijo.infrastructure.routing :refer [path]] - [wanijo.infrastructure.view :as view])) + [wanijo.infra.routing :refer [path]] + [wanijo.infra.view :as view])) (defn index [instance req] (view/layout diff --git a/src/wanijo/visualisation/viz.clj b/src/wanijo/visualisation/viz.clj index bb8d885..e7f8d2d 100644 --- a/src/wanijo/visualisation/viz.clj +++ b/src/wanijo/visualisation/viz.clj @@ -3,7 +3,7 @@ [dorothy [core :as dot] [jvm :as doro-jvm]] - [wanijo.infrastructure.routing :refer [path]])) + [wanijo.infra.routing :refer [path]])) (defn node->label ([node] diff --git a/test/wanijo/infrastructure/routing_test.clj b/test/wanijo/infra/routing_test.clj similarity index 84% rename from test/wanijo/infrastructure/routing_test.clj rename to test/wanijo/infra/routing_test.clj index c5b2f0c..5a3397f 100644 --- a/test/wanijo/infrastructure/routing_test.clj +++ b/test/wanijo/infra/routing_test.clj @@ -1,6 +1,6 @@ -(ns wanijo.infrastructure.routing-test +(ns wanijo.infra.routing-test (:require [clojure.test :refer :all] - [wanijo.infrastructure.routing :refer [parse-path]])) + [wanijo.infra.routing :refer [parse-path]])) (deftest test-parse-path (testing "no params in path"