update on readme, moar titles, correction in last migration

neo4j-4
Josha von Gizycki 4 years ago
parent ddd2c689f6
commit 56fc3dfe01

@ -42,7 +42,7 @@ When started via its `main` method, as is the uberjar case, an nREPL server is s
To connect via the command line, use the following command: To connect via the command line, use the following command:
``` ```
clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"}}}' -m nrepl.cmdline --connect --host host --port port clj -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.7.0"}}}' -m nrepl.cmdline --connect --host host --port port
``` ```
### "Architecture" ### "Architecture"

@ -24,9 +24,9 @@
c.last_migration = ''") c.last_migration = ''")
(neo4j/defquery merge-config (neo4j/defquery merge-config
"UPDATE (c:dbconfig) "MATCH (c:dbconfig)
SET c.last_migration = {now}, SET c.last_migration = {now},
c.db_version = {version}") c.db_version = {version}")
(neo4j/defquery config (neo4j/defquery config
"MATCH (c:dbconfig) RETURN c") "MATCH (c:dbconfig) RETURN c")
@ -96,9 +96,9 @@
(defn run-migrations! [] (defn run-migrations! []
(neo4j/exec-query! init-config {:now (neo4j/now-str)}) (neo4j/exec-query! init-config {:now (neo4j/now-str)})
(let [version (-> (neo4j/exec-query! config {}) (let [version (-> (neo4j/exec-query! config {})
first first
:c :c
:db_version)] :db_version)]
(println "got version" version "from db," (count migrations) "available") (println "got version" version "from db," (count migrations) "available")
(when-let [to-run (nthrest migrations version)] (when-let [to-run (nthrest migrations version)]
(println "running" (count to-run) "migrations") (println "running" (count to-run) "migrations")

@ -42,7 +42,7 @@
[:meta {:charset "utf-8"}] [:meta {:charset "utf-8"}]
[:meta {:name "viewport" [:meta {:name "viewport"
:content "width=device-width,initial-scale=1,shrink-to-fit=no"}] :content "width=device-width,initial-scale=1,shrink-to-fit=no"}]
[:title (str "wan ijo" (when title (str " - " title)))] [:title (h (str (when title (str title " - ")) "wanijo"))]
(include-css "/css/app.css") (include-css "/css/app.css")
(when devmode? (include-css "/css/devmode.css")) (when devmode? (include-css "/css/devmode.css"))
(include-js "/js/scripts.js") (include-js "/js/scripts.js")

@ -11,6 +11,7 @@
(defn edit [instance form form-data schemas req] (defn edit [instance form form-data schemas req]
(view/layout (view/layout
:request req :request req
:title (str (:name instance) " - " (-> instance :schema :name))
:content :content
[[:h1 [[:h1
(h (-> instance :schema :name)) (h (-> instance :schema :name))

@ -10,6 +10,7 @@
(defn instances [schema instances new-form req] (defn instances [schema instances new-form req]
(view/layout (view/layout
:request req :request req
:title (:name schema)
:content :content
[[:h1 "All Instances of schema " [[:h1 "All Instances of schema "
[:span.schema-title__name (h (:name schema))]] [:span.schema-title__name (h (:name schema))]]

@ -8,6 +8,7 @@
(defn link-selection [instance schema form req] (defn link-selection [instance schema form req]
(view/layout (view/layout
:request req :request req
:title (str (:name instance) " - " (-> instance :schema :name))
:content :content
[[:h1 [[:h1
[:small "Link " (-> instance :schema :name h) " "] [:small "Link " (-> instance :schema :name h) " "]

@ -39,6 +39,7 @@
(defn show [instance schemas req] (defn show [instance schemas req]
(view/layout (view/layout
:request req :request req
:title (str (:name instance) " - " (-> instance :schema :name))
:content :content
[[:h1 [[:h1
(if (:starred instance) (if (:starred instance)

Loading…
Cancel
Save