From b2cd66df7fb16fdecaf2b6833e9d26a1b5d210a0 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 24 Sep 2016 14:24:44 +0100 Subject: [PATCH] Updated to use CLJC-ified versions of engine and parser. --- project.clj | 27 +++++++++++++++------------ resources/public/css/standard.css | 3 +-- resources/templates/base.html | 4 ---- resources/templates/inspector.html | 1 + resources/templates/params.html | 3 ++- src/{ => clj}/mw_ui/handler.clj | 0 src/{ => clj}/mw_ui/layout.clj | 2 ++ src/{ => clj}/mw_ui/middleware.clj | 0 src/{ => clj}/mw_ui/render_world.clj | 13 ++++++------- src/{ => clj}/mw_ui/repl.clj | 0 src/{ => clj}/mw_ui/routes/home.clj | 21 +++++++++++---------- src/{ => clj}/mw_ui/routes/load.clj | 0 src/{ => clj}/mw_ui/routes/params.clj | 17 +++++++++-------- src/{ => clj}/mw_ui/routes/rules.clj | 2 +- src/{ => clj}/mw_ui/routes/save.clj | 5 +++-- src/{ => clj}/mw_ui/util.clj | 17 +++++++---------- 16 files changed, 58 insertions(+), 57 deletions(-) rename src/{ => clj}/mw_ui/handler.clj (100%) rename src/{ => clj}/mw_ui/layout.clj (93%) rename src/{ => clj}/mw_ui/middleware.clj (100%) rename src/{ => clj}/mw_ui/render_world.clj (90%) rename src/{ => clj}/mw_ui/repl.clj (100%) rename src/{ => clj}/mw_ui/routes/home.clj (85%) rename src/{ => clj}/mw_ui/routes/load.clj (100%) rename src/{ => clj}/mw_ui/routes/params.clj (84%) rename src/{ => clj}/mw_ui/routes/rules.clj (98%) rename src/{ => clj}/mw_ui/routes/save.clj (91%) rename src/{ => clj}/mw_ui/util.clj (82%) diff --git a/project.clj b/project.clj index e280238..cee94af 100644 --- a/project.clj +++ b/project.clj @@ -8,18 +8,21 @@ "build-signature-timestamp" "unset" "Implementation-Version" "unset" } - :dependencies [[org.clojure/clojure "1.6.0"] - [mw-engine "0.1.5-SNAPSHOT"] - [mw-parser "0.1.5-SNAPSHOT"] - [lib-noir "0.8.4"] - [ring-server "0.3.1"] - [selmer "0.6.8"] + :dependencies [[org.clojure/clojure "1.8.0"] + [mw-engine "3.0.0-SNAPSHOT"] + [mw-parser "3.0.0-SNAPSHOT"] + [lib-noir "0.9.9"] + [ring-server "0.4.0"] + [selmer "1.0.9"] [com.taoensso/timbre "3.2.1"] - [com.taoensso/tower "2.0.2"] - [markdown-clj "0.9.44"] - [environ "0.5.0"] - [noir-exception "0.2.2"]] + [com.taoensso/tower "3.0.2"] + [markdown-clj "0.9.89"] + [environ "1.1.0"] + [noir-exception "0.2.5"]] + :source-paths ["src/clj" "src/cljc"] + :license {:name "GNU General Public License v2" + :url "http://www.gnu.org/licenses/gpl-2.0.html"} :repl-options {:init-ns mw-ui.repl} :plugins [[lein-ring "0.8.11"] [lein-environ "0.5.0"] @@ -37,8 +40,8 @@ :stacktraces? false :auto-reload? false}} :dev {:dependencies [[ring-mock "0.1.5"] - [ring/ring-devel "1.3.0"] - [pjstadig/humane-test-output "0.6.0"]] + [ring/ring-devel "1.5.0"] + [pjstadig/humane-test-output "0.8.1"]] :injections [(require 'pjstadig.humane-test-output) (pjstadig.humane-test-output/activate!)] :env {:dev true}}} diff --git a/resources/public/css/standard.css b/resources/public/css/standard.css index 131a881..62f3189 100644 --- a/resources/public/css/standard.css +++ b/resources/public/css/standard.css @@ -6,7 +6,7 @@ body { /* Overall container div, holds all content of page. Yes, I know it shouldn't have fixed width */ #main-container{ clear: both; -/* width:100%; */ + width:100%; } /* footer of the document */ @@ -145,4 +145,3 @@ th, td { text-align: left; padding: 0 0.25em; } - diff --git a/resources/templates/base.html b/resources/templates/base.html index 2be5573..46fe376 100644 --- a/resources/templates/base.html +++ b/resources/templates/base.html @@ -3,11 +3,7 @@ {{title}} - - - - {% script "/lib/jquery-1.9.0.js" %} {% script "/lib/jquery.validate.min.js" %} {% script "/lib/script.js" %} diff --git a/resources/templates/inspector.html b/resources/templates/inspector.html index 7ba60b3..35441df 100644 --- a/resources/templates/inspector.html +++ b/resources/templates/inspector.html @@ -4,6 +4,7 @@ {{content|safe}}
+ {% csrf-field %}

diff --git a/resources/templates/params.html b/resources/templates/params.html index f0e13cb..c872da8 100644 --- a/resources/templates/params.html +++ b/resources/templates/params.html @@ -1,6 +1,7 @@ {% extends "templates/base.html" %} {% block content %} + {% csrf-field %}