diff --git a/deps.edn b/deps.edn index 64d143e..ea89dfe 100644 --- a/deps.edn +++ b/deps.edn @@ -9,4 +9,4 @@ com.bhauman/figwheel-main {:mvn/version "0.2.1-SNAPSHOT"} cider/piggieback {:mvn/version "0.4.0"} com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}} - :paths ["app" "src" "resources"]} + :paths ["src" "resources"]} diff --git a/figwheel-main.edn b/figwheel-main.edn index 5b8ca4a..8acc3d7 100644 --- a/figwheel-main.edn +++ b/figwheel-main.edn @@ -1,2 +1,2 @@ -{:target-dir "app/data" +{:target-dir "resources" :watch-dirs ["src"]} diff --git a/prod.cljs.edn b/prod.cljs.edn index 564a899..4bb526c 100644 --- a/prod.cljs.edn +++ b/prod.cljs.edn @@ -1,5 +1,4 @@ -{:output-to "app/data/main.js" - :output-dir "app/data/" - :asset-path "app/data/", - :optimizations :advanced +^{ :open-url "http://127.0.0.1:9500/prod.html"} +{:output-to "resources/public/main.js" +:optimizations :advanced :main weecfg.core} diff --git a/resources/public/dev-main.js b/resources/public/dev-main.js index 8d65a93..951ca3a 100644 --- a/resources/public/dev-main.js +++ b/resources/public/dev-main.js @@ -1,4 +1,4 @@ -var CLOSURE_UNCOMPILED_DEFINES = {"figwheel.repl.connect_url":"ws:\/\/localhost:9500\/figwheel-connect?fwprocess=094d2d&fwbuild=dev"}; +var CLOSURE_UNCOMPILED_DEFINES = {"figwheel.repl.connect_url":"ws:\/\/localhost:9500\/figwheel-connect?fwprocess=226ccd&fwbuild=dev"}; var CLOSURE_NO_DEPS = true; if(typeof goog == "undefined") document.write(''); document.write(''); diff --git a/resources/public/form.edn b/resources/public/form.edn index f39b8c0..303fe66 100644 --- a/resources/public/form.edn +++ b/resources/public/form.edn @@ -1,12 +1,13 @@ -[{:name "server" :title "Server" :placeholder "127.0.0.1" - :validator "server-type" - :error "Invalid server address"} - {:name "device-id" :title "Device Unique ID" :placeholder "AAAA" - :validator "device-id-type" - :error "Invalid identifier" :focus "true"} - {:name "wifi-ssid" :title "WIFI SSID" - :validator "wifi-ssid-type" - :error "Invalid SSID"} - {:name "wifi-key" :title "WIFI Password" - :validator "wifi-key-type" - :error "Invalid wifi password" :type "password"}] +{:title "GASP Sensor setup" + :fields [{:name "server" :title "Server" :placeholder "127.0.0.1" + :validator "server-type" + :error "Invalid server address"} + {:name "device-id" :title "Device Unique ID" :placeholder "AAAA" + :validator "device-id-type" + :error "Invalid identifier" :focus "true"} + {:name "wifi-ssid" :title "WIFI SSID" + :validator "wifi-ssid-type" + :error "Invalid SSID"} + {:name "wifi-key" :title "WIFI Password" + :validator "wifi-key-type" + :error "Invalid wifi password" :type "password"}]} diff --git a/resources/public/prod.html b/resources/public/prod.html new file mode 100644 index 0000000..e0200a0 --- /dev/null +++ b/resources/public/prod.html @@ -0,0 +1,14 @@ + + +
+