From a01cca0a654e30c208570df6137f7307e47eea04 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Wed, 29 Jan 2020 11:55:48 +0000 Subject: [PATCH] Getting map pins working; working around (not solving) resource bug/ --- package-lock.json | 13 - project.clj | 7 +- resources/html/error.html | 2 +- resources/html/home.html | 4 +- resources/public/css/screen.css | 8 +- .../lib/node_modules/leaflet/dist/leaflet.css | 636 ------------------ resources/public/js/package-lock.json | 3 + src/clj/geocsv/handler.clj | 4 +- src/clj/geocsv/routes/resources.clj | 14 + src/cljs/geocsv/core.cljs | 1 + src/cljs/geocsv/events.cljs | 29 + src/cljs/geocsv/gis.cljs | 70 +- 12 files changed, 101 insertions(+), 690 deletions(-) delete mode 100644 package-lock.json delete mode 100644 resources/public/js/lib/node_modules/leaflet/dist/leaflet.css create mode 100644 resources/public/js/package-lock.json create mode 100644 src/clj/geocsv/routes/resources.clj diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index a16f310..0000000 --- a/package-lock.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "geocsv", - "version": "0.1.0-SNAPSHOT", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "leaflet": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.3.1.tgz", - "integrity": "sha512-adQOIzh+bfdridLM1xIgJ9VnJbAUY3wqs/ueF+ITla+PLQ1z47USdBKUf+iD9FuUA8RtlT6j6hZBfZoA6mW+XQ==" - } - } -} diff --git a/project.clj b/project.clj index bc0b0f7..fa8b919 100644 --- a/project.clj +++ b/project.clj @@ -13,7 +13,7 @@ [com.cognitect/transit-clj "0.8.319"] [compojure "1.6.1"] [cprop "0.1.15"] - [csv2edn "0.1.5"] + [csv2edn "0.1.6"] [day8.re-frame/http-fx "0.1.6"] [expound "0.8.3"] [funcool/struct "1.4.0"] @@ -43,7 +43,10 @@ [selmer "1.12.18"]] :min-lein-version "2.0.0" - :npm {:dependencies [[leaflet "1.3.1"]]} + :npm {:dependencies [[bulma "0.8.0"] + [leaflet "1.3.1"] + [material-design-icons "3.0.1"]] + :root "resources/public/js/lib/node_modules"} :source-paths ["src/clj" "src/cljs" "src/cljc"] :test-paths ["test/clj"] diff --git a/resources/html/error.html b/resources/html/error.html index fd31cc5..88103f7 100644 --- a/resources/html/error.html +++ b/resources/html/error.html @@ -4,7 +4,7 @@ Something Bad Happened - {% style "/assets/bulma/css/bulma.min.css" %} + {% style "/js/lib/node_modules/bulma/css/bulma.min.css" %}